﻿/* Estilos do Botão do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

    .whatsapp-float:hover {
        background-color: #20ba5a;
        transform: scale(1.1);
        box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.35);
    }

.whatsapp-icon {
    width: 34px;
    height: 34px;
    fill: #ffffff;
}

/* Tooltip (Balão de texto ao lado) */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

    .whatsapp-tooltip::after {
        content: "";
        position: absolute;
        top: 50%;
        right: -5px;
        margin-top: -5px;
        border-width: 5px 0 5px 5px;
        border-style: solid;
        border-color: transparent transparent transparent #333;
    }

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Animação de Pulso */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ajuste para dispositivos móveis */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none; /* Oculta tooltip no mobile para não poluir */
    }
}
