/* RXOPD Provider Onboarding OTP Popup */
.rx-onboarding-send-note {
  display: block;
  margin-left: 10px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}
.rx-onboarding-send-otp-btn {
  min-width: 128px;
}
.rx-onboarding-otp-modal[hidden] { display: none !important; }
.rx-onboarding-otp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}
.rx-onboarding-otp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .50);
  backdrop-filter: blur(7px);
}
.rx-onboarding-otp-dialog {
  position: relative;
  width: min(440px, 96vw);
  background: #fff;
  border: 1px solid rgba(214, 226, 244, .95);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .30);
  color: #10233f;
  animation: rxOtpModalIn .22s ease both;
}
.rx-onboarding-otp-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f2f6fb;
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.rx-onboarding-otp-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #18b7ff, #0e9f6e);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 16px 34px rgba(14, 159, 110, .20);
}
.rx-onboarding-otp-dialog h3 {
  margin: 0 40px 6px 0;
  font-size: 22px;
  line-height: 1.15;
  color: #0b1b3a;
}
.rx-onboarding-otp-copy {
  margin: 0 0 16px;
  color: #556987;
  font-size: 13px;
  line-height: 1.45;
}
.rx-onboarding-otp-verify-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}
.rx-onboarding-otp-verify-form input[name="verification_code"] {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  border: 1px solid #dbe7f4;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 20px;
  letter-spacing: .18em;
  text-align: center;
  font-weight: 900;
  outline: none;
}
.rx-onboarding-otp-verify-form input[name="verification_code"]:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12);
}
.rx-onboarding-otp-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.rx-onboarding-otp-actions .button {
  min-height: 42px;
  border-radius: 14px;
  white-space: nowrap;
}
.rx-onboarding-otp-actions [data-provider-otp-resend]:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.rx-onboarding-otp-reset {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #0b6ffb;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.rx-onboarding-otp-status {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}
.provider-doc-actions.is-otp-sending .rx-onboarding-send-otp-btn {
  pointer-events: none;
  opacity: .85;
}
.provider-doc-actions.is-otp-sending .rx-onboarding-send-otp-btn::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  vertical-align: -2px;
  animation: rxOtpMiniSpin .7s linear infinite;
}
@keyframes rxOtpMiniSpin { to { transform: rotate(360deg); } }
@keyframes rxOtpModalIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 560px) {
  .rx-onboarding-otp-dialog { padding: 18px; border-radius: 20px; }
  .rx-onboarding-otp-actions { grid-template-columns: 1fr; }
  .rx-onboarding-otp-actions .button { width: 100%; }
}


/* OTP verified step enable / resume UI */
.rx-onboarding-step-unlocked {
  border: 1px solid #abefc6 !important;
  background: #ecfff5 !important;
  color: #067647 !important;
  font-weight: 800;
}
.rx-step-complete {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfff5;
  color: #067647;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid #abefc6;
}
.rx-onboarding-draft-active .rx-rev29-account-step {
  border-color: rgba(19,183,106,.30);
  background: linear-gradient(180deg, #ffffff, #f6fffa);
}
.rx-onboarding-draft-active .provider-doc-section:not(.rx-rev29-account-step) {
  animation: rxStepUnlockGlow .65s ease both;
}
@keyframes rxStepUnlockGlow {
  0% { box-shadow: 0 0 0 0 rgba(14,165,233,.22); }
  100% { box-shadow: 0 8px 28px rgba(15,23,42,.06); }
}
