/* Visual-only integration with MTC Admin Suite math captcha (no answer transformation).
 * The provider refreshes .mtcas-captcha-question textContent dynamically; CSS also covers refreshed challenges. */
.mtcas-captcha .mtcas-captcha-prompt .mtcas-captcha-question {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    max-width: 100%;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    font-variant-numeric: lining-nums tabular-nums;
}
/* Do not set direction on .mtcas-captcha or its answer field: Persian numerals remain valid. */
.mtc-site-main .mtcas-captcha:not(.mtcas-captcha-locked) {
    min-width: 0;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--mtc-line);
    border-radius: 10px;
    color: var(--mtc-text);
    background: var(--mtc-surface);
}
.mtc-site-main .mtcas-captcha :where(.mtcas-captcha-prompt) { align-items: center; gap: 10px; }
.mtc-site-main .mtcas-captcha :where(input[type="text"]) {
    box-sizing: border-box;
    max-width: min(220px, 100%);
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid var(--mtc-line);
    border-radius: 9px;
    color: var(--mtc-text);
    background: var(--mtc-bg);
}
.mtc-site-main .mtcas-captcha .mtcas-captcha-refresh {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 9px;
    border: 1px solid var(--mtc-line);
    color: var(--mtc-text);
    background: var(--mtc-bg);
}
.mtc-site-main .mtcas-captcha .mtcas-captcha-refresh:focus-visible {
    outline: 2px solid var(--mtc-primary);
    outline-offset: -2px;
}
[data-theme="dark"] .mtc-site-main .mtcas-captcha :where(input[type="text"], .mtcas-captcha-refresh) {
    color: var(--mtc-text);
    background: var(--mtc-surface);
}
