/* ==========================================================================
   BLOQUEO PRO: WOOCOMMERCE
   Deshabilita visualmente la interfaz si no hay licencia.
   ========================================================================== */

/* 1. Bloqueo del Metabox Lateral (El panel grande) */
#smg-woo-assistant-wrapper {
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Capa invisible encima del metabox para atrapar clics generales */
#smg-woo-assistant-wrapper::before {
    content: "PRO";
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: rgba(0,0,0,0.1);
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 99; /* Encima de los botones */
    cursor: not-allowed;
    border-radius: 4px;
}

/* 2. Bloqueo específico de Botones (Metabox y Varitas Mágicas) */
/* Usamos las clases EXACTAS que vi en tus archivos */
.smg-woo-button,       /* Botones del metabox */
.smg-ai-btn            /* Botones redondos (varitas) en los campos */
{ 
    opacity: 0.5 !important;
    filter: grayscale(100%) !important;
    cursor: not-allowed !important;
    pointer-events: auto !important; /* CRUCIAL: Permite que el JS capture el clic */
    box-shadow: none !important;
    background: #ccc !important; /* Forzar gris de fondo */
}

.smg-ai-btn svg {
    stroke: #666 !important; /* Icono gris */
}


/* ==========================================================================
   BLOQUEO PRO: WOOCOMMERCE
   Deshabilita visualmente la interfaz si no hay licencia.
   ========================================================================== */

/* 1. Bloqueo del Metabox Lateral (El panel grande) */
#smg-woo-assistant-wrapper {
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

#smg-woo-assistant-wrapper::before {
    content: "PRO";
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: rgba(0,0,0,0.1);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 99;
    cursor: not-allowed;
    border-radius: 4px;
}

/* 2. Bloqueo de Botones */
.smg-woo-button,       
.smg-ai-btn { 
    opacity: 0.5 !important;
    filter: grayscale(100%) !important;
    cursor: not-allowed !important;
    pointer-events: auto !important; 
    box-shadow: none !important;
    background: #ccc !important;
}

.smg-ai-btn svg {
    stroke: #666 !important;
}

/* ==========================================================================
   NUEVO: ESTILOS DE LA VENTANA MODAL (POPUP)
   ========================================================================== */
#smg-pro-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Fondo oscuro */
    z-index: 100000; /* Muy encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px); /* Efecto borroso moderno */
    animation: smgFadeIn 0.2s ease-out;
}

#smg-pro-modal-content {
    background: #fff;
    width: 450px;
    max-width: 90%;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    animation: smgSlideUp 0.3s ease-out;
}

.smg-modal-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

#smg-pro-modal-content h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #1d2327;
}

#smg-pro-modal-content p {
    font-size: 15px;
    line-height: 1.5;
    color: #50575e;
    margin-bottom: 25px;
}

.smg-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.smg-btn-close {
    background: #f0f0f1;
    color: #2271b1;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.smg-btn-close:hover { background: #e0e0e0; }

.smg-btn-buy {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.1s;
}
.smg-btn-buy:hover { transform: translateY(-1px); color: #fff; }

@keyframes smgFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes smgSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }