/* FLOATING CONTACT */
.floating-contact {
    position: fixed;
    top: 70%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 999999;
}

/* TỪNG ITEM, ÉP CẢ 3 ITEM BẰNG NHAU */
.floating-contact-item {
    position: relative;
    width: 62px;
    height: 62px;
    min-width: 62px;
    min-height: 62px;
    max-width: 62px;
    max-height: 62px;
    flex: 0 0 62px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3 NÚT TRÒN, A VÀ BUTTON ĐỀU GIỐNG NHAU */
.floating-contact .floating-contact-button,
.floating-contact a.floating-contact-button,
.floating-contact button.floating-contact-button {
    width: 55px !important;
    height: 55px !important;
    min-width: 55px !important;
    min-height: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
    flex: 0 0 55px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: none !important;
    border-radius: 50% !important;
    background: var(--color-phu) !important;
    color: var(--color-white) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    text-decoration: none !important;
    line-height: 1 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* ICON */
.floating-contact .floating-contact-button i {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    color: var(--color-white) !important;
    font-size: 27px !important;
    line-height: 1 !important;
    transition: transform 0.25s ease;
}

/* HOVER NÚT */
.floating-contact .floating-contact-button:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.floating-contact .floating-contact-button:hover i {
    transform: scale(1.08);
}

/* KHUNG THÔNG TIN KHI HOVER */
.floating-contact-popup {
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%) translateX(15px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    min-height: 48px;
    padding: 10px 18px;
    background: var(--color-phu);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 4;
}

/* CHỮ TRONG KHUNG */
.floating-contact-popup a {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--color-white) !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
}

/* HOVER ITEM → HIỆN KHUNG */
.floating-contact-item:hover .floating-contact-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

/* QR CODE POPUP */
.floating-contact-qr-popup {
    width: 150px;
    height: 150px;
    min-height: 150px;
    padding: 8px;
    background: var(--color-white);
}

/* Mũi tên QR */
.floating-contact-qr-popup::after {
    border-left-color: #ffffff;
}

/* ẢNH QR */
.floating-contact-qr-popup img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: contain;
}

/* TABLET */
@media screen and (max-width: 991px) {
    .floating-contact {
        right: 10px;
    }

    .floating-contact-item {
        width: 58px;
        height: 58px;
        min-width: 58px;
        min-height: 58px;
        max-width: 58px;
        max-height: 58px;
        flex-basis: 58px;
    }

    .floating-contact .floating-contact-button,
    .floating-contact a.floating-contact-button,
    .floating-contact button.floating-contact-button {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
        max-width: 58px !important;
        max-height: 58px !important;
        flex-basis: 58px !important;
    }

    .floating-contact .floating-contact-button i {
        font-size: 26px !important;
    }

    .floating-contact-popup {
        right: 48px;
        min-height: 46px;
        padding: 9px 16px;
    }

    .floating-contact-popup a {
        font-size: 15px;
    }
}

/* MOBILE */
@media screen and (max-width: 549px) {
    .floating-contact {
		top: 70%;
        right: 8px;
    }

    /* CẢ 3 ITEM BẰNG NHAU */
    .floating-contact-item {
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
        max-width: 52px;
        max-height: 52px;
        flex-basis: 52px;
    }

    /* CẢ 3 NÚT BẰNG NHAU */
    .floating-contact .floating-contact-button,
    .floating-contact a.floating-contact-button,
    .floating-contact button.floating-contact-button {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
        flex-basis: 52px !important;
    }

    .floating-contact .floating-contact-button i {
        font-size: 23px !important;
    }

    .floating-contact-popup {
        right: 43px;
        min-height: 42px;
        max-width: calc(100vw - 70px);
        padding: 8px 12px;
    }

    .floating-contact-popup a {
        font-size: 13px;
    }

    .floating-contact-qr-popup {
        width: 125px;
        height: 125px;
        min-height: 125px;
    }
}