/* Estilos para el modal de verificación de edad de categoría */

/* Clase para ocultar contenido principal mientras se verifica la cookie */
html.ve-age-gate-pending #page { /* #page es un wrapper común en PrestaShop */
    visibility: hidden;
    opacity: 0;
}
/* Si no usas #page, puedes intentar con body, pero con cuidado */
/* html.ve-age-gate-pending body > *:not(#ve-age-gate-modal):not(script) {
    visibility: hidden;
} */


.ve-modal-hidden {
    display: none;
    visibility: hidden;
    opacity: 0;
}

.ve-modal-visible {
    display: flex; /* Usar flex para centrar el contenido */
    visibility: visible;
    opacity: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050; /* Encima de la mayoría de los elementos de PrestaShop */
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
}

.ve-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    z-index: 1;
}

.ve-modal-content {
    position: relative; /* Para estar encima del overlay */
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px; /* Ancho máximo del modal */
    z-index: 2;
    text-align: center;
    animation: ve-modal-appear 0.3s ease-out forwards;
}

@keyframes ve-modal-appear {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.ve-modal-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.ve-modal-body {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.ve-modal-body p:last-child {
    margin-bottom: 0;
}

.ve-modal-footer {
    display: flex;
    justify-content: center; /* Centra los botones si son pocos */
    gap: 15px; /* Espacio entre botones */
    flex-wrap: wrap; /* Para que se ajusten en móviles */
}

.ve-btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-width: 120px;
}

.ve-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ve-btn-yes {
    background-color: #28a745; /* Verde */
    color: white;
}

.ve-btn-yes:hover {
    background-color: #218838;
}

.ve-btn-no {
    background-color: #dc3545; /* Rojo */
    color: white;
}

.ve-btn-no:hover {
    background-color: #c82333;
}

/* Para evitar el scroll del body cuando el modal está abierto */
body.ve-modal-open {
    overflow: hidden;
}