.ca-ai-chat-wrapper {
    max-width: 620px;
    margin: 20px auto;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

.ca-ai-chat-header {
    margin-bottom: 10px;
}

.ca-ai-chat-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #004c97;
}

.ca-ai-chat-subtitle {
    font-size: 0.9rem;
    color: #555;
}

.ca-ai-chat-window {
    border: 1px solid #eee;
    border-radius: 8px;
    height: 260px;
    overflow: hidden;
    background: #fafafa;
    margin-bottom: 10px;
}

.ca-ai-chat-messages {
    padding: 10px;
    height: 100%;
    overflow-y: auto;
}

.ca-ai-chat-message {
    margin-bottom: 8px;
    display: flex;
}

.ca-ai-chat-message-inner {
    padding: 8px 10px;
    border-radius: 8px;
    line-height: 1.4;
    font-size: 0.9rem;
}

.ca-ai-chat-message-bot .ca-ai-chat-message-inner {
    background: #e9f3ff;
    color: #002b5c;
    margin-right: 40px;
}

.ca-ai-chat-message-user {
    justify-content: flex-end;
}

.ca-ai-chat-message-user .ca-ai-chat-message-inner {
    background: #004c97;
    color: #ffffff;
    margin-left: 40px;
}

.ca-ai-chat-form {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.ca-ai-chat-input {
    flex: 1;
    resize: vertical;
    min-height: 40px;
    max-height: 100px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.ca-ai-chat-send {
    padding: 0 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    background: #004c97;
    color: #fff;
    transition: background 0.2s ease;
}

.ca-ai-chat-send:hover:enabled {
    background: #003a73;
}

.ca-ai-chat-send:disabled {
    opacity: 0.6;
    cursor: default;
}

.ca-ai-chat-footer {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #777;
}
