.aw-chat-launcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    background: var(--aw-primary, #0B536E);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 10px 30px rgba(8, 45, 76, 0.28);
    cursor: pointer;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, background .15s ease;
}
.aw-chat-launcher:hover { transform: scale(1.06); background: var(--aw-primary-dark, #082D4C); }
.aw-chat-launcher .aw-chat-badge {
    position: absolute; top: -2px; right: -2px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--aw-accent, #F98343); border: 2px solid #fff;
}

.aw-chat-panel {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: var(--aw-bg, #fff);
    border-radius: 16px;
    box-shadow: 0 26px 64px rgba(8, 45, 76, .22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2000;
    opacity: 0;
    transform: translateY(16px) scale(.98);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    font-family: var(--aw-font-body, 'Inter', sans-serif);
    border: 1px solid var(--aw-border, #e4eae8);
}
.aw-chat-panel.aw-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.aw-chat-header {
    background: var(--aw-primary, #0B536E);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.aw-chat-header-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.aw-chat-header-text { min-width: 0; flex: 1; }
.aw-chat-header-title {
    font-family: var(--aw-font-heading, 'Manrope', sans-serif);
    font-weight: 700; font-size: 14px; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.aw-chat-header-subtitle { font-size: 11.5px; opacity: .85; margin-top: 1px; }
.aw-chat-header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.aw-chat-header-btn {
    background: transparent; border: none; color: #fff; opacity: .85;
    width: 26px; height: 26px; border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.aw-chat-header-btn:hover { opacity: 1; background: rgba(255,255,255,.14); }

.aw-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--aw-bg-soft, #f6f8f7);
}

.aw-chat-msg { max-width: 86%; font-size: 13.5px; line-height: 1.45; }
.aw-chat-msg-bubble { padding: 9px 12px; border-radius: 14px; word-wrap: break-word; white-space: pre-wrap; }
.aw-chat-msg-bot { align-self: flex-start; }
.aw-chat-msg-bot .aw-chat-msg-bubble { background: var(--aw-card, #fff); color: var(--aw-ink, #0e1f1c); border: 1px solid var(--aw-border, #e4eae8); border-bottom-left-radius: 4px; }
.aw-chat-msg-user { align-self: flex-end; }
.aw-chat-msg-user .aw-chat-msg-bubble { background: var(--aw-primary, #0B536E); color: #fff; border-bottom-right-radius: 4px; }

.aw-chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; background: var(--aw-card, #fff); border: 1px solid var(--aw-border, #e4eae8); border-radius: 14px; border-bottom-left-radius: 4px; }
.aw-chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--aw-ink-soft, #9aa8a4); animation: aw-chat-bounce 1.2s infinite ease-in-out; }
.aw-chat-typing span:nth-child(2) { animation-delay: .15s; }
.aw-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes aw-chat-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.aw-chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; background: var(--aw-bg-soft, #f6f8f7); flex-shrink: 0; }
.aw-chat-suggestion {
    border: 1px solid var(--aw-border, #e4eae8); background: var(--aw-card, #fff); color: var(--aw-ink, #0e1f1c);
    font-size: 12px; padding: 6px 10px; border-radius: 999px; cursor: pointer;
}
.aw-chat-suggestion:hover { border-color: var(--aw-primary, #0B536E); color: var(--aw-primary, #0B536E); }

.aw-chat-footer {
    display: flex; align-items: flex-end; gap: 8px;
    padding: 10px; border-top: 1px solid var(--aw-border, #e4eae8);
    background: var(--aw-card, #fff); flex-shrink: 0;
}
.aw-chat-input {
    flex: 1; resize: none; border: 1px solid var(--aw-border, #e4eae8); border-radius: 10px;
    padding: 8px 10px; font-size: 13.5px; font-family: inherit; max-height: 90px; min-height: 38px;
    color: var(--aw-ink, #0e1f1c); background: var(--aw-bg, #fff);
}
.aw-chat-input:focus { outline: none; border-color: var(--aw-primary, #0B536E); }
.aw-chat-send {
    width: 38px; height: 38px; border-radius: 10px; border: none; flex-shrink: 0;
    background: var(--aw-primary, #0B536E); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.aw-chat-send:hover { background: var(--aw-primary-dark, #082D4C); }
.aw-chat-send:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 480px) {
    .aw-chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; height: calc(100vh - 140px); }
    .aw-chat-launcher { right: 14px; bottom: 14px; }
}

[data-theme="dark"] .aw-chat-panel {
    --aw-bg: #10221e; --aw-bg-soft: #0f1e1b; --aw-card: #0e1f1c; --aw-border: #1d332d; --aw-ink: #eef5f2; --aw-ink-soft: #a9beb8;
}
