/* Customer OTP sign-in modal: scoped so it does not alter other theme dialogs. */
.ely-login-modal .modal-dialog {
  width: calc(100% - 28px);
  max-width: 470px;
  margin-inline: auto;
}

.ely-login-modal .modal-content {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(25, 29, 36, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(18, 24, 32, 0.2);
}

.ely-login-modal .icon-close-popup {
  top: 17px;
  right: 17px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  color: #5f646b;
  background: #f5f6f7;
  font: inherit;
  line-height: 1;
}

.ely-login-modal .icon-close-popup:hover {
  color: #fff;
  background: #202124;
}

.ely-login-shell {
  padding: 38px 36px 28px;
}

.ely-login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #747980;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ely-login-eyebrow > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary, #dc4646);
  box-shadow: 0 0 0 4px rgba(220, 70, 70, 0.1);
}

.ely-login-heading {
  margin: 14px 38px 24px 0;
  text-align: left;
}

.ely-login-heading .title-pop {
  margin: 0 0 8px;
  color: #191b1f;
  font-size: clamp(25px, 5vw, 30px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.ely-login-heading .desc-pop {
  max-width: 350px;
  margin: 0;
  color: #6b7077;
  font-size: 14px;
  line-height: 1.6;
}

.ely-login-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 25px;
  color: #8b9096;
  font-size: 12px;
  font-weight: 600;
}

.ely-login-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color 160ms ease;
}

.ely-login-step-number {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #dfe2e5;
  border-radius: 50%;
  color: #7b8086;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.ely-login-step.is-active,
.ely-login-step.is-complete {
  color: #24272b;
}

.ely-login-step.is-active .ely-login-step-number,
.ely-login-step.is-complete .ely-login-step-number {
  border-color: var(--primary, #dc4646);
  color: #fff;
  background: var(--primary, #dc4646);
}

.ely-login-progress-line {
  width: 34px;
  height: 1px;
  background: #e5e7e9;
}

.ely-login-form-content {
  display: grid;
  gap: 17px;
  margin-bottom: 18px !important;
}

.ely-login-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ely-login-field .tf-lable {
  display: block;
  margin: 0 0 8px;
  color: #292d32;
  font-size: 13px;
  font-weight: 650;
}

.ely-login-phone-control {
  display: flex;
  width: 100%;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid #d9dde1;
  border-radius: 12px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ely-login-phone-control:focus-within,
.ely-login-field > input:focus {
  border-color: var(--primary, #dc4646);
  box-shadow: 0 0 0 4px rgba(220, 70, 70, 0.1);
  outline: 0;
}

.ely-login-country-code {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid #e6e8ea;
  color: #464b51;
  font-size: 14px;
  font-weight: 650;
}

.ely-login-phone-control input,
.ely-login-field > input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  color: #1f2328;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  outline: 0;
}

.ely-login-phone-control input::placeholder,
.ely-login-field > input::placeholder {
  color: #9a9fa5;
  opacity: 1;
}

.ely-login-phone-control input:focus {
  outline: 0;
}

.ely-login-field > input {
  border: 1px solid #d9dde1;
  border-radius: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ely-login-field > input:focus {
  border-color: var(--primary, #dc4646);
}

#login-otp {
  letter-spacing: 0.28em;
  font-variant-numeric: tabular-nums;
}

.ely-login-hint {
  display: block;
  margin-top: 7px;
  color: #858b91;
  font-size: 12px;
  line-height: 1.45;
}

.ely-login-message {
  min-height: 0;
  margin: -2px 0 0;
  color: #646a70;
  font-size: 13px;
  line-height: 1.5;
}

.ely-login-message:empty {
  display: none;
}

.ely-remember-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid #e7e8ea;
  border-radius: 13px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.ely-remember-card:hover {
  border-color: #d2d5d8;
  background: #f7f7f7;
}

.ely-remember-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.ely-remember-check {
  position: relative;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  border: 1px solid #c8cdd2;
  border-radius: 5px;
  background: #fff;
  transition: border-color 160ms ease, background 160ms ease;
}

.ely-remember-check::after {
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  opacity: 0;
  transform: rotate(45deg) scale(0.8);
  transition: opacity 120ms ease, transform 120ms ease;
}

.ely-remember-card input:checked + .ely-remember-check {
  border-color: var(--primary, #dc4646);
  background: var(--primary, #dc4646);
}

.ely-remember-card input:checked + .ely-remember-check::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.ely-remember-card input:focus-visible + .ely-remember-check {
  outline: 3px solid rgba(220, 70, 70, 0.22);
  outline-offset: 2px;
}

.ely-remember-copy {
  display: grid;
  gap: 4px;
  color: #272b30;
  font-size: 13px;
  line-height: 1.4;
}

.ely-remember-copy strong {
  font-weight: 650;
}

.ely-remember-copy small {
  color: #777d83;
  font-size: 11px;
  line-height: 1.45;
}

.ely-login-actions {
  display: grid;
  gap: 10px;
}

.ely-login-actions .tf-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
}

.ely-login-actions .btn-stroke {
  border: 1px solid #d8dade;
  color: #272b30;
  background: #fff;
}

.ely-login-actions .btn-stroke:hover {
  border-color: #b9bec3;
  background: #f7f7f7;
}

.ely-login-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 17px 0 0;
  color: #858b91;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.ely-login-security-note svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

@media (max-width: 480px) {
  .ely-login-modal .modal-dialog {
    width: calc(100% - 20px);
  }

  .ely-login-modal .modal-content {
    border-radius: 20px;
  }

  .ely-login-shell {
    padding: 32px 22px 23px;
  }

  .ely-login-modal .icon-close-popup {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .ely-login-heading {
    margin-top: 12px;
    margin-bottom: 20px;
  }

  .ely-login-progress {
    gap: 8px;
    margin-bottom: 21px;
  }

  .ely-login-step {
    gap: 6px;
    font-size: 11px;
  }

  .ely-login-progress-line {
    width: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ely-login-modal *,
  .ely-login-modal *::before,
  .ely-login-modal *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
