/* Estilos do botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 990;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    animation: none;
}

.whatsapp-float.active {
    background-color: #128c7e;
    animation: none;
}

/* Estilos do balão do WhatsApp */
.whatsapp-balloon {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 991;
    padding: 15px;
    animation: fadeIn 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.balloon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.balloon-close {
    color: #aaa;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.balloon-close:hover {
    color: black;
}

.whatsapp-balloon h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

#whatsapp-balloon-form {
    display: flex;
    flex-direction: column;
}

#whatsapp-balloon-form label {
    margin-top: 10px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

#whatsapp-balloon-form input,
#whatsapp-balloon-form select,
#whatsapp-balloon-form textarea {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

#whatsapp-balloon-form input:focus,
#whatsapp-balloon-form select:focus,
#whatsapp-balloon-form textarea:focus {
    border-color: #25d366;
    outline: none;
}

#balloon-produto-info {
    margin-top: 10px;
    font-style: italic;
    font-size: 14px;
    color: #666;
    background-color: #f9f9f9;
    padding: 8px;
    border-radius: 4px;
}

#whatsapp-balloon-form button {
    margin-top: 15px;
    padding: 10px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

#whatsapp-balloon-form button:hover {
    background-color: #128c7e;
}

#whatsapp-balloon-form .error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.whatsapp-status {
    position: fixed;
    bottom: 20px;
    right: 90px;
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: none;
    z-index: 992;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .whatsapp-balloon {
        width: 280px;
        right: 10px;
        bottom: 80px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
        right: 10px;
        bottom: 10px;
    }
    
    .whatsapp-status {
        right: 70px;
        font-size: 12px;
    }
}