/* Glowflare Horror Festival — newsletter popup v1.3.37.
 * Independent component; same approved colours/shapes as cookie consent.
 * This CSS never targets Complianz or changes its visibility/behavior.
 */
#gf-newsletter-popup {
    --gf-newsletter-bg: #535353;
    --gf-newsletter-dark: #353535;
    --gf-newsletter-red: #fe0000;
    --gf-newsletter-white: #fff;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000030 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    padding-top: max(24px, env(safe-area-inset-top, 0px));
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    font-family: inherit;
    pointer-events: auto !important;
    isolation: isolate;
}
#gf-newsletter-popup[hidden],
#gf-newsletter-popup [hidden] { display: none !important; }
#gf-newsletter-popup *, #gf-newsletter-popup *::before, #gf-newsletter-popup *::after {
    box-sizing: border-box;
}
#gf-newsletter-popup .gf-newsletter-popup__scrim {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    pointer-events: auto;
}
#gf-newsletter-popup .gf-newsletter-popup__panel {
    position: relative;
    width: min(570px,100%);
    max-height: calc(100dvh - 48px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    border: 0;
    border-radius: 16px;
    background: var(--gf-newsletter-bg);
    color: var(--gf-newsletter-white);
    box-shadow: 0 18px 58px rgba(0,0,0,.38);
    padding: 24px;
    pointer-events: auto !important;
    font-family: inherit;
    line-height: 1.45;
}
#gf-newsletter-popup .gf-newsletter-popup__header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 48px;
    margin: 0 0 18px;
}
#gf-newsletter-popup .gf-newsletter-popup__header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 800;
    line-height: 1.22;
    color: #fff;
    margin: 0;
    padding: 0;
}
#gf-newsletter-popup .gf-newsletter-popup__icon { display: grid; place-items: center; flex: 0 0 30px; color:#fff; }
#gf-newsletter-popup .gf-newsletter-popup__close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0 0 0 auto;
    padding: 9px;
    background: var(--gf-newsletter-dark);
    border: 1px solid #717171;
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
}
#gf-newsletter-popup .gf-newsletter-popup__content {
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 3px;
}
#gf-newsletter-popup .gf-newsletter-popup__intro {
    color: #fff;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
    margin: 0 0 20px;
}
#gf-newsletter-popup .gf-newsletter-popup__form { display: grid; gap: 14px; margin: 0; }
#gf-newsletter-popup .gf-newsletter-popup__name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#gf-newsletter-popup .gf-newsletter-popup__form label {
    display: grid;
    gap: 7px;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
#gf-newsletter-popup .gf-newsletter-popup__label-text { display: block; }
#gf-newsletter-popup .gf-newsletter-popup__optional { font-size: 12px; font-weight: 400; color: #eaeaea; }
#gf-newsletter-popup .gf-newsletter-popup__form input:not(.gf-newsletter-popup__trap) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 13px;
    /* Intentionally borderless: no white input outline on desktop or iOS Safari. */
    border: 0 !important;
    outline: none !important;
    border-radius: var(--gf-textbox-radius, 15px);
    background: #303030;
    color: #fff;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    -webkit-appearance: none;
    appearance: none;
    font: 400 16px/1.3 inherit;
    font-size: 16px;
    box-shadow: none !important;
    transition: background-color .15s ease;
}
#gf-newsletter-popup .gf-newsletter-popup__form input::placeholder { color: #dadada; opacity: 1; }
#gf-newsletter-popup .gf-newsletter-popup__form input:not(.gf-newsletter-popup__trap):focus,
#gf-newsletter-popup .gf-newsletter-popup__form input:not(.gf-newsletter-popup__trap):focus-visible {
    /* Keep textboxes clean while retaining a subtle charcoal focus shade; no borders or underlines. */
    outline: none !important;
    border: 0 !important;
    background: #242424;
    box-shadow: none !important;
}
#gf-newsletter-popup .gf-newsletter-popup__form input[aria-invalid='true'],
#gf-newsletter-popup .gf-newsletter-popup__form input[aria-invalid='true']:focus {
    border: 0 !important;
    outline: none !important;
    background: #452727;
    box-shadow: none !important;
}
/* Preserve the approved keyboard focus treatment for action buttons and links. */
#gf-newsletter-popup :is(button,a):focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
#gf-newsletter-popup .gf-newsletter-popup__trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
#gf-newsletter-popup .gf-newsletter-popup__privacy {
    font-size: 12px;
    line-height: 1.55;
    color: #f2f2f2;
    margin: 0;
}
#gf-newsletter-popup .gf-newsletter-popup__privacy a { color: #fff; text-decoration: underline; font-weight: 700; }
#gf-newsletter-popup .gf-newsletter-popup__status, #gf-newsletter-popup .gf-newsletter-popup__success {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    margin: 6px 0 12px;
}
#gf-newsletter-popup .gf-newsletter-popup__status.gf-newsletter-popup__error { color: #fff0f0; }
#gf-newsletter-popup .gf-newsletter-popup__submit,
#gf-newsletter-popup .gf-newsletter-popup__later {
    display: block;
    width: 100%;
    min-height: 52px;
    border: 1px solid #fff;
    border-radius: 14px;
    background: #353535;
    color: #fff;
    font: 800 15px/1.3 inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    padding: 13px 16px;
    margin: 0;
}
#gf-newsletter-popup .gf-newsletter-popup__submit { background: #fe0000; }
#gf-newsletter-popup .gf-newsletter-popup__submit:disabled { opacity: .65; cursor: progress; }
#gf-newsletter-popup .gf-newsletter-popup__later { margin-top: 12px; }
body.gf-newsletter-popup-open { overflow: hidden !important; }
@media (max-width: 600px) {
    #gf-newsletter-popup { padding: 18px; padding-top: max(18px,env(safe-area-inset-top,0px)); padding-bottom: max(18px,env(safe-area-inset-bottom,0px)); }
    #gf-newsletter-popup .gf-newsletter-popup__panel {
        width: 100%;
        max-height: calc(100dvh - 36px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
        padding: 18px;
    }
    #gf-newsletter-popup .gf-newsletter-popup__header { margin-bottom: 14px; }
    #gf-newsletter-popup .gf-newsletter-popup__header h2 { font-size: 20px; }
    #gf-newsletter-popup .gf-newsletter-popup__intro { font-size: 14px; margin-bottom: 16px; }
    #gf-newsletter-popup .gf-newsletter-popup__name-row { grid-template-columns: minmax(0,1fr); gap: 14px; }
    #gf-newsletter-popup .gf-newsletter-popup__form { gap: 12px; }
}
@media (max-height: 650px) {
    #gf-newsletter-popup .gf-newsletter-popup__panel { padding-top: 12px; padding-bottom: 12px; }
    #gf-newsletter-popup .gf-newsletter-popup__header { margin-bottom: 8px; }
    #gf-newsletter-popup .gf-newsletter-popup__intro { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    #gf-newsletter-popup * { scroll-behavior: auto !important; }
}
