.ecig-otp-card,
.ecig-otp-card * {
  box-sizing: border-box;
  font-family: inherit;
}

.ecig-otp-extra-phone-hidden,
.ecig-otp-original-phone-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.ecig-hide-miniorange-otp .iti__flag-container,
.ecig-hide-miniorange-otp .iti__selected-country,
.ecig-hide-miniorange-otp .iti__country-container,
.ecig-hide-miniorange-otp .iti__selected-flag,
.ecig-hide-miniorange-otp .selected-dial-code,
.ecig-hide-miniorange-otp .country-list,
.ecig-hide-miniorange-otp [class*="dial-code"] {
  display: none !important;
  visibility: hidden !important;
}

.ecig-otp-phone-input,
input.ecig-otp-phone-input {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  border: 1px solid rgba(45, 20, 62, 0.13) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 12px 30px rgba(36, 18, 54, 0.06) !important;
  outline: none !important;
  padding: 0 20px !important;
  font-size: 20px !important;
  font-weight: 850 !important;
  color: #251333 !important;
  letter-spacing: .01em;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.ecig-otp-phone-input:focus,
input.ecig-otp-phone-input:focus {
  border-color: rgba(164, 83, 255, 0.58) !important;
  box-shadow: 0 0 0 4px rgba(164, 83, 255, 0.10), 0 14px 34px rgba(36, 18, 54, 0.08) !important;
}

.ecig-otp-phone-input.is-verified,
input.ecig-otp-phone-input.is-verified {
  border-color: rgba(22, 163, 74, 0.42) !important;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.09), 0 14px 34px rgba(36, 18, 54, 0.07) !important;
}

.ecig-otp-phone-input::placeholder {
  color: rgba(37, 19, 51, 0.34);
  font-weight: 700;
}

.ecig-otp-card {
  position: relative;
  margin: 10px 0 18px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 111, 82, 0.11), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(148, 74, 255, 0.11), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(253,249,255,.98) 100%);
  border: 1px solid rgba(148, 74, 255, 0.15);
  box-shadow: 0 14px 34px rgba(36, 18, 54, 0.065);
  overflow: hidden;
}

.ecig-otp-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #8b3dff 0%, #ff6b4a 100%);
  opacity: .92;
}

.ecig-otp-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.ecig-otp-title-wrap {
  min-width: 0;
  padding-left: 3px;
}

.ecig-otp-mini-title {
  display: block;
  color: #251333;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 950;
}

.ecig-otp-subtitle {
  display: block;
  margin-top: 3px;
  color: rgba(37, 19, 51, 0.55);
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 750;
}

.ecig-otp-send,
.ecig-otp-verify {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 19px;
  background: linear-gradient(135deg, #8b3dff 0%, #ff6b4a 100%);
  color: #fff;
  font-weight: 950;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(139, 61, 255, 0.18);
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.ecig-otp-send:hover,
.ecig-otp-verify:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(139, 61, 255, 0.22);
}

.ecig-otp-send:disabled,
.ecig-otp-verify:disabled {
  background: #8b919c;
  cursor: not-allowed;
  opacity: .88;
  transform: none;
  box-shadow: none;
}

.ecig-otp-code-row {
  margin-top: 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.ecig-otp-code-row[hidden],
.ecig-otp-card [hidden] {
  display: none !important;
}

.ecig-otp-code {
  width: 100% !important;
  min-height: 44px !important;
  border-radius: 15px !important;
  border: 1px solid rgba(45, 20, 62, 0.11) !important;
  background: #fff !important;
  padding: 0 16px !important;
  font-size: 21px !important;
  font-weight: 950 !important;
  letter-spacing: .16em;
  text-align: center;
  color: #251333 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.ecig-otp-code:focus {
  border-color: rgba(164, 83, 255, 0.60) !important;
  box-shadow: 0 0 0 4px rgba(164, 83, 255, 0.10) !important;
  outline: none !important;
}

.ecig-otp-status {
  min-height: 0;
  margin-top: 8px;
  padding-left: 3px;
  font-size: 12.8px;
  font-weight: 850;
  line-height: 1.35;
}

.ecig-otp-status:empty {
  display: none;
}

.ecig-otp-status.is-neutral { color: rgba(37, 19, 51, 0.64); }
.ecig-otp-status.is-info { color: #6d28d9; }
.ecig-otp-status.is-success { color: #15803d; }
.ecig-otp-status.is-error { color: #dc2626; }

.ecig-otp-card.is-verified {
  border-color: rgba(22, 163, 74, 0.26);
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 163, 74, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7fff9 100%);
}

.ecig-otp-card.is-verified::before {
  background: linear-gradient(180deg, #16a34a 0%, #22c55e 100%);
}

.ecig-otp-card.is-verified .ecig-otp-subtitle {
  color: #15803d;
}

.ecig-hide-miniorange-otp .mo_customer_validation-modal,
.ecig-hide-miniorange-otp .mo_customer_validation-modal-backdrop,
.ecig-hide-miniorange-otp #mo_validate_otp,
.ecig-hide-miniorange-otp .mo_validate_otp,
.ecig-hide-miniorange-otp .mo_otp_verification,
.ecig-hide-miniorange-otp .mo_otp_token_verify,
.ecig-hide-miniorange-otp [id="mo_message"],
.ecig-hide-miniorange-otp [class*="mo_otp_token"] {
  display: none !important;
  visibility: hidden !important;
}

@media (max-width: 620px) {
  .ecig-otp-phone-input,
  input.ecig-otp-phone-input {
    min-height: 56px !important;
    border-radius: 18px !important;
    padding: 0 17px !important;
    font-size: 18px !important;
  }

  .ecig-otp-card {
    padding: 12px;
    border-radius: 18px;
  }

  .ecig-otp-main-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ecig-otp-send,
  .ecig-otp-verify {
    width: 100% !important;
  }

  .ecig-otp-code-row {
    grid-template-columns: 1fr;
  }

  .ecig-otp-code {
    width: 100% !important;
  }
}

.ecig-otp-send.is-verified,
.ecig-otp-send.is-verified:disabled {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
  opacity: 1;
}

/* v1.0.7 — restaure le titre du champ téléphone si le thème/Youzify l'a masqué pendant le nettoyage des doublons. */
.ecig-otp-phone-title {
  display: block !important;
  margin: 0 0 9px 0 !important;
  color: #251333 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

.ecig-otp-phone-title + .ecig-otp-phone-input,
.ecig-otp-phone-title + input.ecig-otp-phone-input {
  margin-top: 0 !important;
}
