/* LFP Pastilles couleur flocage 1.0.1 */
.lfpfc { margin: 6px 0 10px; }
.lfpfc-help { margin: 0 0 6px; font-size: 13px; color: #555; }
.lfpfc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 6px 4px; }
.lfpfc-sw { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px 4px; margin: 0;
  background: #fff; border: 2px solid transparent; border-radius: 10px; cursor: pointer; font: inherit; color: #222;
  min-height: 44px; -webkit-tap-highlight-color: transparent; transition: border-color .15s, box-shadow .15s; }
.lfpfc-sw:focus { outline: none; }
.lfpfc-sw:focus-visible { outline: 3px solid #2445a2; outline-offset: 1px; }
.lfpfc-sw.is-on { border-color: #222; box-shadow: 0 0 0 1px #222 inset; }
.lfpfc-dot { position: relative; display: block; width: 36px; height: 36px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.lfpfc-dot.is-light { box-shadow: inset 0 0 0 2px #cfcfcf; }
.lfpfc-sw.is-on .lfpfc-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 7px;
  margin: -6px 0 0 -6px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg);
  filter: drop-shadow(0 0 1.5px rgba(0,0,0,.9)); }
.lfpfc-name { display: block; font-size: 11.5px; line-height: 1.2; text-align: center; word-break: normal; hyphens: none; }
.lfpfc-sw.is-on .lfpfc-name { font-weight: 700; }
.lfpfc-chosen { margin: 8px 0 0; font-size: 14px; min-height: 1em; }
.lfpfc-error .lfpfc-chosen { color: #c0203f; }
/* le vrai champ reste dans le formulaire (envoi PrestaShop) mais n'est plus visible */
.lfpfc-input { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important;
  white-space: nowrap !important; opacity: 0 !important; }
/* masque aussi les pastilles fil du module broderie, ou tout le champ de la technique inactive */
.lfpfc-hide { display: none !important; }
.product-customization-item { position: relative; }
@media (hover: hover) { .lfpfc-sw:not(.is-on):hover { border-color: #ddd; } }
@media (min-width: 768px) {
  .lfpfc-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px 6px; }
  .lfpfc-dot { width: 40px; height: 40px; }
}
/* 1.0.9 — cartes de polices + aperçu en direct (flocage) */
.lfpfc-font-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lfpfc-font { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px;
  padding: 8px 4px 6px; margin: 0; background: #fff; border: 2px solid #eee; border-radius: 10px; cursor: pointer; color: #222;
  font: inherit; overflow: visible; -webkit-tap-highlight-color: transparent; }
.lfpfc-font:focus { outline: none; }
.lfpfc-font:focus-visible { outline: 3px solid #2445a2; outline-offset: 1px; }
.lfpfc-font.is-on { border-color: #222; box-shadow: 0 0 0 1px #222 inset; }
.lfpfc-font-sample { display: block; max-width: 100%; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.lfpfc-font-name { display: block; font-size: 11.5px; color: #666; }
.lfpfc-font.is-on .lfpfc-font-name { font-weight: 700; color: #222; }
.lfpfc-preview { margin: 0 0 14px; padding: 10px; border: 1px solid #e6e1da; border-radius: 12px; background: #fff; }
.lfpfc-preview-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #333; }
.lfpfc-preview-stage { display: flex; align-items: center; justify-content: center; height: 120px; padding: 6px 8px;
  border-radius: 10px; background: #f4efe9; overflow: hidden; text-align: center; }
.lfpfc-preview-stage.is-dark { background: #3b3b3b; }
.lfpfc-preview-text { display: inline-block; max-width: 100%; line-height: 1.35; white-space: pre-line; word-break: break-word;
  font-size: 34px; transform: scale(var(--lfpfc-scale, 1)); transform-origin: center; padding: 0 .15em; }
.lfpfc-preview-meta { margin: 6px 0 0; font-size: 13px; }
.lfpfc-preview-accent, .lfpfc-preview-note { margin: 4px 0 0; font-size: 12px; color: #777; }
@media (min-width: 768px) {
  .lfpfc-font-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lfpfc-preview-stage { height: 140px; }
}
