/* Checkout + r?sum? commande compact */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr min(360px, 100%);
  gap: 28px;
  align-items: start;
  padding: 24px 0 48px;
}
/* Informations seulement ? ne pas toucher ? la page paiement Stripe/PayPal */
.page-checkout:not(.page-checkout-payment) .container.checkout-layout:not(.checkout-payment-layout) {
  grid-template-columns: minmax(0, 640px) min(340px, 100%);
  gap: 10px;
  justify-content: center;
  max-width: 1020px;
}
.checkout-panel { min-width: 0; }
.checkout-panel-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--noir); }
.checkout-aside { position: sticky; top: calc(var(--header-total-h) + 16px); min-width: 0; }

.checkout-logged-banner {
  background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; color: #166534; margin-bottom: 18px;
}
.checkout-info-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.checkout-info-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.checkout-info-continue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.checkout-pay-saved {
  margin-top: 14px;
}
.checkout-pay-saved-btn {
  width: 100%;
  justify-content: center;
}
.checkout-pay-saved-btn--paypal {
  background: #003087;
  border-color: #003087;
  color: #fff;
}
.checkout-pay-saved-btn--paypal:hover,
.checkout-pay-saved-btn--paypal:focus {
  background: #001c64;
  border-color: #001c64;
  color: #fff;
}
.checkout-pay-saved-btn--google-pay,
.checkout-pay-saved-btn--apple-pay {
  background: #000;
  border-color: #000;
  color: #fff;
  border-radius: 4px;
  min-height: 48px;
  box-shadow: none;
  gap: 8px;
}
.checkout-pay-saved-btn--google-pay:hover,
.checkout-pay-saved-btn--google-pay:focus {
  background: #3c4043;
  border-color: #3c4043;
  color: #fff;
  box-shadow: none;
}
.checkout-pay-saved-btn--apple-pay:hover,
.checkout-pay-saved-btn--apple-pay:focus {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
  box-shadow: none;
}
.checkout-wallet-cta-prefix {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
.checkout-wallet-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.checkout-wallet-word {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: #fff;
  line-height: 1;
}
.checkout-gpay-g,
.checkout-apay-logo {
  display: block;
  flex-shrink: 0;
}
.checkout-pay-saved-email,
.checkout-pay-saved-cardinfo {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}
.checkout-info-continue--muted {
  background: #fff;
  border: 2px solid #ccc;
  color: #111;
  box-shadow: none;
}
.checkout-info-continue--muted:hover,
.checkout-info-continue--muted:focus {
  background: #f7f7f7;
  border-color: #bbb;
  color: #111;
  box-shadow: none;
}
.checkout-pay-saved--mobile { display: none; }
.checkout-info-actions--mobile { display: none; }
.checkout-new-card-fields {
  margin: 8px 0 4px;
  padding: 10px 4px 4px;
}
.checkout-new-card-fields[hidden] {
  display: none !important;
}
.checkout-nav-label-short { display: none; }
.checkout-nav-label-full { display: inline; }
.checkout-guest-cta {
  background: #fff8f9; border: 1px solid #fecdd3; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 20px; font-size: 14px; color: var(--noir);
}
.checkout-guest-cta p { margin: 0 0 12px; }
.checkout-guest-cta a { color: var(--rouge); font-weight: 700; }
.checkout-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shipping-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.shipping-option {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 14px 16px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.shipping-option:has(input:checked) {
  border-color: var(--rouge); background: #fff8f9;
}
.shipping-option input { margin-top: 3px; accent-color: var(--rouge); flex-shrink: 0; }
.shipping-option-label { font-weight: 600; font-size: 14px; color: var(--noir); }
.shipping-option-price { font-weight: 700; color: var(--rouge); margin-left: auto; white-space: nowrap; }
.shipping-option-sub { font-size: 12px; color: var(--gris); margin-top: 2px; }
.shipping-pickup-only-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.55;
  display: block;
}
.shipping-pickup-only-alert .shipping-pickup-only-text {
  margin: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.55;
}
.shipping-pickup-only-alert a.shipping-pickup-only-contact {
  color: #c2410c;
  font-weight: 700;
  text-decoration: underline;
  display: inline;
  white-space: nowrap;
}
.shipping-pickup-only-alert a.shipping-pickup-only-contact:hover {
  color: var(--rouge, #D90429);
}
.shipping-option--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.shipping-option--disabled input {
  pointer-events: none;
}

/* Panier ? carte produit (align? favoris / historique) */
.page-panier .mini-produit-media-link,
.order-detail-items .mini-produit-media-link {
  display: block;
  text-decoration: none;
}
.page-panier .mini-produit-media-link:hover,
.order-detail-items .mini-produit-media-link:hover { opacity: 0.92; }
.produit-mini-titre-link {
  color: inherit;
  text-decoration: none;
}
.produit-mini-titre-link:hover {
  color: var(--rouge);
  text-decoration: underline;
}
.page-panier .mini-produit--cart {
  padding: 12px 14px;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.page-panier .mini-produit--cart .mini-produit-body {
  flex: 1;
  min-width: 0;
}
.page-panier .mini-produit-media {
  flex-shrink: 0;
}
.page-panier .mini-produit-img--lg {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.page-panier .produit-mini-prix.mini-produit-prix--lg {
  font-size: 15px;
}
.panier-item-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.panier-item-media-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
}
.panier-item-status--mobile { display: none; }
.panier-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  margin-left: auto;
  min-width: 0;
}
.panier-item-action-form {
  display: inline-flex;
  margin: 0;
  flex: 0 0 auto;
}
.page-panier .mini-produit--contact-only {
  background: #fff7ed;
}
.page-panier .mini-produit--contact-only .produit-mini-shipping,
.page-panier .mini-produit--contact-only .produit-mini-shipping a {
  color: #111;
  font-size: 11px;
  line-height: 1.35;
}
.shipping-pickup-only-alert a.shipping-pickup-only-move {
  color: #c2410c;
  font-weight: 700;
  text-decoration: underline;
  display: inline;
}
.shipping-pickup-only-alert a.shipping-pickup-only-move:hover {
  color: var(--rouge, #D90429);
}
.btn-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #D90429;
  font-size: 18px;
  line-height: 1;
}
.btn-icon--danger:hover,
.btn-icon--danger:focus-visible {
  color: #b8032a;
}
.btn-icon[title]:hover::after,
.btn-icon[title]:focus-visible::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1b1b1b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
}
.btn-contour-gris {
  background: #fff;
  color: #1b1b1b;
  border: 1px solid #d1d5db;
}
.btn-contour-gris:hover,
.btn-contour-gris:focus-visible {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #1b1b1b;
}
.btn-save-later {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.btn-save-later__short { display: none; }
@media (max-width: 768px) {
  .btn-save-later {
    padding: 6px 8px;
    font-size: 12px;
    gap: 4px;
  }
  .btn-save-later__full { display: none; }
  .btn-save-later__short { display: inline; }
}

/* Confirmation commande */
.confirmation-layout {
  width: min(100% - 32px, 800px);
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 0 40px;
}
.confirmation-steps { margin-bottom: 18px; }
.confirmation-card {
  padding: 26px 24px;
  text-align: center;
}
.confirmation-lead {
  color: var(--gris);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.confirmation-order-ref {
  color: #1b1b1b;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.confirmation-order-ref strong {
  font-weight: 800;
  color: #1b1b1b;
}
.confirmation-items-details {
  margin: 0 0 14px;
}
.confirmation-items-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.confirmation-items-details > summary::-webkit-details-marker { display: none; }
.confirmation-items-details > summary::after {
  content: '';
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.confirmation-items-details[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.confirmation-details__summary {
  margin-bottom: 0;
}
.confirmation-items-details[open] > .confirmation-details__summary {
  margin-bottom: 12px;
}
.confirmation-numero {
  display: inline-block;
  min-width: 280px;
  max-width: 100%;
  padding: 12px 18px;
  margin-bottom: 16px;
  background: var(--gris-tres-pale, #f8fafc);
  border: 1px dashed #e2e8f0;
  border-radius: var(--radius);
}
.confirmation-numero__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gris);
  margin-bottom: 6px;
}
.confirmation-numero__value {
  font-size: 20px;
  font-weight: 800;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.03em;
}
.confirmation-next-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 14px 16px;
  margin: 0 0 18px;
  border: 1px solid #ffd7df;
  border-radius: var(--radius);
  background: #fff7f8;
  color: var(--noir);
}
@media (min-width: 641px) {
  .page-confirmation .confirmation-next-step {
    width: 65%;
    max-width: 520px;
    margin-inline: auto;
  }
}
.confirmation-next-step i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rouge);
  background: #fff;
  box-shadow: 0 8px 18px rgba(217, 4, 41, 0.12);
}
.confirmation-next-step p {
  margin: 0;
  color: var(--gris);
  line-height: 1.55;
}
.confirmation-next-step strong {
  color: var(--noir);
}
.confirmation-details {
  text-align: left;
  border: 1px solid #ebebeb;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}
.confirmation-details__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #f0f0f0;
}
.confirmation-items {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.confirmation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 2px 10px;
  font-size: 13px;
  max-width: 560px;
  margin-inline: auto;
}
.confirmation-item__name { font-weight: 600; color: var(--noir); padding-left: 12px; }
.confirmation-item__meta { grid-column: 1; font-size: 12px; }
.confirmation-item__price { grid-row: 1 / span 2; align-self: center; font-weight: 700; white-space: nowrap; }
.confirmation-totals {
  margin-bottom: 10px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  max-width: 460px;
  margin-inline: auto;
}
.confirmation-totals .order-summary-lines {
  gap: 7px;
  margin-bottom: 10px;
}
.confirmation-totals .order-summary-row {
  font-size: 14px;
  line-height: 1.35;
}
.confirmation-totals .order-summary-row--promo span:last-child {
  color: var(--rouge);
}
.confirmation-totals .order-summary-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top-color: #dfe3e8;
}
.confirmation-order-total {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.confirmation-order-total span:last-child {
  color: var(--noir);
}
.confirmation-pay-method {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.confirmation-account-cta {
  text-align: center;
  border: 1px solid #ffd7df;
  border-radius: 14px;
  background: #fff7f8;
  padding: 14px 16px;
  margin: 0 0 18px;
}
.confirmation-account-cta strong {
  display: block;
  color: var(--noir);
  margin-bottom: 4px;
}
.confirmation-account-cta p {
  margin: 0 0 10px;
  color: var(--gris);
  font-size: 13px;
  line-height: 1.45;
}
.confirmation-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.checkout-pay-card {
  padding: 24px;
  text-align: center;
}
.checkout-pay-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gris-moyen, #6b7280);
  font-size: 13px;
}
.checkout-pay-divider::before,
.checkout-pay-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.checkout-guest-banner {
  display: block;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  box-sizing: border-box;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--gris-fonce);
  text-align: center;
}
.checkout-guest-banner__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}
.checkout-guest-banner__title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.checkout-guest-banner__title-row i {
  color: var(--rouge);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.checkout-guest-banner__content strong {
  color: var(--noir);
  font-size: 15px;
}
.checkout-guest-banner__text {
  line-height: 1.45;
  max-width: 36em;
}
.checkout-guest-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}
.checkout-guest-banner__mobile-label { display: none; }
.checkout-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-start;
}
.checkout-field { flex: 0 1 auto; min-width: 0; }
.checkout-field--name { flex-basis: 180px; max-width: 220px; }
.checkout-field--email { max-width: 320px; }
.checkout-field--phone { max-width: 180px; }
.checkout-field--address { max-width: 420px; }
.checkout-field--unit { max-width: 160px; }
.checkout-field--city { flex-basis: 180px; max-width: 260px; }
.checkout-field--province { flex-basis: 190px; max-width: 220px; }
.checkout-field--postal { max-width: 130px; }
.checkout-field .champ-input,
.checkout-field select.champ-input {
  width: 100%;
}
.checkout-option-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: var(--gris-fonce);
  font-size: 13px;
  line-height: 1.35;
  cursor: pointer;
}
.checkout-option-check input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--rouge);
  flex-shrink: 0;
}
.checkout-option-check span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.checkout-option-check strong { color: var(--noir); }
.checkout-option-check small { color: var(--gris); line-height: 1.35; }
.checkout-create-account-check { max-width: 520px; }
.checkout-save-payment-check { margin-top: 10px; }
.checkout-saved-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.checkout-saved-methods-title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--noir);
}
.checkout-saved-method {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.checkout-saved-method:hover,
.checkout-saved-method:has(input:checked) {
  border-color: var(--rouge);
}
.checkout-saved-method input {
  margin-top: 3px;
  accent-color: var(--rouge);
}
.checkout-saved-method-icon {
  width: 28px;
  display: flex;
  justify-content: center;
  padding-top: 2px;
  color: var(--gris-fonce);
}
.checkout-saved-method span strong {
  display: block;
  font-size: 14px;
}
.checkout-saved-method span small {
  display: block;
  color: var(--gris);
  font-size: 12px;
}
.checkout-saved-paypal-btn {
  background: #003087;
  border-color: #003087;
  color: #fff;
}
.checkout-saved-paypal-btn:hover {
  border-color: #001c64;
  background: #001c64;
}
.checkout-saved-paypal-btn .checkout-saved-method-icon {
  color: #fff;
}
.checkout-saved-paypal-btn span strong,
.checkout-saved-paypal-btn span small {
  color: #fff;
}
.checkout-saved-paypal-btn span small {
  opacity: 0.85;
}
.checkout-paypal-other-label {
  margin: 4px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gris);
}
.order-summary {
  background: #fafafa; border: 1px solid #ebebeb; border-radius: 12px; padding: 18px 16px;
}
.order-summary-title { font-size: 16px; font-weight: 700; margin: 0 0 5px; color: var(--noir); }
.order-summary-lines { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.order-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--gris-fonce); gap: 12px;
}
.order-summary-row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 10px; border-top: 1px solid #ddd;
  font-size: 16px; font-weight: 800; color: var(--noir);
}
.order-summary-total span:last-child { color: var(--rouge); font-variant-numeric: tabular-nums; }

.panier-resume .order-summary,
.panier-sidebar .order-summary { background: transparent; border: none; padding: 0; }
.panier-resume .order-summary-title,
.panier-sidebar .order-summary-title { margin-bottom: 5px; }
.panier-sidebar .panier-actions-stack { margin-top: 0; }
.panier-checkout-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.panier-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}
.panier-actions-stack .panier-btn-pay,
.panier-actions-stack .panier-btn-continue {
  align-self: center;
  width: auto;
  min-width: 0;
  padding: 8px 20px;
  font-size: 13px;
}
.panier-btn-pay {
  transform-origin: center center;
  animation: panier-pay-pulse 8s ease-in-out infinite;
}
.panier-btn-pay:hover,
.panier-btn-pay:focus-visible {
  animation: none;
  transform: scale(1);
}
@keyframes panier-pay-pulse {
  0%, 62.5%, 100% { transform: scale(1); }
  7.8125% { transform: scale(1.06); }
  15.625% { transform: scale(1); }
  23.4375% { transform: scale(1.06); }
  31.25% { transform: scale(1); }
  39.0625% { transform: scale(1.06); }
  46.875% { transform: scale(1); }
  54.6875% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .panier-btn-pay { animation: none; }
}
@media (max-width: 768px) {
  .panier-actions-stack {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .panier-actions-stack .panier-btn-pay,
  .panier-actions-stack .panier-btn-continue {
    align-self: center;
  }
}
@media (min-width: 769px) {
  .panier-actions-stack {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 12px;
  }
  .panier-actions-stack .panier-btn-pay,
  .panier-actions-stack .panier-btn-continue {
    align-self: auto;
    flex: 0 1 auto;
  }
}
a.btn { text-decoration: none; box-sizing: border-box; }

.order-summary-shipping-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.order-summary-shipping-voir {
  border: none;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--rouge);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.order-summary-shipping-voir:hover { color: var(--rouge-dark); }

.shipping-breakdown-modal { max-width: 440px; padding: 24px; }
.shipping-breakdown-title { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: var(--noir); }
.shipping-breakdown-lead { font-size: 13px; margin: 0 0 14px; }
.shipping-breakdown-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}
.shipping-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  padding: 8px 10px;
  background: var(--gris-tres-pale);
  border-radius: var(--radius-sm);
}
.shipping-breakdown-item-name {
  flex: 1;
  min-width: 0;
  color: var(--noir);
  font-weight: 500;
  line-height: 1.35;
}
.shipping-breakdown-item-fee {
  font-weight: 700;
  color: var(--rouge);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.shipping-breakdown-discount {
  color: var(--vert-succes, #16a34a);
  font-weight: 700;
}
.sherbrooke-shipping-modal .sherbrooke-shipping-options {
  margin-bottom: 16px;
}
.sherbrooke-shipping-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.sherbrooke-shipping-actions .btn {
  min-width: 160px;
}
.shipping-breakdown-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid #ebebeb;
  font-size: 15px;
  font-weight: 800;
  color: var(--noir);
}
.shipping-breakdown-total span:last-child { color: var(--rouge); }

.panier-resume .panier-shipping-form,
.panier-sidebar .panier-shipping-form {
  margin: 0;
  padding: 0;
  border: none;
}
.panier-resume .shipping-section-title,
.panier-sidebar .shipping-section-title {
  font-size: 14px;
  margin-bottom: 8px;
}
.panier-resume .shipping-options {
  gap: 8px;
  margin-bottom: 0;
}
.panier-resume .shipping-option {
  padding: 10px 12px;
  gap: 8px;
  align-items: center;
}
.panier-resume .shipping-option-label {
  font-size: 12px;
  line-height: 1.25;
}
.panier-resume .shipping-option-sub {
  font-size: 11px;
  line-height: 1.3;
  margin-top: 1px;
}
.panier-resume .shipping-option-price {
  font-size: 12px;
}
.panier-resume .shipping-option input {
  margin-top: 0;
}

.panier-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.panier-save-form { margin: 0; }
.panier-reserve-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--gris-fonce, #333);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}
.panier-reserve-notice__icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--gris, #666);
  margin-top: 1px;
}
.panier-shipping-form {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #ebebeb;
}
.shipping-section-title {
  font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--noir);
}
.shipping-option-body { flex: 1; min-width: 0; }

/* S?curit? du compte ? 2 colonnes */
.security-page-grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 280px);
  gap: 28px;
  align-items: start;
}
.security-page-right { display: flex; justify-content: stretch; }
.security-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}
.security-links .btn {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 9px 14px;
}
.security-score-detail-title {
  font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--noir);
}
.security-checklist {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
}
.security-checklist li { display: flex; align-items: center; gap: 8px; }
.totp-input { text-align: center; letter-spacing: 0.25em; font-weight: 600; max-width: 200px; }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 20px; }
  .page-checkout:not(.page-checkout-payment) .container.checkout-layout:not(.checkout-payment-layout) {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: none;
    justify-content: stretch;
  }
  /* Phone stack + saved pay: keep GRID, only shrink the column gap */
  .page-checkout:not(.page-checkout-payment) .container.checkout-layout.checkout-layout--saved-pay:not(.checkout-payment-layout) {
    gap: 4px;
  }
  .checkout-aside { position: static; }
  .checkout-pay-saved--mobile {
    display: block;
    margin: 0 0 8px;
    padding-inline: 0;
    box-sizing: border-box;
    text-align: center;
  }
  .page-checkout:not(.page-checkout-payment) .checkout-aside {
    padding-inline: 16px;
    box-sizing: border-box;
  }
  .page-checkout:not(.page-checkout-payment) .checkout-aside .order-summary {
    padding-inline: 4px;
  }
  .checkout-pay-saved--desktop { display: none; }
  .checkout-info-actions--desktop { display: none !important; }
  .checkout-info-actions--mobile {
    display: flex;
    margin-top: 14px;
  }
  .security-page-grid { grid-template-columns: 1fr; gap: 20px; }
  .security-links {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
@media (max-width: 520px) {
  .security-links { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-panier .panier-layout,
  .page-panier .panier-liste,
  .page-panier .panier-header-actions-wrap,
  .page-panier .panier-checkout-group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .page-panier .mini-produit--cart {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px 12px;
    padding: 12px 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .page-panier .mini-produit--cart .mini-produit-body,
  .page-panier .mini-produit--cart .produit-mini-info {
    min-width: 0;
    max-width: 100%;
  }
  .page-panier .mini-produit-img--lg {
    width: 56px;
    height: 56px;
  }
  .panier-item-status--mobile {
    display: inline-flex;
  }
  .panier-item-status--desktop {
    display: none !important;
  }
  .compte-title-row { flex-direction: column; align-items: stretch; }
  .bienvenue-card { flex-direction: column; align-items: flex-start !important; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .checkout-panel-title { font-size: 18px; }
  .shipping-option { padding: 12px; }
}

/* Adresses caisse ? livraison gris?e en ramassage */
.checkout-address-sections {
  margin-bottom: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ebebeb;
}
.page-checkout .checkout-shipping-block {
  margin-top: 6px;
}
.page-checkout .guest-shipping-fields {
  margin-top: 12px;
}
.page-checkout .guest-shipping-fields.is-hidden,
.page-checkout .guest-shipping-fields[hidden] {
  display: none !important;
}
.page-checkout .guest-shipping-fields:not(.is-hidden):not([hidden]) {
  display: block !important;
}
.page-checkout .checkout-manual-address-toggle {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--rouge);
  font-size: 13px;
  font-weight: 700;
  padding: 2px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-checkout .checkout-manual-address-toggle[hidden] {
  display: none !important;
}
.page-checkout .checkout-manual-address-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-checkout .address-form.aica-ready.aica-manual-collapsed .checkout-manual-address-fields {
  display: none !important;
}
.page-checkout .address-form.aica-ready.aica-manual-collapsed .aica-address-block {
  margin-bottom: 0;
}
.address-form[data-aica-offline="1"] .aica-address-block {
  display: none !important;
}
.page-checkout .aica-ac-selected-label,
.page-checkout .aica-ac-selected-title,
.page-checkout .aica-ac-selected-address-label {
  font-size: 0 !important;
}
.page-checkout .aica-ac-selected-label::before,
.page-checkout .aica-ac-selected-title::before,
.page-checkout .aica-ac-selected-address-label::before {
  content: "Mon adresse";
  font-size: 13px;
}
.page-checkout .checkout-shipping-block:has([name="shipping_same_as_billing"]:not(:checked)) .guest-shipping-fields {
  display: block !important;
}
.page-checkout .checkout-shipping-block:has([name="shipping_same_as_billing"]:not(:checked)) .guest-shipping-fields.is-hidden {
  display: block !important;
}
.page-checkout .checkout-shipping-block:has([name="shipping_same_as_billing"]:checked) .guest-shipping-fields {
  display: none !important;
}
.page-checkout .checkout-guest-contact .contact-row {
  gap: 12px;
  align-items: start;
}
.page-checkout .checkout-guest-contact .contact-row > .addr-field:not(.phone-field) {
  /* Keep Nom aligned with T?l input (hint only under phone) */
  padding-bottom: 0;
}
.page-checkout .address-form.checkout-guest-contact {
  gap: 12px;
}
.page-checkout #vos-coordonnees {
  scroll-margin-top: calc(var(--header-total-h, 120px) + 12px);
}
.checkout-address-lead {
  margin: 0 0 16px;
  line-height: 1.45;
}
.checkout-address-lead a {
  color: var(--rouge);
  font-weight: 600;
  text-decoration: none;
}
.checkout-address-lead a:hover { text-decoration: underline; }
.checkout-no-address-msg .checkout-add-address-link {
  display: inline-block;
  margin-top: 6px;
  color: #D90429;
  font-weight: 700;
  text-decoration: underline;
}
.checkout-no-address-msg .checkout-add-address-link:hover {
  color: #b00322;
}
.checkout-address-block {
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 14px;
  background: #fafafa;
}
.checkout-address-block.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  filter: grayscale(0.25);
  background: #f0f0f0;
  border-color: #e0e0e0;
}
.checkout-address-legend {
  font-size: 14px;
  font-weight: 700;
  color: var(--noir);
  padding: 0 4px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-same-billing {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gris-fonce);
  cursor: pointer;
  margin: 0;
}
.checkout-same-billing input {
  width: 16px;
  height: 16px;
  accent-color: var(--rouge);
}
.checkout-tax-note {
  margin: 4px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* Checkout polish ? compact flow, account summary, payment widgets */
.page-checkout .checkout-page-header {
  padding: 10px 0 6px;
}
.page-checkout .checkout-page-header .compte-breadcrumb {
  font-size: 12px;
  margin-bottom: 0;
}
.page-checkout .checkout-page-header .panier-page-titre {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0;
}
.checkout-steps {
  max-width: 520px;
  margin-inline: auto;
}
.checkout-steps .etape-cercle {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.checkout-steps .etape-label {
  font-size: 12px;
}
.checkout-layout {
  padding-top: 7px;
}
.page-checkout .checkout-steps.mb-12 {
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .page-checkout .checkout-guest-banner {
    padding-inline: 10px;
  }
  .page-checkout .checkout-guest-banner__actions {
    flex-wrap: nowrap;
    gap: 6px;
  }
  .page-checkout .checkout-guest-banner__actions .btn-sm {
    padding: 7px 9px;
    font-size: 12px;
    white-space: nowrap;
  }
  .page-checkout .checkout-guest-banner__desktop-label { display: none; }
  .page-checkout .checkout-guest-banner__mobile-label { display: inline; }
  .page-checkout .checkout-address-sections,
  .page-checkout #vos-coordonnees,
  .page-checkout .checkout-create-account-check,
  .page-checkout .checkout-info-actions,
  .page-checkout .checkout-pay-saved--mobile,
  .page-checkout:not(.page-checkout-payment) .checkout-aside {
    padding-inline: 16px;
    box-sizing: border-box;
  }
  .page-checkout .address-form.checkout-guest-contact {
    padding-inline: 16px !important;
    box-sizing: border-box;
  }
  .page-checkout .checkout-info-actions {
    justify-content: center;
  }
  .page-checkout .checkout-nav-label-full { display: none; }
  .page-checkout .checkout-nav-label-short { display: inline; }
}
.checkout-pay-card {
  max-width: 560px;
  margin-inline: auto;
}
.checkout-pay-method {
  max-width: 440px;
  margin-inline: auto;
  text-align: left;
}
.checkout-pay-method-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--noir);
  margin-bottom: 10px;
}
.checkout-pay-method-title i {
  color: var(--rouge);
}
#paypal-button-container {
  max-width: 360px;
  min-height: 44px;
  margin: 0 auto;
}
.checkout-card-note {
  margin: -2px 0 12px;
  color: var(--gris);
  font-size: 12px;
  line-height: 1.45;
}
.checkout-pay-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 220px;
  max-width: 100%;
  margin: 0 auto;
}
.checkout-pay-submit.is-loading {
  opacity: 0.85;
  cursor: wait;
}
@media (max-width: 640px) {
  .checkout-field--name,
  .checkout-field--email,
  .checkout-field--phone,
  .checkout-field--address,
  .checkout-field--unit,
  .checkout-field--city,
  .checkout-field--province,
  .checkout-field--postal {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .checkout-pay-card {
    padding: 18px 14px;
  }
  #paypal-button-container,
  .checkout-pay-method {
    max-width: 100%;
  }
  .checkout-pay-submit {
    width: 100%;
  }
}

/* Paiement ? carte unique compacte */
.page-checkout-payment .checkout-page-header {
  padding: 10px 0 0;
}
.page-checkout-payment .checkout-page-header .compte-breadcrumb {
  margin-bottom: 0;
}
.checkout-payment-layout,
.container.checkout-layout.checkout-payment-layout {
  display: block;
  max-width: 1180px;
  padding-top: 10px;
}
.checkout-payment-panel {
  max-width: 100%;
}
.checkout-payment-steps {
  margin-bottom: 10px;
}
.checkout-payment-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  gap: 0;
  max-width: 1080px;
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid #e7e9ee;
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.08);
}
.checkout-payment-column {
  min-width: 0;
  padding: 24px;
}
.checkout-payment-methods {
  background: #fff;
  border-right: 1px solid #eceff3;
}
.checkout-payment-summary {
  display: flex;
  flex-direction: column;
  background: #fafafa;
}
/* Informations page reuses this class for JS only — do not paint it as the paiement card */
.page-checkout:not(.page-checkout-payment) .checkout-aside.checkout-payment-summary {
  display: block;
  background: transparent;
  position: static;
}
.checkout-payment-card .checkout-panel-title {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
}
.checkout-payment-card .checkout-pay-method {
  max-width: none;
  margin-inline: 0;
}
.checkout-payment-card .checkout-pay-method-title {
  margin-bottom: 8px;
}
.checkout-payment-card .checkout-card-note {
  margin: 0 0 12px;
}
.checkout-payment-card #stripe-payment-element {
  margin-bottom: 14px;
}
.checkout-payment-card .checkout-pay-method--google-pay {
  max-width: 380px;
  margin-inline: auto;
  margin-bottom: 0;
}
.checkout-payment-card #stripe-google-pay-element {
  min-height: 46px;
}
.checkout-payment-card #stripe-google-pay-element iframe,
.checkout-payment-card #stripe-google-pay-element > div {
  margin: 0 !important;
}
.checkout-payment-card .checkout-pay-divider {
  margin: 22px 0 18px;
}
.checkout-payment-card .checkout-pay-divider--google {
  margin-top: 12px;
}
.checkout-payment-card .checkout-pay-divider span {
  white-space: nowrap;
}
.checkout-payment-card #paypal-button-container {
  max-width: 380px;
  margin: 0 auto;
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.checkout-payment-card #paypal-button-container iframe,
.checkout-payment-card #paypal-button-container > div {
  position: relative !important;
  z-index: 0 !important;
}
.checkout-payment-card .checkout-pay-submit {
  min-width: 176px;
  padding-inline: 28px;
  margin-top: 2px;
}
.checkout-pay-method--interac {
  max-width: 380px !important;
  margin-inline: auto !important;
}
.checkout-interac-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: var(--noir);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout-interac-trigger:hover {
  border-color: var(--rouge);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.checkout-interac-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 34px;
  border-radius: 999px;
  background: #ffd447;
  color: #1b1b1b;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}
.checkout-interac-trigger strong {
  display: block;
  font-size: 13px;
}
.checkout-interac-trigger small {
  display: block;
  color: var(--gris);
  font-size: 11px;
  line-height: 1.35;
}
.checkout-interac-modal {
  z-index: 2147482000;
}
.checkout-interac-dialog {
  max-width: 520px;
  text-align: left;
}
.checkout-interac-lines {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}
.checkout-interac-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.checkout-interac-line span {
  color: var(--gris);
  font-size: 12px;
}
.checkout-interac-line strong {
  color: var(--noir);
  font-size: 13px;
}
.checkout-interac-line button {
  border: 0;
  background: var(--rouge);
  color: #fff;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}
.checkout-interac-line--total {
  background: #fff8f9;
  border-color: #fecdd3;
}
.checkout-interac-note {
  margin: 0 0 14px;
  color: var(--gris);
  font-size: 12px;
  line-height: 1.45;
}
.checkout-interac-claim {
  width: 100%;
}
.checkout-interac-claim-status {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #166534;
}
.checkout-interac-claim-status--error {
  color: var(--rouge);
}
.checkout-pay-submit--mobile {
  display: none;
}
.checkout-payment-summary .order-summary {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.page-checkout:not(.page-checkout-payment) .checkout-aside.checkout-payment-summary .order-summary {
  background: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 18px 16px;
}
.checkout-payment-summary .order-summary-title {
  margin-bottom: 5px;
  font-size: 17px;
  line-height: 1.25;
}
.checkout-payment-summary .order-summary-lines {
  gap: 7px;
  margin-bottom: 12px;
}
.checkout-payment-summary .order-summary-row {
  font-size: 13px;
  line-height: 1.35;
}
.checkout-payment-summary .order-summary-total {
  margin-top: 4px;
  padding-top: 12px;
  font-size: 18px;
}
.checkout-payment-summary .checkout-pay-submit {
  align-self: center;
  margin-top: 16px;
}
.checkout-payment-back {
  max-width: 1080px;
  margin: 14px auto 0;
}
@media (max-width: 980px) {
  .checkout-payment-card {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  }
  .checkout-payment-column {
    padding: 22px 20px;
  }
}
@media (max-width: 760px) {
  .checkout-payment-layout {
    padding-top: 8px;
    padding-bottom: 36px;
  }
  .checkout-payment-steps {
    margin-bottom: 8px;
  }
  .checkout-payment-card {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .checkout-payment-column {
    padding: 18px 16px;
  }
  .checkout-payment-methods {
    border-right: none;
    border-bottom: 1px solid #eceff3;
  }
  .checkout-payment-summary .checkout-pay-submit {
    width: 100%;
    max-width: 360px;
  }
  .checkout-pay-submit--mobile {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
  }
  .checkout-payment-summary .checkout-pay-submit--summary {
    display: none;
  }
  .checkout-payment-card #paypal-button-container {
    max-width: 100%;
  }
  .checkout-payment-card .checkout-pay-method--google-pay {
    max-width: 100%;
  }
}
@media (max-width: 520px) {
  .page-checkout-payment .checkout-page-header {
    padding-top: 8px;
  }
  .checkout-payment-layout {
    padding-top: 6px;
  }
  .checkout-payment-card .checkout-panel-title {
    font-size: 17px;
    margin-bottom: 14px;
  }
  .checkout-payment-card .checkout-pay-divider {
    margin: 20px 0 16px;
  }
  .checkout-payment-summary .order-summary-total {
    font-size: 17px;
  }
}

/* Account settings polish */
.page-compte .addr-form-box,
.security-score-detail {
  border-radius: 16px;
  background: #fff;
  border-color: #e6e8ec;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.security-score-detail {
  padding: 20px;
  /* ~65% less gap above "Détail du score" vs previous mt-24 + card margin */
  margin-top: 8px;
}
.security-page-left .security-level-card {
  margin-bottom: 8px;
}
.securite-compact-form {
  max-width: 40%;
  min-width: 220px;
}
.securite-compact-form .groupe-champ {
  margin-bottom: 8px;
}
.securite-compact-form .groupe-champ label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.securite-compact-form .champ-input {
  width: 100%;
  max-width: 100%;
}
.securite-compact-form .btn-groupe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  max-width: 100%;
}
.totp-setup-intro {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--gris, #6b7280);
}
.totp-setup-option {
  margin-bottom: 14px;
}
.totp-setup-option-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}
.totp-qr-wrap {
  margin: 8px 0 4px;
}
.totp-qr-img {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.totp-secret-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.totp-secret-code {
  display: inline-block;
  margin-left: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.totp-verify-form {
  margin-top: 6px;
}
.totp-verify-form .champ-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.totp-input--compact {
  max-width: 10ch;
  width: 10ch;
  letter-spacing: 0.12em;
  text-align: center;
}
@media (max-width: 640px) {
  .securite-compact-form {
    max-width: 100%;
  }
}
.security-checklist li {
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 10px 12px;
}

/* Confirmation success screen */
.page-confirmation {
  min-height: calc(100vh - var(--header-total-h, 120px));
  background:
    radial-gradient(circle at top left, rgba(217, 4, 41, 0.08), transparent 32rem),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.confirmation-page-header {
  text-align: center;
}
.confirmation-layout {
  width: min(100% - 32px, 800px);
  max-width: 800px;
  padding-top: 10px;
}
.confirmation-card {
  border: 1px solid #eef0f3;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}
.confirmation-title {
  font-size: clamp(18px, 5.8vw, 30px);
  font-weight: 900;
  color: var(--noir);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.confirmation-details {
  background: #fff;
}
@media (min-width: 641px) {
  .page-confirmation .confirmation-details {
    width: 55%;
    max-width: 440px;
    margin-inline: auto;
  }
  .page-confirmation .confirmation-item,
  .page-confirmation .confirmation-totals,
  .page-confirmation .confirmation-pay-method {
    width: 100%;
    max-width: none;
  }
}
.confirmation-item {
  grid-template-columns: 42px minmax(0, 1fr) max-content;
  align-items: center;
  padding: 10px;
  border: 1px solid #f0f1f3;
  border-radius: 12px;
  background: #fafafa;
  column-gap: 10px;
}
.confirmation-item__thumb {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rouge);
  background: #fff0f2;
}
.confirmation-item__meta {
  grid-column: 2;
}
.confirmation-item__price {
  grid-column: 3;
}
.confirmation-actions {
  justify-content: center;
}
.confirmation-actions .btn {
  min-width: 150px;
}
@media (max-width: 640px) {
  .confirmation-layout {
    width: calc(100% - 24px);
    padding-top: 6px;
    padding-bottom: 30px;
  }
  .confirmation-card {
    padding: 22px 14px;
    border-radius: 18px;
  }
  .confirmation-steps {
    margin-bottom: 14px;
  }
  .confirmation-lead {
    font-size: 14px;
    margin-bottom: 14px;
  }
  .confirmation-numero {
    min-width: 0;
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 14px;
  }
  .confirmation-next-step {
    gap: 10px;
    padding: 13px;
    margin-bottom: 16px;
  }
  .confirmation-next-step i {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .confirmation-next-step p {
    font-size: 13px;
    line-height: 1.45;
  }
  .confirmation-details {
    padding: 14px 12px;
  }
  .confirmation-item {
    grid-template-columns: 36px minmax(0, 1fr) max-content;
    gap: 3px 6px;
    max-width: 100%;
  }
  .confirmation-item__name {
    min-width: 0;
    padding-left: 4px;
  }
  .confirmation-item__price {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    font-size: 12px;
  }
  .confirmation-totals {
    max-width: 100%;
  }
  .confirmation-totals .order-summary-row {
    font-size: 13px;
  }
  .confirmation-order-total {
    font-size: 17px;
  }
  .confirmation-actions {
    flex-direction: column;
  }
  .confirmation-actions .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}

/* ============================================================
   Payment processing spinner (AICA) ? paiement page only
   ============================================================ */
.ci-payment-processing-slot {
  width: 100%;
}
.ci-payment-processing {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  padding: 8px 0 4px;
  box-sizing: border-box;
}
.ci-payment-processing.is-active {
  display: flex !important;
}
.ci-pay-spinner {
  width: 90px;
  height: 90px;
  position: relative;
  flex-shrink: 0;
}
.ci-pay-spinner span {
  position: absolute;
  width: 6px;
  height: 24px;
  border-radius: 4px;
  left: 42px;
  top: 0;
  background: #fff;
  transform-origin: 3px 45px;
  animation: ciPayColorMove 1.9s linear infinite;
}
.ci-pay-spinner span:nth-child(1) { transform: rotate(0deg); animation-delay: 0s; }
.ci-pay-spinner span:nth-child(2) { transform: rotate(30deg); animation-delay: -0.158s; }
.ci-pay-spinner span:nth-child(3) { transform: rotate(60deg); animation-delay: -0.317s; }
.ci-pay-spinner span:nth-child(4) { transform: rotate(90deg); animation-delay: -0.475s; }
.ci-pay-spinner span:nth-child(5) { transform: rotate(120deg); animation-delay: -0.633s; }
.ci-pay-spinner span:nth-child(6) { transform: rotate(150deg); animation-delay: -0.792s; }
.ci-pay-spinner span:nth-child(7) { transform: rotate(180deg); animation-delay: -0.950s; }
.ci-pay-spinner span:nth-child(8) { transform: rotate(210deg); animation-delay: -1.108s; }
.ci-pay-spinner span:nth-child(9) { transform: rotate(240deg); animation-delay: -1.267s; }
.ci-pay-spinner span:nth-child(10) { transform: rotate(270deg); animation-delay: -1.425s; }
.ci-pay-spinner span:nth-child(11) { transform: rotate(300deg); animation-delay: -1.583s; }
.ci-pay-spinner span:nth-child(12) { transform: rotate(330deg); animation-delay: -1.742s; }

@keyframes ciPayColorMove {
  0%, 16% { background: #ff0000; }
  26% { background: #ff2222; }
  36% { background: #ff5555; }
  46% { background: #ff8888; }
  56% { background: #ffc0c0; }
  66% { background: #ffe5e5; }
  76%, 100% { background: #ffffff; }
}

.ci-pay-status {
  margin-top: 25px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  height: 25px;
  text-align: center;
}

/* Desktop: block card interaction; darken ONLY the right summary column */
.checkout-payment-card.is-processing {
  pointer-events: none;
}
.checkout-payment-summary {
  position: relative;
}
.checkout-payment-summary.is-processing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0 22px 22px 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 5;
  pointer-events: none;
}
.checkout-payment-summary.is-processing .ci-payment-processing {
  position: relative;
  z-index: 6;
  pointer-events: none;
}

html.ci-payment-processing-active,
html.ci-payment-processing-active body {
  overflow: hidden;
}

/* Informations skip-to-pay: full-viewport overlay, spinner centered */
body > .ci-payment-processing.ci-payment-processing--info.is-active {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483000 !important;
  margin: 0 !important;
  padding: 24px !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  background: rgba(0, 0, 0, 0.72) !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Mobile: portal to body + full viewport overlay, centered */
@media (max-width: 760px) {
  body > .ci-payment-processing.is-active,
  .ci-payment-processing.is-active {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2147483000 !important;
    margin: 0 !important;
    padding: 24px !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .checkout-payment-summary.is-processing::after {
    display: none;
  }
}
