/**
 * F9 WhatsApp Chat - Estilos
 */

/* Contêiner principal */
.f9-whatsapp-chat {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
}

/* Posicionamento */
.f9-whatsapp-right {
    right: 20px;
}

.f9-whatsapp-left {
    left: 20px;
}

/* Botão de WhatsApp */
.f9-whatsapp-button {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.f9-whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.f9-whatsapp-icon {
    width: 35px;
    height: 35px;
    color: white;
}

/* Popup de chat */
.f9-whatsapp-popup {
    position: absolute;
    bottom: 80px;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.f9-whatsapp-right .f9-whatsapp-popup {
    right: 0;
}

.f9-whatsapp-left .f9-whatsapp-popup {
    left: 0;
}

/* Cabeçalho do chat */
.f9-whatsapp-header {
    background-color: #075E54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.f9-whatsapp-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    line-height: 20px;
}

.f9-whatsapp-logo {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.f9-whatsapp-icon-small {
    width: 20px;
    height: 20px;
}

/* Corpo do chat */
.f9-whatsapp-body {
    padding: 15px;
}

.f9-whatsapp-message {
    background-color: #DCF8C6;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
    font-size: 14px;
    word-break: break-word;
}

.f9-whatsapp-message::after {
    content: '';
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-left: 8px solid #DCF8C6;
}

.f9-whatsapp-response {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#f9-whatsapp-textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.f9-whatsapp-send {
    padding: 8px 15px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    align-self: flex-end;
    transition: background-color 0.3s ease;
}

.f9-whatsapp-send:hover {
    background-color: #128C7E;
}

/* Responsividade */
@media (max-width: 480px) {
    .f9-whatsapp-popup {
        width: 260px;
        bottom: 70px;
    }
    
    .f9-whatsapp-right {
        right: 10px;
    }
    
    .f9-whatsapp-left {
        left: 10px;
    }
    
    .f9-whatsapp-button {
        width: 50px;
        height: 50px;
    }
    
    .f9-whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}
