/* === Floating button with logo - Botón flotante con logo === */
#little-message-pro-button-wrapper {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#little-message-pro-button {
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#little-message-pro-button img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}
.little-message-pro-text {
    margin-bottom: 5px;
    font-family: sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #111;
    text-align: center;
    width: max-content;
    padding: 2px 6px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
    max-width: 100px;
    cursor: pointer;
}
/* === Sliding panel - Panel deslizante === */
#little-message-pro-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    border: 1px solid #ccc;
    padding: 1.5em;
    max-width: 90vw;
    max-height: 90vh;
    overflow: visible; /* para que el botón no se corte */
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    flex-direction: column;
    display: none; /* inicia oculto */
}

#little-message-pro-panel,
#little-message-pro-panel * {
    box-sizing: content-box;
}


/* El contenido interno que va a scrollear */
.little-message-pro-content {
    overflow-y: auto;
    /* Resta el espacio para el botón, o pon un tamaño fijo/máximo */
    max-height: calc(90vh - 50px); /* Ajusta 50px al alto del botón o lo que necesites */
    padding-right: 10px; /* Para que no tape el scroll el contenido */
}


/* Close button inside the panel - Botón de cerrar dentro del panel */
#little-message-pro-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ff5e5e;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    line-height: 24px;
    text-align: center;
    padding: 0;
}
#little-message-pro-close:hover {
    background: #e04848;
    box-shadow: 0 0 10px rgba(255, 94, 94, 0.7);
}
#little-message-pro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}
/* === Form inside the panel - Formulario dentro del panel === */
#little-message-pro-form {
    display: flex;
    flex-direction: column;
}
#little-message-pro-form input,
#little-message-pro-form textarea {
    font-family: sans-serif;
    font-size: 15px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
}
#little-message-pro-form input:focus,
#little-message-pro-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
    transition: all 0.3s ease;
}
#little-message-pro-form textarea {
    height: 80px;
}
#little-message-pro-form button {
    background: #0073aa;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
#little-message-pro-form button:hover {
    background: #005c8a;
}
#little-message-pro-response {
    margin-top: 10px;
    font-size: 16px;             /* Bigger so it stands out */
    font-weight: 700;            /* Bolder than a burrito */
    text-align: center;
    padding: 8px 12px;
    border-radius: 8px;          /* Nice and smooth */
    color: #155724;              /* Dark green for success */
    background-color: #d4edda;  /* Light green success background */
    border: 1.5px solid #c3e6cb; /* Border to make it pop */
    box-shadow: 0 0 8px rgba(0, 128, 0, 0.3); /* Subtle glow */
    animation: little-message-pro-pulse 1.5s ease-in-out; /* Smooth animation */
    display: none;
}
/* Spinner visible inside the submit button - Spinner visible dentro del botón de envío */
#little-message-pro-submit .spinner {
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spinLittleMessage 1s linear infinite;
    display: inline-block;
}
/* Rotating animation - Animación giratoria */
@keyframes spinLittleMessage {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* For error message, changes color but keeps style - Para mensaje de error, cambia color pero mantiene estilo */
#little-message-pro-response.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}
/* Pulse animation, getting attention without being annoying - Animación de pulso, llamando la atención sin ser pesado */
@keyframes little-message-pro-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* --- Round logo with shadow --- - --- Logo redondo con sombra --- */
#little-message-pro-panel img.logo-rounded {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-bottom: 10px;
}
#little-message-pro-panel .logo-container {
    text-align: center;
    margin-bottom: 10px;
}
/* --- Intro message style --- - --- Estilo del mensaje de introducción --- */
#little-message-pro-panel p.intro-message {
    text-align: center;
    font-style: italic;
    margin: 10px 0 20px;
    color: #333;
}
/* --- Footer powered by --- - --- Pie de página powered by --- */
#little-message-pro-panel .little-message-footer {
    margin-top: 25px;
    font-size: 12px;
    text-align: center;
    opacity: 0.7;
}
#little-message-pro-panel .little-message-footer img {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin: 0 5px;
}
/* === Google reCAPTCHA === - === Google reCAPTCHA === */
.grecaptcha-badge {
    visibility: hidden;
    display: none !important;
}
.little-message-pro-captcha {
    margin-bottom: 15px;
}
/*  Botenes adicionales  */
.little-message-pro-divider {
    margin: 25px 0 25px;
    border: 0;
    border-top: 1px solid #ddd;
}
/* Title styling - Estilo del título */
.little-message-pro-direct-title {
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
    color: #555;
    font-weight: bold;
    text-transform: uppercase;
    font-family: sans-serif;
}
/* Container for buttons - Contenedor de los botones */
.little-message-pro-direct-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
/* Button base style - Estilo base del botón */
.little-message-pro-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #0073aa;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.1s ease;
    box-shadow: none;
    user-select: none;
    cursor: pointer;
}
/* Icon size inside buttons - Tamaño del ícono dentro de botones */
.little-message-pro-btn img {    
    height: 20px;
    width: auto;
}
/* Hover effect - Efecto al pasar el mouse */
.little-message-pro-btn:hover {
    filter: none;
    background-color: #005f8d; /* Darker background - Fondo más oscuro */
    color: #e0e0e0; /* Texto claro para que no se vea feo */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
/* Active (pressed) effect - Efecto al presionar */
.little-message-pro-btn:active {
    background-color: #004a6e; /* Even darker background - Fondo aún más oscuro */
    color: #c0c0c0; /* Texto un poco más oscuro */
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.2);
    transform: translateY(0);
}
/* Focus outline for accessibility - Contorno al enfocar para accesibilidad */
.little-message-pro-btn:focus {
    outline: 3px solid #ffd54f;
    outline-offset: 2px;
    color: #fff; /* Mantener texto visible */
}
/* Channel-specific colors - Colores específicos por canal */
.little-message-pro-btn.whatsapp {
    background: #25D366;
    color: #fff;
}
.little-message-pro-btn.whatsapp:hover {
    background-color: #1ebe57;
    color: #e6ffe6;
}
.little-message-pro-btn.whatsapp:active {
    background-color: #179e44;
    color: #cce6cc;
}
.little-message-pro-btn.whatsapp:focus {
    color: #fff;
}
.little-message-pro-btn.phone {
    background: #ff8c00;
    color: #fff;
}
.little-message-pro-btn.phone:hover {
    background-color: #cc7300;
    color: #fff3e0;
}
.little-message-pro-btn.phone:active {
    background-color: #995500;
    color: #f3e2b3;
}
.little-message-pro-btn.phone:focus {
    color: #fff;
}
.little-message-pro-btn.messenger {
    background: #0084FF;
    color: #fff;
}
.little-message-pro-btn.messenger:hover {
    background-color: #006fdb;
    color: #dcefff;
}
.little-message-pro-btn.messenger:active {
    background-color: #0059b8;
    color: #b9d1f7;
}
.little-message-pro-btn.messenger:focus {
    color: #fff;
}
.little-message-pro-btn.telegram {
    background: #0088cc;
    color: #fff;
}
.little-message-pro-btn.telegram:hover {
    background-color: #006ea3;
    color: #d0e7f7;
}
.little-message-pro-btn.telegram:active {
    background-color: #005377;
    color: #a4c0e4;
}
.little-message-pro-btn.telegram:focus {
    color: #fff;
}
/* === Media queries === - === Consultas de medios === */
/* Tablets */
@media (max-width: 900px) {
    #little-message-pro-panel {
        width: 80vw;
        padding: 0.8em;
    }
    #little-message-pro-form input,
    #little-message-pro-form textarea {
        font-size: 14px;
        padding: 6px;
    }
    #little-message-pro-form button {
        padding: 8px;
        font-size: 14px;
    }
    #little-message-pro-button {
        width: 55px;
        height: 55px;
    }
    #little-message-pro-button img {
        width: 45px;
        height: 45px;
    }
    .little-message-pro-text {
        font-size: 11px;
        max-width: 90px;
    }
}
/* Phones - Teléfonos */
@media (max-width: 600px) {
    #little-message-pro-panel {
        width: 90vw;        
        padding: 0.8em;
        border-radius: 8px;
    }
    #little-message-pro-form input,
    #little-message-pro-form textarea {
        font-size: 13px;
        padding: 5px;
    }
    #little-message-pro-form button {
        padding: 7px;
        font-size: 13px;
    }
    #little-message-pro-button {
        width: 50px;
        height: 50px;
    }
    #little-message-pro-button img {
        width: 40px;
        height: 40px;
    }
    .little-message-pro-text {
        font-size: 10px;
        max-width: 80px;
    }
}