:root {
    --chat-accent: #1f3c88;
    --chat-accent-2: #2563eb;
    --chat-bg: #f8fafc;
    --chat-border: #e2e8f0;
    --chat-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

.chat-toggle {
    border: none;
    background: linear-gradient(135deg, var(--chat-accent), var(--chat-accent-2));
    color: #fff;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-panel {
    width: 320px;
    background: #fff;
    border: 1px solid var(--chat-border);
    border-radius: 18px;
    box-shadow: var(--chat-shadow);
    overflow: hidden;
    display: none;
    flex-direction: column;
    margin-bottom: 12px;
}

.chat-panel.active {
    display: flex;
}

.chat-header {
    padding: 14px 16px;
    background: var(--chat-bg);
    border-bottom: 1px solid var(--chat-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.95rem;
}

.chat-status {
    font-size: 0.75rem;
    color: #64748b;
}

.chat-body {
    padding: 12px 12px 4px;
    background: #fff;
    height: 280px;
    overflow-y: auto;
}

.chat-msg {
    display: flex;
    margin-bottom: 10px;
}

.chat-msg.user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.user .chat-bubble {
    background: #1f3c88;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg.bot .chat-bubble {
    background: #f1f5f9;
    color: #0f172a;
    border-bottom-left-radius: 4px;
}

.chat-footer {
    border-top: 1px solid var(--chat-border);
    padding: 10px;
    display: flex;
    gap: 8px;
    background: #fff;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--chat-border);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.9rem;
}

.chat-send {
    border: none;
    background: var(--chat-accent-2);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

.chat-note {
    font-size: 0.72rem;
    color: #94a3b8;
    padding: 0 12px 10px;
}

.chat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 10px 10px;
    background: #fff;
}

.chat-chip {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.chat-chip:hover {
    border-color: #2563eb;
    color: #2563eb;
}

@media (max-width: 480px) {
    .chat-panel {
        width: min(92vw, 360px);
    }
}
