.sms-captcha-dialog {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
}

.sms-captcha-dialog.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sms-captcha-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}

.sms-captcha-panel {
    position: relative;
    width: min(380px, 100%);
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.25);
}

.sms-captcha-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.sms-captcha-head strong {
    font-size: 16px;
}

.sms-captcha-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #475569;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.sms-captcha-close:hover,
.sms-captcha-close:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

.sms-captcha-element {
    min-height: 1px;
}

.sms-captcha-trigger {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.sms-captcha-trigger:hover,
.sms-captcha-trigger:focus-visible {
    background: #1d4ed8;
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.sms-captcha-error {
    min-height: 18px;
    margin: 10px 0 0;
    color: #b91c1c;
    font-size: 13px;
}
