/* Posicionamiento del contenedor */
.wa-widget-container {
    position: fixed;
    bottom: 35px;
    right: 35px;
    z-index: 1050;
}

/* Botón Flotante (Actualizado a Verde) */
.wa-toggle-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #25D366; /* Verde de WhatsApp */
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.wa-toggle-btn #waNotification {
    top: 5px !important;
    left: 95% !important;
}

.wa-toggle-btn:hover {
    transform: scale(1.05);
}

/* Panel de Chat */
.wa-chat-panel {
    position: absolute;
    bottom: 55px;
    right: 0;
    width: 340px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    animation: wa-slideUp 0.3s ease forwards;
    transform-origin: bottom right;
}

/* Encabezado */
.wa-chat-header {
    background-color: #075e54; /* Verde oscuro clásico del header */
}

/* Cuerpo del Chat con el patrón de fondo (doodles) */
.wa-chat-body {
    background-color: #e5ddd5;
    position: relative;
    /* URL pública de un patrón sutil tipo WhatsApp */
    background-image: url('../../images/background/whats-background.jpg');
    background-size: cover;
    background-position: center;
    min-height: 200px;
}

/* Burbuja de chat y colita */
.wa-chat-bubble {
    background-color: #ffffff;
    border-radius: 0 8px 8px 8px;
    position: relative;
    font-size: 0.95rem;
    width: fit-content;
    max-width: 90%;
    z-index: 1;
}

.wa-chat-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 12px 0;
    border-color: transparent #ffffff transparent transparent;
}

/* Estilos del Footer y botón de enviar */
.wa-chat-footer {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.wa-chat-footer input:focus {
    outline: none;
    box-shadow: none; /* Evita el borde azul por defecto de Bootstrap */
}

.wa-send-btn {
    width: 37px;
    height: 37px;
    background-color: #25D366;
    border-color: #25D366;
    flex-shrink: 0; /* Evita que el botón se aplaste */
}

.wa-send-btn:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

/* Animación de entrada */
@keyframes wa-slideUp {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}