.fbs-ai-chat-container {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    max-width: 800px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.fbs-ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
}

.fbs-ai-message {
    display: flex;
    margin-bottom: 20px;
}

.fbs-ai-message-user {
    flex-direction: row-reverse;
}

.fbs-ai-message-avatar {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.fbs-ai-message-user .fbs-ai-message-avatar {
    margin-right: 0;
    margin-left: 15px;
    background: #2271b1;
    color: #fff;
    border: none;
}

.fbs-ai-message-content {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ccd0d4;
    max-width: 80%;
    line-height: 1.5;
}

.fbs-ai-message-content p {
    margin: 0 0 10px 0;
}

.fbs-ai-message-content p:last-child {
    margin-bottom: 0;
}

.fbs-ai-message-user .fbs-ai-message-content {
    background: #f0f6fc;
    border-color: #c4d9ed;
}

.fbs-ai-chat-input-area {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #ccd0d4;
}

.fbs-ai-chat-input-area form {
    display: flex;
    gap: 10px;
}

.fbs-ai-chat-input-area textarea {
    flex: 1;
    resize: none;
    padding: 10px;
}

/* Loading animation */
.fbs-ai-typing {
    display: flex;
    gap: 5px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    width: fit-content;
}

.fbs-ai-typing span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: fbs-bounce 1.4s infinite ease-in-out both;
}

.fbs-ai-typing span:nth-child(1) { animation-delay: -0.32s; }
.fbs-ai-typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes fbs-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
