/* Container chính - Nâng khoảng cách đáy lên 95px */
#mcc-chatbot-wrapper {
    position: fixed !important;
    bottom: 95px !important;
    right: 25px !important;
    z-index: 999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Nút Bật/Tắt Chatbot Floating */
#mcc-chatbot-toggle {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    background: #0073aa !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(0, 115, 170, 0.4) !important;
    transition: transform 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

#mcc-chatbot-toggle:hover {
    transform: scale(1.08) !important;
}

#mcc-chatbot-toggle svg {
    width: 28px !important;
    height: 28px !important;
    stroke: #ffffff !important;
}

/* Khung Chat */
#mcc-chatbot-box {
    width: 350px !important;
    height: 480px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: absolute !important;
    bottom: 70px !important;
    right: 0 !important;
    border: 1px solid #e2e8f0 !important;
}

#mcc-chatbot-box.mcc-hidden {
    display: none !important;
}

/* Header */
.mcc-chatbot-header {
    background: #0073aa !important;
    color: #ffffff !important;
    padding: 14px 18px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#mcc-chatbot-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #ffffff !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

#mcc-chatbot-close:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}

/* Body (Nội dung chat) */
.mcc-chatbot-body {
    flex: 1 !important;
    padding: 15px !important;
    overflow-y: auto !important;
    background: #f8f9fa !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* Bong bóng tin nhắn */
.mcc-msg {
    max-width: 80% !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
}

.mcc-msg-bot {
    background: #ffffff !important;
    color: #2c3e50 !important;
    align-self: flex-start !important;
    border-bottom-left-radius: 4px !important;
    border: 1px solid #e2e8f0 !important;
}

.mcc-msg-user {
    background: #0073aa !important;
    color: #ffffff !important;
    align-self: flex-end !important;
    border-bottom-right-radius: 4px !important;
}

.mcc-loading {
    font-style: italic !important;
    color: #7f8c8d !important;
    background: #edf2f7 !important;
    border: none !important;
}

.mcc-msg-error {
    background: #fff0f0 !important;
    color: #e74c3c !important;
    border: 1px solid #fbcaca !important;
}

/* Footer (Ô nhập tin nhắn) */
.mcc-chatbot-footer {
    display: flex !important;
    align-items: center !important;
    padding: 12px !important;
    border-top: 1px solid #edf2f7 !important;
    background: #ffffff !important;
}

#mcc-input-msg {
    flex: 1 !important;
    padding: 9px 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    outline: none !important;
    font-size: 14px !important;
    background: #ffffff !important;
    color: #333333 !important;
}

#mcc-input-msg:focus {
    border-color: #0073aa !important;
}

#mcc-send-btn {
    margin-left: 8px !important;
    padding: 8px 16px !important;
    background: #0073aa !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

#mcc-send-btn:hover {
    background: #005680 !important;
}