.whatsapp-button {
    align-items: center;
    background: #25d366;
    border-radius: 50%;
    bottom: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 4px 16px rgb(0 0 0 / 24%);
    color: #fff;
    display: flex;
    height: 50px;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 10px;
    right: calc(10px + env(safe-area-inset-right, 0px));
    transition: box-shadow 160ms ease, transform 160ms ease;
    width: 50px;
    z-index: 10000;
}

.whatsapp-button.is-visible {
    animation: whatsapp-button-fade-in 0.3s ease-in;
    opacity: 1;
    pointer-events: auto;
}

@keyframes whatsapp-button-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.whatsapp-button__icon {
    display: block;
    height: 28px;
    width: 28px;
}

.whatsapp-button:focus-visible {
    outline: 3px solid var(--color-ginger, #d96b38);
    outline-offset: 4px;
}

@media (hover: hover) {
    .whatsapp-button:hover {
        box-shadow: 0 6px 20px rgb(0 0 0 / 32%);
        color: #fff;
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-button {
        transition: none;
    }

    .whatsapp-button.is-visible {
        animation: none;
    }
}
