/* =========================================================
 * GLOBAL FLOATING MENU
 * ========================================================= */

.fhs-floating-global {

    position: fixed !important;

    top:
        var(--fhs-floating-top, 90px)
        !important;

    right: 0 !important;

    left: auto !important;

    bottom: auto !important;

    z-index: 999999 !important;

    display: flex;

    align-items: flex-start;

}


/* =========================================================
 * PANEL
 * ========================================================= */

.fhs-floating-global
.fhs-floating-panel {

    background:
        var(--fhs-floating-bg, #0b6fa4);

    color:
        var(--fhs-floating-color, #fff);

    padding:
        10px 8px;

    border-radius:
        var(--fhs-floating-radius, 20px)
        0
        0
        var(--fhs-floating-radius, 20px);

    transform:
        translateX(100%);
transform: translateX(calc(100% - 42px));
    transition:
        transform .3s ease;

    box-shadow:
        0 4px 20px rgba(0,0,0,.15);

}


/* =========================================================
 * HOVER
 * ========================================================= */

.fhs-floating-global:hover
.fhs-floating-panel {

    transform:
        translateX(0);

}


/* =========================================================
 * ITEMS
 * ========================================================= */

.fhs-floating-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        10px 0;

    color:
        var(--fhs-floating-color, #fff)
        !important;

    text-decoration: none
        !important;

    white-space: nowrap;

    border-bottom:
        1px solid
        rgba(255,255,255,.15);

}


.fhs-floating-item:last-child {

    border-bottom: 0;

}


.fhs-floating-item:hover {

    color:
        var(--fhs-floating-color, #fff)
        !important;

}


/* =========================================================
 * ICON
 * ========================================================= */

.fhs-floating-icon {

    width: 28px;

    height: 28px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}


.fhs-floating-icon img {

    display: block;

    width: 24px;

    height: 24px;

    object-fit: contain;

}


/* =========================================================
 * LABEL
 * ========================================================= */

.fhs-floating-label {

    line-height: 1.2;

}


/* =========================================================
 * TAB
 * ========================================================= */

.fhs-floating-tab {
    
    width: 42px;

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    background:
        var(--fhs-floating-bg, #0b6fa4);

    color:
        var(--fhs-floating-color, #fff);

    border-radius:
        20px
        0
        0
        20px;

    box-shadow:
        0 4px 20px rgba(0,0,0,.15);
    display: none;

}


/* =========================================================
 * ARROW
 * ========================================================= */

.fhs-floating-tab span {

    font-size: 25px;

    line-height: 1;

    transition:
        transform .3s ease;

}


/* Hover -> đổi hướng */

.fhs-floating-global:hover
.fhs-floating-tab span {

    transform:
        rotate(180deg);

}


/* =========================================================
 * MOBILE
 * ========================================================= */

@media (max-width: 767px) {

    .fhs-floating-global {

        top:
            var(--fhs-floating-top, 90px)
            !important;

    }


    .fhs-floating-global
    .fhs-floating-panel {

        padding:
            8px 12px;

    }


    .fhs-floating-tab {

        width: 38px;

        height: 48px;

    }


    .fhs-floating-item {

        padding:
            8px 0;

    }


    .fhs-floating-label {

        font-size: 14px;

    }

}