/* mafmaillot (23/11/2026) : affiches maillots personnalisées. Même habillage que mafpaese (U mo paese). */
.mafm-actif .product-customization form { display: none; }
.mafm-actif .product-customization .card { padding: 0; border: 0; background: transparent; box-shadow: none; }

.mafm { margin: 6px 0 4px; text-align: left; }
.mafm__titre { font-weight: 500; font-size: 1rem; margin: 0 0 10px; color: #1c1a18; }
.mafm__ligne { display: grid; grid-template-columns: 1fr 96px; gap: 12px; }
.mafm__zone { min-width: 0; }
.mafm__label { display: block; font-weight: 500; font-size: .92rem; margin: 12px 0 6px; color: #1c1a18; }
.mafm input.mafm__input {
  width: 100%; font-size: 16px; /* 16 px : iOS ne zoome pas sur le champ */
  padding: 12px 14px; border: 1px solid #d8cfc2; border-radius: 6px; background: #fffdf9; color: #1c1a18;
  -webkit-appearance: none; appearance: none; line-height: 1.3;
}
.mafm input.mafm__input:focus { outline: 2px solid #1c1a18; outline-offset: 1px; border-color: #1c1a18; }
.mafm input.mafm__input.mafm--erreur { border-color: #b3261e; outline-color: #b3261e; }
.mafm__msg { margin: 5px 0 0; font-size: .82rem; color: #b3261e; min-height: 0; }
.mafm__msg:empty { display: none; }
.mafm__aide { margin: 8px 0 0; font-size: .82rem; color: #6b6259; }

.mafm-vue { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: #ece6dc; }
.mafm-vue__fond { display: block; width: 100%; height: 100%; object-fit: cover; }
.mafm-vue__affiche { position: absolute; left: 0; top: 0; transform-origin: 0 0; mix-blend-mode: multiply; pointer-events: none; }

.mafm-calque { position: absolute; inset: 0; z-index: 3; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.mafm-calque.mafm--visible { opacity: 1; visibility: visible; }
.mafm-calque__badge {
  position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(28, 26, 24, .82); color: #fff;
  font-size: 12px; letter-spacing: .02em; padding: 4px 9px; border-radius: 999px;
}
.mafm__apercu { display: none; margin: 0 auto 10px; max-width: 78%; }
@media (max-width: 991px) {
  /* mobile : l'affiche du client au-dessus des champs (la galerie est hors de l'écran pendant la saisie) */
  .mafm__apercu { display: block; }
}
.mafm-vignette { flex: 0 0 auto; max-width: 100%; margin-right: 1rem; }
.mafm-vignette .mafm-vue { border-radius: 2px; }
.order-line .mafm-vignette { margin-right: 0; }
.modal-body .mafm-vignette { margin-right: .9rem; }
.mafm--envoi { opacity: .7; }
