/* ============================================================
   css/otp.css — styling for the shared WyraOTP module (js/otp.js).
   ITEM-286: extracted from recargar/index.html inline <style>, classes
   PREFIXED .wyra-otp-* to be collision-free across pages (recargas + esim).
   Self-contained: brand colors hardcoded (NO CSS-var dependency) so the
   module renders identically regardless of the host page's token names.
   Primary/secondary buttons are NOT styled here — they come from the host
   design-system via opts.buttonClass / opts.secondaryButtonClass.
   ============================================================ */

/* FIELD (email) — ported from .field */
.wyra-otp-field { margin-bottom: 16px; }
.wyra-otp-field label { display: block; font-size: 13px; font-weight: 600; color: #5A6B7F; margin-bottom: 6px; }
.wyra-otp-field input {
  width: 100%; padding: 14px 16px; border: 2px solid #E8ECF2; border-radius: 12px;
  font-family: 'Poppins', sans-serif; font-size: 16px; color: #0D1B2A; background: #F4F6FA;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.wyra-otp-field input:focus { border-color: #00C4D8; box-shadow: 0 0 0 4px rgba(0,194,214,0.12); }
.wyra-otp-field input.wyra-otp-invalid { border-color: #E53E3E; }

/* INLINE FIELD ERROR — ported from .error-msg */
.wyra-otp-error { font-size: 12px; color: #E53E3E; margin-top: 4px; display: none; }
.wyra-otp-error.show { display: block; }

/* PRIVACY NOTICE — ported from the inline <p> style at step-5 */
.wyra-otp-privacy { font-size: 12px; color: #8A9BB0; text-align: center; margin-top: 12px; line-height: 1.5; }
.wyra-otp-privacy a { color: #00C4D8; text-decoration: underline; }

/* CODE-PHASE COPY */
.wyra-otp-code-sent { font-size: 13px; color: #5A6B7F; margin-bottom: 12px; text-align: center; }
.wyra-otp-email-display { font-size: 14px; font-weight: 700; text-align: center; margin-bottom: 16px; }

/* OTP DIGIT INPUTS — ported from .otp-row */
.wyra-otp-row { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.wyra-otp-row input {
  width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 700;
  font-family: 'Syne', sans-serif; border: 2px solid #E8ECF2; border-radius: 16px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; background: #F4F6FA; color: #0D1B2A;
}
.wyra-otp-row input:focus { border-color: #00C4D8; box-shadow: 0 0 0 4px rgba(0,194,214,0.12); }
.wyra-otp-row input.filled { border-color: #00C4D8; background: #E6FAFB; }

/* CODE-PHASE ERROR ALERT — ported from .alert.alert-error (hidden until .show) */
.wyra-otp-alert {
  padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 16px;
  display: none; line-height: 1.5; background: #FFF0F0; color: #E53E3E; border: 1px solid rgba(229,62,62,0.2);
}
.wyra-otp-alert.show { display: block; }

/* RESEND TIMER — ported from .timer */
.wyra-otp-timer { font-size: 12px; color: #8A9BB0; text-align: center; margin-top: 8px; }

/* TEXT-LINK BUTTONS (Resend / Change email) — ported from .btn-link */
.wyra-otp-links { text-align: center; margin-top: 8px; }
.wyra-otp-sep { margin: 0 8px; color: #E8ECF2; }
.wyra-otp-btn-link {
  background: none; border: none; color: #00C4D8; font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 8px 0; font-family: 'Poppins', sans-serif;
}
.wyra-otp-btn-link:disabled { color: #8A9BB0; cursor: not-allowed; }

/* BUTTON ROWS — ported from .btn-row */
.wyra-otp-btn-row { display: flex; gap: 10px; margin-top: 20px; }
.wyra-otp-code-actions { margin-top: 16px; }

/* SPINNER — ported from .spinner (own keyframes, self-contained) */
.wyra-otp-spinner {
  display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%; animation: wyra-otp-spin 0.7s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes wyra-otp-spin { to { transform: rotate(360deg); } }

/* RESPONSIVE — ported from the @media(max-width:480px) .otp-row rule */
@media (max-width: 480px) {
  .wyra-otp-row input { width: 40px; height: 48px; font-size: 20px; }
}
