/* Floating Telegram technical-support control */
.sc-telegram-float {
    position: fixed;
    z-index: 1050;
    right: 18px;
    bottom: 26px;
    left: auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 11px;
    min-height: 54px;
    padding: 8px 16px 8px 9px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 17px;
    background: linear-gradient(135deg, #05c5f3 0%, #1599d7 100%);
    color: #011633 !important;
    box-shadow: 0 13px 31px rgba(5, 145, 211, 0.34);
    text-decoration: none !important;
    direction: rtl !important;
    text-align: right !important;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.sc-telegram-float::before {
    position: absolute;
    z-index: -1;
    top: -70%;
    inset-inline-start: -40%;
    width: 65%;
    height: 240%;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    content: "";
    transform: translateX(-170%) rotate(18deg);
    animation: sc-telegram-shine 6.8s ease-in-out infinite;
}

.sc-telegram-float:hover,
.sc-telegram-float:focus {
    color: #011633 !important;
    filter: brightness(1.04);
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(5, 145, 211, 0.42);
    outline: 0;
}

.sc-telegram-float-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
}

.sc-telegram-float-icon img {
    display: block;
    width: 20px;
    height: 20px;
    max-width: none;
}

.sc-telegram-float-copy {
    display: flex;
    flex-direction: column;
    direction: rtl !important;
    line-height: 1.2;
    text-align: right !important;
}

.sc-telegram-float-copy strong {
    display: block;
    color: #011633;
    font-family: Tajawal, Arial, sans-serif;
    font-size: 13px;
    font-weight: 800;
    direction: rtl;
    text-align: right;
}

.sc-telegram-float-copy small {
    display: block;
    margin-top: 3px;
    color: #011633;
    font-family: Tajawal, Arial, sans-serif;
    font-size: 11px;
    direction: rtl;
    text-align: right;
}

@keyframes sc-telegram-shine {
    0%,
    64%,
    100% {
        transform: translateX(-170%) rotate(18deg);
    }

    75%,
    86% {
        transform: translateX(370%) rotate(18deg);
    }
}

/* Tablet and mobile screens */
@media (max-width: 767px) {
    .sc-telegram-float {
        right: 17px;
        bottom: 18px;
        left: auto;
        min-height: 50px;
        padding: 7px 13px 7px 8px;
        border-radius: 15px;
    }

    .sc-telegram-float-icon {
        width: 35px;
        height: 35px;
        border-radius: 11px;
    }

    .sc-telegram-float-copy strong {
        font-size: 12px;
    }

    .sc-telegram-float-copy small {
        font-size: 10px;
    }
}

/* Very small mobile screens: show icon only */
@media (max-width: 420px) {
    .sc-telegram-float {
        width: 50px;
        height: 50px;
        min-height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 15px;
    }

    .sc-telegram-float-icon {
        width: 50px;
        height: 50px;
        background: transparent;
    }

    .sc-telegram-float-icon img {
        width: 23px;
        height: 23px;
    }

    .sc-telegram-float-copy {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .sc-telegram-float::before {
        animation: none;
    }

    .sc-telegram-float {
        transition: none;
    }
    /* Move Telegram support button to the bottom-left */
.sc-telegram-float {
    right: auto !important;
    left: 18px !important;
    direction: rtl !important;
    text-align: right !important;
}

@media (max-width: 767px) {
    .sc-telegram-float {
        right: auto !important;
        left: 17px !important;
    }
}
}
