/* A0019246 — homepage single-surface request review.
   The existing A0019237 review/create form becomes the homepage popup.
   No intent, safety, eligibility, pricing or canonical request ownership changes. */

/* Keep the hero focused on explaining the problem, not repeating the result. */
#top .home-rtr__launch{display:none!important}
#top .home-intent-live__result{display:none!important}
#top .home-rtr{margin-top:4px!important}
#top .home-rtr__status{min-height:0!important;margin:5px 0 0!important;font-size:.82rem!important}

/* A0019248: the intent summary is a floating control, not a page-blocking modal. */
.yitm-home-request-popup-backdrop{display:none!important}

/* Reuse the governed A0019237 review/create surface as the one customer-facing popup. */
#home-rtr-review:not([hidden]),#home-rtr-success:not([hidden]){
  position:fixed!important;
  z-index:2147482100!important;
  top:auto!important;
  right:18px!important;
  left:auto!important;
  width:min(560px,calc(100vw - 48px))!important;
  max-height:calc(100vh - 36px)!important;
  overflow:auto!important;
  margin:0!important;
  padding:22px!important;
  bottom:18px!important;
  transform:none!important;
  border:1px solid rgba(16,35,63,.15)!important;
  border-radius:22px!important;
  background:#fff!important;
  color:#17231e!important;
  box-shadow:0 24px 70px rgba(8,26,34,.28)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
#home-rtr-review .home-rtr__eyebrow,#home-rtr-success .home-rtr__eyebrow{color:#0b6b50!important}
#home-rtr-review h3,#home-rtr-success h3{color:#10233f!important;padding-right:44px!important}
#home-rtr-review .home-rtr__facts>div{border-color:#dce8e2!important;background:#f7faf8!important}
#home-rtr-review .home-rtr__facts small{color:#5a7167!important}
#home-rtr-review .home-rtr__facts strong{color:#10233f!important}
#home-rtr-review .home-rtr__field{color:#173b31!important}
#home-rtr-review textarea,#home-rtr-review input{border-color:#b9cec5!important;background:#fff!important;color:#10233f!important}
#home-rtr-review .home-rtr__feedback{color:#173b31!important}
#home-rtr-review .home-rtr__feedback span,#home-rtr-review .home-rtr__feedback small{color:#52675d!important}
#home-rtr-review .home-rtr__feedback button{border:1px solid #c8d8d1!important;background:#fff!important;color:#173b2f!important}
#home-rtr-review .home-rtr__trust{background:#edf8f3!important;color:#274f41!important}
#home-rtr-review .home-rtr__primary,#home-rtr-success .home-rtr__primary-link{background:#075b43!important;border-color:#075b43!important;color:#fff!important}
#home-rtr-review .home-rtr__primary[disabled]{background:#dce8e2!important;border-color:#dce8e2!important;color:#60736b!important}
#home-rtr-review .home-rtr__secondary,#home-rtr-success .home-rtr__secondary{background:#fff!important;border:1px solid #b9cec5!important;color:#075b43!important}
#home-rtr-success p{color:#40534b!important}
#home-rtr-success #home-rtr-reference{color:#10233f!important}

.yitm-home-request-popup__close{position:absolute;top:14px;right:14px;width:38px;height:38px;border:1px solid #d6e3dd;border-radius:50%;background:#f7faf8;color:#315f4f;font:800 1.2rem/1 system-ui,sans-serif;cursor:pointer}
.yitm-home-request-popup__close:hover{background:#edf5f1}
.yitm-home-request-popup__close:focus-visible{outline:3px solid rgba(17,125,91,.3);outline-offset:2px}

/* When this popup is open, suppress the older contextual/adaptive duplicates on the homepage. */
body.yitm-home-request-popup-prepared .yitm-cx,
body.yitm-home-request-popup-prepared .yitm-apc{display:none!important}

.yitm-home-request-popup-reopen{position:fixed;z-index:2147481900;right:18px;bottom:18px;width:74px;height:74px;padding:0;border:2px solid #2d8b68;border-radius:50%;background:#fff;color:#075b43;font-family:Inter,system-ui,sans-serif;box-shadow:0 14px 36px rgba(8,44,32,.22);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px}.yitm-home-request-popup-reopen span{font-size:.68rem;line-height:1;font-weight:850;letter-spacing:.08em}.yitm-home-request-popup-reopen strong{font-size:1rem;line-height:1.1;font-weight:900}.yitm-home-request-popup-reopen:hover{transform:translateY(-1px);box-shadow:0 16px 40px rgba(8,44,32,.26)}.yitm-home-request-popup-reopen:focus-visible{outline:3px solid rgba(17,125,91,.30);outline-offset:3px}
.yitm-home-request-popup-reopen[hidden]{display:none!important}

@media(max-width:720px){
  #home-rtr-review:not([hidden]),#home-rtr-success:not([hidden]){top:auto!important;right:10px!important;bottom:10px!important;left:10px!important;width:auto!important;max-height:calc(100vh - 20px)!important;transform:none!important;padding:18px!important;border-radius:20px!important}
  #home-rtr-review .home-rtr__contact{grid-template-columns:1fr!important}
  #home-rtr-review .home-rtr__actions{display:grid!important;grid-template-columns:1fr!important}
  #home-rtr-review .home-rtr__actions>*{width:100%!important}
  .yitm-home-request-popup-reopen{right:12px;bottom:12px;width:66px;height:66px}
}

@media(prefers-reduced-motion:reduce){.yitm-home-request-popup-reopen:hover{transform:none}}

/* A0019258 — keep the prepared QuoteMe review inline and immediately visible. */
#home-rtr-review:not([hidden]),#home-rtr-success:not([hidden]){position:relative!important;z-index:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;width:100%!important;max-height:none!important;overflow:visible!important;margin:12px 0 0!important;box-sizing:border-box!important;transform:none!important}
.yitm-home-request-popup__close{display:none!important}
body.yitm-home-request-popup-prepared .home-intent-live__customer-summary{display:none!important}
