.aistea-captcha-field { grid-column: 1 / -1; margin-block: 1rem; }
.aistea-captcha { --captcha-accent: #2563b4; width: 100%; max-width: 380px; color: #202124; }
.aistea-captcha .aistea-captcha__button {
    box-sizing: border-box; display: flex; align-items: center; gap: 15px; width: 100%; min-height: 100px;
    padding: 18px 14px 18px 18px; border: 1px solid #c8cbd0; border-radius: 4px; text-align: left;
    background: #fafafa; color: inherit; font: inherit; line-height: 1.4;
    cursor: pointer; box-shadow: 0 2px 4px #00000012; text-transform: none;
    transition: border-color .2s, background .2s;
}
.aistea-captcha .aistea-captcha__button:hover { border-color: var(--captcha-accent); }
.aistea-captcha .aistea-captcha__button:focus-visible { outline: 3px solid #247c9c; outline-offset: 4px; }
.aistea-captcha__icon { box-sizing: border-box; position: relative; display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 2px solid #737980; border-radius: 3px; background: #fff; color: var(--captcha-accent); }
.aistea-captcha__icon svg { width: 30px; height: 30px; }
.aistea-captcha__check { opacity: 0; }
.aistea-captcha__check path { stroke-dasharray: 25; stroke-dashoffset: 25; }
.aistea-captcha__copy { display: grid; gap: 4px; flex: 1; min-width: 0; }
.aistea-captcha__copy strong { font-size: 15px; font-weight: 600; line-height: 1.35; }
.aistea-captcha__copy [role="status"] { font-size: 12px; line-height: 1.5; color: #565c65; }
.aistea-captcha__brand { display: flex; flex: 0 0 46px; align-items: center; flex-direction: column; padding-left: 10px; border-left: 1px solid #e0e2e5; color: #626973; text-align: center; }
.aistea-captcha__brand svg { width: 25px; height: 25px; margin-bottom: 4px; }
.aistea-captcha__brand strong { font-size: 10px; font-weight: 600; }
.aistea-captcha__brand > span { font-size: 8px; letter-spacing: .08em; line-height: 1.6; }
.aistea-captcha[data-state="working"] .aistea-captcha__icon { border-color: transparent; background: transparent; }
.aistea-captcha[data-state="working"] .aistea-captcha__icon::before {
    content: ''; position: absolute; inset: -2px; border: 3px solid #dce6f3;
    border-top-color: var(--captcha-accent); border-radius: 50%; animation: aistea-captcha-spin 1s linear infinite;
}
.aistea-captcha[data-state="working"] .aistea-captcha__button { cursor: progress; }
.aistea-captcha[data-state="success"] { --captcha-accent: #23734c; }
.aistea-captcha[data-state="success"] .aistea-captcha__button { border-color: #8fbea5; background: #f1f9f4; cursor: default; }
.aistea-captcha[data-state="success"] .aistea-captcha__icon { border-color: transparent; background: transparent; }
.aistea-captcha[data-state="success"] .aistea-captcha__check { opacity: 1; }
.aistea-captcha[data-state="success"] .aistea-captcha__check path { stroke-dashoffset: 0; transition: stroke-dashoffset .3s; }
.aistea-captcha[data-state="success"] .aistea-captcha__copy strong { color: #176337; }
.aistea-captcha:is([data-state="error"], [data-state="expired"], [data-state="rate"], [data-state="unsupported"]) .aistea-captcha__button { border-color: #b77540; background: #fff9f2; }
@keyframes aistea-captcha-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .aistea-captcha *, .aistea-captcha *::before { animation: none !important; transition: none !important; }
}
