/* Cloudflare Turnstile styles, enqueued with turnstile.js (popups.php) whenever Turnstile is on.
   Their own stylesheet because the login widget runs under both popups.css (landing pages) and
   popups-delete.css (account-delete page), and both need these. */

/* Invisible widget container inside the popups — no layout impact */
.cf-turnstile-container {
    position: absolute;
    overflow: hidden;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Managed widget overlays (settings.turnstile.loginWidgetMode / registerWidgetMode = "managed"),
   one per widget type, created at body level by TurnstileManager. Invisible but laid out, so the
   interaction-only widget can run, until Cloudflare asks for a click; TurnstileManager then adds
   .is-interactive to show the checkbox on top of whatever is on screen. */
.cf-turnstile-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition:
        opacity 0.15s ease,
        visibility 0.15s ease;
    pointer-events: none;
    visibility: hidden;
}

.cf-turnstile-overlay.is-interactive {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.cf-turnstile-overlay-card {
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
    padding: 36px 10px 12px;
    border-radius: 12px;
    background: #ffffff;
}

.cf-turnstile-overlay-widget {
    min-height: 65px;
}

.cf-turnstile-overlay-close {
    position: absolute;
    top: 4px;
    right: 6px;
    padding: 2px 8px;
    border: 0;
    background: none;
    color: #555555;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.cf-turnstile-overlay-close:hover {
    color: #000000;
}

.cf-turnstile-overlay-close:focus-visible {
    outline: 2px solid #555555;
    outline-offset: 2px;
    border-radius: 4px;
}
