/* ---------- Tokens ---------- */
    .atoa-chat-launcher,
    .atoa-chat-window {
        --atoa-orange: #f54401;
        --atoa-orange-2: #ff6a1a;
        --atoa-amber: #f2a300;
        --atoa-red: #e2341d;
        --atoa-ink: #0f0f12;
        --atoa-ink-2: #1b1b20;
        --atoa-text: #1f1f24;
        --atoa-muted: #6b6b76;
        --atoa-surface: #f6f6f8;
        --atoa-line: rgba(15, 15, 18, 0.08);
        --atoa-online: #22c55e;
        --atoa-launcher-size: 64px;
        --atoa-launcher-right: 28px;
        --atoa-launcher-bottom: 28px;
        font-family: inherit;
        box-sizing: border-box;
    }
    .atoa-chat-launcher *,
    .atoa-chat-window *,
    .atoa-chat-launcher *::before,
    .atoa-chat-window *::before,
    .atoa-chat-launcher *::after,
    .atoa-chat-window *::after {
        box-sizing: border-box;
    }

    /* Reset the theme's global button/input styles (padding, skewed ::after overlay, min-height) */
    .atoa-chat-launcher button,
    .atoa-chat-window button {
        margin: 0;
        overflow: visible;
        text-transform: none;
        letter-spacing: normal;
        font-family: inherit;
        line-height: 1;
        z-index: auto;
        min-height: 0;
        -webkit-appearance: none;
        appearance: none;
    }
    .atoa-chat-launcher button::before,
    .atoa-chat-launcher button::after,
    .atoa-chat-window button::before,
    .atoa-chat-window button::after {
        content: none !important;
        display: none !important;
    }
    .atoa-chat-launcher button svg,
    .atoa-chat-window button svg {
        flex-shrink: 0;
        pointer-events: none;
    }

    /* ---------- Launcher ---------- */
    .atoa-chat-launcher {
        position: fixed;
        right: var(--atoa-launcher-right);
        bottom: var(--atoa-launcher-bottom);
        width: var(--atoa-launcher-size);
        height: var(--atoa-launcher-size);
        z-index: 99998;
    }

    /* Concentric rings, all centred on the button */
    .atoa-chat-ring {
        position: absolute;
        top: 50%;
        left: 50%;
        border-radius: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
    }
    /* Ring 1: rotating orange/amber arc */
    .atoa-chat-ring--arc {
        width: calc(var(--atoa-launcher-size) + 16px);
        height: calc(var(--atoa-launcher-size) + 16px);
        background: conic-gradient(from 0deg,
            rgba(245, 68, 1, 0) 0deg,
            var(--atoa-orange) 90deg,
            var(--atoa-amber) 160deg,
            rgba(242, 163, 0, 0) 200deg,
            rgba(226, 52, 29, 0) 250deg,
            rgba(226, 52, 29, 0.85) 320deg,
            rgba(245, 68, 1, 0) 360deg);
        -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
                mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
        animation: atoaSpin 4.5s linear infinite;
    }
    /* Ring 2: fine dashed ring, counter-rotating */
    .atoa-chat-ring--dash {
        width: calc(var(--atoa-launcher-size) + 30px);
        height: calc(var(--atoa-launcher-size) + 30px);
        border: 1.5px dashed rgba(242, 163, 0, 0.45);
        animation: atoaSpinReverse 16s linear infinite;
    }
    /* Ring 3: soft ripple that breathes outward */
    .atoa-chat-ring--pulse {
        width: var(--atoa-launcher-size);
        height: var(--atoa-launcher-size);
        border: 2px solid rgba(245, 68, 1, 0.55);
        animation: atoaRipple 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
    }
    .atoa-chat-ring--pulse.atoa-chat-ring--delay {
        animation-delay: 1.4s;
    }

    @keyframes atoaSpin {
        to { transform: translate(-50%, -50%) rotate(360deg); }
    }
    @keyframes atoaSpinReverse {
        to { transform: translate(-50%, -50%) rotate(-360deg); }
    }
    @keyframes atoaRipple {
        0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.7; }
        100% { transform: translate(-50%, -50%) scale(1.55); opacity: 0; }
    }
    @keyframes atoaGlow {
        0%, 100% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(245, 68, 1, 0.35), inset 0 0 0 1px rgba(242, 163, 0, 0.35); }
        50%      { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 30px rgba(245, 68, 1, 0.55), inset 0 0 0 1px rgba(242, 163, 0, 0.55); }
    }

    .atoa-chat-launcher .atoa-chat-trigger {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 25%, #2a2a31 0%, var(--atoa-ink-2) 45%, var(--atoa-ink) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        outline: none;
        animation: atoaGlow 3.2s ease-in-out infinite;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .atoa-chat-trigger:hover {
        transform: scale(1.08);
        filter: brightness(1.12) drop-shadow(0 0 14px rgba(245, 68, 1, 0.55));
    }
    .atoa-chat-trigger:active {
        transform: scale(0.97);
    }
    .atoa-chat-trigger:focus-visible {
        box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--atoa-orange);
    }
    .atoa-chat-trigger-logo,
    .atoa-chat-trigger-close {
        position: absolute;
        top: 50%;
        left: 50%;
        transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .atoa-chat-trigger-logo {
        width: 50%;
        height: 50%;
        object-fit: contain;
        transform: translate(-50%, -52%);
        filter: drop-shadow(0 2px 6px rgba(245, 68, 1, 0.35));
    }
    .atoa-chat-trigger-close {
        width: 22px;
        height: 22px;
        color: #fff;
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-90deg) scale(0.6);
    }
    .atoa-chat-launcher.is-active .atoa-chat-trigger-logo {
        opacity: 0;
        transform: translate(-50%, -52%) rotate(90deg) scale(0.6);
    }
    .atoa-chat-launcher.is-active .atoa-chat-trigger-close {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0) scale(1);
    }
    /* Calm the rings while the panel is open */
    .atoa-chat-launcher.is-active .atoa-chat-ring--pulse,
    .atoa-chat-launcher.is-active .atoa-chat-ring--dash {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* AI badge: sits on the rim, clear of the logo */
    .atoa-chat-badge {
        position: absolute;
        top: -3px;
        right: -5px;
        z-index: 2;
        min-width: 26px;
        height: 20px;
        padding: 0 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: linear-gradient(135deg, var(--atoa-amber) 0%, var(--atoa-orange) 100%);
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.6px;
        border: 2px solid var(--atoa-ink);
        box-shadow: 0 3px 10px rgba(245, 68, 1, 0.45);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .atoa-chat-launcher.is-active .atoa-chat-badge {
        opacity: 0;
        transform: scale(0.6);
    }

    /* Tooltip (desktop pointers only) */
    .atoa-chat-tooltip {
        position: absolute;
        top: 50%;
        right: calc(100% + 22px);
        white-space: nowrap;
        background: var(--atoa-ink-2);
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        padding: 8px 14px;
        border-radius: 10px;
        border: 1px solid rgba(242, 163, 0, 0.3);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transform: translate(6px, -50%);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        pointer-events: none;
    }
    .atoa-chat-tooltip::after {
        content: "";
        position: absolute;
        top: 50%;
        right: -5px;
        width: 10px;
        height: 10px;
        background: var(--atoa-ink-2);
        border-top: 1px solid rgba(242, 163, 0, 0.3);
        border-right: 1px solid rgba(242, 163, 0, 0.3);
        transform: translateY(-50%) rotate(45deg);
    }
    @media (hover: hover) and (pointer: fine) {
        .atoa-chat-launcher:not(.is-active) .atoa-chat-trigger:hover + .atoa-chat-tooltip,
        .atoa-chat-launcher:not(.is-active) .atoa-chat-trigger:focus-visible + .atoa-chat-tooltip {
            opacity: 1;
            visibility: visible;
            transform: translate(0, -50%);
        }
    }

    /* ---------- Chat window ---------- */
    .atoa-chat-window {
        position: fixed;
        right: var(--atoa-launcher-right);
        bottom: calc(var(--atoa-launcher-bottom) + var(--atoa-launcher-size) + 22px);
        width: 390px;
        max-width: calc(100vw - 32px);
        height: 590px;
        max-height: calc(100vh - 140px);
        max-height: calc(100dvh - 140px);
        background: var(--atoa-surface);
        border-radius: 22px;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
        display: flex;
        flex-direction: column;
        z-index: 99999;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(18px) scale(0.96);
        transform-origin: bottom right;
        transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.15), visibility 0s linear 0.32s, height 0.3s ease;
    }
    .atoa-chat-window.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.15), visibility 0s, height 0.3s ease;
    }

    /* Header */
    .atoa-chat-header {
        position: relative;
        flex-shrink: 0;
        padding: 16px 14px 16px 18px;
        background:
            radial-gradient(120% 140% at 0% 0%, rgba(245, 68, 1, 0.28) 0%, rgba(245, 68, 1, 0) 55%),
            radial-gradient(90% 120% at 100% 0%, rgba(242, 163, 0, 0.16) 0%, rgba(242, 163, 0, 0) 60%),
            linear-gradient(160deg, #1f1f25 0%, var(--atoa-ink) 100%);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .atoa-chat-header::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--atoa-red), var(--atoa-orange), var(--atoa-amber));
        opacity: 0.85;
    }
    .atoa-chat-header-info {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }
    .atoa-chat-avatar {
        position: relative;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(242, 163, 0, 0.35);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .atoa-chat-avatar img {
        width: 26px;
        height: 26px;
        object-fit: contain;
    }
    .atoa-chat-online-dot {
        position: absolute;
        bottom: -3px;
        right: -3px;
        width: 12px;
        height: 12px;
        background: var(--atoa-online);
        border-radius: 50%;
        border: 2px solid var(--atoa-ink);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
        animation: atoaOnline 2.4s ease-out infinite;
    }
    @keyframes atoaOnline {
        0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
        70%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
        100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
    }
    .atoa-chat-title {
        color: #ffffff;
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 4px;
        line-height: 1.2;
        letter-spacing: 0.2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .atoa-chat-window .atoa-chat-status {
        display: block;
        color: #b4b4bd;
        font-size: 12.5px;
        margin: 0;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .atoa-chat-controls {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }
    .atoa-chat-window .atoa-chat-control {
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #b4b4bd;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
    }
    .atoa-chat-control svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
    }
    .atoa-chat-control:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    .atoa-chat-control:focus-visible {
        outline: 2px solid var(--atoa-amber);
        outline-offset: 1px;
    }

    /* Minimised: collapse to the header bar */
    .atoa-chat-window.is-minimized {
        height: 77px;
    }
    .atoa-chat-window.is-minimized .atoa-chat-header {
        cursor: pointer;
    }
    .atoa-chat-window.is-minimized .atoa-chat-minimize svg {
        transform: rotate(180deg);
    }
    .atoa-chat-window.is-minimized .atoa-chat-messages,
    .atoa-chat-window.is-minimized .atoa-chat-footer {
        visibility: hidden;
    }

    /* Messages */
    .atoa-chat-messages {
        flex: 1;
        min-height: 0;
        padding: 18px 16px 14px;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        gap: 12px;
        background:
            radial-gradient(circle at 100% 0%, rgba(242, 163, 0, 0.07) 0%, rgba(242, 163, 0, 0) 40%),
            var(--atoa-surface);
        overscroll-behavior: contain;
        scroll-behavior: smooth;
    }
    .atoa-chat-messages::-webkit-scrollbar {
        width: 5px;
    }
    .atoa-chat-messages::-webkit-scrollbar-thumb {
        background: rgba(15, 15, 18, 0.15);
        border-radius: 4px;
    }
    .atoa-chat-welcome {
        text-align: center;
        padding: 2px 12px 0;
    }
    .atoa-chat-welcome-logo {
        width: 46px;
        height: 46px;
        margin: 0 auto 8px;
        border-radius: 14px;
        background: linear-gradient(160deg, #24242b 0%, var(--atoa-ink) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 20px rgba(245, 68, 1, 0.18), inset 0 0 0 1px rgba(242, 163, 0, 0.3);
    }
    .atoa-chat-welcome-logo img {
        width: 26px;
        height: 24px;
        object-fit: contain;
    }
    .atoa-chat-window .atoa-chat-welcome-title {
        margin: 0 0 4px;
        font-size: 17px;
        font-weight: 700;
        color: #111114;
        line-height: 1.3;
    }
    .atoa-chat-window .atoa-chat-welcome-text {
        margin: 0 auto;
        max-width: 260px;
        font-size: 13px;
        color: var(--atoa-muted);
        line-height: 1.5;
    }
    .atoa-chat-day {
        align-self: center;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        color: var(--atoa-muted);
        background: rgba(15, 15, 18, 0.05);
        padding: 4px 10px;
        border-radius: 999px;
    }
    .atoa-msg-row {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        max-width: 100%;
        animation: atoaMsgIn 0.28s ease-out both;
    }
    .atoa-msg-row--user {
        justify-content: flex-end;
    }
    @keyframes atoaMsgIn {
        from { opacity: 0; transform: translateY(6px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .atoa-msg-avatar {
        flex-shrink: 0;
        width: 28px;
        height: 28px;
        border-radius: 9px;
        background: var(--atoa-ink-2);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .atoa-msg-avatar img {
        width: 16px;
        height: 16px;
        object-fit: contain;
    }
    .atoa-msg {
        max-width: 82%;
        padding: 11px 15px;
        font-size: 14px;
        line-height: 1.55;
        border-radius: 18px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .atoa-msg-bot {
        background: #ffffff;
        color: var(--atoa-text);
        border-top-left-radius: 6px;
        border: 1px solid var(--atoa-line);
        box-shadow: 0 2px 8px rgba(15, 15, 18, 0.05);
    }
    .atoa-msg-bot strong {
        color: #111114;
    }
    .atoa-msg-bot a {
        color: #d63d00;
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    .atoa-msg-user {
        background: linear-gradient(135deg, var(--atoa-orange) 0%, var(--atoa-orange-2) 60%, var(--atoa-amber) 140%);
        color: #ffffff;
        border-bottom-right-radius: 6px;
        box-shadow: 0 6px 16px rgba(245, 68, 1, 0.25);
    }
    .atoa-msg-user a {
        color: #ffffff;
        text-decoration: underline;
    }
    .atoa-chat-suggestions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
    }
    .atoa-chat-window .atoa-suggestion-chip {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 100%;
        white-space: nowrap;
        background: #fff6f0;
        color: #b83a00;
        border: 1px solid rgba(245, 68, 1, 0.22);
        padding: 9px 10px;
        border-radius: 12px;
        font-size: 12.5px;
        font-weight: 600;
        line-height: 1.2;
        font-family: inherit;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }
    .atoa-suggestion-chip:hover,
    .atoa-suggestion-chip:focus-visible {
        background: var(--atoa-orange);
        color: #ffffff;
        border-color: var(--atoa-orange);
        transform: translateY(-1px);
        outline: none;
    }

    /* Product list card */
    .atoa-msg-bot.atoa-msg-products {
        width: 82%;
    }
    .atoa-product-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }
    .atoa-msg-bot a.atoa-product-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid var(--atoa-line);
        background: var(--atoa-surface);
        color: var(--atoa-text);
        text-decoration: none;
        transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    }
    .atoa-msg-bot a.atoa-product-item:hover,
    .atoa-msg-bot a.atoa-product-item:focus-visible {
        border-color: rgba(245, 68, 1, 0.45);
        background: #fff6f0;
        transform: translateX(2px);
        outline: none;
    }
    .atoa-product-icon {
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--atoa-orange) 0%, var(--atoa-amber) 130%);
        box-shadow: 0 4px 10px rgba(245, 68, 1, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
    }
    .atoa-product-icon svg {
        display: block;
        width: 18px;
        height: 18px;
    }
    .atoa-product-text {
        flex: 1;
        min-width: 0;
        line-height: 1.3;
    }
    .atoa-product-name {
        display: block;
        font-weight: 700;
        font-size: 13.5px;
        color: #111114;
    }
    .atoa-product-tag {
        display: block;
        font-size: 12px;
        color: var(--atoa-muted);
    }
    .atoa-product-arrow {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
        color: var(--atoa-orange);
    }
    .atoa-msg-bot a.atoa-product-all {
        display: inline-block;
        margin-top: 10px;
        font-size: 12.5px;
        font-weight: 700;
        color: #d63d00;
    }

    /* Typing indicator */
    .atoa-chat-typing {
        display: none;
        align-items: flex-start;
        gap: 8px;
    }
    .atoa-chat-typing .atoa-typing-bubble {
        background: #ffffff;
        border: 1px solid var(--atoa-line);
        padding: 12px 14px;
        border-radius: 18px;
        border-top-left-radius: 6px;
    }
    .atoa-typing-dots {
        display: flex;
        gap: 5px;
        align-items: center;
    }
    .atoa-typing-dots span {
        width: 7px;
        height: 7px;
        background: var(--atoa-orange);
        border-radius: 50%;
        animation: atoaBlink 1.4s infinite ease-in-out both;
    }
    .atoa-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
    .atoa-typing-dots span:nth-child(2) { animation-delay: -0.16s; }
    @keyframes atoaBlink {
        0%, 80%, 100% { transform: scale(0.5); opacity: 0.35; }
        40%           { transform: scale(1);   opacity: 1; }
    }

    /* Footer */
    .atoa-chat-footer {
        flex-shrink: 0;
        padding: 12px 14px 10px;
        background: #ffffff;
        border-top: 1px solid var(--atoa-line);
    }
    .atoa-chat-input-row {
        display: flex;
        gap: 8px;
        align-items: center;
        background: var(--atoa-surface);
        border: 1.5px solid rgba(15, 15, 18, 0.06);
        border-radius: 16px;
        padding: 5px 5px 5px 14px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }
    .atoa-chat-input-row:focus-within {
        background: #ffffff;
        border-color: rgba(245, 68, 1, 0.5);
        box-shadow: 0 4px 14px rgba(245, 68, 1, 0.08);
    }
    .atoa-chat-window .atoa-chat-input {
        flex: 1;
        width: auto;
        min-width: 0;
        min-height: 0;
        height: 40px;
        margin: 0;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        color: var(--atoa-text);
        padding: 0;
        font-size: 14px;
        font-family: inherit;
        outline: none;
        box-shadow: none !important;
    }
    .atoa-chat-window .atoa-chat-input:focus {
        outline: none !important;
        box-shadow: none !important;
        border: 0 !important;
    }
    .atoa-chat-input::placeholder {
        color: #9a9aa4;
    }
    .atoa-chat-window .atoa-chat-send-btn {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--atoa-orange) 0%, var(--atoa-amber) 130%);
        border: none;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(245, 68, 1, 0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    }
    .atoa-chat-send-btn svg {
        display: block;
        width: 18px;
        height: 18px;
        margin: 0;
        color: #ffffff;
    }
    .atoa-chat-send-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(245, 68, 1, 0.4);
    }
    .atoa-chat-send-btn:focus-visible {
        outline: 2px solid var(--atoa-orange);
        outline-offset: 2px;
    }
    .atoa-chat-send-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }
    .atoa-chat-brand-tag {
        text-align: center;
        font-size: 11px;
        color: #9a9aa4;
        margin-top: 8px;
        letter-spacing: 0.2px;
    }
    .atoa-chat-brand-tag strong {
        color: var(--atoa-orange);
        font-weight: 700;
    }

    /* ---------- Responsive ---------- */
    /* Tablet & mobile (the floating WhatsApp button was removed 26 Oct 2026, so sit near the corner) */
    @media (max-width: 768px) {
        .atoa-chat-launcher,
        .atoa-chat-window {
            --atoa-launcher-size: 58px;
            --atoa-launcher-right: 21px;
            --atoa-launcher-bottom: 24px;
        }
        .atoa-chat-window {
            right: 16px;
            bottom: 20px;
            max-height: calc(100vh - 40px);
            max-height: calc(100dvh - 40px);
        }
        .atoa-chat-launcher.is-active {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
    }
    @media (max-width: 480px) {
        .atoa-chat-window {
            right: 10px;
            left: 10px;
            bottom: 10px;
            width: auto;
            max-width: none;
            height: calc(100vh - 20px);
            height: calc(100dvh - 20px);
            max-height: none;
            border-radius: 18px;
        }
        .atoa-chat-window.is-minimized {
            height: 77px;
        }
        .atoa-msg {
            max-width: 86%;
        }
        /* 16px stops iOS zooming into the input */
        .atoa-chat-window .atoa-chat-input {
            font-size: 16px;
        }
    }

    /* Device check #5: smaller bubble without rings on phones; out of the way of the open menu and of form fields being typed in */
    @media (max-width: 575px) {
        /* Smaller bubble on phones so it covers less of the text and form fields (QA 29 Oct 2026) */
        .atoa-chat-launcher:not(.is-active) {
            --atoa-launcher-size: 48px;
            --atoa-launcher-right: 10px;
            --atoa-launcher-bottom: 10px;
        }
        .atoa-chat-launcher .atoa-chat-ring { display: none; }
        body:has(input:focus, textarea:focus, select:focus) .atoa-chat-launcher:not(.is-active) {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
    }
    @media (max-width: 991px) {
        body.on-side .atoa-chat-launcher,
        body.pause-scroll .atoa-chat-launcher,
        body:has(.navbar-collapse.show, .navbar-collapse.in, .navbar-collapse.on) .atoa-chat-launcher {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }
    }

    /* ---------- Reduced motion ---------- */
    @media (prefers-reduced-motion: reduce) {
        .atoa-chat-ring,
        .atoa-chat-trigger,
        .atoa-chat-online-dot,
        .atoa-msg-row {
            animation: none !important;
        }
        .atoa-chat-ring--pulse {
            opacity: 0;
        }
        .atoa-chat-ring--arc {
            transform: translate(-50%, -50%) rotate(35deg);
        }
        .atoa-chat-trigger {
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 22px rgba(245, 68, 1, 0.45), inset 0 0 0 1px rgba(242, 163, 0, 0.45);
        }
        .atoa-chat-launcher *,
        .atoa-chat-window,
        .atoa-chat-window * {
            transition-duration: 0.01ms !important;
        }
        .atoa-chat-window {
            transform: none !important;
        }
        .atoa-chat-messages {
            scroll-behavior: auto;
        }
        .atoa-typing-dots span {
            animation-duration: 2.8s;
        }
    }