/* ============================================================
   TELEGRAM FLOAT BUTTON WIDGET
   ============================================================ */
.telegram-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1500;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: telegramBounce 3s ease-in-out infinite;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.telegram-float.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.telegram-float__icon {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fad17a, #c89b3c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--color-primary);;
    transition: transform 0.3s ease;
}

.telegram-float:hover .telegram-float__icon {
    transform: scale(1.1);
}

.telegram-float__icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.telegram-float__wave {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 187, 0, 0.4);
    animation: telegramWave 2.5s ease-out infinite;
    z-index: 1;
}

.telegram-float__wave:nth-child(2) {
    animation-delay: 0.8s;
}

.telegram-float__wave:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes telegramWave {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes telegramBounce {
    0%, 100% { transform: translateY(0); }
    10% { transform: translateY(-8px); }
    20% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
    40% { transform: translateY(0); }
}

.telegram-float.visible {
    animation: telegramBounce 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .telegram-float {
        bottom: 90px;
        right: 16px;
    }
    .telegram-float__icon {
        width: 50px;
        height: 50px;
    }
    .telegram-float__icon svg {
        width: 24px;
        height: 24px;
    }
    .telegram-float__wave {
        width: 50px;
        height: 50px;
    }
}
