/* WhatsApp Widget Styles - Copiado da referência */

:root {
    --verde-whatsapp: #25D366;
    --chat-bg: #ffffff;
    --chat-text: #333333;
    --chat-shadow: rgba(0, 0, 0, 0.15);
}

/* ESTILO DO BOTÃO FLUTUANTE DO WHATSAPP */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--verde-whatsapp);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    text-decoration: none; /* Garante que não tenha sublinhado */
}

.whatsapp-button img {
    width: 35px; /* Tamanho do ícone fixo */
    height: 35px;
    object-fit: contain;
    display: block; /* Remove espaços extras de inline-block */
    margin: 0; /* Garante que não tenha margens externas */
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* ESTILO DO CHAT BOX (BALÃO DE MENSAGEM) */
.whatsapp-chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 280px;
    background-color: var(--chat-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--chat-shadow);
    padding: 15px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    font-family: Arial, sans-serif;
}

.whatsapp-chat-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-chat-box::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 25px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--chat-bg) transparent transparent transparent;
}

.whatsapp-chat-text {
    color: var(--chat-text);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 0;
}

.whatsapp-chat-close {
    position: absolute;
    top: 5px;
    right: 8px;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    padding: 2px;
}

.whatsapp-chat-close:hover {
    color: #555;
}

/* Responsividade */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        width: 50px; /* Um pouco menor no mobile se necessário, mas vou manter 60px se a referência não muda */
        height: 50px;
    }
    .whatsapp-button img {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-chat-box {
        right: 15px;
        bottom: 80px;
        width: 250px;
    }
    
    .whatsapp-chat-box::after {
        right: 20px;
    }
}
