﻿/* ===== Contact Dock (fixed) ===== */
.contact-dock {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9990; /* dưới lightbox 9999 */
}

/* Nút tròn */
.cd-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

    .cd-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 28px rgba(0,0,0,.22);
    }

    .cd-btn:active {
        transform: translateY(0);
    }

/* Icon size */
.cd-ic {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Brand colors */
.cd-zalo {
    background: #0068ff;
}
/* Zalo xanh */
.cd-fb {
    background: #1877f2;
}
/* Facebook xanh */
.cd-phone {
    background: #10b981;
}
/* Emerald cho Phone */

/* Tooltip label */
.cd-tip {
    position: absolute;
    right: 54px;
    white-space: nowrap;
    background: rgba(17,24,39,.92);
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity .15s ease, transform .15s ease;
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(4px);
}

.cd-btn:hover .cd-tip {
    opacity: 1;
    transform: translateX(0);
}
/* icon dạng <img> cho brand chuẩn */
.cd-icon {
    width: 22px;
    height: 22px;
    display: block;
}


/* Mobile: thu nhỏ, ẩn tooltip để khỏi che */
@media (max-width: 576px) {
    .contact-dock {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }

    .cd-btn {
        width: 44px;
        height: 44px;
    }

    .cd-ic {
        width: 20px;
        height: 20px;
    }

    .cd-tip {
        display: none;
    }
}
