.whatsapp-button-container {
    position: fixed;
    bottom: 7.5em;
    right: 0;
    margin: 0 1.25em 1.25em 1.25em;
    z-index: 999999;
    cursor: pointer;
    transform: scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-button-container.show {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.whatsapp-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: #25d366;
    border-radius: 50%;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.whatsapp-button svg {
    width: 30px;
    height: 30px;
    display: block;
    fill: #fff;
}

.whatsapp-button:before,
.whatsapp-button:after {
    content: " ";
    display: block;
    position: absolute;
    border: 1px solid #00d95f;
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    opacity: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
}

.whatsapp-button:before {
    -webkit-animation: animate 1.5s linear infinite;
    animation: animate 1.5s linear infinite;
}

.whatsapp-button:after {
    -webkit-animation: animate2 1.5s linear infinite;
    animation: animate2 1.5s linear infinite;
}

@keyframes animate {
    0% {
        -webkit-transform: scale(.5);
        transform: scale(.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes animate2 {
    0% {
        -webkit-transform: scale(.2);
        transform: scale(.2);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-button-container {
        bottom: 6em;
        margin-right: 1em;
        margin-left: 1em;
    }

    .whatsapp-button {
        width: 54px;
        height: 54px;
    }

    .whatsapp-button svg {
        width: 26px;
        height: 26px;
    }

    .whatsapp-button:before,
    .whatsapp-button:after {
        left: -14px;
        right: -14px;
        top: -14px;
        bottom: -14px;
    }
}
