.sms-otp-resend-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 2px 0 10px;
  min-height: 30px;
  text-align: center;
  width: 100%;
}

.sms-otp-resend-row span {
  color: #667085;
  font-size: 13px;
}

.sms-otp-resend-button {
  background: transparent;
  border: 0;
  color: #0b63ce;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 4px;
  text-decoration: underline;
}

.sms-otp-resend-button:disabled {
  cursor: wait;
  opacity: .65;
}

.sms-otp-inline-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b42318 !important;
  display: none;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.4;
  margin: 4px 0 10px !important;
  padding: 9px 11px;
  text-align: left;
  width: 100%;
}

.sms-otp-inline-error.visible {
  display: block;
}

.otp-modal-card input.sms-otp-invalid {
  border-color: #d92d20 !important;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, .12) !important;
}

.otp-modal-backdrop {
  overscroll-behavior: contain;
}

.otp-modal-backdrop:has(.aadhaar-otp-modal-card) {
  overflow-y: auto;
  padding: 18px;
}

.otp-modal-card.aadhaar-otp-modal-card {
  max-height: calc(100dvh - 36px) !important;
  overscroll-behavior: contain;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable;
}

.aadhaar-otp-modal-card > input {
  letter-spacing: 7px !important;
  text-align: center !important;
}

.aadhaar-otp-timer-row {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
  text-align: center;
  width: 100%;
}

.aadhaar-otp-timer-row.expired {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.aadhaar-otp-inline-error {
  background: #fff1f1;
  border: 1px solid #f5b7b1;
  border-left: 4px solid #c62828;
  border-radius: 9px;
  color: #a61b1b !important;
  display: none;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 !important;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.aadhaar-otp-inline-error.visible {
  display: block;
}

.aadhaar-otp-modal-card input.aadhaar-otp-invalid {
  border-color: #c62828 !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, .12) !important;
}

.aadhaar-otp-resend-button {
  background: #30348f;
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 16px;
  width: 100%;
}

.aadhaar-otp-resend-button:disabled {
  cursor: wait;
  opacity: .65;
}

.sms-otp-success-toast {
  align-items: flex-start;
  animation: sms-otp-toast-in .25s ease-out;
  background: #fff;
  border: 1px solid #b7e4c7;
  border-left: 5px solid #198754;
  border-radius: 12px;
  bottom: 22px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .2);
  display: flex;
  gap: 12px;
  max-width: min(430px, calc(100vw - 32px));
  padding: 16px;
  position: fixed;
  right: 22px;
  width: max-content;
  z-index: 100000;
}

.sms-otp-success-icon {
  align-items: center;
  background: #198754;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 18px;
  height: 30px;
  justify-content: center;
}

.sms-otp-success-toast strong { color: #175c37; display: block; font-size: 16px; }
.sms-otp-success-toast p { color: #475467; font-size: 14px; line-height: 1.45; margin: 4px 0 0; }
.sms-otp-success-toast button { background: transparent; border: 0; color: #667085; cursor: pointer; font-size: 22px; line-height: 1; padding: 0; }

@keyframes sms-otp-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .sms-otp-success-toast { bottom: 14px; left: 16px; right: 16px; width: auto; }
  .otp-modal-backdrop { align-items: center; overflow-y: auto; padding: 14px; }
  .otp-modal-card { max-height: calc(100dvh - 28px); max-width: 440px; overflow-x: hidden; overflow-y: auto; }
  .sms-otp-resend-row { margin-bottom: 8px; }
  .otp-modal-backdrop:has(.aadhaar-otp-modal-card) { align-items: flex-start; padding: 12px; }
  .otp-modal-card.aadhaar-otp-modal-card { max-height: calc(100dvh - 24px) !important; width: 100% !important; }
  .aadhaar-otp-modal-card > input { font-size: 20px !important; letter-spacing: 5px !important; }
  .aadhaar-otp-timer-row { font-size: 12px; padding: 8px 10px; }
  .aadhaar-otp-resend-button { font-size: 13px; }
}
