#mcc-floating-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mcc-floating-buttons {
    display: flex;
    flex-direction: column;
    align-items: inherit;
    gap: 10px;
}

.mcc-float-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 35px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    line-height: 1.2;
}

.mcc-float-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: #fff !important;
}

.mcc-btn-hotline {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    animation: mcc-pulse-red 2s infinite;
}

.mcc-btn-zalo {
    background: linear-gradient(135deg, #0068ff, #0052cc);
}

.mcc-btn-chat {
    background: linear-gradient(135deg, #0084ff, #006bce);
}

.mcc-btn-icon {
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mcc-zalo-badge {
    background: #fff;
    color: #0068ff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: -0.3px;
}

@keyframes mcc-pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(244, 63, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.mcc-box-popup {
    width: 360px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
    animation: mcc-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mcc-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mcc-chat-header {
    background: linear-gradient(135deg, #0084ff, #006bce);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
}

.mcc-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mcc-header-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 1px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#mcc-chat-close, #mcc-prechat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

#mcc-chat-close:hover, #mcc-prechat-close:hover {
    opacity: 1;
}

.mcc-prechat-body {
    padding: 20px;
    background: #f8fafc;
}

.mcc-prechat-desc {
    font-size: 13.5px;
    color: #475569;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.45;
}

.mcc-prechat-form .mcc-form-group {
    margin-bottom: 14px;
}

.mcc-prechat-form label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.mcc-prechat-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mcc-prechat-form input:focus {
    border-color: #0084ff;
    box-shadow: 0 0 0 3px rgba(0,132,255,0.15);
}

.mcc-prechat-submit {
    width: 100%;
    background: #0084ff;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.mcc-prechat-submit:hover {
    background: #006bce;
}

.mcc-chat-user-greeting {
    background: #f1f5f9;
    color: #334155;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
    display: none;
}

.mcc-chat-body {
    height: 210px;
    padding: 14px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcc-faq-container {
    padding: 10px 12px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 85px;
    overflow-y: auto;
}

.mcc-faq-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #0084ff;
    padding: 5px 12px;
    border-radius: 18px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mcc-faq-btn:hover {
    background: #0084ff;
    color: #fff;
    border-color: #0084ff;
    transform: translateY(-1px);
}

.mcc-message {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 82%;
    font-size: 14px;
    line-height: 1.45;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.mcc-message.received {
    background: #e4e6eb;
    color: #050505;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.mcc-message.sent {
    background: #0084ff;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.mcc-chat-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    padding: 6px 10px;
}

.mcc-upload-btn {
    cursor: pointer;
    font-size: 20px;
    padding: 4px 6px;
    color: #646970;
    transition: color 0.2s;
}

.mcc-upload-btn:hover {
    color: #0084ff;
}

.mcc-chat-footer input[type="text"] {
    flex: 1;
    border: none;
    padding: 10px 8px;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.mcc-chat-footer button {
    background: #0084ff;
    color: #fff;
    border: none;
    padding: 9px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13.5px;
    transition: background 0.2s;
}

.mcc-chat-footer button:hover {
    background: #006bce;
}

.mcc-chat-img-thumb {
    max-width: 170px;
    max-height: 170px;
    border-radius: 8px;
    margin-top: 6px;
    display: block;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mcc-star {
    color: #cbd5e1;
    transition: color 0.2s, transform 0.2s;
}

.mcc-star:hover,
.mcc-star.active {
    color: #f59e0b;
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .mcc-box-popup {
        width: calc(100vw - 32px);
    }
    #mcc-floating-wrapper {
        right: 16px;
        bottom: 16px;
    }
}
