/* H&C preview | Seamless hero and sticky/collapsible live price (2026-10-27) */
html body .dbrh-hero {
  background-color:#eaf3f8!important;
}
html body .dbrh-hero::after {
  content:""!important;
  display:block!important;
  position:absolute!important;
  z-index:1!important;
  left:0!important;right:0!important;bottom:-1px!important;
  height:92px!important;
  background:linear-gradient(180deg,rgba(234,243,248,0) 0%,rgba(234,243,248,.35) 38%,rgba(234,243,248,.84) 75%,#eaf3f8 100%)!important;
  pointer-events:none!important;
}
html body .dbrh-hero .hc-hero-calculator-note {
  margin-top:30px!important;
}
html body .dbrpf.hc-ref-calculator {
  background:linear-gradient(180deg,#eaf3f8 0%,#edf5fa 9%,#f3f8fc 28%,#f8fbfd 55%,#f4f9fc 100%)!important;
}

/* The entire aside must stick; sticky on its card cannot work inside a same-height aside. */
@media (min-width:751px) {
  html body .dbrpf.hc-ref-calculator .dbrpf__workspace .dbrpf__price-column {
    position:sticky!important;
    top:102px!important;
    align-self:start!important;
    overflow:visible!important;
    height:max-content!important;
    z-index:12!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column .dbrpf__price-card {
    position:relative!important;
    top:auto!important;
    width:100%!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    scrollbar-width:none!important;
    padding-bottom:0!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column .dbrpf__price-card::-webkit-scrollbar {display:none!important;}
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-card {
    width:100%!important;
    min-height:0!important;
    padding:14px 16px!important;
    border:1px solid #cbe4d5!important;
    border-radius:11px!important;
    background:#eaf7ef!important;
    box-shadow:0 8px 24px rgba(12,64,86,.095)!important;
    animation:hc-price-condense .18s ease-out both;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-card > :not(.dbrpf__price-main) {
    display:none!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-main {
    border:0!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-main > span {
    display:none!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-main > strong {
    font:850 33px/1.1 Inter,Arial,sans-serif!important;
    color:#167148!important;
    letter-spacing:-.045em!important;
  }
  @keyframes hc-price-condense {
    from{opacity:.84;transform:translateY(-3px)}
    to{opacity:1;transform:none}
  }
}
@media(prefers-reduced-motion:reduce){html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-card {animation:none!important;}}

/* The original breakdown stays intact. Only the four promises and roof photo are added. */
html body .dbrpf.hc-ref-calculator .dbrpf__price-card .hc-ref-price-estimate,
html body .dbrpf.hc-ref-calculator .dbrpf__price-card .hc-ref-price-note {
 display:none!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__price-card .hc-ref-checks {
  margin:4px 0 0!important;
  padding:10px 0 14px!important;
  border-top:1px solid #d5e7dd!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__price-card .hc-ref-price-photo {
  margin-top:0!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__price-card .hc-ref-price-footer {
  margin-top:6px!important;
  padding-bottom:0!important;
}

/* On phones, a small fixed live-price chip follows the page, not an inner scroller. */
html body .hc-floating-mobile-price {
  display:none!important;
}
@media(max-width:750px){
  html body .dbrh-hero .hc-hero-calculator-note {margin-top:22px!important;}
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column .dbrpf__price-card {
    position:relative!important;
    overflow:visible!important;
    max-height:none!important;
    height:auto!important;
  }
  html body .hc-floating-mobile-price.hc-is-visible {
    position:fixed!important;
    top:82px!important;
    right:12px!important;
    z-index:950!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:9px!important;
    width:auto!important;
    padding:10px 14px!important;
    border:1px solid #b8dcc6!important;
    border-radius:8px!important;
    background:#eaf7ef!important;
    box-shadow:0 8px 22px rgba(11,66,55,.17)!important;
    font:800 18px/1.15 Inter,Arial,sans-serif!important;
    color:#167148!important;
    pointer-events:none!important;
  }
}
/* Live UI adjustment 2026-10-30: compact price with explicit heading. */
@media (max-width:750px) {
  html body .hc-floating-mobile-price.hc-is-visible {
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    gap:7px!important;
    min-width:0!important;
    width:max-content!important;
    max-width:calc(100vw - 24px)!important;
    padding:7px 10px!important;
    text-align:left!important;
  }
  html body .hc-floating-mobile-price.hc-is-visible > small {
    display:block!important;
    color:#315f4b!important;
    font:700 10px/1.15 Inter,Arial,sans-serif!important;
    white-space:nowrap!important;
    flex:0 0 auto!important;
  }
  html body .hc-floating-mobile-price.hc-is-visible > small::after {
    content:":"!important;
  }
  html body .hc-floating-mobile-price.hc-is-visible > strong {
    display:block!important;
    color:#167148!important;
    font:850 18px/1.1 Inter,Arial,sans-serif!important;
    white-space:nowrap!important;
  }
}
