/**
 * Floating Zalo Component
 *
 * @package amed-theme
 */

.floating-zalo {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 1050;
    animation: floating-zalo-float 4s ease-in-out infinite;
}

.floating-zalo__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    text-decoration: none;
    position: relative;
    overflow: visible;
    isolation: isolate;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    
}

.floating-zalo__link:hover,
.floating-zalo__link:focus {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
}

.floating-zalo__link img {
    display: block;
    width: 100%;
    height: auto;
}

.floating-zalo__link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 104, 255, 0.25);
    transform: scale(1);
    animation: floating-zalo-pulse 3s ease-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes floating-zalo-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes floating-zalo-pulse {
    0% {
        opacity: .6;
        transform: scale(1);
    }

    70% {
        opacity: 0;
        transform: scale(1.6);
    }

    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

@media (max-width: 991.98px) {
    .floating-zalo {
        right: 16px;
        bottom: 88px;
    }

    .floating-zalo__link {
        width: 52px;
        height: 52px;
    }
}