/* LMDB - Sécurité des comptes clients */

/* Champ « pot de miel » : hors écran pour les humains, présent pour les robots */
.lmdbsc-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Widget Cloudflare Turnstile (discret : n'apparaît que si une action est demandée) */
.lmdbsc-ts {
  margin: 8px 0;
  max-width: 100%;
}
.lmdbsc-ts:empty {
  margin: 0;
}
.lmdbsc-ts-checkout {
  margin: 12px 0;
}

.lmdbsc-msg {
  margin: 8px 0;
  font-size: 0.9em;
  color: #555;
}
.lmdbsc-msg-error {
  color: #b71c1c;
}

/* Téléphone */
.lmdbsc-phone-msg {
  margin-top: 4px;
  font-size: 0.85em;
  line-height: 1.35;
  color: #b71c1c;
}
input.lmdbsc-invalid {
  border-color: #b71c1c !important;
}

/* Bouton « Continuer avec Google » du module */
.lmdbsc-google {
  margin: 14px 0 6px;
  text-align: center;
}
.lmdbsc-google-btn {
  display: inline-block;
  min-height: 44px;
  max-width: 100%;
}
/* Ancien bouton Google de Leo Quick Login masqué quand le bouton sécurisé est actif */
.lmdbsc-google-on .google-login-bt,
.lmdbsc-google-on #google-login-bt {
  display: none !important;
}

/* Paiement à la livraison : mention du code SMS */
.lmdbsc-otp-note {
  margin: 6px 0 0 28px;
  font-size: 0.85em;
  color: #555;
}

/* Page du code SMS */
.lmdbsc-otp {
  max-width: 480px;
}
.lmdbsc-otp-form {
  margin: 18px 0;
}
.lmdbsc-otp-form .form-control {
  margin: 6px 0 10px;
}
.lmdbsc-otp-code {
  font-size: 1.6em;
  letter-spacing: 0.3em;
  text-align: center;
  max-width: 220px;
}
.lmdbsc-otp-help,
.lmdbsc-otp-back {
  font-size: 0.9em;
  color: #555;
}
.lmdbsc-otp-change summary {
  cursor: pointer;
  margin-bottom: 6px;
}
@media (max-width: 480px) {
  .lmdbsc-otp .btn {
    width: 100%;
    white-space: normal;
  }
}

/* =====================================================================
 * Connexion rapide (1.1.0) : fenêtre « Se connecter / Créer un compte »
 * Charte La Maison du Bébé : bleu du logo #00a4c1, bleu foncé #007f97 (boutons, texte blanc lisible),
 * rose #f1959f, gris anthracite #373a40.
 * ===================================================================== */
html.lmdbsc-ql-lock,
html.lmdbsc-ql-lock body {
  overflow: hidden !important;
}
.lmdbsc-ql-root[hidden] {
  display: none !important;
}
.lmdbsc-ql-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1.45;
  color: #373a40;
}
.lmdbsc-ql-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 40, 48, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lmdbsc-ql {
  position: relative;
  width: min(460px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 18px;
  border-top: 5px solid #00a4c1;
  box-shadow: 0 18px 50px rgba(20, 40, 48, 0.28);
  padding: 18px 22px 16px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
}
.lmdbsc-ql *,
.lmdbsc-ql *::before,
.lmdbsc-ql *::after {
  box-sizing: border-box;
}
.lmdbsc-ql-root.is-open .lmdbsc-ql-backdrop {
  opacity: 1;
}
.lmdbsc-ql-root.is-open .lmdbsc-ql {
  opacity: 1;
  transform: none;
}
.lmdbsc-ql:focus {
  outline: none;
}
.lmdbsc-ql-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 48px;
  margin-bottom: 6px;
}
.lmdbsc-ql-logo {
  max-height: 46px;
  max-width: 190px;
  width: auto;
  height: auto;
}
.lmdbsc-ql-title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  margin: 0;
}
.lmdbsc-ql-close {
  position: absolute;
  right: -8px;
  top: -4px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #373a40;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.lmdbsc-ql-close svg {
  width: 22px;
  height: 22px;
}
.lmdbsc-ql-close:hover {
  background: #e5f6f9;
}
.lmdbsc-ql-welcome {
  margin: 0 0 12px;
  text-align: center;
  color: #5b6168;
  font-size: 13.5px;
}
.lmdbsc-ql-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 0 0 14px;
  background: #e5f6f9;
  border-radius: 999px;
}
.lmdbsc-ql-tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0b5e70;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0 10px;
}
.lmdbsc-ql-tab.is-active {
  background: #007f97;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 127, 151, 0.25);
}
.lmdbsc-ql-tab:focus-visible,
.lmdbsc-ql-close:focus-visible,
.lmdbsc-ql button:focus-visible,
.lmdbsc-ql a:focus-visible,
.lmdbsc-ql input:focus-visible {
  outline: 3px solid #f1959f;
  outline-offset: 2px;
}
.lmdbsc-ql-panel[hidden] {
  display: none !important;
}
.lmdbsc-ql-google {
  display: flex;
  justify-content: center;
  min-height: 1px;
}
.lmdbsc-ql-google.is-ready {
  min-height: 44px;
}
.lmdbsc-ql-google .lmdbsc-google {
  margin: 0;
  width: 100%;
}
.lmdbsc-ql-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: #8a9096;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lmdbsc-ql-or::before,
.lmdbsc-ql-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d7ecef;
}
.lmdbsc-ql-loading {
  text-align: center;
  color: #5b6168;
  margin: 18px 0;
}
.lmdbsc-ql-msg {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fdeff1;
  color: #8f2a3c;
  font-size: 13.5px;
}
.lmdbsc-ql-msg.lmdbsc-ql-success {
  background: #e7f6ee;
  color: #1e6b47;
}
/* Formulaires du thème dans la fenêtre : une colonne, champs pleine largeur */
.lmdbsc-ql .form-group,
.lmdbsc-ql .form-group.row {
  display: block;
  margin: 0 0 12px;
}
.lmdbsc-ql .form-group.row > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
  text-align: left !important;
}
.lmdbsc-ql .form-control-label,
.lmdbsc-ql label {
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 4px;
  padding-top: 0 !important;
  text-align: left !important;
}
.lmdbsc-ql .form-control,
.lmdbsc-ql input[type="text"],
.lmdbsc-ql input[type="email"],
.lmdbsc-ql input[type="password"],
.lmdbsc-ql input[type="tel"] {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #c5dde2;
  font-size: 16px;
  background: #fff;
}
.lmdbsc-ql .form-control:focus,
.lmdbsc-ql input:focus {
  border-color: #00a4c1;
  box-shadow: 0 0 0 3px rgba(0, 164, 193, 0.15);
}
.lmdbsc-ql .input-group {
  display: flex;
  width: 100%;
}
.lmdbsc-ql .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.lmdbsc-ql .input-group-btn .btn,
.lmdbsc-ql [data-action="show-password"] {
  min-height: 46px;
  border-radius: 0 10px 10px 0;
  background: #e5f6f9;
  color: #0b5e70;
  border: 1px solid #c5dde2;
  border-left: 0;
  font-weight: 600;
}
.lmdbsc-ql .form-control-comment {
  font-size: 12px;
  color: #6a7177;
}
.lmdbsc-ql .forgot-password {
  text-align: right;
  margin: -4px 0 10px;
  font-size: 13.5px;
}
.lmdbsc-ql .forgot-password a,
.lmdbsc-ql .lmdbsc-ql-body a {
  color: #007f97;
  text-decoration: underline;
}
.lmdbsc-ql .form-footer {
  margin-top: 6px;
  text-align: center;
  float: none;
}
.lmdbsc-ql .form-footer .btn,
.lmdbsc-ql button[type="submit"] {
  display: block;
  width: 100%;
  float: none !important;
  min-height: 48px;
  border-radius: 999px;
  border: 0;
  background: #007f97 !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.lmdbsc-ql button[type="submit"]:hover {
  background: #0b5e70 !important;
}
.lmdbsc-ql button[type="submit"][aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}
.lmdbsc-ql .help-block,
.lmdbsc-ql .alert-danger,
.lmdbsc-ql .has-error .form-control-comment {
  color: #8f2a3c;
}
.lmdbsc-ql .alert {
  border-radius: 10px;
  font-size: 13.5px;
}
.lmdbsc-ql .custom-checkbox label,
.lmdbsc-ql .checkbox label,
.lmdbsc-ql input[type="checkbox"] + span {
  font-weight: 400;
}
.lmdbsc-ql-perks {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px dashed #d7ecef;
  text-align: center;
  font-size: 12px;
  color: #6a7177;
}

/* Téléphone : la fenêtre glisse depuis le bas de l'écran */
@media (max-width: 767px) {
  .lmdbsc-ql-root {
    align-items: flex-end;
  }
  .lmdbsc-ql {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .lmdbsc-ql::before {
    content: '';
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 99px;
    background: #d7ecef;
    margin: 0 auto 8px;
  }
  .lmdbsc-ql-root.is-open .lmdbsc-ql {
    transform: none;
  }
  .lmdbsc-ql-close {
    right: -6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lmdbsc-ql,
  .lmdbsc-ql-backdrop {
    transition: none !important;
  }
}
/* Tant que Google n'a pas dessiné son bouton : aucun espace réservé */
.lmdbsc-ql-google:not(.is-ready) .lmdbsc-google {
  margin: 0;
}
.lmdbsc-ql-google:not(.is-ready) .lmdbsc-google-btn {
  min-height: 0;
}
.lmdbsc-ql .input-group-btn .btn,
.lmdbsc-ql button[data-action="show-password"] {
  background: #e5f6f9 !important;
  color: #0b5e70 !important;
  border-color: #c5dde2 !important;
  text-transform: none;
}
