/*
 * Cloudflare Turnstile 캡차 영역
 *
 * 테마 CSS 가 #captcha 를 kcaptcha·recaptcha 기준으로 잡아 둔 경우가 많다.
 * 특히 basic 테마의 `#captcha.recaptcha { height:55px; overflow:hidden }` 같은 규칙에 걸리면
 * Turnstile 위젯(기본 300x65)이 잘린다. 그래서 크기 제약을 먼저 풀어 준다.
 */
#captcha.turnstile {
    height: auto;
    min-height: 0;
    overflow: visible;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: none;
}

#captcha.turnstile legend {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#captcha.turnstile .cf-turnstile {
    display: block;
    min-height: 65px;
}

#captcha.turnstile .turnstile_info {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    /* #767676 on #fff = 4.54:1 — WCAG 2.1 AA 본문 기준(4.5:1) 충족 */
    color: #767676;
}

#captcha.turnstile .turnstile_error {
    margin: 0;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    /* #B3261E on #FDECEA = 6.24:1 */
    color: #B3261E;
    background: #FDECEA;
    border: 1px solid #F3B5B0;
    border-radius: 4px;
}

/* 좁은 화면에서 위젯이 넘치지 않도록 */
@media screen and (max-width: 400px) {
    #captcha.turnstile .cf-turnstile {
        transform: scale(0.9);
        transform-origin: 0 0;
    }
}
