/* === 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;    
    display: none;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    overflow: visible; /* so the button doesn’t get cut off */
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
/* 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;
}
/* === Media queries === - === Consultas de medios === */
/* Tablets */
@media (max-width: 900px) {
    #little-message-pro-panel {
        width: 80vw;
        max-height: 80vh;
        padding: 1em;
    }
    #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;
        max-height: 75vh;
        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;
    }
}