.whatsapp-button {
    position: fixed;
    right: max( 20px, env( safe-area-inset-right ) );
    bottom: max( 20px, env( safe-area-inset-bottom ) );
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #25d366;
    box-shadow: 0 4px 14px rgb(0 0 0 / 22%);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.whatsapp-button:hover {
    background: #1fbd5c;
    box-shadow: 0 6px 18px rgb(0 0 0 / 26%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.whatsapp-button:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

.whatsapp-button--icon-only {
    width: 54px;
    height: 54px;
    padding: 0;
    gap: 0;
    justify-content: center;
    box-sizing: border-box;
}

.whatsapp-button__icon {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
}

@media (max-width: 480px) {
    .whatsapp-button {
        right: max( 14px, env( safe-area-inset-right ) );
        bottom: max( 14px, env( safe-area-inset-bottom ) );
        min-height: 50px;
        padding: 0 16px;
        font-size: 15px;
    }

    .whatsapp-button--icon-only {
        width: 50px;
        height: 50px;
    }

    .whatsapp-button__icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }
}

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