/* move keyframes outside #wa-button */
@keyframes whatsapp-pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

#wa-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px 7px;
    height: 46px;
    padding: 0 20px 1px;
    border-radius: 1000px;
    background-color: #25D366;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);

    & span {
        font-family: sans-serif;
        font-weight: 700;
        font-size: 16px;
        color: currentColor;
    }

    &.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    &:hover {
        transform: translateY(-4px);
        background-color: #1ebe57;
    }

    &.pulse-active {
        animation: whatsapp-pulse-animation 2s infinite ease-in-out;
    }

    @media screen and (max-width: 420px) {
        & {
            width: 56px;
            height: 56px;
            padding: 0;
            bottom: 20px;
            right: 20px;
            border-radius: 50%;

            & span {
                display: none;
            }
        }
    }
}