/* Email verification beside the form's email field (otp.js). Uses the theme's tokens, so it follows every palette. */
.awc-otp__line {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.awc-otp__line > .wpcf7-form-control-wrap,
.awc-otp__line > .awc-otp__input {
  flex: 1 1 auto;
  min-inline-size: 0;
}
.wpcf7 .awc-otp__line .btn {
  flex: 0 0 auto;
  min-height: 52px;
  padding-inline: 18px;
  font-family: var(--sans);
  font-size: 14px;
}
.awc-otp__send:disabled {
  opacity: 0.65;
  cursor: default;
  font-variant-numeric: tabular-nums;
}
.awc-otp__verify:disabled {
  opacity: 0.6;
  cursor: progress;
}
.awc-otp__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding-inline: 14px;
  min-height: 52px;
  border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ok) 7%, transparent);
  color: var(--ok);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.awc-otp__code {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.field .awc-otp__input {
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
}
.awc-otp__status {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.awc-otp__status:empty {
  display: none;
}
.awc-otp__status.is-error {
  color: var(--danger);
}
.awc-otp__status.is-ok {
  color: var(--ok);
}
.awc-otp__demo {
  margin: 0;
  padding: 10px 12px;
  border-inline-start: 2px solid var(--brass);
  background: var(--stone);
  font-size: 14px;
}
.awc-otp__line [hidden],
.awc-otp[hidden],
.awc-otp [hidden] {
  display: none !important;
}
/* Under about 420 px of field (the two-column forms, small phones) the button goes under the email. */
.field:has(> .awc-otp__line) {
  container-type: inline-size;
}
@container (max-width: 420px) {
  .awc-otp__line--email {
    flex-wrap: wrap;
  }
  .awc-otp__line--email > .wpcf7-form-control-wrap {
    flex-basis: 100%;
  }
}
