/* Contrôle de majorité — tout est préfixé #swl-majorite- / .swl-majorite- */
#swl-majorite-fenetre {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}
#swl-majorite-fenetre[hidden] { display: none; }
#swl-majorite-fenetre .swl-majorite-boite {
  box-sizing: border-box;
  width: 32rem;
  max-width: 100%;
  padding: 2rem;
  background: #fff;
  color: #212121;
  text-align: center;
}
#swl-majorite-fenetre .swl-majorite-boutons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
#swl-majorite-fenetre button { min-height: 44px; }
html.swl-majorite-bloque, html.swl-majorite-bloque body { overflow: hidden; }

@media (max-width: 575px) {
  #swl-majorite-fenetre .swl-majorite-boite {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Bloc de certification : encadré à fond doux, bordure d'accent à gauche (accent du thème classic). */
#swl-majorite-bloc {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #eef9fc;
  border: 1px solid #cdeaf2;
  border-left: 6px solid #24b9d7;
  border-radius: 4px;
}
#swl-majorite-bloc.swl-majorite-bloc--ok { background: #f3faf5; border-color: #cfe8d6; border-left-color: #4cbb6c; }
#swl-majorite-bloc .swl-majorite-entete { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
#swl-majorite-bloc .swl-majorite-icone {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  height: 3.5rem;
  background: #fff;
  border: 3px solid #24b9d7;
  border-radius: 50%;
  color: #0b6a7d;
  font-size: 1.25rem;
  font-weight: 700;
}
#swl-majorite-bloc .swl-majorite-titre { margin: 0; font-size: 1.5rem; line-height: 1.2; }
#swl-majorite-bloc .swl-majorite-consigne { font-size: 1.1rem; }
#swl-majorite-bloc label { display: block; margin: 1rem 0; }
#swl-majorite-bloc label.swl-majorite-case-label { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1.1rem; font-weight: 600; cursor: pointer; }
#swl-majorite-bloc input[type="checkbox"] { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; margin: 0; }
#swl-majorite-bloc button { min-height: 44px; }

/* Messages rouges du cœur neutralisés SEULEMENT quand notre bloc est affiché (classe posée par paiement.js). */
html.swl-majorite-actif #checkout-payment-step .alert-danger:not(#swl-majorite-erreur):not(.js-alert-payment-conditions) { display: none; }
html.swl-majorite-actif #payment-confirmation .js-alert-payment-conditions {
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #555;
}
#swl-majorite-mineur { margin: 0; font-size: 1.1rem; font-weight: 600; color: #212121; }
#swl-majorite-mention { margin: 0.75rem 0; font-weight: 600; color: #212121; }
