.atx-chat-widget,
.atx-chat-widget * { box-sizing: border-box; }
.atx-chat-widget { position: fixed; z-index: 3000; right: 22px; bottom: 22px; font-family: var(--font-body, Arial, sans-serif); }
body.atx-consent-summary-open .atx-chat-widget { bottom: 82px; }
.atx-chat-launcher { display: grid; width: 58px; height: 58px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #ed1c24; box-shadow: 0 12px 30px rgba(237, 28, 36, .3); cursor: pointer; text-decoration: none; }
.atx-chat-launcher svg, .atx-chat-header button svg, .atx-chat-composer button svg { width: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.atx-chat-launcher[aria-expanded="true"] { opacity: 0; pointer-events: none; }
.atx-chat-panel { position: absolute; right: 0; bottom: 0; display: grid; width: min(390px, calc(100vw - 30px)); height: min(610px, calc(100dvh - 40px)); grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; border: 1px solid #e2e5e9; border-radius: 22px; background: #fff; box-shadow: 0 25px 65px rgba(17, 24, 39, .24); }
.atx-chat-panel[hidden] { display: none; }
.atx-chat-header { display: grid; min-height: 118px; padding: 20px; grid-template-columns: 52px minmax(0, 1fr) 35px; align-items: center; gap: 12px; color: #fff; background: linear-gradient(120deg, #9f1117, #ed1c24 64%, #111827 150%); }
.atx-chat-avatar { display: grid; width: 52px; height: 52px; place-items: center; overflow: hidden; border-radius: 50%; background: #000; }
.atx-chat-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.atx-chat-header > div { display: grid; gap: 1px; }
.atx-chat-header > div > span { font-size: 12px; opacity: .82; }
.atx-chat-header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.atx-chat-header small { display: flex; margin-top: 8px; align-items: center; gap: 7px; font-size: 10px; }
.atx-chat-header small i { width: 7px; height: 7px; border-radius: 50%; background: #50dc7d; box-shadow: 0 0 0 3px rgba(80, 220, 125, .18); }
.atx-chat-header button { display: grid; width: 35px; height: 35px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12); cursor: pointer; }
.atx-chat-header button svg { width: 18px; }
.atx-chat-error { margin: 10px 14px 0; padding: 9px 11px; border-radius: 8px; color: #991b1b; background: #fee2e2; font-size: 11px; font-weight: 700; }
.atx-chat-start { display: grid; grid-row: 3 / 5; align-content: start; gap: 7px; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; background: #fff; }
.atx-chat-start[hidden] { display: none; }
.atx-chat-start__intro { display: grid; gap: 4px; margin-bottom: 9px; }
.atx-chat-start__intro > span { color: #ed1c24; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.atx-chat-start__intro > strong { color: #111827; font-size: 22px; line-height: 1.15; }
.atx-chat-start__intro p { margin: 2px 0 0; color: #667085; font-size: 12px; line-height: 1.45; }
.atx-chat-start > label { margin-top: 4px; color: #344054; font-size: 11px; font-weight: 800; }
.atx-chat-start > input:not(.atx-chat-honeypot) { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d8dde5; border-radius: 11px; color: #111827; background: #f8f9fa; font: inherit; font-size: 14px; }
.atx-chat-start > input:not(.atx-chat-honeypot):focus { outline: 3px solid rgba(237, 28, 36, .11); border-color: #ed1c24; background: #fff; }
.atx-chat-start > button { min-height: 46px; margin-top: 10px; border: 0; border-radius: 999px; color: #fff; background: #ed1c24; box-shadow: 0 9px 22px rgba(237, 28, 36, .24); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.atx-chat-start > button:disabled { cursor: wait; opacity: .58; }
.atx-chat-transcript { padding: 18px 16px; overflow-y: auto; background: linear-gradient(#fff, #fafafa); scroll-behavior: smooth; }
.atx-chat-intro, .atx-chat-bubble { width: fit-content; max-width: 82%; margin-bottom: 10px; padding: 11px 13px 8px; border-radius: 16px 16px 16px 5px; color: #273244; background: #eceff3; font-size: 13px; line-height: 1.4; }
.atx-chat-row { display: flex; justify-content: flex-start; }
.atx-chat-row.is-visitor { justify-content: flex-end; }
.atx-chat-row.is-visitor .atx-chat-bubble { color: #fff; border-radius: 16px 16px 5px 16px; background: linear-gradient(120deg, #db161d, #f1343b); }
.atx-chat-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.atx-chat-bubble time { display: block; margin-top: 6px; font-size: 9px; text-align: right; opacity: .63; }
.atx-chat-composer { position: sticky; bottom: 0; display: grid; padding: 13px 14px calc(13px + env(safe-area-inset-bottom)); grid-template-columns: minmax(0, 1fr) 48px; align-items: end; gap: 9px; border-top: 1px solid #e2e5e9; background: #fff; }
.atx-chat-composer[hidden], .atx-chat-transcript[hidden] { display: none; }
.atx-chat-composer textarea { width: 100%; min-width: 0; min-height: 48px; max-height: 105px; padding: 12px 13px; resize: vertical; border: 1px solid #e2e5e9; border-radius: 12px; color: #111827; background: #f8f9fa; font: inherit; font-size: 13px; }
.atx-chat-composer textarea:focus { outline: 3px solid rgba(237, 28, 36, .12); border-color: #ed1c24; }
.atx-chat-composer button { display: grid; width: 48px; height: 48px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #ed1c24; box-shadow: 0 8px 20px rgba(237, 28, 36, .28); cursor: pointer; }
.atx-chat-composer button:disabled { cursor: wait; opacity: .55; }
.atx-chat-composer button svg { width: 20px; }
.atx-chat-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.atx-chat-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .atx-chat-widget { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .atx-chat-transcript { scroll-behavior: auto; }
}
