/* Self-contained assistant styles. Keep site-wide typography and form rules outside the widget. */
.chatbot-widget {
    --chat-blue: #1458b5;
    --chat-ink: #172c48;
    --chat-muted: #52657d;
    --chat-border: #dfe7f1;
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 1040;
    font: 14px/1.5 'Raleway', sans-serif;
    color: var(--chat-ink);
    text-align: left;
    letter-spacing: normal;
}
.chatbot-widget *, .chatbot-widget *::before, .chatbot-widget *::after { box-sizing: border-box; }
.chatbot-widget [hidden] { display: none !important; }
.chatbot-widget button, .chatbot-widget input, .chatbot-widget textarea, .chatbot-widget select { font: inherit; letter-spacing: normal; }
.chatbot-widget button { cursor: pointer; }
.chatbot-widget button:disabled { cursor: default; opacity: .5; }
.chatbot-widget button, .chatbot-widget a, .chatbot-widget input, .chatbot-widget textarea, .chatbot-widget select { -webkit-tap-highlight-color: transparent; }
.chatbot-widget :focus-visible { outline: 3px solid #518ae0; outline-offset: 3px; }
.chatbot-widget .chat-icon, .chatbot-widget i { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; }
.chatbot-widget .chatbot-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.chatbot-toggle { display: flex; gap: 10px; align-items: center; min-height: 54px; padding: 14px 21px; background: var(--chat-blue); color: #fff; border: 1px solid #ffffff30; border-radius: 30px; box-shadow: 0 6px 24px #143c7140; font-weight: 600 !important; transition: transform .2s, background .2s; }
.chatbot-toggle:hover { background: #104a9a; transform: translateY(-2px); }
.chatbot-toggle i { font-size: 23px; }
.chatbot-panel { display: flex; flex-direction: column; width: 410px; height: min(710px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); background: #fff; border: 1px solid var(--chat-border); border-radius: 22px; box-shadow: 0 18px 64px #102c4d30, 0 2px 10px #102c4d0d; overflow: hidden; animation: chatbot-appear .2s ease-out; }
.chatbot-header { display: flex; gap: 12px; align-items: center; padding: 22px 18px; background: linear-gradient(120deg, #123d79, #1463bf); color: #fff; }
.chatbot-brand-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; border: 1px solid #ffffff38; background: #ffffff14; }
.chatbot-brand-icon i { font-size: 25px; }
.chatbot-heading { flex: 1; min-width: 0; text-align: left; }
.chatbot-widget .chatbot-heading h2 { font: 650 16px/1.3 system-ui, sans-serif; color: #fff; margin: 0 0 5px; text-align: left; }
.chatbot-heading p { font-size: 11px; color: #dfedff; margin: 0; }
.chatbot-icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: inherit; }
.chatbot-icon-button:hover { background: #ffffff20; }
.chatbot-toolbar { display: flex; justify-content: space-between; padding: 7px 13px; border-bottom: 1px solid var(--chat-border); background: #fff; }
.chatbot-toolbar button { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--chat-muted); font-size: 12px; font-weight: 600; }
.chatbot-toolbar i { font-size: 16px; }
.chatbot-toolbar button:hover, .chatbot-toolbar button[aria-expanded=true] { color: var(--chat-blue); background: #edf4fe; }
.chatbot-conversation { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; background: #f5f8fc; }
.chatbot-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c8d5e5 transparent; padding: 24px 18px; }
.chatbot-welcome { margin-bottom: 22px; }
.chatbot-eyebrow { display: block; color: var(--chat-blue); font-weight: 700; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 10px; }
.chatbot-widget .chatbot-welcome h3 { font: 650 25px/1.2 system-ui, sans-serif; letter-spacing: -.65px; color: var(--chat-ink); margin: 0 0 10px; max-width: 280px; }
.chatbot-welcome > p { color: var(--chat-muted); font-size: 13px; margin: 0 0 20px; max-width: 310px; }
.chatbot-starters { display: grid; gap: 8px; }
.chatbot-starters button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 13px; border: 1px solid var(--chat-border); border-radius: 12px; background: #fff; color: var(--chat-blue); text-align: left; transition: border-color .15s, box-shadow .15s; }
.chatbot-starters button:hover { border-color: #8fb7ef; box-shadow: 0 2px 7px #1e59a310; }
.chatbot-starters button > span { flex: 1; color: var(--chat-ink); font-size: 13px; font-weight: 600; }
.chatbot-starters small { display: block; color: var(--chat-muted); font-size: 11px; font-weight: 400; margin-top: 1px; }
.chatbot-starters button > i:last-child { font-size: 16px; color: #8b9bb0; }
.chatbot-messages { display: flex; flex-direction: column; gap: 20px; }
.chatbot-message { min-width: 0; max-width: 100%; }
.chatbot-message-meta { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--chat-muted); margin: 0 3px 6px; }
.chatbot-message-meta strong { font-weight: 650; }
.chatbot-message-meta time { margin-left: auto; }
.chatbot-bubble { background: #fff; border: 1px solid var(--chat-border); border-radius: 3px 14px 14px; padding: 13px 14px; overflow-wrap: anywhere; }
.chatbot-bubble p { font-size: 13px; line-height: 1.65; margin: 0; white-space: pre-wrap; }
.chatbot-message.user-message { align-self: flex-end; max-width: 88%; }
.user-message .chatbot-bubble { color: #fff; background: var(--chat-blue); border-color: var(--chat-blue); border-radius: 14px 3px 14px 14px; }
.user-message .chatbot-bubble p { color: #fff; }
    .user-message .chatbot-message-meta strong { order: 2; margin-left: auto; margin-right: 0; }
    .user-message .chatbot-message-meta time { order: 1; margin-left: 0; }
.chatbot-actions, .chatbot-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.chatbot-actions a, .chatbot-secondary-button { display: inline-block; padding: 8px 10px; border: 1px solid #c4d8f3; border-radius: 8px; background: #edf4fe; color: #124f9f; font-size: 12px; font-weight: 600; text-decoration: none; }
.chatbot-actions a:hover, .chatbot-secondary-button:hover { background: #dfeeff; color: #0b3b79; }
.chatbot-suggestions button { padding: 8px 11px; border: 1px solid #cbd9ec; border-radius: 14px; background: #fff; color: #20558f; text-align: left; font-size: 12px; }
.chatbot-suggestions button:hover { background: #edf4fe; border-color: #8fb7ef; }
.chatbot-products { display: grid; gap: 8px; margin-top: 12px; }
.chatbot-product { display: flex; align-items: center; gap: 11px; border: 1px solid var(--chat-border); border-radius: 10px; padding: 10px; background: #fff; text-decoration: none; color: var(--chat-ink); }
.chatbot-product:hover { border-color: #8fb7ef; color: var(--chat-ink); background: #f7faff; }
.chatbot-product-image { display: grid; place-items: center; width: 52px; height: 56px; flex-shrink: 0; border-radius: 6px; background: #f5f8fc; color: #7094bd; }
.chatbot-product-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.chatbot-product-copy { min-width: 0; }
.chatbot-product strong { display: block; font-size: 12px; line-height: 1.4; }
.chatbot-product small { display: block; color: var(--chat-muted); font-size: 10px; margin: 3px 0; }
.chatbot-product-price { color: #1458b5; font-size: 12px; font-weight: 700; }
.chatbot-order { border: 1px solid var(--chat-border); border-radius: 10px; overflow: hidden; margin-top: 12px; }
.chatbot-order h4 { font: 650 13px/1.5 'Anton', sans-serif; background: #edf4fe; color: var(--chat-ink); padding: 10px 12px; margin: 0; }
.chatbot-order dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 12px; margin: 0; padding: 12px; font-size: 12px; }
.chatbot-order dt { color: var(--chat-muted); font-weight: 400; }
.chatbot-order dd { text-align: right; margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.chatbot-error .chatbot-bubble { border-color: #edc9aa; background: #fffbf5; }
.chatbot-typing { display: flex; gap: 9px; align-items: center; padding: 10px 20px; color: var(--chat-muted); font-size: 11px; }
.chatbot-typing-dots { display: flex; gap: 3px; }
.chatbot-typing-dots span { width: 5px; height: 5px; background: #6990c5; border-radius: 50%; animation: chatbot-pulse 1.2s infinite; }
.chatbot-typing-dots span:nth-child(2) { animation-delay: .15s; }
.chatbot-typing-dots span:nth-child(3) { animation-delay: .3s; }
.chatbot-latest { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); white-space: nowrap; border: 1px solid #b2c9e8; border-radius: 20px; background: #fff; padding: 6px 12px; color: #1458b5; font-size: 11px; box-shadow: 0 2px 10px #172c4820; }
.chatbot-faq-panel { flex: 1; min-height: 0; padding: 20px 18px; overflow-y: auto; overscroll-behavior: contain; background: #f5f8fc; }
    .chatbot-widget .chatbot-faq-panel h3 { font: 650 18px/1.4 'Anton', sans-serif; color: var(--chat-blue); margin: 0 0 16px; text-align: left; }
.chatbot-faq-panel input, .chatbot-faq-panel select { display: block; width: 100%; border: 1px solid #c8d6e8; border-radius: 8px; padding: 10px 12px; background: #fff; color: var(--chat-ink); margin-bottom: 9px; font-size: 13px; }
.chatbot-faq-status { color: var(--chat-muted); font-size: 12px; margin: 13px 0; }
.chatbot-faq-list { display: grid; gap: 8px; }
.chatbot-faq-list button { text-align: left; padding: 13px; background: #fff; border: 1px solid var(--chat-border); border-radius: 10px; color: var(--chat-ink); font-size: 13px; }
.chatbot-faq-list button:hover { border-color: #8fb7ef; }
.chatbot-faq-list small { display: block; color: var(--chat-blue); font-size: 10px; font-weight: 650; margin-bottom: 4px; }
.chatbot-network { padding: 9px 18px; background: #fff4db; color: #725011; font-size: 12px; border-top: 1px solid #e9d5a6; }
.chatbot-composer { flex-shrink: 0; padding: 13px 16px 9px; border-top: 1px solid var(--chat-border); margin: 0; background: #fff; }
.chatbot-input-row { display: flex; align-items: flex-end; gap: 8px; border: 1px solid #bdcde0; border-radius: 13px; padding: 6px; }
.chatbot-input-row:focus-within { border-color: #3978cc; box-shadow: 0 0 0 3px #1458b510; }
.chatbot-widget #chatbot-input { flex: 1; min-width: 0; width: 100%; resize: none; max-height: 104px; min-height: 36px; padding: 7px 6px; border: 0; outline: 0; box-shadow: none; background: transparent; color: var(--chat-ink); font-size: 13px; line-height: 22px; }
.chatbot-widget #chatbot-input::placeholder { color: #61748b; }
.chatbot-widget #chatbot-send { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; color: #fff; background: var(--chat-blue); }
.chatbot-input-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 9px; color: var(--chat-muted); padding: 6px 1px 0; }
.chatbot-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; padding: 3px 17px 13px; background: #fff; color: var(--chat-muted); font-size: 9px; }
.chatbot-footer a { color: #1458b5; font-weight: 650; text-decoration: none; }
.chatbot-footer a:hover { text-decoration: underline; }
@keyframes chatbot-pulse { 0%, 80%, 100% { opacity: .4; } 40% { opacity: 1; } }
@keyframes chatbot-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
    .chatbot-widget { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
    .chatbot-panel { width: calc(100vw - 24px); height: min(710px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); border-radius: 17px; }
    .chatbot-header { padding: 17px 13px; gap: 9px; }
    .chatbot-widget .chatbot-heading h2 { font-size: 15px; }
    .chatbot-widget #chatbot-input, .chatbot-faq-panel input, .chatbot-faq-panel select { font-size: 16px; }
    .chatbot-scroll { padding: 20px 14px; }
    .chatbot-input-meta { font-size: 10px; }
    .chatbot-toggle { min-height: 48px; padding: 11px 16px; }
    .chatbot-composer { padding: 13px max(16px, env(safe-area-inset-left) + 6px) max(13px, env(safe-area-inset-bottom) + 13px) max(16px, env(safe-area-inset-right) + 6px); }
    .chatbot-network { padding: 9px max(18px, env(safe-area-inset-left) + 6px) max(9px, env(safe-area-inset-bottom) + 9px) max(18px, env(safe-area-inset-right) + 6px); }
    .chatbot-footer { padding: 3px max(17px, env(safe-area-inset-left) + 6px) max(13px, env(safe-area-inset-bottom) + 13px) max(17px, env(safe-area-inset-right) + 6px); font-size: 11px; }
    .chatbot-widget #chatbot-send { width: 44px; height: 44px; }
    .chatbot-widget #chatbot-input { padding: 8px 8px; font-size: 16px; }
    .chatbot-widget #chatbot-input::placeholder { font-size: 14px; }
    .chatbot-bubble p { font-size: 14px; }
    .chatbot-message-meta { font-size: 11px; }
    .chatbot-starters button > span { font-size: 14px; }
    .chatbot-widget .chatbot-welcome h3 { max-width: 270px; }
    .chatbot-welcome > p { max-width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
    .chatbot-widget *, .chatbot-widget *::before, .chatbot-widget *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

