/* Botão flutuante WhatsApp — visual premium (configuração de referência) */
.whatsapp-float {
    position: fixed;
    right: max(22px, calc(22px + env(safe-area-inset-right, 0px)));
    bottom: max(22px, calc(22px + env(safe-area-inset-bottom, 0px)));
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: linear-gradient(155deg, #25d366, #1aae54);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.4), 0 0 0 8px rgba(37, 211, 102, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    z-index: 10000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: whatsapp-pop 2.6s ease-in-out infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: none;
    fill: currentColor;
    flex-shrink: 0;
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.5), 0 0 0 10px rgba(37, 211, 102, 0.2);
}

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

@keyframes whatsapp-pop {

    0%,
    50%,
    100% {
        transform: scale(1);
    }

    55% {
        transform: scale(1.05);
    }

    60% {
        transform: scale(1);
    }
}

@media (max-width: 760px) {
    .whatsapp-float {
        right: max(16px, calc(16px + env(safe-area-inset-right, 0px)));
        bottom: max(16px, calc(16px + env(safe-area-inset-bottom, 0px)));
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 29px;
        height: 29px;
    }
}

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

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