/*
 * Liste des articles du panier.
 *
 * Le panneau, son en-tête et son ouverture viennent du thème : rien n'est
 * redéfini ici. Ces règles ne concernent que la liste et le pied, que Shopify
 * composait côté serveur.
 *
 * Elles s'appuient sur les variables du thème — couleurs, police, bordures —
 * pour suivre automatiquement toute évolution de la charte.
 */

.mc-panier__liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mc-panier__ligne {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 0;
  border-block-end: 1px solid var(--color-border, rgb(0 0 0 / 0.1));
}

.mc-panier__ligne:last-child {
  border-block-end: 0;
}

.mc-panier__visuel img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  display: block;
  border-radius: var(--style-border-radius-cards, 0);
}

.mc-panier__detail {
  min-width: 0;
}

.mc-panier__titre {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.35;
  display: block;
}

.mc-panier__titre:hover {
  text-decoration: underline;
}

.mc-panier__option {
  margin: 0.2rem 0 0.55rem;
  font-size: 0.8125rem;
  opacity: 0.7;
}

/* Le sélecteur de quantité reprend l'aspect de celui des fiches produit. */
.mc-panier__quantite {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border, rgb(0 0 0 / 0.18));
  border-radius: var(--style-border-radius-buttons-primary, 0);
}

.mc-panier__quantite button {
  width: 2rem;
  height: 2rem;
  line-height: 1;
  font-size: 1rem;
  cursor: pointer;
}

.mc-panier__quantite input {
  width: 2.5rem;
  height: 2rem;
  border: 0;
  text-align: center;
  background: transparent;
  color: inherit;
  font: inherit;
  -moz-appearance: textfield;
}

.mc-panier__quantite input::-webkit-outer-spin-button,
.mc-panier__quantite input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mc-panier__prix {
  text-align: end;
  white-space: nowrap;
}

.mc-panier__retirer {
  display: block;
  margin-block-start: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.65;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.mc-panier__retirer:hover {
  opacity: 1;
}

/* ── Pied : total et bouton de commande ─────────────────────────────────── */

.mc-panier__pied {
  border-block-start: 1px solid var(--color-border, rgb(0 0 0 / 0.12));
  padding-block-start: 1rem;
  margin-block-start: 0.5rem;
}

.mc-panier__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
  margin-block-end: 0.35rem;
}

.mc-panier__taxes {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  opacity: 0.65;
}

.mc-panier__payer {
  width: 100%;
  min-height: 3rem;
}

.mc-panier__payer[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.mc-panier__erreur {
  margin: 0.7rem 0 0;
  font-size: 0.8125rem;
  color: #b3261e;
}

.mc-panier__erreur[hidden] {
  display: none;
}
