/* style.css */
.whatsapp-flutuante-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Mobile - ajuste para não sobrepor menu inferior */
@media (max-width: 768px) {
    .whatsapp-flutuante-container {
        bottom: 90px;
    }
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    position: relative;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button ion-icon {
    font-size: 35px;
    color: white;
    transition: all 0.3s ease;
}

/* Gerenciamento dos ícones */
.whatsapp-button .close-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

.whatsapp-button.active .whatsapp-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

.whatsapp-button.active .close-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.whatsapp-contacts {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    width: 250px;
}

.whatsapp-contact {
    display: flex;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.whatsapp-contact:hover {
    background-color: #f5f5f5;
}

.whatsapp-contact ion-icon {
    font-size: 24px;
    color: #25D366;
    margin-right: 10px;
}

.contact-name {
    font-weight: 500;
    font-size: 14px;
}

/* Animação de fade */
.whatsapp-contacts.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}