/* Forzar burbuja flotante Chat-azo (Sugerencia de usuario aplicada) */
.absc-floater,
.absc-opener {
    position: fixed !important;
    bottom: 20px !important;
    right: 170px !important;
    z-index: 999999 !important;
    display: block !important; /* Asegura que no tenga display:none */
    opacity: 1 !important; /* Asegura que no sea transparente */
    pointer-events: auto !important; /* Asegura que se pueda hacer clic */
}

/* El botón de apertura (burbuja) necesita un tamaño */
.absc-opener {
    width: 60px !important;
    height: 60px !important;
}

.absc-whatsapp {
    background: #25D366; /* WhatsApp green */
    border: none;
    cursor: pointer;
    color: #fff;
    margin-right: 5px; /* Adjust spacing as needed */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    transition: background-color .3s ease, color .3s ease;
}

.absc-whatsapp:hover, .absc-whatsapp:active {
    background: #fff;
    color: #25D366; /* WhatsApp green */
}

/* Estilos para el contenedor de botones de acción (adjuntar y WhatsApp) */
.absc-action-buttons {
    display: flex;
    flex-direction: column; /* Apilar los botones verticalmente */
    gap: 10px; /* Espacio entre los botones */
    margin-right: 5px; /* Mantener el espacio con el campo de entrada */
    align-items: center; /* Centrar los botones si son de diferente ancho */
}


/* Ajuste para móviles específicamente */
@media (max-width: 768px) {
    .absc-floater,
    .absc-opener {
        bottom: 15px !important;
        right: 165px !important;
        width: 60px !important; /* Tamaño fijo para que no se desborde */
        height: 60px !important;
    }
}

/* --- Typing Indicator Styles --- */
.absc-typing-indicator {
    padding: 15px;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.absc-typing-indicator span {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 3px;
}

/* Style 1: Dots Fade */
.absc-typing-indicator.style-dots-fade span {
    animation: dots-fade 1.2s infinite ease-in-out;
}
.absc-typing-indicator.style-dots-fade span:nth-of-type(1) { animation-delay: -0.32s; }
.absc-typing-indicator.style-dots-fade span:nth-of-type(2) { animation-delay: -0.16s; }
@keyframes dots-fade {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

/* Style 2: Dots Bounce */
.absc-typing-indicator.style-dots-bounce span {
    animation: dots-bounce 1.4s infinite ease-in-out both;
}
.absc-typing-indicator.style-dots-bounce span:nth-of-type(1) { animation-delay: -0.32s; }
.absc-typing-indicator.style-dots-bounce span:nth-of-type(2) { animation-delay: -0.16s; }
@keyframes dots-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Style 3: Ellipsis Pulse */
.absc-typing-indicator.style-ellipsis-pulse span {
    animation: ellipsis-pulse 1s infinite;
}
.absc-typing-indicator.style-ellipsis-pulse span:nth-of-type(1) { animation-delay: 0s; }
.absc-typing-indicator.style-ellipsis-pulse span:nth-of-type(2) { animation-delay: 0.1s; }
.absc-typing-indicator.style-ellipsis-pulse span:nth-of-type(3) { animation-delay: 0.2s; }
@keyframes ellipsis-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Style 4: Cursor Blink */
.absc-typing-indicator.style-cursor-blink span {
    width: 3px;
    height: 15px;
    background-color: #333;
    border-radius: 0;
    margin: 0;
    animation: cursor-blink 1s infinite;
}
/* Hide other dots for cursor */
.absc-typing-indicator.style-cursor-blink span:nth-of-type(2),
.absc-typing-indicator.style-cursor-blink span:nth-of-type(3) {
    display: none;
}
@keyframes cursor-blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Style 5: Wave */
.absc-typing-indicator.style-wave span {
    animation: wave 1.3s infinite linear;
}
.absc-typing-indicator.style-wave span:nth-of-type(1) { animation-delay: -1.2s; }
.absc-typing-indicator.style-wave span:nth-of-type(2) { animation-delay: -1.1s; }
.absc-typing-indicator.style-wave span:nth-of-type(3) { animation-delay: -1.0s; }
@keyframes wave {
    0%, 60%, 100% { transform: initial; }
    30% { transform: translateY(-8px); }
}
