/* Home Buyer Survey promo bubble 1.1.0. Colours/fonts match theme 1.4.1. */
.hbs-promo{--ink:#20333a;--teal:#176e68;--teal-dark:#10524f;--yellow:#f3c967;--cream:#fbf8f0;--paper:#fff;--line:#d9e2dd;
  position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:40;
  width:122px;font:14px/1.4 "Aptos","Segoe UI",system-ui,sans-serif;color:var(--ink)}
.hbs-promo[hidden],.hbs-promo:not(.is-revealed):not(.is-open){display:none!important}
button.hbs-promo__bubble{position:relative;display:block;width:122px;aspect-ratio:9/16;padding:0;border:3px solid var(--teal);border-radius:18px;overflow:hidden;background:var(--teal-dark);box-shadow:0 14px 36px #17342a40;cursor:pointer;color:inherit}
button.hbs-promo__bubble:focus-visible,button.hbs-promo__x:focus-visible,button.hbs-promo__close:focus-visible,a.hbs-promo__cta:focus-visible,button.hbs-promo__never:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
.hbs-promo__poster,.hbs-promo__preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.hbs-promo__preview{opacity:0;transition:opacity .25s}
.hbs-promo__preview.is-on{opacity:1}
.hbs-promo__play{display:none}
.hbs-promo__hint{position:absolute;left:6px;right:6px;bottom:8px;padding:5px 4px;border-radius:999px;background:rgba(16,82,79,.92);color:#fff;font-size:10px;font-weight:750;text-align:center;line-height:1.2}
button.hbs-promo__x{position:absolute;top:-12px;right:-12px;z-index:2;width:32px;height:32px;border:0;border-radius:50%;background:var(--paper);color:var(--ink);box-shadow:0 4px 12px #17342a40;font-size:20px;line-height:1;cursor:pointer;padding:0}
button.hbs-promo__x:hover{background:var(--yellow)}
.hbs-promo__backdrop{display:none;position:fixed;inset:0;z-index:8000;width:auto;height:auto;margin:0;padding:0;border:0;border-radius:0;transform:none;filter:none;background:rgba(16,52,47,.55);cursor:pointer;-webkit-appearance:none;appearance:none}
.hbs-promo__backdrop:not([hidden]){display:block}
.hbs-promo__panel{display:none;position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:8001;width:fit-content;max-width:calc(100vw - 32px);box-sizing:border-box;padding:10px 10px 12px;background:var(--cream);border:3px solid var(--teal-dark);border-radius:22px;box-shadow:0 20px 60px #17342a50}
.hbs-promo.is-open{z-index:8001}
.hbs-promo.is-open .hbs-promo__panel{display:flex;flex-direction:column}
.hbs-promo.is-open button.hbs-promo__bubble,.hbs-promo.is-open button.hbs-promo__x{display:none}
.hbs-promo__frame{position:relative;width:min(304px,calc(100vw - 56px));aspect-ratio:9/16;max-height:min(540px,calc(100vh - 210px));max-height:min(540px,calc(100dvh - 210px));margin:0 auto;border-radius:14px;overflow:hidden;background:var(--teal-dark)}
.hbs-promo__full{display:block;width:100%;height:100%;object-fit:cover;background:var(--teal-dark)}
button.hbs-promo__close{position:absolute;top:18px;right:18px;z-index:2;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.95);color:var(--ink);font-size:24px;line-height:1;cursor:pointer;padding:0;box-shadow:0 2px 8px #0003}
.hbs-promo__actions{display:flex;gap:8px;align-items:center;margin-top:10px;flex-shrink:0}
a.hbs-promo__cta{flex:1;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 16px;border-radius:999px;background:var(--yellow);color:#253534;font-weight:750;text-decoration:none;white-space:nowrap}
a.hbs-promo__cta:hover{background:#e8bc4c;color:#253534}
button.hbs-promo__never{min-height:46px;padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#20333a;font-weight:650;font-size:13px;cursor:pointer}
html.hbs-promo-lock,html.hbs-promo-lock body{overflow:hidden!important;overscroll-behavior:none}
@media(max-width:600px){
  .hbs-promo{left:auto;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:104px}
  button.hbs-promo__bubble{width:104px;height:auto;aspect-ratio:9/16;border-radius:16px;border-width:3px}
  .hbs-promo.is-revealed::after{border-radius:22px}
  .hbs-promo__hint{display:block;left:5px;right:5px;bottom:6px;padding:6px 5px;font-size:9px;font-weight:800;letter-spacing:.01em;line-height:1.2}
  .hbs-promo__play{display:block;position:absolute;left:50%;top:42%;width:0;height:0;margin:-8px 0 0;border-style:solid;border-width:9px 0 9px 16px;border-color:transparent transparent transparent #fff;filter:drop-shadow(0 1px 3px #0008);pointer-events:none;transform:translateX(-4px)}
  button.hbs-promo__x{top:-10px;right:-10px;left:auto;width:28px;height:28px;font-size:18px}
  .hbs-promo.is-open .hbs-promo__panel{left:16px;right:16px;width:auto;max-width:none;bottom:max(16px,env(safe-area-inset-bottom));max-height:85vh;max-height:85dvh}
  .hbs-promo__frame{width:min(100%,calc((85dvh - 90px) * 9 / 16));max-height:calc(85vh - 90px);max-height:calc(85dvh - 90px)}
  button.hbs-promo__close{top:8px;right:8px}
  .hbs-promo__actions{flex-wrap:wrap}
  a.hbs-promo__cta,button.hbs-promo__never{flex:1 1 auto}
}
@keyframes hbs-promo-pulse{
  0%{box-shadow:0 0 0 0 rgba(243,201,103,.75),0 0 0 0 rgba(23,110,104,.4)}
  70%{box-shadow:0 0 0 8px rgba(243,201,103,0),0 0 0 14px rgba(23,110,104,0)}
  100%{box-shadow:0 0 0 8px rgba(243,201,103,0),0 0 0 14px rgba(23,110,104,0)}
}
.hbs-promo.is-revealed::after{content:"";position:absolute;inset:-5px;border-radius:24px;pointer-events:none;animation:hbs-promo-pulse 2.2s ease-out infinite}
html.hbs-promo-pad{--hbs-promo-pad:220px}
@media(max-width:600px){
  html.hbs-promo-pad,html.hbs-promo-pad body{padding-bottom:calc(var(--hbs-promo-pad) + env(safe-area-inset-bottom,0px))!important}
}
@media(prefers-reduced-motion:reduce){
  .hbs-promo__preview{transition:none}
  .hbs-promo.is-revealed::after{animation:none;box-shadow:0 0 0 3px rgba(243,201,103,.7)}
}
@media print{.hbs-promo{display:none!important}}
