/* ParsKala SMS Auth UI controls */
.prk-auth-ui-shell,
#stm-sms-form-holder,
#stm-sms-form-holder form {
  position: relative;
}

#stm-sms-form-holder .stm-login-sms-btn,
#stm-sms-form-holder .stm-sms-confirm--submit {
  min-height: 48px;
  overflow: hidden;
  position: relative;
}

#stm-sms-form-holder .stm-login-sms-btn[disabled],
#stm-sms-form-holder .stm-sms-confirm--submit[disabled],
#stm-sms-form-holder .is-prk-auth-button-loading {
  cursor: wait;
  pointer-events: none;
}

#stm-sms-form-holder .is-prk-auth-button-loading .prk-auth-btn-text {
  opacity: 0;
  visibility: hidden;
}
.prk-auth-btn-text{
  font-family: prk-font !important;
}
.prk-auth-btn-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.loader-bullet {
  animation: loading-bullet 1s infinite ease-in-out;
}
.loader-bullet:nth-child(2) { animation-delay: 0.2s; }
.loader-bullet:nth-child(3) { animation-delay: 0.4s; }
.loader-bullet:nth-child(4) { animation-delay: 0.6s; }

@keyframes loading-bullet {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes dgSpin {
  0% { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
.dg-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: dgSpin 1s linear infinite;
}

@keyframes animationCircle1 { 0% { opacity: .9; } 33.3333% { opacity: .6; } 66.6667% { opacity: .3; } 100% { opacity: .9; } }
@keyframes animationCircle2 { 0% { opacity: .6; } 33.3333% { opacity: .3; } 66.6667% { opacity: .9; } 100% { opacity: .6; } }
@keyframes animationCircle3 { 0% { opacity: .3; } 33.3333% { opacity: .9; } 66.6667% { opacity: .6; } 100% { opacity: .3; } }
.dk-loading__circle1 { animation: animationCircle1 1.2s linear infinite normal forwards; }
.dk-loading__circle2 { animation: animationCircle2 1.2s linear infinite normal forwards; }
.dk-loading__circle3 { animation: animationCircle3 1.2s linear infinite normal forwards; }
.dk-loading-circle {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  margin: 0 auto;
}
.dk-loading-circle > div {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
}

@keyframes spinner { 0% { transform: scale(.8); opacity: .3; } 50% { transform: scale(1); opacity: 1; } 100% { opacity: .3; transform: scale(.8); } }
@keyframes spinner-middle { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(.8); opacity: .3; } 100% { transform: scale(1); opacity: 1; } }
.t-loader { animation: spinner .7s linear infinite; }
.t-loader-middle { animation: spinner-middle .7s linear infinite; }
.prk-auth-bounce-loader {
  display: flex;
  justify-content: center;
  align-items: center;
}
.prk-auth-bounce-loader > div {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
}
.prk-auth-bounce-loader > div + div { margin-inline-start: 4px; }

@keyframes react-spinners-ClipLoader-clip {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(0.8); }
  100% { transform: rotate(360deg) scale(1); }
}
.react-spinner {
  width: 30px;
  height: 30px;
  border-radius: 100%;
  border-width: 2px;
  border-style: solid;
  border-color: rgb(245, 245, 245) rgb(245, 245, 245) transparent;
  display: inline-block;
  animation: 0.75s linear 0s infinite normal both running react-spinners-ClipLoader-clip;
}

.prk-auth-form-loader.lr_loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  border-radius: inherit;
}
.lr_loading::before {
  content: "";
  position: absolute;
  display: block;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  opacity: 1;
  z-index: 10;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background: rgba(255,255,255,.32);
  border-radius: 16px;
}
@keyframes s360 {
  0% { transform: rotate(0); }
  100% { transform: rotate(359deg); }
}
.lr_loader {
  content: "";
  position: absolute;
  display: block;
  z-index: 20;
  opacity: .75;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin-left: -25px;
  margin-top: -25px;
  border-top: 2px solid #efefef;
  border-bottom: 2px solid #333;
  border-left: 2px solid #efefef;
  border-right: 2px solid #333;
  border-radius: 50%;
  animation: .5s linear infinite s360;
}

/* Floating label input style */
#stm-sms-form-holder .prk-auth-floating-label .login-sms-message {
  display: none;
}
#stm-sms-form-holder .prk-auth-floating-label .phone-loginbox,
#stm-sms-form-holder .phone-loginbox.prk-auth-floating-label,
#stm-sms-form-holder .phone-loginbox.prk-auth-ui.prk-auth-input--floating {
  position: relative;
  display: inline-block;
  width: 100%;
}
#stm-sms-form-holder .prk-auth-floating-label .phone-loginbox::before,
#stm-sms-form-holder .phone-loginbox.prk-auth-input--floating::before {
  opacity: 0;
  visibility: hidden;
}
#stm-sms-form-holder .number-login-input {
  padding: 13px 14px !important;
  border-radius: 11px !important;
  background: #fff !important;
  border: 1px solid #b1b1b2 !important;
  color: #030a16 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  text-align: left !important;
  direction: ltr !important;
  font-weight: 600 !important;
  outline: none !important;
}
#stm-sms-form-holder .number-login-input:focus {
  border-color: #333333 !important;
  box-shadow: none !important;
}
#stm-sms-form-holder .number-login-lbl {
  display: none;
}
#stm-sms-form-holder .prk-auth-floating-label .number-login-lbl,
#stm-sms-form-holder .phone-loginbox.prk-auth-input--floating .number-login-lbl {
  display: inline-block;
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  pointer-events: none;
  transition: all .2s ease-in-out;
  color: #848484;
  background: #fff;
  padding: 0 4px;
  font-size: 12px;
  line-height: 20px;
  z-index: 3;
}
#stm-sms-form-holder .number-login-input:focus + .number-login-lbl,
#stm-sms-form-holder .number-login-input:not(:placeholder-shown) + .number-login-lbl {
  top: 0;
  color: #1f1f1f;
}

.remember-checkbox::before {
  right: 0;
  top: -10px;
}

/* ParsKala shared Ajax loader (PRKGlobalLoader) */
.prk-global-loader-inline {
  min-height: 120px;
  width: 100%;
  border: 1px solid #f0f0f1;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #81858b;
}

.prk-global-loader-inline svg {
  width: 33px;
  height: 28px;
  max-width: 33px;
  max-height: 28px;
  display: block;
}

.prk-global-loader-overlay {
  --prk-loader-overlay-bg: rgba(0,0,0,.35);
  --prk-loader-card-bg: #fff;
  --prk-loader-dots-color: #a1a3a8;
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--prk-loader-overlay-bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.prk-global-loader-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.prk-global-loader-card {
  width: min(176px, calc(100vw - 44px));
  min-height: 146px;
  border-radius: 8px;
  background: var(--prk-loader-card-bg);
  box-shadow: 0 10px 32px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 22px 20px;
}

.prk-global-loader-card__logo {
  max-width: 108px;
  max-height: 58px;
  object-fit: contain;
  display: block;
}

.prk-global-loader-card__dots svg {
  width: 33px;
  height: 28px;
  fill: var(--prk-loader-dots-color);
  display: block;
}

html.prk-global-loader-is-visible,
html.prk-global-loader-is-visible body {
  overflow: hidden;
}

/* Standalone SMS shortcode surface.
   Keeps [prk_auth_sms] visually aligned with the header modal/My Account SMS form
   without rendering the My Account side welcome card. */
.prk-auth-sms-surface {
  --prk-auth-primary: var(--prk-mav4-auth-primary, #ff3a30);
  --prk-auth-secondary: var(--prk-mav4-auth-secondary, #ff6a00);
  direction: rtl;
}

.prk-auth-sms-surface--shortcode {
  width: 100%;
  max-width: 360px;
  margin: 32px auto;
}

.prk-auth-sms-surface--shortcode,
.prk-auth-sms-surface--shortcode * {
  box-sizing: border-box;
}

.prk-auth-sms-surface #stm-sms-form-holder,
.prk-auth-sms-surface #stm-sms-form-holder form {
  width: 100%;
  max-width: 100%;
}

.prk-auth-sms-surface #stm-sms-form-holder .title-loginbox {
  margin: 0 0 14px;
  text-align: center;
  color: #232933;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 800;
}

.prk-auth-sms-surface #stm-sms-form-holder .login-sms-message,
.prk-auth-sms-surface #stm-sms-form-holder .stm-sms-confirm--title {
  display: block;
  margin: 0 0 15px;
  text-align: center;
  color: #62666d;
  font-size: 13px;
  line-height: 21px;
  font-weight: 500;
}

.prk-auth-sms-surface #stm-sms-form-holder .stm-sms-holder,
.prk-auth-sms-surface #stm-sms-form-holder .form-row {
  margin: 0;
  padding: 0;
}

.prk-auth-sms-surface #stm-sms-form-holder .phone-loginbox {
  position: relative;
  display: block;
  width: 100%;
}

.prk-auth-sms-surface #stm-sms-form-holder .phone-loginbox::before {
  content: "";
  position: absolute;
  top: 13px;
  right: 13px;
  width: 24px;
  height: 24px;
  opacity: 1;
  visibility: visible;
  background: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M12.12%2012.78C12.05%2012.77%2011.96%2012.77%2011.88%2012.78C10.12%2012.72%208.71997%2011.28%208.71997%209.50998C8.71997%207.69998%2010.18%206.22998%2012%206.22998C13.81%206.22998%2015.28%207.69998%2015.28%209.50998C15.27%2011.28%2013.88%2012.72%2012.12%2012.78Z%22%20stroke%3D%22%23b2becc%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M18.74%2019.3801C16.96%2021.0101%2014.6%2022.0001%2012%2022.0001C9.40001%2022.0001%207.04001%2021.0101%205.26001%2019.3801C5.36001%2018.4401%205.96001%2017.5201%207.03001%2016.8001C9.77001%2014.9801%2014.25%2014.9801%2016.97%2016.8001C18.04%2017.5201%2018.64%2018.4401%2018.74%2019.3801Z%22%20stroke%3D%22%23b2becc%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3Cpath%20d%3D%22M12%2022C17.5228%2022%2022%2017.5228%2022%2012C22%206.47715%2017.5228%202%2012%202C6.47715%202%202%206.47715%202%2012C2%2017.5228%206.47715%2022%2012%2022Z%22%20stroke%3D%22%23b2becc%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") center / contain no-repeat;
  z-index: 1;
  pointer-events: none;
}

.prk-auth-sms-surface #stm-sms-form-holder input[name="login[email_phone]"],
.prk-auth-sms-surface #stm-sms-form-holder .stm-sms-confirm--code,
.prk-auth-sms-surface #stm-sms-form-holder input[name="login[code]"] {
  width: 100% !important;
  min-height: 50px !important;
  padding: 12px 44px 12px 14px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #030a16 !important;
  font-size: 15px !important;
  line-height: 24px !important;
  font-weight: 500 !important;
  direction: ltr !important;
  text-align: left !important;
  outline: none !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}

.prk-auth-sms-surface #stm-sms-form-holder input[name="login[email_phone]"]:focus,
.prk-auth-sms-surface #stm-sms-form-holder .stm-sms-confirm--code:focus,
.prk-auth-sms-surface #stm-sms-form-holder input[name="login[code]"]:focus {
  border-color: #717171 !important;
  box-shadow: 0 0 0 3px rgba(113, 113, 113, .10) !important;
}

.prk-auth-sms-surface #stm-sms-form-holder .phone-loginbox.prk-auth-input--floating .number-login-lbl,
.prk-auth-sms-surface #stm-sms-form-holder .prk-auth-floating-label .number-login-lbl {
  right: 44px;
}

.prk-auth-sms-surface #stm-sms-form-holder .stm-sms-confirm--code,
.prk-auth-sms-surface #stm-sms-form-holder input[name="login[code]"] {
  padding: 12px !important;
  text-align: center !important;
  letter-spacing: 11px;
  direction: ltr !important;
  margin-bottom: 15px;
}

.prk-auth-sms-surface #stm-sms-form-holder .stm-login-sms-btn,
.prk-auth-sms-surface #stm-sms-form-holder .stm-sms-confirm--submit {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 15px 16px;
  margin: 14px auto 0;
  border: 0;
  border-radius: 11px;
  outline: 0;
  background-image: linear-gradient(to right, var(--prk-auth-primary), var(--prk-auth-secondary)) !important;
  color: #fff !important;
  font-size: 15px;
  line-height: 1.571;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: filter .2s ease, transform .2s ease;
}

.prk-auth-sms-surface #stm-sms-form-holder .stm-login-sms-btn:hover,
.prk-auth-sms-surface #stm-sms-form-holder .stm-sms-confirm--submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.prk-auth-sms-surface #stm-sms-form-holder #email_phone_error {
  margin-top: 10px;
  color: #ff3a30;
  font-size: 13px;
  line-height: 1.9;
  font-weight: 700;
  text-align: center;
}

.prk-auth-sms-surface #stm-sms-form-holder .stm-sms-confirm--timer-holder {
  padding: 12px;
  color: #81858b;
  font-size: 12px;
  line-height: 21px;
  font-weight: 700;
  text-align: center;
}

.prk-auth-sms-surface #stm-sms-form-holder .stm-sms-confirm--retrieve {
  display: block;
  margin: 10px auto;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #1051ef;
  font-size: 12px;
  line-height: 21px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 767px) {
  .prk-auth-sms-surface--shortcode {
    max-width: min(100%, 360px);
    margin: 24px auto;
    padding-inline: 12px;
  }
}
