.ai-chat-widget {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.ai-chat-launcher {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #185a9d, #43cea2);
    color: #fff;
    border: none;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.ai-chat-launcher:hover {
    transform: scale(1.08);
}

.ai-chat-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 340px;
    max-width: calc(100vw - 48px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #edf1f7;
}

.ai-chat-header {
    background: linear-gradient(90deg, #185a9d, #43cea2);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.ai-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.ai-chat-messages {
    padding: 14px 16px;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
}

.ai-chat-msg {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 85%;
    white-space: pre-wrap;
}

.ai-chat-msg--bot {
    background: #fff;
    border: 1px solid #edf1f7;
    color: #123a5c;
    align-self: flex-start;
}

.ai-chat-msg--user {
    background: linear-gradient(90deg, #185a9d, #43cea2);
    color: #fff;
    align-self: flex-end;
}

.ai-chat-typing {
    opacity: 0.6;
    font-style: italic;
}

.ai-chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 12px;
    background: #f8fafc;
}

.ai-chat-chip {
    background: #eef1f5;
    border: 1px solid #dde3ea;
    color: #185a9d;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.ai-chat-chip:hover {
    background: #e2ecf7;
}

.ai-chat-input-row {
    display: flex;
    border-top: 1px solid #edf1f7;
}

.ai-chat-input-row input {
    flex: 1;
    border: none;
    padding: 12px 14px;
    font-size: 0.9rem;
    outline: none;
}

.ai-chat-input-row button {
    background: none;
    border: none;
    color: #185a9d;
    font-size: 18px;
    padding: 0 16px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .ai-chat-panel {
        width: calc(100vw - 24px);
    }
}
