/* Khung Chat Chính (phiên bản widget trong nội dung) */
#mbc-chat-widget-container {
    width: 100%; /* Chiếm toàn bộ chiều rộng của cột Elementor */
    height: 75vh; /* Chiều cao bằng 75% chiều cao màn hình */
    min-height: 550px; /* Chiều cao tối thiểu để đảm bảo giao diện không bị vỡ */
    background-color: #ffffff;
    border: 2px solid #4f726c; /* MÃ MÀU VIỀN THEO YÊU CẦU CỦA ÔNG */
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: sans-serif;
}

/* Header */
#mbc-chat-header {
    background-color: #f7f9f9; /* Màu nền header nhẹ nhàng */
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
#mbc-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Khu vực Lịch sử Chat */
#mbc-chat-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}
.mbc-message {
    margin-bottom: 16px;
    max-width: 85%;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}
.mbc-message p {
    margin: 0;
    padding: 12px 16px;
    border-radius: 18px;
}

/* Tin nhắn của AI */
.mbc-ai-message {
    align-self: flex-start;
    align-items: flex-start;
}
.mbc-ai-message p {
    background-color: #f1f3f4;
    color: #202124;
    border-bottom-left-radius: 4px;
}

/* Tin nhắn của Người dùng */
.mbc-user-message {
    align-self: flex-end;
    align-items: flex-end;
}
.mbc-user-message p {
    background-color: #d2e3fc;
    color: #001d35;
    border-bottom-right-radius: 4px;
}

/* Khu vực Nhập liệu */
#mbc-chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f7f9f9;
    flex-shrink: 0;
}
#mbc-typing-indicator {
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 8px;
    font-style: italic;
}
#mbc-chat-form {
    display: flex;
    align-items: center;
}
#mbc-user-input {
    flex-grow: 1;
    border: 1px solid #dadce0;
    border-radius: 24px;
    padding: 12px 18px;
    font-size: 15px;
    resize: none;
    max-height: 120px;
    overflow-y: auto;
    margin-right: 12px;
    background-color: #fff;
}
#mbc-user-input:focus {
    outline: none;
    border-color: #4f726c; /* Màu viền khi focus */
    box-shadow: 0 0 0 2px rgba(79, 114, 108, 0.2);
}
#mbc-send-btn {
    background: #4f726c; /* MÀU NÚT GỬI THEO MÀU VIỀN */
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
}
#mbc-send-btn:hover {
    background-color: #3a544f; /* Màu đậm hơn khi hover */
}
#mbc-send-btn svg {
    width: 20px;
    height: 20px;
}