/**
 * ORDER-CONFIRMATION.CSS - Page Thank You NOVA IP
 * ================================================
 *
 * Page de confirmation de commande après paiement
 *
 * TABLE OF CONTENTS
 * -----------------
 *
 * 1. BASE
 *    1.1 Wrapper reset
 *    1.2 Progress bar override
 *
 * 2. HEADER FULLWIDTH
 *    2.1 Container & overlay
 *    2.2 Content (icon, title, subtitle, email)
 *
 * 3. GRID LAYOUT
 *    3.1 Grid 2 colonnes (articles + stack)
 *    3.2 Colonnes communes
 *    3.3 Column stack
 *    3.4 Section titles avec icônes
 *
 * 4. COLONNE ARTICLES
 *    4.1 Products list
 *    4.2 Product row
 *    4.3 Product details
 *    4.4 Quantity badge
 *    4.5 Totals
 *
 * 5. COLONNE ADRESSE (fond bleu)
 *    5.1 Address column styles
 *    5.2 Addresses grid
 *    5.3 Address blocks
 *
 * 6. COLONNE DETAILS (fond orange, fusionnée avec facture)
 *    6.1 Details column styles
 *    6.2 Details list avec icônes
 *    6.3 Invoice section
 *
 * 7. BLOCS SUPPLEMENTAIRES
 *    7.1 Payment info (hook)
 *    7.2 Account registration
 *    7.3 Confirmation legacy
 *
 * 8. RESPONSIVE
 *    8.1 Tablet (<992px)
 *    8.2 Mobile (<768px)
 */

/* ==========================================
   1. BASE
   ========================================== */

/* 1.1 Wrapper reset
   ------------------------------------------ */
body#order-confirmation #wrapper {
  padding-top: 0 !important;
}

/* 1.2 Container max-width
   ------------------------------------------ */
body#order-confirmation .container {
  max-width: 1220px;
}

/* 1.2 Progress bar override
   ------------------------------------------ */
.mx-order-confirmation .mx-checkout-progress {
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);
  background: transparent;
}

/* ==========================================
   2. HEADER FULLWIDTH
   ========================================== */

/* 2.1 Container & overlay
   ------------------------------------------ */
.mx-thankyou-header {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  background: url('../../img/thankyou-bg.jpg') center/cover no-repeat;
  background-color: var(--mx-gray-800);
}

.mx-thankyou-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

/* 2.2 Content (icon, title, subtitle, email)
   ------------------------------------------ */
.mx-thankyou-header-content {
  position: relative;
  z-index: 1;
  color: white;
}

.mx-thankyou-icon {
  margin-bottom: var(--space-4);
}

.mx-thankyou-icon svg {
  width: 64px;
  height: 64px;
  color: var(--mx-orange-500);
}

.mx-thankyou-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--space-2) 0;
  color: white;
}

.mx-thankyou-title span {
  color: var(--mx-orange-500);
}

.mx-thankyou-subtitle {
  font-size: var(--fs-lg);
  margin: 0 0 var(--space-3) 0;
  color: white;
}

.mx-thankyou-subtitle span {
  color: var(--mx-orange-500);
  font-weight: var(--fw-semibold);
}

.mx-thankyou-email {
  font-size: var(--fs-sm);
  margin: 0;
  color: white;
}

.mx-thankyou-email strong {
  color: var(--mx-orange-500);
}

/* ==========================================
   3. GRID LAYOUT
   ========================================== */

/* 3.1 Grid 2 colonnes (articles + stack)
   ------------------------------------------ */
.mx-thankyou-content {
  padding: var(--space-8) 0;
}

.mx-thankyou-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  align-items: start;
}

/* 3.2 Colonnes communes
   ------------------------------------------ */
.mx-thankyou-col {
  background: white;
  border: 1px solid var(--mx-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

/* 3.3 Column stack (addresses + details empilés)
   ------------------------------------------ */
.mx-thankyou-col-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* 3.4 Section titles avec icônes
   ------------------------------------------ */
.mx-thankyou-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-4) 0;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--mx-gray-200);
}

.mx-thankyou-section-title svg {
  width: 20px;
  height: 20px;
  color: var(--mx-gray-500);
  flex-shrink: 0;
}

.mx-thankyou-section-separator {
  color: var(--mx-orange-300);
  margin: 0 var(--space-2);
  font-weight: var(--fw-normal);
}

.mx-thankyou-section-hint {
  font-size: var(--fs-xs);
  font-weight: var(--fw-normal);
  color: var(--mx-orange-400);
  text-transform: none;
  letter-spacing: normal;
}

/* ==========================================
   4. COLONNE ARTICLES
   ========================================== */

/* 4.1 Products list
   ------------------------------------------ */
.mx-thankyou-col--articles {
  /* Colonne articles - fond blanc standard */
}

.mx-thankyou-col--articles .mx-thankyou-section-title svg {
  color: var(--mx-orange-500);
}

.mx-order-items {
  margin-top: 0;
}

.mx-order-products-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 4.2 Product row
   ------------------------------------------ */
.mx-order-product-row {
  display: grid;
  grid-template-columns: 70px 1fr auto auto auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--mx-gray-100);
}

.mx-order-product-row:last-child {
  border-bottom: none;
}

.mx-order-product-image {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--mx-gray-100);
}

.mx-order-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 4.3 Product details
   ------------------------------------------ */
.mx-order-product-details {
  min-width: 0;
}

.mx-order-product-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-900);
  margin: 0 0 var(--space-1) 0;
  line-height: var(--lh-tight);
}

.mx-order-product-name a {
  color: inherit;
  text-decoration: none;
}

.mx-order-product-name a:hover {
  color: var(--mx-orange-500);
}

.mx-order-product-attributes {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
  margin: 0;
}

.mx-order-product-attributes span {
  display: inline-block;
  margin-right: var(--space-2);
}

.mx-order-product-customization {
  margin-top: var(--space-1);
}

.mx-order-product-customization .mx-btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-xs);
  color: var(--mx-blue-600);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.mx-order-product-customization .mx-btn-link svg {
  width: 12px;
  height: 12px;
}

.mx-order-product-price {
  text-align: right;
}

.mx-order-product-unit-price {
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
}

/* 4.4 Quantity badge
   ------------------------------------------ */
.mx-order-product-qty {
  text-align: center;
}

.mx-qty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 var(--space-2);
  background: var(--mx-blue-50);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-700);
}

.mx-order-product-total {
  text-align: right;
  min-width: 80px;
}

.mx-order-product-line-total {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

/* 4.5 Totals
   ------------------------------------------ */
.mx-order-totals {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 2px solid var(--mx-gray-200);
}

.mx-order-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
}

.mx-order-total-label {
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
}

.mx-order-total-value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-900);
}

.mx-order-discount .mx-order-total-value {
  color: var(--mx-success);
}

.mx-order-grand-total {
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--mx-gray-200);
}

.mx-order-grand-total .mx-order-total-label {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
  text-transform: uppercase;
}

.mx-order-grand-total .mx-order-total-value {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--mx-gray-900);
}

.mx-order-tax-detail {
  display: flex;
  justify-content: space-between;
  padding: var(--space-1) 0;
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
}

/* ==========================================
   5. COLONNE ADRESSE
   ========================================== */

/* 5.1 Address column - fond bleu
   ------------------------------------------ */
.mx-thankyou-col--address {
  background: var(--mx-blue-50);
  border-color: var(--mx-blue-200);
}

.mx-thankyou-col--address .mx-thankyou-section-title {
  color: var(--mx-blue-700);
  border-bottom-color: var(--mx-blue-200);
}

.mx-thankyou-col--address .mx-thankyou-section-title svg {
  color: var(--mx-blue-500);
}

/* 5.2 Addresses grid (livraison + facturation côte à côte)
   ------------------------------------------ */
.mx-thankyou-addresses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* 5.3 Address blocks
   ------------------------------------------ */
.mx-thankyou-address-block {
  padding: var(--space-3);
  background: white;
  border-radius: var(--radius-md);
}

.mx-thankyou-address-block h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--mx-blue-600);
  text-transform: uppercase;
  margin: 0 0 var(--space-2) 0;
}

.mx-thankyou-address-block h3 svg {
  width: 16px;
  height: 16px;
  color: var(--mx-blue-400);
}

.mx-thankyou-address-block address {
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--mx-gray-700);
  line-height: var(--lh-relaxed);
}

/* ==========================================
   6. COLONNE DETAILS (fusionnée avec facture)
   ========================================== */

/* 6.1 Details column - fond orange
   ------------------------------------------ */
.mx-thankyou-col--details {
  background: var(--mx-orange-50);
  border-color: var(--mx-orange-200);
}

.mx-thankyou-col--details .mx-thankyou-section-title {
  color: var(--mx-orange-700);
  border-bottom-color: var(--mx-orange-200);
}

.mx-thankyou-col--details .mx-thankyou-section-title svg {
  color: var(--mx-orange-500);
}

/* 6.2 Details list avec icônes
   ------------------------------------------ */
.mx-thankyou-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mx-thankyou-details-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--mx-orange-200);
}

.mx-thankyou-details-list li:last-child {
  border-bottom: none;
}

.mx-detail-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
}

.mx-detail-label svg {
  width: 14px;
  height: 14px;
  color: var(--mx-orange-400);
  flex-shrink: 0;
}

.mx-detail-value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-900);
}

.mx-detail-delay {
  justify-content: flex-start !important;
  padding-left: calc(14px + var(--space-2));
}

.mx-detail-delay em {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
  font-style: italic;
}

/* 6.3 Invoice section (bouton télécharger ou message)
   ------------------------------------------ */
.mx-thankyou-invoice-section {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--mx-orange-200);
  text-align: center;
}

.mx-thankyou-invoice-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--mx-gray-500);
  margin: 0;
}

.mx-thankyou-invoice-info svg {
  width: 14px;
  height: 14px;
  color: var(--mx-orange-400);
}

.mx-thankyou-recyclable {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--mx-gray-200);
  font-size: var(--fs-xs);
  color: var(--mx-success);
}

.mx-thankyou-recyclable svg {
  width: 14px;
  height: 14px;
}

/* ==========================================
   8. BLOCS SUPPLEMENTAIRES
   ========================================== */

/* 8.1 Payment info (hook)
   ------------------------------------------ */
.mx-thankyou-payment-info {
  background: var(--mx-blue-50);
  border: 1px solid var(--mx-blue-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

/* 8.2 Account registration
   ------------------------------------------ */
.mx-thankyou-register {
  background: var(--mx-orange-50);
  border: 2px solid var(--mx-orange-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.mx-thankyou-register-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-8);
}

.mx-thankyou-register-main h2 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
  margin: 0 0 var(--space-4) 0;
}

.mx-thankyou-register .mx-auth-benefits {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}

.mx-thankyou-register .mx-auth-benefits li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.mx-thankyou-register .mx-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mx-thankyou-register .mx-icon-wrapper svg {
  width: 24px;
  height: 24px;
  color: var(--mx-orange-500);
}

.mx-thankyou-register .mx-auth-benefits span:last-child {
  font-size: var(--fs-xs);
  color: var(--mx-gray-600);
}

.mx-thankyou-register-form {
  max-width: 400px;
}

.mx-thankyou-register-form .form-group {
  margin-bottom: var(--space-3);
}

.mx-thankyou-register-form input[type="password"] {
  max-width: 300px;
}

.mx-thankyou-register-form button[type="submit"] {
  background: var(--mx-orange-500);
  color: white;
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  cursor: pointer;
}

.mx-thankyou-register-form button[type="submit"]:hover {
  background: var(--mx-orange-600);
}

.mx-thankyou-register-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: white;
  border-radius: var(--radius-md);
}

.mx-thankyou-register-cta {
  margin-top: var(--space-4);
}

.mx-thankyou-register-cta a {
  color: var(--mx-orange-500);
  font-weight: var(--fw-semibold);
}

/* 8.3 Confirmation legacy (PrestaShop default)
   ------------------------------------------ */
.mx-confirmation-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.mx-confirmation-icon {
  width: 64px;
  height: 64px;
  color: var(--mx-success);
}

.mx-confirmation-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--mx-gray-900);
  margin: 0;
}

.mx-confirmation-email {
  font-size: var(--fs-base);
  color: var(--mx-gray-600);
  margin: 0;
}

.mx-download-invoice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--mx-blue-600);
  font-weight: var(--fw-medium);
  margin-top: var(--space-2);
}

.mx-download-invoice:hover {
  color: var(--mx-blue-700);
  text-decoration: underline;
}

.mx-download-invoice svg {
  width: 18px;
  height: 18px;
}

.mx-order-confirmation-content {
  background: white;
  border: 1px solid var(--mx-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.mx-order-confirmation-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-8);
}

.mx-order-products {
  min-width: 0;
}

.mx-order-products h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
  margin-bottom: var(--space-4);
}

.mx-order-details {
  background: var(--mx-gray-50);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.mx-order-details-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
  margin: 0 0 var(--space-4) 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mx-order-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mx-order-details-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--mx-gray-600);
}

.mx-order-details-list li svg {
  width: 16px;
  height: 16px;
  color: var(--mx-gray-400);
  flex-shrink: 0;
}

.mx-order-details-list li strong {
  color: var(--mx-gray-900);
  margin-left: auto;
}

.mx-order-delay {
  padding-left: calc(16px + var(--space-2));
}

.mx-order-delay em {
  font-style: italic;
  color: var(--mx-gray-500);
}

.mx-order-recyclable {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--mx-gray-200);
  font-size: var(--fs-sm);
  color: var(--mx-success);
}

.mx-order-recyclable svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mx-payment-return {
  background: var(--mx-blue-50);
  border: 1px solid var(--mx-blue-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.mx-account-transform {
  background: white;
  border: 1px solid var(--mx-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

/* Override table confirmation PrestaShop */
#order-items {
  width: 100%;
}

#order-items .row {
  margin: 0;
}

#order-items .card-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-500);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.order-confirmation-table {
  border-top: 1px solid var(--mx-gray-200);
}

.order-line {
  display: flex;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--mx-gray-100);
}

.order-line .image img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.order-line .details {
  flex: 1;
}

.order-line .details span {
  font-weight: var(--fw-medium);
  color: var(--mx-gray-900);
}

.order-line .qty {
  text-align: right;
}

.order-line .bold {
  font-weight: var(--fw-semibold);
}

.order-confirmation-table hr {
  margin: var(--space-4) 0;
  border: none;
  border-top: 1px solid var(--mx-gray-200);
}

.order-confirmation-table table {
  width: 100%;
  margin-left: auto;
  max-width: 300px;
}

.order-confirmation-table table td {
  padding: var(--space-2) 0;
  font-size: var(--fs-sm);
}

.order-confirmation-table table td:last-child {
  text-align: right;
}

.order-confirmation-table .total-value td {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  padding-top: var(--space-3);
  border-top: 1px solid var(--mx-gray-200);
}

/* Modal customization */
.mx-customization-field {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--mx-gray-100);
}

.mx-customization-field:last-child {
  border-bottom: none;
}

.mx-customization-label {
  font-weight: var(--fw-medium);
  color: var(--mx-gray-700);
  min-width: 100px;
}

.mx-customization-value {
  color: var(--mx-gray-600);
}

.mx-customization-value img {
  max-width: 150px;
  border-radius: var(--radius-sm);
}

/* ==========================================
   8. SECTIONS PRODUITS (hooks)
   ========================================== */

/* 8.1 Featured products inline (même style que crossselling)
   ------------------------------------------ */
.mx-featured-inline {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--mx-gray-200);
}

.mx-featured-inline-header {
  margin-bottom: var(--space-4);
}

.mx-featured-inline-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-800);
  margin: 0 0 var(--space-2) 0;
}

.mx-featured-inline-title svg {
  color: var(--mx-orange-500) !important;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.mx-featured-inline-desc {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
  margin: 0;
}

/* Slider wrapper */
.mx-featured-inline-slider-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mx-featured-inline-slider {
  flex: 1;
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-1) 0;
}

.mx-featured-inline-slider::-webkit-scrollbar {
  display: none;
}

/* Navigation buttons */
.mx-featured-inline-nav {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--mx-gray-200);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mx-featured-inline-nav:hover {
  background: var(--mx-gray-50);
  border-color: var(--mx-gray-300);
}

/* 8.2 Crossselling inline (dans le bloc récap)
   ------------------------------------------ */
.mx-crossselling-inline {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--mx-gray-200);
}

.mx-crossselling-inline-header {
  margin-bottom: var(--space-4);
}

.mx-crossselling-inline-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-800);
  margin: 0 0 var(--space-2) 0;
}

.mx-crossselling-inline-title svg {
  color: var(--mx-orange-500) !important;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.mx-crossselling-inline-desc {
  font-size: var(--fs-xs);
  color: var(--mx-gray-500);
  margin: 0;
}

/* Slider wrapper */
.mx-crossselling-inline-slider-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mx-crossselling-inline-slider {
  flex: 1;
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-1) 0;
}

.mx-crossselling-inline-slider::-webkit-scrollbar {
  display: none;
}

/* Navigation buttons */
.mx-crossselling-inline-nav {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--mx-gray-200);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mx-crossselling-inline-nav:hover {
  background: var(--mx-gray-50);
  border-color: var(--mx-gray-300);
}

/* 8.3 Product mini card
   ------------------------------------------ */
.mx-product-mini {
  flex: 0 0 100px;
  scroll-snap-align: start;
}

.mx-product-mini-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mx-product-mini-link:hover .mx-product-mini-title {
  color: var(--mx-orange-500);
}

.mx-product-mini-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--mx-gray-100);
  margin-bottom: var(--space-2);
}

.mx-product-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mx-product-mini-link:hover .mx-product-mini-image img {
  transform: scale(1.05);
}

.mx-product-mini-info {
  text-align: center;
}

.mx-product-mini-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--mx-gray-800);
  margin: 0 0 var(--space-1) 0;
  line-height: var(--lh-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.mx-product-mini-price {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--mx-gray-900);
}

.mx-product-mini-price .mx-price-regular {
  text-decoration: line-through;
  color: var(--mx-gray-400);
  font-weight: var(--fw-normal);
  margin-right: var(--space-1);
}

.mx-product-mini-price .mx-price-current {
  color: var(--mx-orange-600);
}

/* ==========================================
   9. RESPONSIVE
   ========================================== */

/* 9.1 Tablet (<992px)
   ------------------------------------------ */
@media (max-width: 992px) {
  .mx-thankyou-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .mx-thankyou-col--articles {
    grid-column: span 2;
    grid-row: auto;
  }

  .mx-thankyou-col-stack {
    grid-column: span 2;
  }

  .mx-thankyou-addresses-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mx-thankyou-register-grid {
    grid-template-columns: 1fr;
  }

  .mx-thankyou-register .mx-auth-benefits {
    justify-content: center;
  }
}

/* 9.2 Mobile (<768px)
   ------------------------------------------ */
@media (max-width: 768px) {
  .mx-thankyou-header {
    min-height: 220px;
  }

  .mx-thankyou-title {
    font-size: var(--fs-2xl);
  }

  .mx-thankyou-actions-grid {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .mx-thankyou-grid {
    grid-template-columns: 1fr;
  }

  .mx-thankyou-col--articles {
    grid-column: auto;
  }

  .mx-thankyou-col-stack {
    grid-column: auto;
    gap: var(--space-4);
  }

  /* Adresses en 1 colonne sur mobile */
  .mx-thankyou-addresses-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .mx-thankyou-register .mx-auth-benefits {
    flex-direction: column;
    align-items: flex-start;
  }

  .mx-thankyou-register .mx-auth-benefits li {
    flex-direction: row;
    text-align: left;
  }

  .mx-order-confirmation-grid {
    grid-template-columns: 1fr;
  }

  .mx-order-details {
    order: -1;
  }

  .order-confirmation-table table {
    max-width: 100%;
  }
}

/* 9.2.1 Tablet (<992px) - Override checkout.css sticky */
@media (max-width: 991px) {
  /* Progress bar - JAMAIS sticky sur confirmation */
  body#order-confirmation .mx-checkout-progress {
    position: static !important;
    margin: 0 !important;
    padding: var(--space-4) 0;
    background: transparent !important;
    z-index: auto !important;
  }
}

/* 9.2.2 Mobile (<768px) */
@media (max-width: 767px) {
  /* Container padding mobile */
  body#order-confirmation #content-wrapper {
    padding-inline: var(--space-4) !important;
  }

  /* Progress bar mobile - réduire pour rentrer sans scroll */
  body#order-confirmation .mx-checkout-progress {
    padding: var(--space-3) 0;
  }

  body#order-confirmation .mx-checkout-progress-inner {
    max-width: 100%;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: nowrap;
  }

  body#order-confirmation .mx-checkout-step {
    width: auto;
    min-width: 0;
    flex-shrink: 0;
  }

  body#order-confirmation .mx-checkout-step-indicator {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.65rem;
  }

  body#order-confirmation .mx-checkout-step-label {
    display: none;
  }

  body#order-confirmation .mx-checkout-progress-line {
    flex: 0 1 20px;
    min-width: 10px;
    max-width: 30px;
    margin-bottom: 0;
  }

  .mx-order-product-row {
    grid-template-columns: 60px 1fr auto;
    gap: var(--space-2);
  }

  .mx-order-product-image {
    width: 60px;
    height: 60px;
  }

  .mx-order-product-price {
    display: none;
  }

  .mx-order-product-qty {
    grid-column: 3;
    grid-row: 1;
  }

  .mx-order-product-total {
    grid-column: 2 / -1;
    text-align: left;
    min-width: auto;
  }

  .mx-order-product-line-total {
    font-size: var(--fs-base);
  }
}

/* Masquer le message doublon de Stripe (p injecté sans classe après progress bar) */
.mx-checkout-progress + p {
  display: none !important;
}

/* 9.3 Sliders inline - Responsive
   ------------------------------------------ */

/* Tablet - sliders */
@media (max-width: 992px) {
  .mx-crossselling-inline,
  .mx-featured-inline {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
  }

  .mx-crossselling-inline-title,
  .mx-featured-inline-title {
    font-size: var(--fs-base);
  }
}

/* Mobile - sliders */
@media (max-width: 767px) {
  .mx-crossselling-inline,
  .mx-featured-inline {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
  }

  .mx-crossselling-inline-header,
  .mx-featured-inline-header {
    margin-bottom: var(--space-3);
  }

  .mx-crossselling-inline-title,
  .mx-featured-inline-title {
    font-size: var(--fs-sm);
    gap: var(--space-1);
  }

  .mx-crossselling-inline-title svg,
  .mx-featured-inline-title svg {
    width: 16px;
    height: 16px;
  }

  .mx-crossselling-inline-desc,
  .mx-featured-inline-desc {
    font-size: 0.7rem;
    line-height: var(--lh-normal);
  }

  /* Slider wrapper - masquer les boutons nav sur mobile */
  .mx-crossselling-inline-nav,
  .mx-featured-inline-nav {
    display: none;
  }

  .mx-crossselling-inline-slider-wrap,
  .mx-featured-inline-slider-wrap {
    margin: 0 calc(-1 * var(--space-4));
    padding: 0 var(--space-4);
  }

  .mx-crossselling-inline-slider,
  .mx-featured-inline-slider {
    gap: var(--space-2);
    padding-bottom: var(--space-2);
    /* Hint de scroll sur mobile */
    -webkit-overflow-scrolling: touch;
  }

  /* Product mini cards - plus petites sur mobile */
  .mx-product-mini {
    flex: 0 0 85px;
  }

  .mx-product-mini-image {
    width: 85px;
    height: 85px;
  }

  .mx-product-mini-title {
    font-size: 0.65rem;
  }

  .mx-product-mini-price {
    font-size: 0.65rem;
  }

  /* Gradient fade pour indiquer le scroll */
  .mx-crossselling-inline-slider-wrap::after,
  .mx-featured-inline-slider-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, white);
    pointer-events: none;
  }

  .mx-crossselling-inline-slider-wrap,
  .mx-featured-inline-slider-wrap {
    position: relative;
  }
}

/* 9.4 Colonnes colorées - Responsive
   ------------------------------------------ */
@media (max-width: 767px) {
  .mx-thankyou-col {
    padding: var(--space-4);
  }

  .mx-thankyou-section-title {
    font-size: var(--fs-xs);
    flex-wrap: wrap;
    gap: var(--space-1);
  }

  .mx-thankyou-section-separator {
    display: none;
  }

  .mx-thankyou-section-hint {
    width: 100%;
    margin-top: var(--space-1);
  }

  /* Details list mobile - garder sur même ligne */
  .mx-detail-label {
    font-size: var(--fs-xs);
  }

  .mx-detail-value {
    font-size: var(--fs-xs);
  }

  /* Invoice section mobile */
  .mx-thankyou-invoice-section {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
  }

  .mx-thankyou-invoice-info {
    font-size: var(--fs-xs);
  }
}
