/**
 * CSS DE EMERGÊNCIA - FORÇAR DESBLOQUEIO DA PÁGINA
 * Cole este código no CSS Adicional do WordPress
 * Aparência > Personalizar > CSS Adicional
 */

/* Força o body a sempre permitir scroll */
body {
    overflow: auto !important;
}

html {
    overflow: auto !important;
}

/* Quando o popup está ativo, bloqueia apenas se tiver a classe */
body.newsletter-popup-active {
    overflow: hidden !important;
}

/* Remove a classe automaticamente após 1 segundo se ficar presa */
@keyframes unlock-body {
    from { overflow: hidden; }
    to { overflow: auto; }
}

/* Garante que o popup funcione sem travar */
.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    pointer-events: none;
}

.newsletter-popup.active {
    display: flex !important;
    pointer-events: all;
}

.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.newsletter-popup-content {
    position: relative;
    margin: auto;
    pointer-events: all;
}