/* ==========================================================================
   CSS CHO WIDGET LIÊN HỆ ĐA KÊNH (MY CONTACT BLOCK)
   ========================================================================== */

/* --- Reset & Layout --- */
#mcb-widget-container * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#mcb-widget-container {
    position: fixed; 
    bottom: 24px; 
    right: 24px; 
    z-index: 999999;
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    gap: 14px;
    max-width: 100%;
    pointer-events: none; 
}

.mcb-btn, 
.mcb-phone-wrapper,
.mcb-phone-list {
    pointer-events: auto;
}

/* --- Nút Widget Chung --- */
.mcb-btn {
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    color: #fff;
    text-decoration: none; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; 
    border: none; 
    outline: none;
}

.mcb-btn:hover { 
    transform: scale(1.1); 
    box-shadow: 0 6px 14px rgba(0,0,0,0.2); 
}

.mcb-btn-messenger { background: linear-gradient(to top right, #00c6ff, #0072ff); }
.mcb-btn-zalo { background: #0068FF; font-weight: bold; font-size: 13px; }
.mcb-btn-phone { width: 56px; height: 56px; background: #10b981; }
.mcb-btn-phone:hover { background: #059669; }

.mcb-ring-animation { animation: mcb-ring 1.5s infinite; }

@keyframes mcb-ring {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Wrapper & Tooltip --- */
.mcb-phone-wrapper { 
    position: relative; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.mcb-phone-tooltip {
    background: #fff; 
    color: #1e293b; 
    padding: 6px 12px; 
    border-radius: 8px;
    font-size: 14px; 
    font-weight: 700; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0; 
    opacity: 0; 
    transform: translateX(15px); 
    transition: all 0.3s ease; 
    pointer-events: none; 
    white-space: nowrap;
}

.mcb-phone-wrapper:hover .mcb-phone-tooltip { 
    opacity: 1; 
    transform: translateX(0); 
}

/* --- Danh Sách Chọn Số Điện Thoại --- */
.mcb-phone-list {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 24px;
    width: 240px;
    max-width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    z-index: 10;
}

.mcb-phone-list.mcb-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mcb-phone-list-header {
    background: #f8fafc;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcb-phone-list-body {
    display: flex;
    flex-direction: column;
}

.mcb-phone-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.mcb-phone-item:last-child {
    border-bottom: none;
}

.mcb-phone-item:hover {
    background: #f1f5f9;
}

.mcb-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #d1fae5;
    color: #059669;
    border-radius: 50%;
    flex-shrink: 0;
}

.mcb-phone-number {
    font-size: 16px;
    font-weight: 700;
}

.fb_dialog { 
    display: none !important; 
}

@media screen and (max-width: 767px) {
    .mcb-phone-tooltip {
        display: none !important;
    }
    .mcb-phone-wrapper {
        gap: 0;
    }
}