/* Fiche produit, mobile (< 750 px) : achat dans la barre fixée en bas, comme sur Le Coin du TCG (copie locale, 14/11/2026).
   La barre existante de Motozaro (#mzp-sticky) est toujours visible ; le bouton principal de la page est masqué.
   Sélecteurs préfixés par #mzp-sticky : mz-product.css est chargé plus bas dans la page par la section produit.
   Ordinateur : aucun changement. */
@media (max-width: 749px) {
  .mzp__cta:has(#mzp-atc) #mzp-atc { display: none; }
  #mzp-sticky.mzp__sticky { transform: none; transition: none; padding-bottom: env(safe-area-inset-bottom, 0px); }
  #mzp-sticky .mzp__sticky-inner {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "img txt btn" "img price btn";
    align-items: center; column-gap: 1rem; row-gap: .1rem; padding-block: .8rem;
  }
  #mzp-sticky .mzp__sticky-inner > img { grid-area: img; width: 4.6rem; height: 4.6rem; }
  #mzp-sticky .mzp__sticky-txt { grid-area: txt; display: block; align-self: end; min-width: 0; }
  #mzp-sticky .mzp__sticky-name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 1.3rem; line-height: 1.3; }
  #mzp-sticky .mzp__sticky-var { display: none; }
  #mzp-sticky .mzp__sticky-pricing { grid-area: price; align-self: start; min-width: 0; }
  #mzp-sticky .mzp__sticky-price { font-size: 1.7rem; }
  #mzp-sticky .mzp__sticky-inner > .mz-btn { grid-area: btn; flex: none; max-width: 17rem; min-height: 4.6rem; padding: 0 1.4rem; font-size: 1.4rem; line-height: 1.15; white-space: normal; text-align: center; }
  #mzp-sticky .mzp__sticky-btn-ico { display: inline-flex; flex: none; margin-right: .6rem; }
  #mzp-sticky .mzp__sticky-btn-ico svg { width: 1.8rem; height: 1.8rem; }
  #mzp-sticky-btn[aria-busy="true"] { opacity: .75; cursor: progress; }
  #mzp-sticky-btn:disabled { cursor: not-allowed; }
  /* Rien ne passe sous la barre : chat au-dessus (le bas de page a déjà sa marge dans footer-motoz) */
  body:has(#mzp-sticky) .mzchat { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 359px) {
  #mzp-sticky .mzp__sticky-inner { column-gap: .8rem; }
  #mzp-sticky .mzp__sticky-inner > img { width: 4rem; height: 4rem; }
  #mzp-sticky .mzp__sticky-inner > .mz-btn { max-width: 14rem; padding: 0 1rem; font-size: 1.3rem; }
  #mzp-sticky .mzp__sticky-btn-ico { display: none; }
  #mzp-sticky .mzp__sticky-ref { display: none; }
}
