/* OTP Modal - Base */
#pcgp-otp-modal {
  display: none;
}

#pcgp-otp-modal .pcgp-otp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99998;
}

#pcgp-otp-modal .pcgp-otp-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  z-index: 99999;
  direction: rtl;
  box-sizing: border-box;

  /* auto height by content */
  height: auto;
}

@media (max-width: 640px) {
  #pcgp-otp-modal .pcgp-otp-dialog {
    width: 80vw;
    max-width: none;
  }
}

#pcgp-otp-modal .pcgp-otp-close {
  position: absolute;
  top: 10px;
  left: 12px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

#pcgp-otp-modal .pcgp-otp-title {
  margin: 0 0 10px;
  font-size: 20px;
}

#pcgp-otp-modal .pcgp-otp-desc {
  margin: 0 0 14px;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

#pcgp-otp-modal .pcgp-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 12px 14px;
  direction: ltr;
  text-align: left;
}

#pcgp-otp-modal .pcgp-phone-input {
  margin-bottom: 12px;
}

#pcgp-otp-modal .pcgp-otp-input {
  margin: 12px 0;
}

#pcgp-otp-modal .pcgp-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
}

#pcgp-otp-modal .pcgp-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

#pcgp-otp-modal .pcgp-btn-primary {
  background: #2271b1;
  color: #fff;
}

#pcgp-otp-modal .pcgp-btn-success {
  background: #16a34a;
  color: #fff;
}

#pcgp-otp-modal .pcgp-btn-ghost {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #333;
  margin-top: 10px;
}

#pcgp-otp-modal .pcgp-otp-status {
  min-height: 22px;
  margin-top: 12px;
  font-size: 13px;
  color: #d63638;
}

#pcgp-otp-modal .pcgp-otp-desc,
#pcgp-otp-modal .pcgp-otp-status {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
