/* FINAL87 / PATCH57 — rail partenaires x2 + collecte sans doublon.
   CSS uniquement. Aucun changement de source métier, événement, animation ou données. */

/* PARTENAIRES : valeurs doublées par rapport au propriétaire FINAL38
   (cadre 62 => 124, logo 48 => 96, image 42 => 84). */
html body #vc38Partners:not([hidden]) {
  height: 124px !important;
  min-height: 124px !important;
  max-height: none !important;
  box-sizing: border-box !important;
  padding: 7px 8px !important;
  align-items: center !important;
  overflow: hidden !important;
}
html body #vc38Partners .vc38-partner-viewport {
  height: 110px !important;
  min-height: 110px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}
html body #vc38Partners .vc38-partner-track {
  height: 110px !important;
  min-height: 110px !important;
  display: flex !important;
  align-items: center !important;
  /* Conserver animation, durée, courbe et séquence du module historique. */
}
html body #vc38Partners .vc38-partner-logo {
  height: 96px !important;
  min-height: 96px !important;
  max-height: 96px !important;
  box-sizing: border-box !important;
  padding: 4px 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}
html body #vc38Partners .vc38-partner-logo img {
  height: 84px !important;
  max-height: 84px !important;
  width: auto !important;
  max-width: 360px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: auto !important;
}
@media (max-width: 720px) {
  html body #vc38Partners:not([hidden]) {
    height: 108px !important;
    min-height: 108px !important;
    padding: 6px 7px !important;
  }
  html body #vc38Partners .vc38-partner-viewport,
  html body #vc38Partners .vc38-partner-track {
    height: 96px !important;
    min-height: 96px !important;
  }
  html body #vc38Partners .vc38-partner-logo {
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
    padding: 4px 8px !important;
  }
  html body #vc38Partners .vc38-partner-logo img {
    height: 72px !important;
    max-height: 72px !important;
    max-width: 280px !important;
  }
}

/* COLLECTE : conserver le cadre principal, sur une seule ligne. */
html body #retrait #vc56MarketHero {
  text-align: center !important;
}
html body #retrait #vc56MarketHero .vc56-market-title {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(17px, 2vw, 22px) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  margin: 0 0 7px !important;
  text-align: center !important;
}
html body #retrait #vc56MarketHero .vc56-market-slot {
  text-align: center !important;
}
@media (max-width: 540px) {
  html body #retrait #vc56MarketHero .vc56-market-title {
    font-size: 17px !important;
  }
}

/* L'ancien moteur réintroduit deux résumés dans le panier : les masquer
   uniquement en mode collecte, sans détruire leurs données ou leurs usages
   dans les modes Livraison / Envoi. */
body:has(input[name="deliveryMode"][value="market"]:checked) #panier .vc42-logistics,
body:has(input[name="deliveryMode"][value="market"]:checked) #panier .vc-mono-logistics,
body:has(input[name="deliveryMode"][value="market"]:checked) #panier .vc-mono-shipping-summary {
  display: none !important;
}
/* Ne pas présenter le bloc « Collecte marché » lorsqu'une livraison est choisie. */
body:has(input[name="deliveryMode"]:checked:not([value="market"])) #retrait #vc56MarketHero {
  display: none !important;
}
