/* CNR Checkout Forms - Frontend Styles (Version améliorée) */

/* Header du checkout */
.cnr-checkout-header {
  background-image: url(https://cnr.v2.mila.celaneo.com/app/uploads/2025/07/Hero-14.png);
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-clip: padding-box;
  padding: 30px 40px;
  color: white;
  margin-bottom: 40px;
  width: 100% !important;
}

.cnr-breadcrumb {
  font-size: 14px;
  margin-bottom: 15px;
  opacity: 0.9;
  margin-left: 100px;
}

.cnr-breadcrumb a {
  color: white;
  text-decoration: none;
}

.cnr-breadcrumb a:hover {
  text-decoration: underline;
}

.cnr-breadcrumb .separator {
  margin: 0 8px;
}

.cnr-main-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 30px 0;
  color: white;
  margin-left: 100px;
}

/* Étapes */
.cnr-steps {
  display: flex;
  gap: 20px;
  max-width: 800px;
  justify-content: space-between !important;
  margin-left: 100px;
}

.cnr-step {
  flex: 1;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cnr-step.active {
  background: white;
  color: #1e3a5f;
  font-weight: 600;
}

/* Layout en 2 colonnes */
.cnr-checkout-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

.cnr-form-column {
  background: white;
  border-radius: 5px;
  border: 2px solid grey;
  padding: 25px;
  margin-top: 30px;
}

/* Titre de la publication */
.cnr-publication-title {
  color: #0066cc;
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 15px;
  margin-left: 50px;
}

.cnr-form-intro {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  margin-left: 50px;
  margin-top: 30px;
}

/* Notice de connexion */
.cnr-login-notice {
  background-color: #f0f8ff;
  padding: 12px 15px;
  border-radius: 4px;
  margin-bottom: 30px;
  font-size: 14px;
}

.cnr-login-link {
  color: #0073aa;
  text-decoration: none;
  font-weight: 600;
}

.cnr-login-link:hover {
  text-decoration: underline;
}

/* User greeting */
.cnr-user-greeting {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cnr-greeting-text {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.cnr-logout-link {
  color: #dc3545;
  text-decoration: none;
  font-size: 14px;
  padding: 5px 10px;
  border: 1px solid #dc3545;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cnr-logout-link:hover {
  background: #dc3545;
  color: white;
  text-decoration: none;
}

/* Sections du formulaire */
.form-section {
  margin-bottom: 30px;
}

.section-title {
  margin: 35px 0 25px 0;
  color: #1a1a1a;
  font-size: 17px;
  font-weight: 600;
  padding-bottom: 0;
}

.form-row {
  margin-bottom: 18px;
}

/* Onglets Société/Particulier - Style exact maquette */
.cnr-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 25px;
  border: none;
  max-width: 300px; /* Limite la largeur comme dans la maquette */
}

.cnr-tab-btn {
  padding: 12px 24px;
  background: #ffffff;
  border: 2px solid #0d5ba6;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #0d5ba6;
  transition: all 0.3s ease;
  position: relative;
  /* Pas de border-radius par défaut */
  border-radius: 0;
}

/* Premier onglet - arrondi à gauche */
.cnr-tab-btn:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border-right: 1px solid #0d5ba6; /* Bordure réduite au centre */
}

/* Deuxième onglet - arrondi à droite */
.cnr-tab-btn:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-left: 1px solid #0d5ba6; /* Bordure réduite au centre */
}

/* État hover pour les onglets inactifs */
.cnr-tab-btn:not(.active):hover {
  background: #e8f4ff;
}

/* Onglet actif */
.cnr-tab-btn.active {
  background: #0d5ba6;
  color: white;
  border-color: #0d5ba6;
  z-index: 2;
}

/* Ajustement des bordures quand un onglet est actif */
.cnr-tab-btn.active:first-child {
  border-right-width: 2px;
}

.cnr-tab-btn.active:last-child {
  border-left-width: 2px;
}

/* Optionnel : animation de transition */
.cnr-tab-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus pour l'accessibilité */
.cnr-tab-btn:focus {
  outline: 2px solid #0d5ba6;
  outline-offset: 2px;
}

.cnr-tab-btn:focus:not(:focus-visible) {
  outline: none;
}

/* Champs du formulaire */
.form-group {
  width: 100%;
  display: flex;
  align-items: center;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
  color: #1a1a1a;
  font-size: 14px;
  width: 500px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  font-size: 15px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
  background-color: #fff;
  color: #333;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0d5ba6;
  box-shadow: 0 0 0 1px rgba(13, 91, 166, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 35px;
}

.required {
  color: #d32f2f;
  margin-left: 2px;
  font-weight: 400;
}

/* Checkbox - Style maquette */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-weight: 400;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #0d5ba6;
}

.cnr-link {
  color: #0066cc;
  text-decoration: none;
}

.cnr-link:hover {
  text-decoration: underline;
}

/* Bouton de soumission - Style maquette */
.cnr-submit-btn {
  padding: 15px;
  background-color: #003F74;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 25px;
  width: 200px;
  margin: 0 auto;
  font-weight: bold;

}

.cnr-submit-btn:hover {
  background-color: #094a8a;
}

.cnr-submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Colonne récapitulatif */
.cnr-summary-column {
  position: sticky;
  top: 20px;
  height: fit-content;
  margin-bottom: 30px !important;
}

.cnr-summary-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 28px;
}

.cnr-summary-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 20px;
}

.cnr-summary-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #003F74;
  margin: 0 0 25px 0;
}

.cnr-summary-date {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 25px;
}

.cnr-date-badge {
  color: white;
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
}
.cnr-date-daymonth {
  background: #0066cc;
  padding: 8px 12px;
  border-radius: 6px;
}

.cnr-date-badge .month {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: gold;
}

.cnr-date-badge .day {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.cnr-date-info {
  flex: 1;
}

.cnr-publication-name {
  font-size: 14px;
  color: #333;
  margin: 0 0 5px 0;
  line-height: 1.4;
}

.cnr-date-year {
  font-size: 15px;
  color: #161515;
  margin: 0;
  font-weight: 600;
}

.cnr-summary-prices {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.cnr-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cnr-price-label {
  font-size: 14px;
  color: #666;
}

.cnr-price-value {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.cnr-price-ttc {
  color: #0066cc;
  font-size: 20px;
}

/* Messages d'erreur/succès */
.payment-message {
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
  font-size: 14px;
}

.payment-message.error {
  background-color: #ffebee;
  border-left: 4px solid #f44336;
  color: #c62828;
}

.payment-message.success {
  background-color: #e8f5e9;
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}

.card-errors {
  color: #f44336;
  font-size: 13px;
  margin-top: 5px;
  min-height: 20px;
}

/* Spinner de chargement */
.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Bouton d'achat (pages produit) */
.cnr-buy-button-wrapper {
  margin: 20px 0;
}

.cnr-buy-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: #0073aa;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.cnr-buy-button:hover {
  background-color: #005a87;
  color: #ffffff;
}

/* Formulaire de paiement (Étape 2) */
.cnr-payment-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

.cnr-payment-intro {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

.cnr-payment-form-inner {
  background: white;
}

.stripe-card-element {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.stripe-card-element:focus-within {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Paiement sécurisé */
.cnr-secure-payment {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: #f0f8ff;
  padding: 20px;
  border-radius: 8px;
  margin-top: 25px;
}

.cnr-secure-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.cnr-secure-text strong {
  display: block;
  color: #0066cc;
  margin-bottom: 5px;
}

.cnr-secure-text p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* Actions de paiement */
.cnr-payment-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.cnr-back-btn {
  padding: 14px 30px;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cnr-back-btn:hover {
  background: #e0e0e0;
}

.cnr-payment-submit {
  flex: 1;
}

/* Informations paiement */
.cnr-payment-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}

.cnr-payment-info h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
}

.cnr-payment-info ul {
  margin: 0;
  padding-left: 20px;
}

.cnr-payment-info li {
  margin-bottom: 8px;
  color: #666;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
  .cnr-checkout-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cnr-summary-column {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .cnr-checkout-header {
    padding: 20px;
  }

  .cnr-main-title {
    font-size: 24px;
  }

  .cnr-steps {
    flex-direction: column;
    gap: 10px;
  }

  .cnr-checkout-content {
    padding: 0 20px 40px;
  }

  .cnr-tabs {
    grid-template-columns: 1fr;
  }

  .cnr-tab-btn {
    border-right: 1px solid #d0dce8;
    border-bottom: none;
  }

  .cnr-tab-btn:last-child {
    border-top: none;
  }
}

.cnr-card {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02), 0 8px 24px rgba(16, 24, 40, 0.06);
  overflow: hidden;
  padding: 25px;
}

.cnr-card__header {
  background: #f6f8fc;
  padding: 20px 22px;
  border-bottom: 1px solid #eef1f6;
}

.cnr-card__header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}

.cnr-meta {
  margin: 22px;
}

.cnr-meta__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.cnr-meta dt {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.4;
}

.cnr-meta dd {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.cnr-card__subtitle {
  margin: 8px 22px 6px;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.cnr-list {
  margin: 10px 22px 24px;
  padding: 0;
  list-style: none;
}

.cnr-list li {
  position: relative;
  padding-left: 18px;
  margin: 12px 0;
  color: #374151;
  font-size: 15px;
  line-height: 1.55;
}

.cnr-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

/* ========================================
   SYSTÈME D'ÉTAPES
   ======================================== */

/* Conteneur des étapes */
.cnr-steps-container {
  position: relative;
  min-height: 400px;
}

/* Contenu de chaque étape */
.cnr-step-content {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header de l'étape */
.cnr-step-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.cnr-step-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
}

.cnr-step-description {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Indicateurs d'étapes dans le header */
.cnr-step {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.cnr-step.completed {
  background: #e8f5e9;
  color: #2e7d32;
  cursor: pointer;
}

.cnr-step.completed::before {
  content: '✓';
  position: absolute;
  left: 15px;
  font-weight: bold;
  font-size: 16px;
}

.cnr-step.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.cnr-step.active {
  background: white;
  color: #1e3a5f;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hover sur les étapes complétées */
.cnr-step.completed:hover {
  background: #c8e6c9;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* ========================================
   PAGE DE PAIEMENT (ÉTAPE 2)
   ======================================== */

.cnr-payment-content {
  padding: 20px 0;
}

.cnr-payment-form-inner {
  background: white;
}

/* Champ carte Stripe */
.stripe-card-element {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  transition: border-color 0.3s ease;
  margin-bottom: 15px;
}

.stripe-card-element:focus-within {
  border-color: #0d5ba6;
  box-shadow: 0 0 0 2px rgba(13, 91, 166, 0.1);
}

/* Nom du titulaire */
.cnr-cardholder-group {
  margin-bottom: 20px;
}

.cnr-cardholder-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1a1a1a;
  font-size: 14px;
}

.cnr-cardholder-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.cnr-cardholder-group input:focus {
  outline: none;
  border-color: #0d5ba6;
  box-shadow: 0 0 0 2px rgba(13, 91, 166, 0.1);
}

/* Erreurs carte */
.card-errors {
  color: #f44336;
  font-size: 13px;
  margin-top: 8px;
  min-height: 20px;
}

/* Paiement sécurisé */
.cnr-secure-payment {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: #f0f8ff;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
}

.cnr-secure-icon {
  font-size: 32px;
  flex-shrink: 0;
  color: #0066cc;
}

.cnr-secure-text strong {
  display: block;
  color: #0066cc;
  margin-bottom: 5px;
  font-size: 16px;
}

.cnr-secure-text p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Actions de paiement */
.cnr-payment-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.cnr-back-btn {
  padding: 14px 30px;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cnr-back-btn:hover {
  background: #e0e0e0;
  border-color: #ccc;
  text-decoration: none;
}

.cnr-payment-submit {
  flex: 1;
}

/* Informations de paiement */
.cnr-payment-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 25px;
}

.cnr-payment-info h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.cnr-payment-info ul {
  margin: 0;
  padding-left: 20px;
}

.cnr-payment-info li {
  margin-bottom: 10px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* Messages de résultat */
#cnr-payment-result {
  margin-top: 20px;
}


.cnr-confirmation-content {
  padding: 40px 20px;
  text-align: center;
}

.cnr-confirmation-success {
  max-width: 600px;
  margin: 0 auto;
}

.cnr-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #4caf50;
  color: white;
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.cnr-confirmation-success h3 {
  font-size: 28px;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0 15px 0;
}

.cnr-confirmation-success > p {
  font-size: 16px;
  color: #666;
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.cnr-order-number {
  background: #f8f9fa;
  padding: 15px 20px;
  border-radius: 8px;
  margin: 25px 0;
  font-size: 15px;
  color: #333;
}

.cnr-order-number strong {
  color: #0d5ba6;
  font-weight: 600;
  font-size: 18px;
}

/* Actions de confirmation */
.cnr-confirmation-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.cnr-btn-primary,
.cnr-btn-secondary {
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  display: inline-block;
}

.cnr-btn-primary {
  background: #0d5ba6;
  color: white;
  border: 2px solid #0d5ba6;
}

.cnr-btn-primary:hover {
  background: #094a8a;
  border-color: #094a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 91, 166, 0.3);
  text-decoration: none;
  color: white;
}

.cnr-btn-secondary {
  background: white;
  color: #0d5ba6;
  border: 2px solid #0d5ba6;
}

.cnr-btn-secondary:hover {
  background: #f0f8ff;
  text-decoration: none;
  color: #0d5ba6;
}

.payment-message {
  padding: 15px 20px;
  border-radius: 6px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.5;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.payment-message.error {
  background-color: #ffebee;
  border-left: 4px solid #f44336;
  color: #c62828;
}

.payment-message.success {
  background-color: #e8f5e9;
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}

.input-loader-wrapper {
  position: relative;
}

.input-loader-wrapper input {
  padding-right: 35px; /* espace pour le loader */
}

.loader-promo-code {
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;

  position: absolute;
  right: 8px;
  top: 25%;
  transform: translateY(-50%);

  display: none; /* caché par défaut */
}

.error-icon-promo-code,
.success-icon-promo-code {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: none;
  pointer-events: none;
}

.error-icon-promo-code svg {
  width: 100%;
  height: 100%;
  stroke: red !important;
  stroke-width: 3;
  fill: none;
}

.success-icon-promo-code svg {
  width: 100%;
  height: 100%;
  stroke: #1abc9c !important; /* vert clair */
  stroke-width: 3;
  fill: none;
}

#promo-code-message{
  text-align: end;
  font-size:12px;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg) translateY(-50%); }
}


@media (max-width: 768px) {
  .cnr-step-title {
    font-size: 22px;
  }

  .cnr-step-description {
    font-size: 14px;
  }

  .cnr-payment-actions {
    flex-direction: column;
  }

  .cnr-back-btn {
    width: 100%;
    justify-content: center;
  }

  .cnr-confirmation-actions {
    gap: 10px;
  }

  .cnr-success-icon {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }

  .cnr-confirmation-success h3 {
    font-size: 22px;
  }

  .cnr-secure-payment {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


.form-group:has(#new_password),
.form-group:has(#confirm_password),
.form-group:has(#cnr-password),
.form-group:has(#cnr-password-confirm) {
  position: relative;
}

#new_password,
#confirm_password,
#cnr-password,
#cnr-password-confirm {
  box-sizing: border-box;
}

.cnr-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
  font-size: 20px;
  user-select: none;
}

.cnr-ac-wrap { position: relative; }

.cnr-address-suggest{
  position:absolute;
  right:0;
  top:calc(100% + 4px);
  width: var(--cnr-ac-width, 100%);
  background:#fff;
  border:1px solid #ddd;
  z-index:99999;
  border-radius:6px;
  overflow:hidden;
  display:none;
}

.cnr-address-suggest button{
  display:block;
  width:100%;
  text-align:left;
  padding:.55rem .75rem;
  border:0;
  background:none;
  cursor:pointer;
}
.cnr-address-suggest button:hover{ background:#f5f5f5; }

.custom-header-ariane a{
  cursor: default;
  font-family: 'Oxygen'!important;
  font-style: normal !important;
  font-weight: 700!important;
  pointer-events: none;
  font-size: 13px;
  line-height: 16px;
}
.custom-header-ariane.active a{
  padding-left: 25px !important;
  padding-right: 25px !important;
}
