/* HostDingo DingoAi Advisor (every page since 26 Nov 2026) — 24 Nov 2026. Bubble, dimmed overlay and chat panel.
   Chat bubbles, chips and the input bar reuse the shared chat styles in hostdingo-global.css (.hd-cb, .hd-cchip, .hd-chat-bar). */

/* The advisor replaces the "Message us" button on the homepage */
html body.hd-adv-page .hd-msg{display:none!important}

/* Launcher (26 Nov 2026): a speech-bubble shape with the logo, no text. Shown on every page.
   Phones: docks inside the "See plans" bar when it shows; otherwise tucks away while scrolling down so it never sits on content you are reading. */
.hd-adv-bubble{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:160;display:grid;place-items:center;width:60px;height:60px;margin:0;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .3s cubic-bezier(.2,.8,.2,1),transform .3s cubic-bezier(.2,.8,.2,1)}
.hd-adv-bubble.is-on{opacity:1;transform:none;pointer-events:auto}
.hd-adv-shape{position:absolute;inset:0;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 10px 16px rgba(18,20,27,.35))}
.hd-adv-shape path{fill:#12141B;stroke:rgba(244,244,244,.16);stroke-width:1;transition:fill .2s}
.hd-adv-logo{position:relative;display:block;width:36px;height:36px;margin:-3px 0 0 -3px;object-fit:contain;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.hd-adv-bubble:active{transform:scale(.94)}
.hd-adv-bubble:focus-visible{outline:3px solid #F26A0A;outline-offset:3px;border-radius:50%}
@media (hover:hover) and (pointer:fine){.hd-adv-bubble:hover .hd-adv-shape path{fill:#2E3140}.hd-adv-bubble:hover .hd-adv-logo{transform:scale(1.06) rotate(-4deg)}}
@media (max-width:1299px){.hd-adv-bubble.is-on.is-tuck{opacity:0;transform:translateY(24px);pointer-events:none}}
@media (max-width:767px){
 .hd-adv-bubble{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:52px;height:52px}
 .hd-adv-logo{width:31px;height:31px}
 html body.hd-bar-on .hd-adv-bubble{right:auto;left:22px;bottom:calc(20px + env(safe-area-inset-bottom));width:48px;height:48px}
 html body.hd-bar-on .hd-adv-bubble.is-tuck{opacity:1;transform:none;pointer-events:auto}
 html body.hd-bar-on .hd-adv-shape{filter:none}
 html body.hd-bar-on .hd-adv-shape path{fill:#2E3140}
 html body.hd-bar-on .hd-adv-logo{width:29px;height:29px}
 html body.hd-adv-page.hd-bar-on .hd-buybar{padding-left:76px}
 html body.hd-adv-page footer .hd-fbase{padding-bottom:84px}
}
html body.hd-menu-open .hd-adv-bubble,html.hd-adv-lock .hd-adv-bubble{opacity:0;pointer-events:none}

/* Overlay */
html.hd-adv-lock,html.hd-adv-lock body{overflow:hidden}
.hd-adv{position:fixed;inset:0;z-index:1000}
.hd-adv[hidden]{display:none}
.hd-adv-dim{position:absolute;inset:0;background:rgba(18,20,27,.6);opacity:0;transition:opacity .2s cubic-bezier(.2,.8,.2,1)}
.hd-adv-panel{position:absolute;right:24px;bottom:24px;display:flex;flex-direction:column;width:420px;max-width:calc(100vw - 48px);height:min(680px,calc(100vh - 48px));height:min(680px,calc(100dvh - 48px));border:1px solid rgba(18,20,27,.08);border-radius:5px;background:#fff;color:#12141B;box-shadow:0 30px 80px -24px rgba(0,0,0,.55);opacity:0;transform:translateY(10px);transition:opacity .24s cubic-bezier(.2,.8,.2,1),transform .24s cubic-bezier(.2,.8,.2,1);overflow:hidden}
.hd-adv.is-open .hd-adv-dim{opacity:1}
.hd-adv.is-open .hd-adv-panel{opacity:1;transform:none}

.hd-adv-head{flex:none;display:flex;align-items:center;gap:12px;padding:14px 12px 14px 16px;border-bottom:1px solid #E6E8EE}
.hd-adv-av{flex:none;width:40px;height:40px;display:grid;place-items:center}
.hd-adv-av img{display:block;width:40px;height:40px;object-fit:contain}
.hd-adv-who{flex:1;min-width:0}
.hd-adv-who b{display:block;font-family:'Bricolage Grotesque','Bricolage Grotesque Fallback',sans-serif;font-weight:700;font-size:1.0625rem;line-height:1.25;color:#12141B}
.hd-adv-who small{display:flex;align-items:center;gap:6px;margin-top:2px;font-size:.8125rem;line-height:1.3;color:#474A5E}
.hd-adv-who .hd-chat-dot{flex:none}
.hd-adv-who .hd-chat-dot::after{animation:none!important;opacity:0}
.hd-adv-icon{flex:none;width:44px;height:44px;display:grid;place-items:center;margin:0;padding:0;border:0;border-radius:5px;background:transparent;color:#474A5E;cursor:pointer;transition:background-color .2s,color .2s}
.hd-adv-icon svg{width:20px;height:20px}
.hd-adv-icon:active{transform:scale(.94)}
.hd-adv-icon:focus-visible{outline:2px solid #F26A0A;outline-offset:2px}
@media (hover:hover) and (pointer:fine){.hd-adv-icon:hover{background:#F1F2F5;color:#12141B}}

.hd-adv-log{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;padding:18px 16px 12px;overflow-y:auto;overscroll-behavior:contain}
.hd-adv-foot{flex:none;padding:0 16px 12px;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
.hd-adv .hd-chat-chips{max-height:132px;overflow-y:auto;padding:4px 0 10px}
.hd-adv .hd-cchip{min-height:40px;padding:0 14px;font-size:.875rem}
.hd-adv-note{margin:8px 2px 0;font-size:.75rem;line-height:1.4;color:#6E717E}
.hd-adv-note a{color:#6E717E;text-decoration:underline}

/* Answers: rich text inside a bot bubble */
html body .hd-adv .hd-cb{font-size:.9375rem}
html body .hd-adv .hd-cb.hd-adv-a{white-space:normal}
.hd-adv-a p{margin:0 0 8px}
.hd-adv-a p:last-child{margin-bottom:0}
.hd-adv-a ul,.hd-adv-a ol{margin:4px 0 8px;padding-left:20px}
.hd-adv-a li{margin:2px 0}
.hd-adv-a strong,.hd-adv-a b{font-weight:700}
.hd-adv-a a{color:#B84D08;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.hd-adv-a a:focus-visible{outline:2px solid #F26A0A;outline-offset:2px;border-radius:2px}

/* Phones: full-screen chat */
@media (max-width:767px){
 .hd-adv-panel{inset:0;right:0;bottom:0;width:100%;max-width:none;height:100%;border:0;border-radius:0;transform:translateY(14px)}
 .hd-adv-head{padding-top:calc(12px + env(safe-area-inset-top))}
 .hd-adv .hd-cb{max-width:90%}
}
@media (prefers-reduced-motion:reduce){
 .hd-adv-bubble,.hd-adv-dim,.hd-adv-panel{transition:none}
 .hd-adv-panel{transform:none}
}
