/* WhatsApp floating button */
.whatsapp-float {
    position: fixed !important;
    right: calc(20px + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 9999 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    width: auto !important;
    height: auto !important;
    padding: 12px 14px;
    border-radius: 999px;
    background-color: #25d366 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none !important;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    -webkit-tap-highlight-color: transparent;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.whatsapp-float:visited {
    color: #fff !important;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
    filter: brightness(1.03);
}

.whatsapp-float:active {
    transform: translateY(0);
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.35);
    outline-offset: 4px;
}

.whatsapp-float__icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.whatsapp-float__icon svg {
    width: 22px !important;
    height: 22px !important;
    display: block;
}

.whatsapp-float__label {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 52px !important;
        height: 52px !important;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .whatsapp-float__label {
        display: none;
    }
}

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

    .whatsapp-float:hover {
        transform: none;
    }
}

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