/* OTP phone verification page + global success banner */
#account-phone-verification.otp-page {
  max-width: 520px;
  margin: 24px auto 48px;
  padding: 0 16px;
  font-size: 1.25rem;
  line-height: 1.6;
}

.otp-page {
  max-width: 520px;
  margin: 24px auto 48px;
  padding: 0 16px;
}

.otp-card {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  padding: 32px 28px 28px;
  font-size: 1.25rem;
  line-height: 1.6;
}

.otp-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.14) 0%, rgba(255, 143, 61, 0.08) 100%);
  color: #ff6a00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px;
}

.otp-card__title {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  text-align: center;
  line-height: 1.2;
}

.otp-card__subtitle {
  margin: 0 0 24px;
  font-size: 1.35rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.55;
}

.otp-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  margin-bottom: 20px;
  font-size: 1.25rem;
  line-height: 1.55;
}

.otp-notice__icon {
  flex: 0 0 auto;
  font-size: 22px;
  margin-top: 2px;
}

.otp-notice--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.otp-notice--error .otp-notice__icon {
  color: #dc2626;
}

.otp-notice--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.otp-notice--info .otp-notice__icon {
  color: #2563eb;
}

.otp-notice--channel,
.otp-notice--whatsapp {
  background: #fff8f2;
  border: 1px solid #fde0c8;
  color: #7c4a2a;
}

.otp-notice--channel .otp-notice__icon,
.otp-notice--whatsapp .otp-notice__icon {
  color: #25d366;
}

.otp-notice--sms .otp-notice__icon {
  color: #ff6a00;
}

.otp-notice--email .otp-notice__icon {
  color: #2563eb;
}

.otp-notice--rate-limit {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.otp-notice--rate-limit .otp-notice__icon {
  color: #d97706;
}

.otp-phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid #e5e7eb;
  color: #111827;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  margin: 0 auto 20px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.otp-phone-badge .fa-mobile {
  color: #ff6a00;
  font-size: 1.25rem;
}

.otp-phone-badge-wrap {
  text-align: center;
  margin-bottom: 16px;
}

.otp-edit-phone-form {
  margin-top: 10px;
}

.otp-edit-phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 14px;
  min-height: 44px;
  text-decoration: none;
}

.otp-edit-phone-link .fa-pencil {
  font-size: 1rem;
}

.otp-edit-phone-link:hover,
.otp-edit-phone-link:focus {
  color: #ff6a00;
  outline: none;
}

.otp-btn--link {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
}

.otp-btn--link:hover,
.otp-btn--link:focus {
  color: #ff6a00;
}

.otp-notice--channel-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.otp-notice--channel-info.otp-notice--whatsapp {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.otp-notice--channel-info.otp-notice--sms {
  background: #fff8f2;
  border-color: #fde0c8;
  color: #7c4a2a;
}

.otp-notice--channel-info.otp-notice--email {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.otp-field {
  margin-bottom: 20px;
}

.otp-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #374151;
}

.otp-field .form-control,
.otp-field .iti input {
  height: 56px;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: none !important;
}

#account-social-phone .form-control,
#account-social-phone .iti input,
#account-phone-verification .form-control,
#account-phone-verification .iti input,
.register-telephone-wrap .form-control,
.register-telephone-wrap .iti input,
.auth-field--phone .form-control,
.auth-field--phone .iti input {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.otp-field .form-control:focus,
.otp-field .iti input:focus {
  border-color: #ff6a00 !important;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15) !important;
}

.otp-digits {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 360px;
  margin: 0 auto 24px;
}

.otp-digit {
  flex: 1 1 0;
  min-width: 40px;
  max-width: 52px;
  height: 52px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  border: 2px solid #9ca3af;
  border-radius: 14px;
  background: #f9fafb;
  padding: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.otp-digit:focus {
  outline: none;
  border-color: #ff6a00;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18);
}

.otp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 1.3rem;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.otp-btn--primary {
  width: 100%;
  background: linear-gradient(135deg, #ff6a00 0%, #ff8f3d 100%);
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.25);
}

.otp-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 106, 0, 0.3);
  color: #ffffff !important;
}

.otp-btn--secondary {
  background: #ffffff;
  color: #374151 !important;
  border: 1px solid #d1d5db;
}

.otp-btn--secondary:hover {
  border-color: #ff6a00;
  color: #ff6a00 !important;
}

.otp-btn--whatsapp {
  background: #ffffff;
  color: #128c7e !important;
  border: 1px solid #b8e6cf;
}

.otp-btn--whatsapp:hover {
  background: #f0fdf4;
  color: #128c7e !important;
}

.otp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.otp-actions form {
  margin: 0;
}

.otp-cooldown-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin: 16px 0 0;
}

.otp-cooldown-pill .fa {
  color: #9ca3af;
}

.otp-resend-prompt-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 22px 0 14px;
  padding: 0 16px;
  box-sizing: border-box;
}

#account-phone-verification .otp-resend-prompt {
  margin: 0;
  width: 100%;
  max-width: 360px;
  text-align: center !important;
  color: #4b5563;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.otp-form-block {
  margin-top: 8px;
}

.otp-verified-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 10050;
  background: #ecfdf5 !important;
  border-bottom: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  text-align: center;
  padding: 14px 44px 14px 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  width: 100%;
  box-sizing: border-box;
}

.otp-verified-banner__text {
  flex: 1 1 auto;
}

.otp-verified-banner__icon {
  flex: 0 0 auto;
  font-size: 18px;
  color: #059669 !important;
}

.otp-verified-banner__close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #065f46 !important;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.otp-verified-banner__close:hover,
.otp-verified-banner__close:focus {
  opacity: 1;
  background: rgba(6, 95, 70, 0.08);
  outline: none;
}

.otp-verified-banner--checkout,
.otp-verified-banner--product {
  margin: 0;
}

.otp-verified-banner--inline {
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid #a7f3d0 !important;
}

#account-phone-verification .iti {
  width: 100%;
}

.iti__search-input {
  padding-left: 36px !important;
}

.iti .iti__search-input + .iti__search-icon,
.iti .iti__search-icon {
  left: 10px;
}

.otp-resend-panel {
  margin-top: 8px;
}

.otp-resend-panel .otp-notice {
  margin-bottom: 16px;
}

.otp-resend-panel .otp-edit-phone-form {
  margin-bottom: 16px;
}

.otp-sent-toast {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 10050;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 22px 32px;
  border-radius: 18px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
  transform: translate(-50%, -120%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}

.otp-sent-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.otp-sent-toast--whatsapp {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.otp-sent-toast--sms {
  background: #fff8f2;
  border: 1px solid #fdba74;
  color: #7c4a2a;
}

.otp-sent-toast--email {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.otp-sent-toast--channel {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}

.otp-sent-toast__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  #account-phone-verification.otp-page {
    font-size: 1.15rem;
  }

  .otp-sent-toast {
    top: 72px;
    padding: 18px 22px;
    font-size: 1.2rem;
    gap: 12px;
    border-radius: 16px;
  }

  .otp-sent-toast__icon {
    font-size: 1.5rem;
  }

  .otp-edit-phone-link {
    font-size: 1.05rem;
  }

  .otp-card {
    padding: 24px 18px 22px;
    border-radius: 22px;
    font-size: 1.15rem;
  }

  .otp-card__title {
    font-size: 1.65rem;
  }

  .otp-card__subtitle {
    font-size: 1.2rem;
  }

  .otp-notice {
    font-size: 1.15rem;
  }

  .otp-cooldown-pill {
    font-size: 1.15rem;
  }

  .otp-btn {
    font-size: 1.2rem;
  }

  .otp-digits {
    gap: 6px;
  }

  .otp-digit {
    min-width: 36px;
    height: 48px;
    font-size: 1.35rem;
    border-radius: 12px;
    border-width: 2px;
  }

  .otp-actions {
    flex-direction: column;
  }

  .otp-actions .otp-btn {
    width: 100%;
  }
}

.phone-national-hint {
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #6b7280;
  text-align: center;
}

#account-social-phone .phone-national-hint,
#account-phone-verification .phone-national-hint {
  text-align: left;
  margin-top: 8px;
}

.register-telephone-wrap + .phone-national-hint {
  margin-top: 8px;
  text-align: left;
}
