.floating-whatsapp {
    position: fixed;
    left: 28px;
    bottom: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 62px;
    padding: 0 15px 0 10px;
    background: #25d366;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18),
        0 4px 10px rgba(37, 211, 102, 0.3);
    direction: rtl;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.floating-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-4px);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.22),
        0 6px 18px rgba(37, 211, 102, 0.38);
}

.whatsapp-icon {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border-radius: 50%;
}

.whatsapp-icon svg {
    width: 27px;
    height: 27px;
    fill: #25d366;
}

.whatsapp-icon::before,
.whatsapp-icon::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 2px solid rgba(37, 211, 102, 0.4);
    border-radius: 50%;
    animation: whatsappPulse 2.4s infinite;
    pointer-events: none;
}

.whatsapp-icon::after {
    animation-delay: 1.2s;
}

.whatsapp-text {
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.45);
        opacity: 0;
    }

    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@media screen and (max-width: 600px) {
    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
        width: 58px;
        height: 58px;
        padding: 0;
        justify-content: center;
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-whatsapp,
    .whatsapp-icon::before,
    .whatsapp-icon::after {
        animation: none;
        transition: none;
    }
}