/* Chỉ áp dụng cho plugin, không sửa .row/.container của Flatsome */

.tlcb,
.tlcb *,
.tlcb *::before,
.tlcb *::after {
    box-sizing: border-box;
}

.tlcb {
    position: fixed;
    z-index: 9999;
    bottom: var(--tlcb-bottom, 24px);

    display: flex;
    flex-direction: column;
    gap: 12px;

    width: 56px;
}

.tlcb--right {
    right: 22px;
}

.tlcb--left {
    left: 22px;
}

.tlcb__button {
    position: relative;

    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;
    padding: 0;

    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 17px;

    color: #fff !important;
    text-decoration: none !important;

    box-shadow: 0 12px 28px rgba(16, 24, 40, .22);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.tlcb__button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 18px 36px rgba(16, 24, 40, .29);
}

.tlcb__button:focus-visible {
    outline: 3px solid #f7941d;
    outline-offset: 4px;
}

.tlcb__button svg {
    display: block;
    width: 25px;
    height: 25px;
}

.tlcb__button--phone {
    background: linear-gradient(145deg, #24c878, #0b9b56);
}

.tlcb__button--facebook {
    background: linear-gradient(145deg, #17a8ff, #0065e8);
}

.tlcb__button--zalo {
    background: linear-gradient(145deg, #1687ff, #005ce6);
}

.tlcb__zalo {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.05em;
}

/* Nhãn hover */

.tlcb__label {
    position: absolute;
    top: 50%;
    right: calc(100% + 12px);

    padding: 8px 12px;

    border-radius: 9px;

    background: #102a43;
    color: #fff;

    box-shadow: 0 8px 22px rgba(16, 24, 40, .18);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transform: translate(5px, -50%);

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.tlcb--left .tlcb__label {
    right: auto;
    left: calc(100% + 12px);
    transform: translate(-5px, -50%);
}

.tlcb__button:hover .tlcb__label,
.tlcb__button:focus-visible .tlcb__label {
    opacity: 1;
    transform: translate(0, -50%);
}

.tlcb--no-labels .tlcb__label {
    display: none;
}

@media (max-width: 549px) {
    .tlcb {
        width: 48px;
        gap: 9px;
    }

    .tlcb--right {
        right: 12px;
    }

    .tlcb--left {
        left: 12px;
    }

    .tlcb__button {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .tlcb__button svg {
        width: 22px;
        height: 22px;
    }

    /* Mobile không có hover ổn định */
    .tlcb__label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tlcb__button,
    .tlcb__label {
        transition: none;
    }
}