/**
 * SamiAI Chat Widget — Premium Redesign
 *
 * Maps 1:1 to the existing DOM. No JS changes required.
 * Variables below let you re-skin the widget per store / per theme.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400%3B500%3B600%3B700&family=Instrument+Serif:ital@0%3B1&display=swap');

:root {
    /* Brand tokens (override via Magento admin > Stores > Configuration > SamiAI) */
    --aic-primary-color: #15140F;
    --aic-widget-height: 640px;

    /* Internal design system */
    --aic-bg: #FFFFFF;
    --aic-bg-soft: #FAF7F2;
    --aic-bg-tint: #EFE9DF;
    --aic-ink: #15140F;
    --aic-ink-2: #3A372F;
    --aic-ink-3: #75716A;
    --aic-ink-4: #A8A39A;
    --aic-line: #E8E2D6;
    --aic-line-soft: #F0EBE0;
    --aic-accent: var(--aic-primary-color);
    --aic-accent-fg: #FAF7F2;
    --aic-highlight: #C04E2A;
    --aic-success: #3F6B4A;
    --aic-user-bubble: var(--aic-accent);
    --aic-user-bubble-fg: var(--aic-accent-fg);

    --aic-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --aic-font-serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;

    --aic-radius-md: 12px;
    --aic-radius-lg: 18px;
    --aic-radius-xl: 24px;
    --aic-radius-pill: 999px;

    --aic-shadow-1: 0 1px 2px rgba(20, 18, 12, 0.04), 0 0 0 1px rgba(20, 18, 12, 0.05);
    --aic-shadow-2: 0 4px 14px -2px rgba(20, 18, 12, 0.08), 0 0 0 1px rgba(20, 18, 12, 0.06);
    --aic-shadow-pop: 0 24px 60px -16px rgba(20, 18, 12, 0.20), 0 8px 24px -8px rgba(20, 18, 12, 0.12), 0 0 0 1px rgba(20, 18, 12, 0.06);
    --aic-shadow-bubble: 0 12px 28px -8px rgba(20, 18, 12, 0.22), 0 4px 8px -2px rgba(20, 18, 12, 0.10);
}

/* ----------------------------------------------------------
   Floating button + panel
   ---------------------------------------------------------- */
.aic-floating-widget {
    position: fixed;
    z-index: 9999;
    font-family: var(--aic-font-sans);
}

.aic-floating-widget.aic-position-bottom-right { bottom: 24px; right: 24px; }
.aic-floating-widget.aic-position-bottom-left  { bottom: 24px; left: 24px; }
.aic-floating-widget.aic-position-top-right    { top: 24px; right: 24px; }
.aic-floating-widget.aic-position-top-left     { top: 24px; left: 24px; }

/* A cart drawer or a modal that is open owns the corner: its buttons sit at
   the bottom, under the launcher. On Emporio Cattani's phones the launcher
   covered the WeltPixel Quick Cart's checkout button, and the shop switched
   the widget off (02/10/2026). The widget steps aside while the drawer
   (WeltPixel .quickcart-wrapper, Magento's .minicart-wrapper) or a Magento
   modal or slide panel is open, and comes back with the same state when it
   closes. */
body:has(.quickcart-wrapper.active) #aic-floating-widget,
body:has(.minicart-wrapper.active) #aic-floating-widget,
body._has-modal #aic-floating-widget,
body._has-modal-custom #aic-floating-widget {
    display: none !important;
}

/* The cookie consent comes first: on Zulli's phones the launcher and its
   prompt sat on Amasty GDPR's «Accept cookies» button (11/11/2026). The
   widget waits while Amasty's consent is on screen: the side panel
   (aside.amgdprcookie-modal-container, which loses _show once the shopper
   chooses) or the classic bar (.amgdprcookie-bar-container, removed once the
   shopper chooses). Amasty's own settings popup is a Magento modal, already
   covered by _has-modal above. */
body:has(.amgdprcookie-modal-container._show) #aic-floating-widget,
body:has(.amgdprcookie-bar-container) #aic-floating-widget {
    display: none !important;
}

/* The theme's back-to-top button (#totop: Porto/Smartwave, Emporio Cattani's
   theme; #yt-totop-fix: Sm/market, IngrossoBLT's, 12/11/2026) is fixed in the bottom-right corner at 2.4rem, right under the
   launcher, which covered it (06/11/2026): it moves above the launcher, and
   while the chat is open it would sit on the panel, so it hides; it hides
   with a cart drawer open too, which it would cover where it now stands. */
body:has(#aic-floating-widget.aic-position-bottom-right) #totop,
body:has(#aic-floating-widget.aic-position-bottom-right) #yt-totop-fix {
    bottom: 92px !important;
    right: 32px !important;
}
body:has(#aic-floating-widget.aic-open) #totop,
body:has(#aic-floating-widget):has(.quickcart-wrapper.active) #totop,
body:has(#aic-floating-widget):has(.minicart-wrapper.active) #totop,
body:has(#aic-floating-widget.aic-open) #yt-totop-fix,
body:has(#aic-floating-widget):has(.quickcart-wrapper.active) #yt-totop-fix,
body:has(#aic-floating-widget):has(.minicart-wrapper.active) #yt-totop-fix {
    display: none !important;
}

.aic-floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--aic-accent);
    color: var(--aic-accent-fg);
    border: none;
    cursor: pointer;
    box-shadow: var(--aic-shadow-bubble);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
    position: relative;
}
.aic-floating-btn::before {
    content: none;
}
.aic-floating-btn svg {
    display: block;
    position: relative;
    z-index: 1;
}
.aic-floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -10px rgba(20, 18, 12, 0.28), 0 6px 12px -4px rgba(20, 18, 12, 0.14);
}
.aic-floating-widget.aic-open .aic-floating-btn { transform: scale(.92); opacity: .6; }

/* Porto/Smartwave compatibility: the host theme styles every <button>
   globally (white bg, grey border, padding) and overrides the plain
   .aic-floating-btn rule above — the launcher then renders as a white box.
   Re-assert the brand circle scoped under the widget ID + !important so the
   host theme cannot win. (See chat-widget--floating scoping convention.) */
#aic-floating-widget .aic-floating-btn {
    width: 56px !important;
    height: 56px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: var(--aic-accent) !important;
    color: var(--aic-accent-fg) !important;
    box-shadow: var(--aic-shadow-bubble) !important;
}
#aic-floating-widget .aic-floating-btn::before { color: var(--aic-accent-fg) !important; }

/* A compact invitation makes the launcher discoverable without competing
   with the page. It is a real button, so keyboard and touch users get the
   same direct path into the conversation. */
#aic-floating-widget .aic-floating-prompt {
    position: absolute;
    right: 70px;
    bottom: 4px;
    z-index: 1;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
    height: auto !important;
    min-height: 64px !important;
    min-width: 184px;
    padding: 11px 34px 11px 15px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #1b1b1e !important;
    color: #fff !important;
    box-shadow: 0 14px 30px -13px rgba(20, 18, 12, .36), 0 3px 8px rgba(20, 18, 12, .12) !important;
    font: 600 13px/1.25 var(--aic-font-sans) !important;
    letter-spacing: -.01em;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    opacity: 1;
    transform: translateX(0);
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}
#aic-floating-widget .aic-floating-prompt::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: 15px;
    width: 12px;
    height: 12px;
    background: #1b1b1e;
    transform: rotate(45deg);
}
#aic-floating-widget .aic-floating-prompt:hover,
#aic-floating-widget .aic-floating-prompt:focus-visible {
    transform: translateY(-2px);
    background: #2a2a2e !important;
    box-shadow: 0 17px 34px -12px rgba(20, 18, 12, .42), 0 3px 8px rgba(20, 18, 12, .12) !important;
    outline: none;
}
.aic-floating-prompt-kicker {
    display: block;
    margin: 0 !important;
    line-height: 1.2 !important;
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
#aic-floating-prompt > span:last-child {
    display: block !important;
    line-height: 1.2 !important;
}
/* The variants carry the widget's id like the base rule above: as bare
   classes they lost to it, so the invitation stayed on screen over an open
   panel, and on the left side kept its right offset too, which squeezed it
   to a 42px box on phones with the text spilling out. */
#aic-floating-widget.aic-open .aic-floating-prompt {
    pointer-events: none;
    opacity: 0;
    transform: translateX(8px);
}
#aic-floating-widget.aic-position-bottom-left .aic-floating-prompt,
#aic-floating-widget.aic-position-top-left .aic-floating-prompt {
    right: auto;
    left: 70px;
    padding: 11px 14px 11px 36px !important;
}
#aic-floating-widget.aic-position-bottom-left .aic-floating-prompt::after,
#aic-floating-widget.aic-position-top-left .aic-floating-prompt::after {
    right: auto;
    left: -6px;
}
#aic-floating-widget.aic-position-top-right .aic-floating-prompt,
#aic-floating-widget.aic-position-top-left .aic-floating-prompt {
    top: 4px;
    bottom: auto;
}
@media (prefers-reduced-motion: reduce) {
    #aic-floating-widget .aic-floating-prompt { transition: none; }
}

/* Same Porto guard for the panel-header icon buttons (new-chat "+" and close
   "x") and the send button: all use plain .aic-*-btn selectors that the host
   theme overrides into white boxes. Re-assert them scoped + !important. */
#aic-floating-widget .aic-panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
#aic-floating-widget .aic-panel-close,
#aic-floating-widget .aic-panel-actions .aic-btn-new-chat {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--aic-ink-3) !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    display: grid !important;
    place-items: center !important;
}
/* Contact us in the panel header, beside the icon buttons: the widget's own
   header, where the other one lives, is hidden in the panel. Scoped and
   re-asserted like its neighbours, or the theme boxes it. */
#aic-floating-widget .aic-panel-actions .aic-btn-contact {
    background: transparent !important;
    border: 1px solid var(--aic-line) !important;
    box-shadow: none !important;
    color: var(--aic-ink-2) !important;
    height: 30px !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    margin-right: 4px !important;
    border-radius: var(--aic-radius-pill) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-transform: none !important;
    white-space: nowrap;
}
#aic-floating-widget .aic-panel-actions .aic-btn-contact:hover {
    background: var(--aic-bg-tint) !important;
    border-color: var(--aic-ink-4) !important;
    color: var(--aic-ink) !important;
}
#aic-floating-widget .aic-panel-close:hover,
#aic-floating-widget .aic-panel-actions .aic-btn-new-chat:hover {
    background: var(--aic-bg-tint) !important;
    color: var(--aic-ink) !important;
    border: none !important;
}
#aic-floating-widget .aic-send-btn,
#aic-chat-widget .aic-send-btn {
    background: var(--aic-accent) !important;
    color: var(--aic-accent-fg) !important;
    border: none !important;
    box-shadow: none !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.aic-floating-panel {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 408px;
    max-width: calc(100vw - 32px);
    background: var(--aic-bg);
    border-radius: var(--aic-radius-xl);
    box-shadow: var(--aic-shadow-pop);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
}
.aic-floating-widget.aic-open .aic-floating-panel {
    display: flex;
    animation: aic-panel-in .35s cubic-bezier(.2,.8,.2,1);
}
/* Over the header, the field or any other part of the open panel that does
   not scroll, the wheel and the finger stay on the chat: they scrolled the
   shop under it (2.9.3 kept them only over the messages; Martini e Pari,
   13/11/2026). */
.aic-floating-panel,
.aic-floating-panel .aic-panel-body,
.aic-floating-panel .aic-chat-widget,
.aic-floating-panel .aic-messages { overscroll-behavior: contain; }
/* Only in the floating panel: Chrome applies contain to a list that has
   nothing to scroll too, so on the chat page or an embedded chat with a short
   conversation the wheel and the finger over the messages no longer moved the
   page (Niccolò, Woo 3.9.5; Martini e Pari's /samiai, 13/11/2026). There the
   page scrolls once the list is at its end, as a page does. */
@keyframes aic-panel-in {
    from { opacity: 0; transform: translateY(12px) scale(.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.aic-floating-widget.aic-position-bottom-left .aic-floating-panel { right: auto; left: 0; transform-origin: bottom left; }
.aic-floating-widget.aic-position-top-right   .aic-floating-panel,
.aic-floating-widget.aic-position-top-left    .aic-floating-panel { bottom: auto; top: 76px; transform-origin: top right; }
.aic-floating-widget.aic-position-top-left    .aic-floating-panel { transform-origin: top left; }

/* Panel header (floating mode) */
.aic-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--aic-bg);
    color: var(--aic-ink);
    border-bottom: 1px solid var(--aic-line-soft);
    gap: 12px;
}
.aic-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: -.005em;
    color: var(--aic-ink);
}
.aic-panel-title::before {
    /* avatar */
    content: "S";
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--aic-ink);
    color: var(--aic-bg-soft);
    font-family: var(--aic-font-serif);
    font-style: italic;
    font-size: 22px;
    display: grid;
    place-items: center;
    line-height: 1;
    position: relative;
}
.aic-panel-title::after {
    /* online status dot */
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2DBE6B;
    box-shadow: 0 0 0 2px var(--aic-bg);
    position: absolute;
    margin-left: 26px;
    margin-top: 22px;
}
.aic-panel-close {
    background: transparent;
    border: none;
    color: var(--aic-ink-3);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    transition: background .15s, color .15s;
}
.aic-panel-close:hover { background: var(--aic-bg-tint); color: var(--aic-ink); }
.aic-panel-close svg { width: 16px; height: 16px; }

/* The panel sits 100px from its edge and its header takes ~70px more, so the
   body may use what is left minus a margin. The old 140px ignored the header:
   on a 1366x768 laptop the panel started 29px above the window, header cut. */
.aic-panel-body { height: var(--aic-widget-height); max-height: calc(100vh - 220px); }
.aic-panel-body .aic-chat-widget { height: 100%; border: none; border-radius: 0; box-shadow: none; }
.aic-panel-body .aic-chat-header { display: none; }

/* Under the field, small: a link to Sami's site (2.15.0). Its 30px came off
   the body's height above, so the panel still fits the window. */
#aic-floating-widget .aic-panel-promo {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 2px 16px 10px;
    background: var(--aic-bg);
    color: var(--aic-ink-3) !important;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
}
#aic-floating-widget .aic-panel-promo span {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#aic-floating-widget .aic-panel-promo:hover,
#aic-floating-widget .aic-panel-promo:focus-visible { color: var(--aic-ink) !important; }

/* ----------------------------------------------------------
   Chat widget container (embedded mode — no floating)
   ---------------------------------------------------------- */
.aic-chat-widget {
    display: flex;
    flex-direction: column;
    height: var(--aic-widget-height);
    max-height: 80vh;
    background: var(--aic-bg);
    border: 1px solid var(--aic-line);
    border-radius: var(--aic-radius-xl);
    overflow: hidden;
    font-family: var(--aic-font-sans);
    font-size: 14.5px;
    color: var(--aic-ink);
    box-shadow: var(--aic-shadow-2);
}

.aic-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--aic-bg);
    color: var(--aic-ink);
    border-bottom: 1px solid var(--aic-line-soft);
    gap: 8px;
}
.aic-chat-title {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -.005em;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.aic-chat-title::before {
    content: "S";
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--aic-ink);
    color: var(--aic-bg-soft);
    font-family: var(--aic-font-serif);
    font-style: italic;
    font-size: 20px;
    display: grid;
    place-items: center;
    line-height: 1;
}

.aic-btn-new-chat,
.aic-btn-contact {
    background: transparent;
    border: 1px solid var(--aic-line);
    color: var(--aic-ink-2);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--aic-radius-pill);
    font-size: 12px;
    font-weight: 500;
    transition: background .15s, border-color .15s, color .15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.aic-btn-new-chat:hover,
.aic-btn-contact:hover {
    background: var(--aic-bg-tint);
    border-color: var(--aic-ink-4);
    color: var(--aic-ink);
}
.aic-btn-new-chat svg { width: 13px; height: 13px; }

/* ----------------------------------------------------------
   Messages list
   ---------------------------------------------------------- */
.aic-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 18px 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--aic-bg);
    scroll-behavior: smooth;
}
.aic-messages::-webkit-scrollbar { width: 8px; }
.aic-messages::-webkit-scrollbar-thumb { background: var(--aic-line); border-radius: 8px; }
.aic-messages::-webkit-scrollbar-thumb:hover { background: var(--aic-ink-4); }

.aic-message {
    max-width: 100%;
    line-height: 1.55;
    word-wrap: break-word;
    font-size: 14.5px;
    animation: aic-msg-in .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes aic-msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* User: filled bubble, right-aligned */
.aic-message.aic-user {
    align-self: flex-end;
    max-width: 80%;
    background: var(--aic-user-bubble);
    color: var(--aic-user-bubble-fg);
    padding: 10px 14px;
    border-radius: 18px 18px 4px 18px;
}

/* Assistant: no bubble, just text with S avatar on the left */
.aic-message.aic-assistant {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: transparent;
    color: var(--aic-ink);
    padding: 0;
    border-radius: 0;
    align-self: stretch;
}
.aic-message.aic-assistant::before {
    content: "S";
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--aic-ink);
    color: var(--aic-bg-soft);
    font-family: var(--aic-font-serif);
    font-style: italic;
    font-size: 17px;
    display: grid;
    place-items: center;
    line-height: 1;
    margin-top: 2px;
}
.aic-message.aic-assistant > * { min-width: 0; }   /* allow text wrap inside flex */

/* The server emits the assistant reply as FLAT children (a <p> plus one or
   more .aic-product-line cards). The flex row above turns each child into a
   narrow column — fine while the cards are empty, catastrophic once filled.
   In the floating widget, lay the reply out as a normal block with the "S"
   avatar pinned top-left, so paragraphs and product cards stack full-width. */
.aic-floating-widget .aic-message.aic-assistant {
    display: block;
    position: relative;
    padding-left: 40px;
}
.aic-floating-widget .aic-message.aic-assistant::before {
    position: absolute;
    left: 0;
    top: 0;
}

/* Welcome message: framed card with a softer feel */
.aic-message.aic-welcome {
    background: var(--aic-bg-soft);
    border: 1px solid var(--aic-line);
    padding: 14px 16px;
    border-radius: var(--aic-radius-lg);
    align-self: stretch;
    max-width: 100%;
    color: var(--aic-ink-2);
}
.aic-message.aic-welcome::before { display: none; }
/* In the panel every assistant message keeps 40px on the left for the "S"
   avatar; the welcome card hides it, so it drops the room as well. */
.aic-floating-widget .aic-message.aic-welcome { padding-left: 16px; }

.aic-message strong { font-weight: 600; }
/* Lists in a reply (ResponseRenderer): themes often reset ul/li. */
.aic-message .aic-list { margin: 0 0 8px; padding: 0 0 0 1.3em; list-style: disc outside; }
.aic-message ol.aic-list { list-style-type: decimal; }
.aic-message .aic-list li { margin: 0 0 2px; padding: 0; list-style: inherit; font: inherit; }
.aic-message .aic-list:last-child { margin-bottom: 0; }
/* An inline [product_link] mention is a link in the sentence, not a card:
   it carries ai-product-link (click attribution) and took the card grid,
   squeezing the name into the 88px image column (Safarà, 12/10/2026). */
#aic-chat-widget a.ai-product-link.aic-inline-product,
.aic-message a.ai-product-link.aic-inline-product {
    display: inline;
    padding: 0;
    gap: 0;
    grid-template-columns: none;
    color: var(--aic-highlight);
    text-decoration: underline !important;
    text-underline-offset: 2px;
}
.aic-message a { color: var(--aic-highlight); text-decoration: underline; text-underline-offset: 2px; }

/* Streaming cursor (added by JS as <span class="aic-cursor">) */
.aic-cursor {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: var(--aic-ink);
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: aic-blink 0.9s infinite;
}
@keyframes aic-blink {
    0%, 50%   { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Thinking dots */
.aic-thinking {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}
.aic-thinking span {
    width: 6px;
    height: 6px;
    background: var(--aic-ink-3);
    border-radius: 50%;
    animation: aic-bounce 1.2s infinite ease-in-out;
}
.aic-thinking span:nth-child(1) { animation-delay: -0.32s; }
.aic-thinking span:nth-child(2) { animation-delay: -0.16s; }
@keyframes aic-bounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.5; }
    40%           { transform: scale(1);   opacity: 1; }
}

.aic-error { color: #B72E2E; font-style: italic; }

/* ----------------------------------------------------------
   Suggestion chips
   ---------------------------------------------------------- */
.aic-suggestions {
    padding: 10px 18px 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--aic-bg);
    border-top: none;
}
.aic-suggestion-chip {
    background: var(--aic-bg-soft);
    border: 1px solid var(--aic-line);
    color: var(--aic-ink);
    padding: 8px 14px 8px 30px;
    border-radius: var(--aic-radius-pill);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
    position: relative;
    font-family: inherit;
    line-height: 1.2;
}
.aic-suggestion-chip::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0C12 0 11.5 6.5 9 9C6.5 11.5 0 12 0 12C0 12 6.5 12.5 9 15C11.5 17.5 12 24 12 24C12 24 12.5 17.5 15 15C17.5 12.5 24 12 24 12C24 12 17.5 11.5 15 9C12.5 6.5 12 0 12 0Z' fill='%2375716A'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: .9;
}
.aic-suggestion-chip:hover {
    background: var(--aic-bg-tint);
    border-color: var(--aic-ink-4);
    transform: translateY(-1px);
}
/* Host theme guard (see chat-page.css): Sm/market's global <button> rule
   turned the suggestions white on white (IngrossoBLT, 20/10/2026). */
#aic-chat-widget .aic-suggestion-chip {
    color: var(--aic-ink) !important;
    border: 1px solid var(--aic-line) !important;
    padding: 8px 14px 8px 30px !important;
    font-size: 13px !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
    width: auto !important;
    text-transform: none !important;
    text-decoration: none !important;
}
#aic-chat-widget .aic-suggestion-chip:hover {
    background: var(--aic-bg-tint) !important;
    border-color: var(--aic-chip-hover-border, var(--aic-ink-4)) !important;
    color: var(--aic-ink) !important;
}

/* ----------------------------------------------------------
   Input area
   ---------------------------------------------------------- */
.aic-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 14px 16px;
    background: var(--aic-bg);
    border-top: none;
    position: relative;
}
/* Fade-out overlay scoped to the floating widget only — the chat page
   uses its own layout where this gradient hides the input's top border. */
#aic-floating-widget .aic-input-area::before {
    content: "";
    position: absolute;
    top: -28px;
    left: 0;
    right: 0;
    height: 28px;
    background: linear-gradient(to top, var(--aic-bg), transparent);
    pointer-events: none;
}
.aic-input {
    flex: 1;
    border: 1px solid var(--aic-line);
    background: var(--aic-bg-soft);
    border-radius: 22px;
    padding: 12px 16px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--aic-ink);
    resize: none;
    max-height: 120px;
    outline: none;
    transition: border-color .15s, background .15s;
    line-height: 1.4;
}
/* Themes that size every textarea (Emporio Cattani's: width and min-width
   100%) made the input as wide as the whole row and pushed the send button
   past the panel's edge, where only a sliver of it showed (06/11/2026). */
#aic-floating-widget .aic-input {
    width: auto !important;
    min-width: 0 !important;
}
.aic-input::placeholder { color: var(--aic-ink-4); }
.aic-input:focus {
    border-color: var(--aic-ink-3);
    background: var(--aic-bg);
}

.aic-send-btn {
    background: var(--aic-accent);
    color: var(--aic-accent-fg);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s, opacity .15s;
    flex-shrink: 0;
}
.aic-send-btn:hover:not(:disabled) { transform: scale(1.05); }
.aic-send-btn:disabled { opacity: .35; cursor: not-allowed; }
.aic-send-btn svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------
   Product cards (inline within assistant messages)
   ---------------------------------------------------------- */
.aic-product-line {
    display: block;
    margin: 12px 0 4px;
}

.ai-product-preview {
    display: block;
    border: 1px solid var(--aic-line);
    border-radius: var(--aic-radius-lg);
    background: var(--aic-bg);
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
}
.ai-product-preview:hover {
    border-color: var(--aic-ink-4);
    transform: translateY(-2px);
    box-shadow: var(--aic-shadow-2);
}
.ai-product-link {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    padding: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.ai-product-link img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--aic-bg-tint);
}
.ai-product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ai-product-title {
    font-weight: 500;
    color: var(--aic-ink);
    font-size: 14px;
    line-height: 1.3;
    text-wrap: balance;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ai-product-price {
    color: var(--aic-ink);
    font-size: 14px;
    font-weight: 600;
    margin: 2px 0 6px;
}
/* A shop that shows its prices to logged-in customers only: a guest's card
   says so where the price would be (module 2.2.0). */
.ai-product-price-reserved {
    color: var(--aic-ink-3);
    font-size: 13px;
    font-weight: 500;
}
/* The list price a discount started from, as the product page shows it. */
.ai-product-price-was {
    color: var(--aic-ink-3);
    font-size: .86em;
    font-weight: 400;
    margin-left: 4px;
    white-space: nowrap;
}
.ai-cta-button {
    align-self: flex-start;
    display: inline-block;
    background: transparent;
    color: var(--aic-ink);
    border: 1px solid var(--aic-ink);
    padding: 5px 12px;
    border-radius: var(--aic-radius-pill);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}
#aic-chat-widget .ai-product-link,
#aic-chat-widget .ai-product-link:hover,
#aic-chat-widget .ai-product-link:focus {
    text-decoration: none !important;
}
.ai-product-link:hover .ai-cta-button {
    background: var(--aic-ink);
    color: var(--aic-bg-soft);
}

/* Action row: add-to-cart (+ secondary view) below the product link
 *
 * Both buttons size to their label. The primary carried `flex: 1 1 auto` and
 * so spanned the whole card: a filled bar as wide as the product it belongs to
 * reads as a banner rather than as something to press, and it shrank the
 * outlined "View" beside it into an afterthought. Identical geometry for the
 * two, filled against outlined to say which is which — the same pair the
 * quick-reply pills further down already use.
 *
 * The !important is not decoration, and the underline under the secondary
 * button was not the host theme: `.aic-message a` underlines every link inside
 * a bubble, which is right for a link in prose and wrong for a product card
 * that happens to be one. It is the more specific rule, and text-decoration
 * propagates into children whatever they declare themselves — hence the title
 * and the price picking it up too.
 */
.ai-product-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 12px 12px;
}

/* Shared geometry: same box, same type, so the pair reads as a pair. */
#aic-chat-widget .ai-product-actions .ai-cta-button,
#aic-chat-widget .ai-add-to-cart {
    flex: 0 0 auto;
    align-self: auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    padding: 7px 14px !important;
    border: 1px solid var(--aic-primary-color, var(--aic-ink, #1a1a1a)) !important;
    border-radius: var(--aic-radius-pill, 999px) !important;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s, color .15s, opacity .15s, transform .1s;
}

/* Primary: filled. */
#aic-chat-widget .ai-add-to-cart {
    appearance: none;
    background: var(--aic-primary-color, var(--aic-ink, #1a1a1a)) !important;
    color: var(--aic-bg-soft, #fff) !important;
    cursor: pointer;
}
#aic-chat-widget .ai-add-to-cart:hover:not(:disabled) { opacity: .9; }
#aic-chat-widget .ai-add-to-cart:active:not(:disabled) { transform: scale(.98); }
#aic-chat-widget .ai-add-to-cart:disabled { cursor: default; }
#aic-chat-widget .ai-add-to-cart.aic-loading { opacity: .7; cursor: wait; }

/* Secondary: outlined, filling on hover the way the quick replies do. */
#aic-chat-widget .ai-product-actions .ai-cta-button {
    background: transparent !important;
    color: var(--aic-ink, #1a1a1a) !important;
}
#aic-chat-widget .ai-product-actions .ai-cta-button:hover {
    background: var(--aic-primary-color, var(--aic-ink, #1a1a1a)) !important;
    color: var(--aic-bg-soft, #fff) !important;
}

/* Confirmed. A saturated material green next to these palettes looked pasted
 * in from another site; the token is muted to sit in them, and brand themes
 * can override it like any other. */
#aic-chat-widget .ai-add-to-cart.aic-added {
    background: var(--aic-success, #3F6B4A) !important;
    border-color: var(--aic-success, #3F6B4A) !important;
    color: #fff !important;
    opacity: 1;
}

/* Skeleton (streaming placeholder for product cards) */
.aic-product-skeleton {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--aic-bg);
    border: 1px solid var(--aic-line);
    border-radius: var(--aic-radius-lg);
    margin: 10px 0 4px;
}
.aic-skel-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(90deg, var(--aic-line-soft) 25%, var(--aic-bg-tint) 50%, var(--aic-line-soft) 75%);
    background-size: 200% 100%;
    animation: aic-shimmer 1.5s infinite;
    display: block;
}
.aic-skel-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.aic-skel-line {
    display: block;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, var(--aic-line-soft) 25%, var(--aic-bg-tint) 50%, var(--aic-line-soft) 75%);
    background-size: 200% 100%;
    animation: aic-shimmer 1.5s infinite;
    border-radius: 6px;
}
.aic-skel-line.short { width: 55%; }
@keyframes aic-shimmer {
    0%   { background-position:  200% 0; }
    100% { background-position: -200% 0; }
}

/* ----------------------------------------------------------
   Lead capture modal
   ---------------------------------------------------------- */
.aic-lead-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 12, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 16px;
    font-family: var(--aic-font-sans);
}
.aic-lead-modal.aic-open {
    display: flex;
    animation: aic-fade-in .25s ease-out;
}
@keyframes aic-fade-in { from { opacity: 0; } to { opacity: 1; } }

.aic-lead-panel {
    background: var(--aic-bg);
    border-radius: var(--aic-radius-xl);
    padding: 28px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: relative;
    box-shadow: var(--aic-shadow-pop);
    animation: aic-pop-in .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes aic-pop-in {
    from { opacity: 0; transform: scale(.96) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.aic-lead-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent !important;
    border: none !important;
    color: var(--aic-ink-3) !important;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    padding: 0 !important;
    transition: background .15s;
}
.aic-lead-close:hover { background: var(--aic-bg-tint); color: var(--aic-ink) !important; }

.aic-lead-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 400;
    font-family: var(--aic-font-serif);
    letter-spacing: -.01em;
    color: var(--aic-ink);
}
.aic-lead-form > p {
    margin: 0 0 18px;
    color: var(--aic-ink-3);
    font-size: 14px;
}

.aic-lead-form .aic-lead-label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--aic-ink-2);
}
.aic-lead-form .aic-lead-label > span {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--aic-ink);
}
.aic-lead-form .aic-lead-label > span em {
    color: var(--aic-highlight);
    font-style: normal;
}

.aic-lead-form input[type="text"],
.aic-lead-form input[type="email"],
.aic-lead-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--aic-line);
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    background: var(--aic-bg-soft);
    color: var(--aic-ink);
    box-sizing: border-box;
    transition: border-color .15s, background .15s;
}
.aic-lead-form input:focus,
.aic-lead-form textarea:focus {
    outline: none;
    border-color: var(--aic-ink-3);
    background: var(--aic-bg);
}
.aic-lead-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.aic-lead-form .aic-lead-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.aic-lead-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: var(--aic-ink-3);
    margin: 4px 0 14px;
    line-height: 1.5;
    cursor: pointer;
}
.aic-lead-consent input[type="checkbox"] { margin-top: 3px; accent-color: var(--aic-ink); }

.aic-lead-status {
    min-height: 20px;
    font-size: 13px;
    margin: 4px 0 8px;
    color: var(--aic-ink-3);
}
.aic-lead-status.aic-lead-error   { color: #B72E2E; }
.aic-lead-status.aic-lead-success { color: #2F6B4F; }

.aic-lead-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}
.aic-lead-actions button {
    padding: 10px 18px !important;
    border-radius: var(--aic-radius-pill) !important;
    cursor: pointer;
    font: inherit;
    font-size: 13.5px !important;
    font-weight: 500;
    border: 1px solid transparent !important;
    transition: background .15s, border-color .15s, color .15s;
}
.aic-lead-actions .aic-lead-cancel {
    background: transparent !important;
    color: var(--aic-ink-2) !important;
    border-color: var(--aic-line) !important;
}
.aic-lead-actions .aic-lead-cancel:hover { background: var(--aic-bg-tint) !important; }
.aic-lead-actions .aic-lead-submit {
    background: var(--aic-accent) !important;
    color: var(--aic-accent-fg) !important;
    border-color: var(--aic-accent) !important;
}
.aic-lead-actions .aic-lead-submit:hover { transform: translateY(-1px); }
.aic-lead-actions .aic-lead-submit[disabled] { opacity: .5; cursor: wait; transform: none; }

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 520px) {
    /* Each keeps its side: a store whose own live chat owns one corner moves
       this button to the other, and on a phone it used to land back on it. */
    .aic-floating-widget.aic-position-bottom-right { bottom: 16px; right: 16px; }
    .aic-floating-widget.aic-position-bottom-left  { bottom: 16px; left: 16px; }
    body:has(#aic-floating-widget.aic-position-bottom-right) #totop,
    body:has(#aic-floating-widget.aic-position-bottom-right) #yt-totop-fix {
        bottom: 84px !important;
        right: 24px !important;
    }
    .aic-floating-panel {
        width: calc(100vw - 24px);
        right: 0;
        left: auto;
        max-height: calc(100vh - 100px);
    }
    .aic-floating-widget.aic-position-bottom-left .aic-floating-panel { right: auto; left: 0; }
    .aic-panel-body { height: calc(100vh - 210px); max-height: none; }
    #aic-floating-widget .aic-floating-prompt {
        right: 66px;
        min-width: 0;
        padding: 10px 30px 10px 12px !important;
        font-size: 12px !important;
    }
    #aic-floating-widget.aic-position-bottom-left .aic-floating-prompt,
    #aic-floating-widget.aic-position-top-left .aic-floating-prompt {
        right: auto;
        left: 66px;
        padding: 10px 12px 10px 30px !important;
    }
    .aic-suggestions { padding: 10px 14px 4px; }
    .aic-input-area  { padding: 10px 12px 14px; }
    .aic-messages    { padding: 16px 14px 4px; }
}

/* Guided search: tappable options closing a narrowing question. */
.aic-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 2px;
}
#aic-chat-widget .aic-quick-reply,
.aic-quick-reply {
    appearance: none;
    background: var(--aic-bg-soft, #fff) !important;
    color: var(--aic-ink, #1a1a1a) !important;
    border: 1px solid var(--aic-ink, #1a1a1a) !important;
    padding: 7px 14px !important;
    border-radius: var(--aic-radius-pill, 999px) !important;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    width: auto !important;
    display: inline-flex !important;
    cursor: pointer;
    transition: background .15s, color .15s, transform .1s;
}
#aic-chat-widget .aic-quick-reply:hover,
.aic-quick-reply:hover {
    background: var(--aic-ink, #1a1a1a) !important;
    color: var(--aic-bg-soft, #fff) !important;
}
.aic-quick-reply:active { transform: scale(.98); }
.aic-quick-replies.aic-answered { opacity: .45; }
.aic-quick-replies.aic-answered .aic-quick-reply { pointer-events: none; }

/* Why an add-to-cart was refused — Magento's own words, next to the card. The
   cart controller answers 200 even when it rejects, so without this the button
   would keep claiming success over an unchanged cart. */
.aic-cart-error {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #B3261E;
}

/* ----------------------------------------------------------
   A configurable's options, chosen in the chat (option-picker.js, 2.10.0):
   "Choose the options for …", one row per attribute, one pill per value,
   the chosen one filled. The pills are the quick replies' and carry the
   same guard: Porto and Sm/market style every <button> of the page (white
   text, their own padding, border, size, uppercase, a fixed height, some
   with !important), which turned the suggestions into grey boxes and white
   on white. Scoped under the chat and armed with !important where a theme
   reaches; chat-page.css sizes them for the page, brand themes recolour.
   ---------------------------------------------------------- */
#aic-chat-widget .aic-option-picker {
    display: block;
    min-width: 0;
    border-radius: 10px;
}
#aic-chat-widget .aic-option-question {
    margin: 0 0 10px;
    font: inherit;
    color: var(--aic-ink, #1a1a1a);
}
#aic-chat-widget .aic-option-row { margin: 0 0 10px; }
#aic-chat-widget .aic-option-label {
    margin: 0 0 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--aic-ink-3, #75716A);
    text-transform: none;
    letter-spacing: normal;
}
#aic-chat-widget .aic-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
#aic-chat-widget .aic-option {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 7px 14px !important;
    background: var(--aic-bg-soft, #fff) !important;
    color: var(--aic-ink, #1a1a1a) !important;
    border: 1px solid var(--aic-line, #E8E2D6) !important;
    border-radius: var(--aic-radius-pill, 999px) !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 12.5px !important;
    font-weight: 600;
    line-height: 1.2 !important;
    letter-spacing: normal;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
}
#aic-chat-widget .aic-option:not(.aic-selected):hover:not(:disabled) {
    background: var(--aic-bg-tint, #EFE9DF) !important;
    border-color: var(--aic-chip-hover-border, var(--aic-ink, #1a1a1a)) !important;
    color: var(--aic-ink, #1a1a1a) !important;
}
#aic-chat-widget .aic-option:active:not(:disabled) { transform: scale(.98); }
#aic-chat-widget .aic-option.aic-selected {
    background: var(--aic-ink, #1a1a1a) !important;
    border-color: var(--aic-ink, #1a1a1a) !important;
    color: var(--aic-bg-soft, #fff) !important;
}
#aic-chat-widget .aic-option:disabled { cursor: default; }
/* No child with the other rows' choices (2.14.2): struck, still tappable. */
#aic-chat-widget .aic-option.aic-option-off:not(.aic-selected) {
    opacity: .45;
    text-decoration: line-through !important;
}
/* The choice came whole from the shopper's words: one tap adds it. */
#aic-chat-widget .aic-option-actions { margin: 2px 0 8px; }
#aic-chat-widget .aic-option-busy .aic-option-actions,
#aic-chat-widget .aic-option-done .aic-option-actions,
#aic-chat-widget .aic-option-closed .aic-option-actions { display: none; }
#aic-chat-widget .aic-option-busy .aic-option { cursor: wait; opacity: .7; }
/* Added, or replaced by a newer picker: the choice stays readable, the rest fades. */
#aic-chat-widget .aic-option-done .aic-option:not(.aic-selected),
#aic-chat-widget .aic-option-closed .aic-option { opacity: .45; }
#aic-chat-widget .aic-option-status {
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--aic-ink-3, #75716A);
}
#aic-chat-widget .aic-option-status:empty { display: none; }
#aic-chat-widget .aic-option-status.aic-option-error { color: #B3261E; }
#aic-chat-widget .aic-option-status.aic-option-added { color: var(--aic-ink, #1a1a1a); }
#aic-chat-widget .aic-option-status.aic-option-added strong {
    margin-right: 2px;
    color: var(--aic-success, #3F6B4A);
    font-weight: 700;
}
/* Nothing to choose: the product page, outlined like the card's "View". */
#aic-chat-widget .aic-option-link {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    margin: 0;
    padding: 7px 14px !important;
    background: transparent !important;
    color: var(--aic-ink, #1a1a1a) !important;
    border: 1px solid var(--aic-ink, #1a1a1a) !important;
    border-radius: var(--aic-radius-pill, 999px) !important;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
}
#aic-chat-widget .aic-option-link:hover {
    background: var(--aic-ink, #1a1a1a) !important;
    color: var(--aic-bg-soft, #fff) !important;
}
#aic-chat-widget .aic-option-unavailable .aic-option-question { margin: 0 0 8px; }
/* A second tap on the card's button shows the picker already waiting. */
#aic-chat-widget .aic-option-flash { animation: aic-option-flash 1.1s ease-out; }
@keyframes aic-option-flash {
    0%, 35% { box-shadow: 0 0 0 6px var(--aic-bg-tint, #EFE9DF); }
    100% { box-shadow: 0 0 0 6px transparent; }
}

/* What the templates print for the Sami theme only (css/brand/sami.css shows
   them): the launcher's star, word and dot, "Online", the words of the
   panel's "New chat". Hidden in every other look. */
#aic-floating-widget .aic-floating-btn .aic-launcher-star,
#aic-floating-widget .aic-launcher-label,
#aic-floating-widget .aic-launcher-dot,
#aic-floating-widget .aic-status,
#aic-chat-widget .aic-status,
#aic-floating-widget .aic-btn-label {
    display: none;
}
