/* The home page's chat: the round button (sales-chat.js). The panel's own styles are in sales-chat-panel.css, which
   is fetched with the panel the first time the button is used, so this is all a page view pays for.
   Owner, 2026-11-30: "lets have a chat icon bottom right ... make it clean and match the site not a ai look".
   The button is the Get Started button's blue-to-violet; its words are the page's own pill. No sparkles, no glow.
   Every rule starts at .ask: the shared sheet's `body.ui-app a { color: inherit }` beats a single class. */
.ask, .ask * { box-sizing: border-box; }   /* the page sizes by content: here a height is the whole height */
.ask { --ask-gap: 20px; --ask-lift: 0px; position: fixed; right: var(--ask-gap); bottom: calc(var(--ask-gap) + var(--ask-lift)); z-index: 40;
  font-family: Inter, system-ui, sans-serif; color: var(--ui-fg); transition: bottom .2s ease; }

/* Round, with its words beside it for the first few seconds and whenever it is pointed at. */
.ask .ask-open { position: relative; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; color: #fff; background: var(--cloud-gradient, linear-gradient(100deg, #2563eb, #7c3aed));
  border: 0; border-radius: 50%; box-shadow: 0 10px 28px -10px rgb(37 99 235 / .7), 0 2px 6px rgb(16 24 40 / .18); cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; -webkit-tap-highlight-color: transparent; }
.ask .ask-open:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgb(37 99 235 / .8), 0 2px 6px rgb(16 24 40 / .2); }
.ask .ask-open:active { transform: none; }
.ask .ask-open:focus-visible { outline: 2px solid var(--ui-focus, #2563eb); outline-offset: 3px; }
.ask .ask-open svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity .15s ease; }
.ask .ask-open .ask-open__x { display: none; }
.ask[data-open] .ask-open .ask-open__chat { display: none; }
.ask[data-open] .ask-open .ask-open__x { display: block; }
.ask[data-loading] .ask-open svg { opacity: .55; }
.ask .ask-open__label { position: absolute; right: calc(100% + 10px); top: 50%; padding: .5rem .8rem; font-size: .875rem; font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--ui-fg);
  background: var(--ui-panel); border: 1px solid var(--ui-border); border-radius: 999px; box-shadow: var(--ui-shadow-lg); opacity: 0; transform: translate(6px, -50%); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.ask[data-hint] .ask-open__label, .ask .ask-open:hover .ask-open__label, .ask .ask-open:focus-visible .ask-open__label { opacity: 1; transform: translate(0, -50%); }
.ask[data-open] .ask-open__label { display: none; }
/* An answer came while the panel was closed: a small dot on the button. */
.ask .ask-dot { position: absolute; top: 1px; right: 1px; display: none; width: 13px; height: 13px; background: #ef4444; border: 2px solid var(--ui-bg, #fff); border-radius: 50%; }
.ask[data-unread]:not([data-open]) .ask-dot { display: block; }
.ask .ask-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The room under the footer that a phone gets (sales-chat.js): nothing on a wider screen. */
.ask-room { display: none; }
@media (max-width: 560px) {
  .ask-room { display: block; height: 5rem; }
  .ask { --ask-gap: 14px; right: max(var(--ask-gap), env(safe-area-inset-right)); bottom: max(var(--ask-gap), env(safe-area-inset-bottom)); }
  .ask .ask-open { width: 52px; height: 52px; }
  .ask .ask-open__label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ask, .ask .ask-open, .ask .ask-open__label, .ask .ask-open svg { transition: none; }
}
@media (forced-colors: active) {
  .ask .ask-open { background: ButtonText; color: ButtonFace; forced-color-adjust: none; }
}
@media print {
  .ask, .ask-room { display: none !important; }
}
