/**
 * Cloudflare Turnstile CAPTCHA Styles
 * OwnOVR Theme - Brutalist Style
 */

.turnstile-wrapper {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Ensure widget fits in form */
.cf-turnstile {
    margin: 0 auto;
}

/* Noscript message */
.turnstile-noscript {
    padding: 15px;
    background: #f5f5f5;
    border: 1px solid #000;
    font-family: var(--font-primary, 'Courier New', monospace);
    font-size: 12px;
    text-align: center;
    color: #666;
}

/* Style for disabled submit button */
.woocommerce-form-login .woocommerce-form-login__submit:disabled,
.woocommerce-form-register .woocommerce-form-register__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error message styling */
.woocommerce-error li[data-id="turnstile_error"] {
    font-family: var(--font-primary, 'Courier New', monospace);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .turnstile-wrapper {
        margin: 15px 0;
    }
    
    /* Compact mode on very small screens */
    .cf-turnstile iframe {
        max-width: 100%;
    }
}
