/* WhatsApp contact: floating button, Contact page button, footer icon */
.whatsapp-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

.whatsapp-float {
    position: fixed;
    right: calc(20px + env(safe-area-inset-right));
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}

.whatsapp-float:focus-visible {
    outline: 3px solid #128c7e;
    outline-offset: 3px;
}

.btn.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25d366;
    border-color: #25d366;
    color: #fff;
}

.btn.btn-whatsapp:hover,
.btn.btn-whatsapp:focus-visible {
    background-color: #1ebe5b;
    border-color: #1ebe5b;
    color: #fff;
}

.btn.btn-whatsapp .whatsapp-icon {
    font-size: 20px;
}

@media (max-width: 575px) {
    .whatsapp-float {
        right: calc(16px + env(safe-area-inset-right));
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: 52px;
        height: 52px;
        font-size: 28px;
    }

    .btn.btn-whatsapp {
        width: 100%;
    }
}

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

    .whatsapp-float:hover,
    .whatsapp-float:focus-visible {
        transform: none;
    }
}

@media print {
    .whatsapp-float {
        display: none;
    }
}
