/* Shared OTP boxes: external CSS keeps the widget compatible with the CSP. */
.otp-source-hidden {
  display: none !important;
}

.otp-boxes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  width: 100%;
  min-width: 0;
  direction: ltr;
}

.otp-boxes input {
  box-sizing: border-box;
  flex: 1 1 0;
  width: 44px;
  min-width: 0;
  max-width: 60px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 12px;
  background: var(--bg-soft, #fff);
  color: var(--text, #111827);
  font-family: inherit;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.otp-boxes input:focus-visible {
  outline: 2px solid var(--blue, #2563eb);
  outline-offset: 2px;
  border-color: var(--blue, #2563eb);
  background: var(--surface, var(--bg, #fff));
  box-shadow: 0 0 0 3px var(--ring, rgba(37, 99, 235, 0.18));
}

.otp-boxes input:not(:placeholder-shown),
.otp-boxes input:valid:not([value=""]) {
  border-color: var(--border-strong, var(--border, #d1d5db));
}

@media (max-width: 360px) {
  .otp-boxes {
    gap: 6px;
  }

  .otp-boxes input {
    height: 48px;
    font-size: 19px;
  }
}
