.sms-captcha-dialog {
  width: min(380px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.sms-captcha-dialog::backdrop {
  background: rgba(8, 16, 26, 0.58);
  backdrop-filter: blur(5px);
}

.sms-captcha-card {
  padding: 26px;
  display: grid;
  gap: 16px;
  border-radius: inherit;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(8, 16, 26, 0.26);
}

.sms-captcha-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sms-captcha-card > header p {
  margin: 0 0 5px;
  color: #2563eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.sms-captcha-card h2 {
  margin: 0;
  color: #0f1f33;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.sms-captcha-close {
  width: 32px;
  height: 32px;
  border: 1px solid #dfe5ec;
  border-radius: 50%;
  color: #718096;
  background: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.sms-captcha-copy {
  margin: 0;
  color: #718096;
  font-size: 11px;
  line-height: 1.65;
}

.sms-captcha-challenge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sms-captcha-challenge img {
  width: 168px;
  height: 58px;
  border: 1px solid #dfe5ec;
  border-radius: 9px;
  background: #f6f9fd;
  user-select: none;
}

.sms-captcha-refresh {
  padding: 0;
  border: 0;
  color: #2563eb;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.sms-captcha-field {
  display: grid;
  gap: 7px;
  color: #35465c;
  font-size: 10px;
  font-weight: 700;
}

.sms-captcha-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #cfd7e1;
  border-radius: 9px;
  outline: none;
  color: #0f1f33;
  background: #ffffff;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sms-captcha-field input:focus {
  border-color: #7da4df;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

.sms-captcha-message {
  margin: 0;
  color: #718096;
  font-size: 10px;
}

.sms-captcha-message.is-error {
  color: #b42318;
}

.sms-captcha-card > footer {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 9px;
}

.sms-captcha-card > footer button {
  min-height: 43px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 750;
}

.sms-captcha-cancel {
  border: 1px solid #dfe5ec;
  color: #526174;
  background: #ffffff;
}

.sms-captcha-confirm {
  border: 0;
  color: #ffffff;
  background: #2563eb;
}

.sms-captcha-confirm:disabled,
.sms-captcha-refresh:disabled {
  opacity: 0.52;
  cursor: wait;
}

@media (max-width: 480px) {
  .sms-captcha-card {
    padding: 22px 18px;
  }

  .sms-captcha-challenge img {
    width: 150px;
  }
}
