/* HK Contact Buttons */
.hkcb-wrap {
    position: fixed;
    z-index: 9998;
    bottom: var(--hkcb-desktop-bottom);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: inherit;
}

.hkcb-pos-left { left: 18px; align-items: flex-start; }
.hkcb-pos-right { right: 18px; align-items: flex-end; }

.hkcb-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 8px;
    border-radius: 999px;
    color: var(--hkcb-text) !important;
    text-decoration: none !important;
    font-weight: 600;
    line-height: 1.15;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.hkcb-btn:hover {
    transform: translateY(-2px);
    filter: brightness(.94);
    box-shadow: 0 10px 28px rgba(0,0,0,.24);
}

.hkcb-zalo { background: var(--hkcb-zalo); }
.hkcb-phone { background: var(--hkcb-phone); }

.hkcb-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    background: rgba(255,255,255,.16);
}

.hkcb-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hkcb-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.hkcb-number {
    font-weight: 700;
}

.hkcb-no-desktop-label .hkcb-label {
    display: none;
}

.hkcb-no-desktop-label .hkcb-btn {
    padding: 7px;
}

@media (max-width: 849px) {
    /* Drawer/overlay của Flatsome luôn nằm trên plugin */
    .mfp-wrap, .mfp-bg, #main-menu {
        z-index: 100000 !important;
    }

    .hkcb-wrap.hkcb-mobile-bar {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding: 0;
        background: rgba(17,17,17,.96);
        box-shadow: 0 -8px 24px rgba(0,0,0,.18);
        backdrop-filter: blur(8px);
        z-index: 9990;
    }

    .hkcb-mobile-bar .hkcb-btn {
        min-height: 54px;
        justify-content: center;
        border-radius: 0;
        padding: 8px 10px;
        box-shadow: none;
        gap: 8px;
    }

    .hkcb-mobile-bar .hkcb-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .hkcb-mobile-bar .hkcb-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .hkcb-mobile-bar .hkcb-label {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        font-size: 12px;
    }

    .hkcb-mobile-bar .hkcb-number {
        font-size: 12px;
    }

    .hkcb-wrap.hkcb-mobile-floating {
        bottom: var(--hkcb-mobile-bottom);
        gap: 8px;
    }

    .hkcb-mobile-floating.hkcb-pos-left { left: 12px; }
    .hkcb-mobile-floating.hkcb-pos-right { right: 12px; }

    .hkcb-mobile-floating .hkcb-label {
        display: none;
    }

    .hkcb-mobile-floating .hkcb-btn {
        width: 48px;
        height: 48px;
        min-height: 48px;
        padding: 7px;
        border-radius: 50%;
        justify-content: center;
    }

    .hkcb-mobile-floating .hkcb-icon {
        background: transparent;
    }

    /* Chừa chỗ cho contact bar để không che nội dung cuối trang */
    body:has(.hkcb-mobile-bar) {
        padding-bottom: 54px;
    }
}
