/**
 * مودال OTP حساب کاربری RJ
 */

body.rj-account-auth-page,
.rj-account-page.site-main {
  background: #f5f5f5;
}

.rj-account-auth-placeholder {
  min-height: 40vh;
}

.rj-account-otp {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rj-account-otp__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.rj-account-otp[hidden] {
  display: none !important;
}

body.rj-account-otp-open {
  overflow: hidden;
}

.rj-account-otp__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.rj-account-otp__close {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #666;
  cursor: pointer;
}

.rj-account-otp__title {
  margin: 0 0 0.65rem;
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

.rj-account-otp__text {
  margin: 0 0 1rem;
  color: #666;
  font-size: 0.86rem;
  line-height: 1.75;
  text-align: center;
}

.rj-account-otp__mock {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  background: #f5f5f5;
  color: #444;
  font-size: 0.82rem;
  text-align: center;
}

.rj-account-otp__label {
  display: block;
  margin-bottom: 0.4rem;
  color: #111;
  font-size: 0.86rem;
  font-weight: 700;
}

.rj-account-otp__input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 0.92rem;
}

.rj-account-otp__input:focus {
  border-color: color-mix(in srgb, var(--color-primary, #ad5f6c) 45%, #bbb);
  outline: none;
}

.rj-account-otp__error {
  margin: -0.35rem 0 0.75rem;
  color: #b42318;
  font-size: 0.8rem;
  line-height: 1.6;
}

.rj-account-otp__link {
  display: inline-flex;
  margin-bottom: 0.75rem;
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.rj-account-otp__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--color-primary, #ad5f6c);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease;
}

.rj-account-otp__submit:hover {
  background: var(--rj-primary-dark, #8f4d58);
}

.rj-account-otp__submit.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.rj-account-otp__submit--profile {
  margin-top: 0.25rem;
}

body.rj-phone-entry-page .rj-account-otp {
  display: none !important;
}

.rj-phone-entry {
  display: grid;
  justify-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) 1rem 3rem;
}

.rj-phone-entry__card {
  display: grid;
  justify-items: center;
  width: min(100%, 28rem);
  padding: clamp(1.4rem, 3vw, 2rem) 1.25rem 1.5rem;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 28px rgba(23, 18, 15, 0.06);
}

.rj-phone-entry__mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  background: rgba(173, 95, 108, 0.12);
  color: #ad5f6c;
}

.rj-phone-entry__title {
  margin: 0;
  color: #17120f;
  font-size: 1.45rem;
  font-weight: 800;
}

.rj-phone-entry__lead {
  margin: 0.45rem 0 1.1rem;
  color: #6b6560;
  font-size: 0.95rem;
  line-height: 1.8;
}

.rj-phone-entry__form {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  text-align: start;
}

.rj-phone-entry__label {
  color: #17120f;
  font-size: 0.85rem;
  font-weight: 800;
}

.rj-phone-entry__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ece7e3;
  border-radius: 12px;
  background: #fff;
  color: #17120f;
  font-size: 1.05rem;
  text-align: left;
}

.rj-phone-entry__input:focus {
  border-color: #ad5f6c;
  outline: none;
}

.rj-phone-entry__error {
  margin: 0;
  color: #9b1c1c;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.7;
}

.rj-phone-entry__submit {
  min-height: 3rem;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 12px;
  background: #17120f;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.rj-phone-entry__submit:hover {
  background: #2a221e;
}

.rj-account-page .woocommerce-form-login,
.rj-account-page .woocommerce-form-register,
.rj-account-page .u-columns.col2-set {
  display: none !important;
}
