/* Only the H&C /_hc-home-20261027/ calculator; leave hero, backgrounds and pricing logic alone. */
html body .dbrpf.hc-ref-calculator .dbrpf__topbar {display:none!important;}

/* Stable choices: selecting or focusing a radio must never restore the previous cards/frames. */
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice,
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice:hover,
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice:focus-within,
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice.is-selected,
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice:has(input:checked) {
  position:relative!important;
  background:rgba(255,255,255,.94)!important;
  background-image:none!important;
  border:1px solid #dbe8ef!important;
  border-radius:7px!important;
  box-shadow:0 2px 7px rgba(11,66,96,.045)!important;
  outline:0!important;
  transform:none!important;
  filter:none!important;
  transition:border-color .15s ease!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice::before,
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice:nth-child(even)::before,
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice.is-selected::before,
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice:has(input:checked)::before,
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice:focus-within::before {
  content:none!important;display:none!important;background:none!important;border:0!important;box-shadow:none!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice::after,
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice.is-selected::after,
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice:has(input:checked)::after {
  content:none!important;display:none!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice:has(input:focus-visible) {
  outline:2px solid #177faf!important;outline-offset:2px!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice__indicator {
  position:relative!important;z-index:2!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__choices .dbrpf-choice__indicator::after {
  content:none!important;display:none!important;
}

/* Roof photos occupy their own top row; labels are always below, never over the picture. */
html body .dbrpf.hc-ref-calculator [data-dbr-section="roof"] .dbrpf__choices--roof .dbrpf-choice--roof-photo {
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  grid-template-rows:124px auto!important;
  align-items:start!important;align-content:start!important;
  column-gap:6px!important;row-gap:11px!important;
  padding:0 0 12px!important;min-height:191px!important;overflow:hidden!important;
}
html body .dbrpf.hc-ref-calculator [data-dbr-section="roof"] .dbrpf__choices--roof .dbrpf-choice--roof-photo .dbrpf-choice__form-photo {
  display:block!important;position:relative!important;
  grid-column:1/-1!important;grid-row:1!important;
  width:100%!important;height:124px!important;max-height:124px!important;min-height:0!important;
  margin:0!important;padding:0!important;
  object-fit:cover!important;object-position:center 45%!important;
  border-radius:6px 6px 0 0!important;border:0!important;box-shadow:none!important;z-index:0!important;
}
html body .dbrpf.hc-ref-calculator [data-dbr-section="roof"] .dbrpf__choices--roof .dbrpf-choice--roof-photo .dbrpf-choice__indicator {
  position:relative!important;grid-column:1!important;grid-row:2!important;margin:2px 0 0 7px!important;
}
html body .dbrpf.hc-ref-calculator [data-dbr-section="roof"] .dbrpf__choices--roof .dbrpf-choice--roof-photo .dbrpf-choice__copy {
  display:block!important;position:static!important;inset:auto!important;
  grid-column:2!important;grid-row:2!important;
  margin:0!important;padding:0 7px 0 0!important;
  min-width:0!important;max-width:100%!important;width:auto!important;
  background:none!important;box-shadow:none!important;transform:none!important;text-align:left!important;
}
html body .dbrpf.hc-ref-calculator [data-dbr-section="roof"] .dbrpf-choice--roof-photo .dbrpf-choice__copy strong,
html body .dbrpf.hc-ref-calculator [data-dbr-section="roof"] .dbrpf-choice--roof-photo .dbrpf-choice__copy small {
  display:block!important;position:static!important;margin:0!important;padding:0!important;
  min-height:0!important;max-height:none!important;width:auto!important;
  background:none!important;text-shadow:none!important;white-space:normal!important;
  overflow-wrap:break-word!important;
}
html body .dbrpf.hc-ref-calculator [data-dbr-section="roof"] .dbrpf-choice--roof-photo .dbrpf-choice__copy strong {
  font-size:12px!important;color:#123957!important;margin-bottom:5px!important;
}
html body .dbrpf.hc-ref-calculator [data-dbr-section="roof"] .dbrpf-choice--roof-photo .dbrpf-choice__copy small {
  font-size:10.5px!important;line-height:1.4!important;color:#61778b!important;
}

/* Final action is a compact button rather than a full-width strip. */
html body .dbrpf.hc-ref-calculator .dbrpf__section--contact.hc-contact-premium .dbrpf__submit-row {
  justify-content:flex-start!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__section--contact.hc-contact-premium .dbrpf__submit-row .dbrpf__button--submit {
  box-sizing:border-box!important;width:min(100%,226px)!important;max-width:226px!important;
  min-width:0!important;height:38px!important;min-height:38px!important;padding:7px 14px!important;
}

@media(max-width:800px) {
  html body .dbrpf.hc-ref-calculator [data-dbr-section="roof"] .dbrpf__choices--roof.dbrpf__choices--three {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:560px) {
  html body .dbrpf.hc-ref-calculator [data-dbr-section="roof"] .dbrpf__choices--roof.dbrpf__choices--three {
    grid-template-columns:1fr!important;gap:10px!important;
  }
  html body .dbrpf.hc-ref-calculator [data-dbr-section="roof"] .dbrpf__choices--roof .dbrpf-choice--roof-photo {
    grid-template-rows:142px auto!important;min-height:205px!important;
  }
  html body .dbrpf.hc-ref-calculator [data-dbr-section="roof"] .dbrpf__choices--roof .dbrpf-choice--roof-photo .dbrpf-choice__form-photo {
    height:142px!important;max-height:142px!important;
  }
}
