/* =====================================================
   Sticky Social Buttons — Telegram & Viber (right edge)
   ===================================================== */
.ftb-sticky-socials {
    display: contents;
}

/* Base button — position: fixed right: 0 guarantees width expands to the LEFT */
.ftb-sticky-social {
    position: fixed !important;
    right: 0 !important;
    z-index: 999999;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    width: 52px;
    height: 52px;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: -3px 3px 14px rgba(0, 0, 0, 0.22);
    transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.32s ease;
    cursor: pointer;
}

/* Vertical positioning — center both buttons as a pair */
.ftb-sticky-social--telegram {
    top: calc(50% - 56px);  /* 50% - (52px + 8px gap)/2 - 52px/2 */
}
.ftb-sticky-social--viber {
    top: calc(50% + 4px);   /* 50% + gap/2 */
}

.ftb-sticky-social:hover {
    width: 168px;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.32);
    text-decoration: none !important;
}

/* Label (left side, invisible until expanded) */
.ftb-sticky-social__label {
    flex: 1 1 0%;
    min-width: 0;
    padding-left: 14px;
    color: #fff;
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.18s ease 0.1s;
    pointer-events: none;
    user-select: none;
}

.ftb-sticky-social:hover .ftb-sticky-social__label {
    opacity: 1;
}

/* Icon (right side, always visible) */
.ftb-sticky-social__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
}

.ftb-sticky-social__icon img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Brand colours */
.ftb-sticky-social--telegram       { background-color: #29A9EB; }
.ftb-sticky-social--telegram:hover { background-color: #1a96d8; }
.ftb-sticky-social--viber          { background-color: #7360F2; }
.ftb-sticky-social--viber:hover    { background-color: #5f4dd4; }

/* ── Mobile ── */
@media (max-width: 767px) {
    .ftb-sticky-social {
        top: auto !important;
        width: 46px !important;
        height: 46px;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    }

    .ftb-sticky-social:hover {
        width: 46px !important;
    }

    .ftb-sticky-social--telegram { bottom: 76px; }
    .ftb-sticky-social--viber    { bottom: 20px; }

    .ftb-sticky-social__label { display: none; }

    .ftb-sticky-social__icon {
        width: 46px;
        height: 46px;
    }

    .ftb-sticky-social__icon img {
        width: 22px;
        height: 22px;
    }
}
