/* =======================================================
   ARCHIVO: payment-success.css (VERSIÓN BLINDADA)
   ======================================================= */

/* 1. ESTRUCTURA BASE (El fondo oscuro y posición) */
#popup-success.cvii-popup-overlay {
    display: none;
    /* Oculto por defecto */
    position: fixed !important;
    z-index: 99999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Fondo negro */

    /* Centrado perfecto */
    align-items: center;
    justify-content: center;

    /* Estado inicial invisible */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 2. ESTADO ACTIVO (MODIFICADO: PRIORIDAD MÁXIMA) */
/* Usamos !important en todo para ganar la "guerra de estilos" */
#popup-success.cvii-popup-overlay.active {
    display: flex !important;
    /* Fuerza el sistema Flexbox */
    opacity: 1 !important;
    /* Fuerza la opacidad */
    visibility: visible !important;
    /* Fuerza la visibilidad */
    z-index: 999999999 !important;
    /* Z-Index extremo */
    inset: 0 !important;
    /* Asegura que cubra toda la pantalla */
}

/* 3. CAJA BLANCA INTERNA */
#popup-success .cvii-popup-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;

    /* Animación de entrada */
    transform: scale(0.8);
    opacity: 0;
    /* Empieza transparente para animar */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animación de la caja cuando el padre está activo */
#popup-success.cvii-popup-overlay.active .cvii-popup-content {
    transform: scale(1) !important;
    opacity: 1 !important;
    display: block !important;
    /* Aseguramos que el contenido no se oculte */
}

/* =======================================================
   4. ESTILOS DECORATIVOS (TUS ESTILOS ORIGINALES)
   ======================================================= */

/* Icono Verde */
.icon-check {
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    border-radius: 50%;

    /* Colores Verdes */
    background-color: #e8f5e9;
    border: 3px solid #4CAF50;
    color: #4CAF50;
}

/* Títulos y Textos */
.success-content h2 {
    margin-top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.success-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Botón Azul de Éxito */
.success-content .action-btn {
    background-color: #007cba;
    /* Azul WordPress */
    color: white;
    box-shadow: 0 4px 10px rgba(0, 124, 186, 0.3);

    /* Estructura del botón */
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.success-content .action-btn:hover {
    background-color: #005a87;
    transform: translateY(-2px);
}

/* Botón Cerrar (X) */
#popup-success .close-popup-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    z-index: 10;
    /* Asegura que sea clickeable */
}

#popup-success .close-popup-btn:hover {
    color: #333;
}