/* LFP Boules — aperçu prénom sur la photo (Warehouse) v1.1.23 */
.product-cover { position: relative; }

.lfpboules-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lfpboules-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lfpboules-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46%;
  text-align: center;
  line-height: 1.05;
  font-size: 4.2vw;
  font-weight: 400;
  letter-spacing: 0.01em;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  transition: color 0.15s ease, font-size 0.15s ease;
  white-space: nowrap;
}

.lfpboules-text.is-empty { opacity: 0.4; font-style: italic; white-space: normal; }
.lfpboules-text.is-light {
  text-shadow: 0 0 2px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.35), 1px 0 1px rgba(0,0,0,.25), -1px 0 1px rgba(0,0,0,.25);
}

.lfpboules-note {
  display: block;
  margin: 0.4rem 0 0;
  padding: 0 0.25rem;
  font-size: 0.72rem; line-height: 1.35; color: #888;
  font-style: italic; background: none; text-align: center;
}

@media (min-width: 992px) {
  .lfpboules-text { font-size: 2.1rem; }
  .lfpboules-note { font-size: 0.72rem; }
}
@media (max-width: 575px) {
  .lfpboules-text { font-size: 7vw; width: 55%; }
  .lfpboules-note { font-size: 0.62rem; }
}

/* v1.1.18 — carte d'aperçu dédiée (fiche 1138) : photo boule vierge + prénom + illustrations */
.lfpboules-card {
  margin: 1rem auto 1.25rem;
  max-width: 460px;
  background: #fff;
  border: 1px solid #eee4d8;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: .6rem .6rem .5rem;
  text-align: center;
}
.lfpboules-card-title {
  margin: 0 0 .35rem;
  font-size: .95rem;
  font-weight: 600;
  color: #7b2c2c;
  letter-spacing: .01em;
}
.lfpboules-card .lfpboules-stage {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}
.lfpboules-card .lfpboules-blank {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
  max-width: none;
}
.lfpboules-card .lfpboules-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.lfpboules-card-note {
  margin: .4rem .3rem 0;
  font-size: .78rem;
  line-height: 1.3;
  font-style: italic;
  color: #777;
}
@supports not (aspect-ratio: 1 / 1) {
  .lfpboules-card .lfpboules-stage { height: 0; padding-bottom: 100%; }
}
@media (max-width: 767px) {
  .lfpboules-card { max-width: 300px; margin: .5rem auto 1rem; padding: .45rem .45rem .4rem; }
  .lfpboules-card-title { font-size: .88rem; }
  .lfpboules-card-note { font-size: .72rem; }
}

/* v1.1.20 — nuancier cliquable (même rendu que les pastilles lfp-perso) */
.lfpb-palette { margin: .55rem 0 .1rem; text-align: left; }
.lfpb-palette-help { margin: 0 0 .5rem; font-size: .8rem; color: #6f6a66; text-align: center; }
.lfpb-swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: .45rem .2rem; }
.lfpb-swatch { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .2rem 0; margin: 0;
  border: 0; background: none; cursor: pointer; color: #2b2522; -webkit-tap-highlight-color: transparent; font: inherit; }
.lfpb-swatch-dot { position: relative; display: block; width: 34px; height: 34px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .2s ease, box-shadow .2s ease; }
.lfpb-swatch-dot.is-light { box-shadow: inset 0 0 0 1px rgba(0,0,0,.22); }
.lfpb-swatch-name { font-size: .66rem; line-height: 1.15; text-align: center; max-width: 66px; }
.lfpb-swatch:hover .lfpb-swatch-dot { transform: scale(1.08); }
.lfpb-swatch.is-active .lfpb-swatch-dot { transform: scale(1.06); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #a45c40; }
.lfpb-swatch.is-active .lfpb-swatch-name { font-weight: 700; color: #a45c40; }
.lfpb-swatch.is-active .lfpb-swatch-dot::after { content: "\2713"; position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.6); }
.lfpb-swatch.is-active .lfpb-swatch-dot.is-light::after { color: #222; text-shadow: none; }
.lfpb-swatch:focus-visible .lfpb-swatch-dot { outline: 2px solid #a45c40; outline-offset: 3px; }
@media (max-width: 767px) {
  .lfpboules-card { max-width: none; }
  .lfpboules-card .lfpboules-stage { max-width: 300px; margin: 0 auto; }
  .lfpb-swatch-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: .35rem .15rem; }
  .lfpb-swatch-dot { width: 30px; height: 30px; }
  .lfpb-swatch-name { font-size: .62rem; max-width: 58px; }
}

/* v1.1.20 — choix de police (même rendu que les cartes lfp-perso) */
.lfpb-fonts { margin: .8rem 0 .1rem; text-align: left; }
.lfpb-font-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.lfpb-font { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 64px; margin: 0;
  padding: .3rem .2rem; border: 1px solid #e6dcd4; border-radius: 8px; background: #fff; cursor: pointer; color: #2b2522; overflow: hidden;
  -webkit-tap-highlight-color: transparent; font: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
.lfpb-font:hover { border-color: #e0a08a; }
.lfpb-font.is-active { border-color: #a45c40; background: #f7ede8; box-shadow: 0 0 0 1px #a45c40, 0 6px 16px rgba(164,92,64,.14); }
.lfpb-font-sample { display: block; max-width: 100%; line-height: 1.5; white-space: nowrap; text-align: center; }
.lfpb-font-name { font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: #6f6a66; }
.lfpb-font.is-active .lfpb-font-name { color: #a45c40; font-weight: 700; }
.lfpb-font.is-active .lfpb-font-name::before { content: "\2713  "; }
@media (min-width: 992px) { .lfpb-font-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* v1.1.21 — choix du ruban (vignettes) */
.lfpb-rubans { margin: .8rem 0 .1rem; text-align: left; }
.lfpb-ruban-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .4rem; }
.lfpb-ruban { display: flex; flex-direction: column; align-items: center; gap: .2rem; margin: 0; padding: .3rem .15rem;
  border: 1px solid #e6dcd4; border-radius: 8px; background: #fff; cursor: pointer; color: #2b2522; font: inherit;
  -webkit-tap-highlight-color: transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.lfpb-ruban:hover { border-color: #e0a08a; }
.lfpb-ruban-img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 6px; max-width: none; }
.lfpb-ruban-name { font-size: .64rem; line-height: 1.15; text-align: center; }
.lfpb-ruban.is-active { border-color: #a45c40; background: #f7ede8; box-shadow: 0 0 0 1px #a45c40, 0 6px 16px rgba(164,92,64,.14); }
.lfpb-ruban.is-active .lfpb-ruban-name { color: #a45c40; font-weight: 700; }
.lfpb-ruban.is-active .lfpb-ruban-name::before { content: "\2713  "; }
.lfpb-ruban-note { margin: .4rem .2rem 0; font-size: .7rem; line-height: 1.3; color: #777; font-style: italic; text-align: center; }
@media (max-width: 767px) {
  .lfpb-ruban-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
  .lfpb-ruban-img { width: 48px; height: 48px; }
}

/* v1.1.21 — choix d'illustration (vignettes) */
.lfpb-ills { margin: .8rem 0 .1rem; text-align: left; }
.lfpb-ill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .4rem; }
.lfpb-ill { display: flex; flex-direction: column; align-items: center; gap: .2rem; margin: 0; padding: .35rem .15rem;
  border: 1px solid #e6dcd4; border-radius: 8px; background: #fff; cursor: pointer; color: #2b2522; font: inherit;
  -webkit-tap-highlight-color: transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.lfpb-ill:hover { border-color: #e0a08a; }
.lfpb-ill-icon { display: block; width: 40px; height: 40px; overflow: visible; }
.lfpb-ill-name { font-size: .64rem; line-height: 1.15; text-align: center; }
.lfpb-ill.is-active { border-color: #a45c40; background: #f7ede8; box-shadow: 0 0 0 1px #a45c40, 0 6px 16px rgba(164,92,64,.14); }
.lfpb-ill.is-active .lfpb-ill-name { color: #a45c40; font-weight: 700; }
.lfpb-ill.is-active .lfpb-ill-name::before { content: "\2713  "; }
@media (max-width: 767px) {
  .lfpb-ill-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
  .lfpb-ill-icon { width: 34px; height: 34px; }
}
.lfpb-ruban-price { font-weight: 700; color: #a45c40; }

/* v1.1.22 — champs remplis par les choix cliquables : masqués mais envoyés */
.product-customization-item.lfpb-field-hidden { display: none !important; }
.lfpb-ruban-text { margin: .55rem .1rem 0; text-align: left; }
.lfpb-ruban-text[hidden] { display: none !important; }
.lfpb-ruban-text-label { display: block; margin: 0 0 .25rem; font-size: .8rem; font-weight: 600; color: #2b2522; }
.lfpb-ruban-text-input { width: 100%; font-size: 16px; padding: .45rem .6rem; border: 1px solid #d9cfc7; border-radius: 6px; box-sizing: border-box; }
.lfpb-ruban-text-hint { display: block; margin-top: .2rem; font-size: .7rem; color: #777; }

/* v1.1.23 — champ Prénom à inscrire juste sous l'image de la boule */
.lfpb-prenom { margin: .55rem .15rem .2rem; text-align: left; }
.lfpb-prenom[hidden] { display: none !important; }
.lfpb-prenom-label { display: block; margin: 0 0 .25rem; font-size: .8rem; font-weight: 600; color: #2b2522; }
.lfpb-prenom-input { width: 100%; font-size: 16px; padding: .5rem .65rem; border: 1px solid #d9cfc7; border-radius: 6px; box-sizing: border-box; }

/* v1.1.24 — message si un choix obligatoire (ex. couleur 1281) manque */
.lfpboules-card .lfpb-required-msg { margin: 0 0 .5rem; padding: .45rem .6rem; border-left: 3px solid #b3261e; background: #fdecea; color: #7a1712; font-size: .85rem; line-height: 1.3; }
/* v1.1.24 — couleur du ruban personnalisé (sous le texte du ruban, visible seulement avec « Ruban satin personnalisé ») */
.lfpboules-card .lfpb-ruban-color { margin: .6rem 0 0; }
.lfpboules-card .lfpb-ruban-color-help { text-align: left; margin: 0 0 .3rem; font-weight: 600; }
.lfpboules-card .lfpb-ruban-color-grid { grid-template-columns: repeat(4, minmax(52px, 72px)); justify-content: start; }
.lfpb-ruban-text-hint.is-max { color: #b3261e; font-weight: 600; }

/* ===== 1.1.25 : mots-clés (tags) masqués visuellement — restent dans le HTML ===== */
.product-additional-info .iqitproducttags { display: none !important; }

/* ===== 1.1.25 : « Couleur de boule » en vignettes (boule + nom) ===== */
.product-variants > .product-variants-item.lfpb-bc-item {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: both;
}
.lfpb-bc-item .lfpb-bc-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  float: none;
  width: 100% !important;
}
.lfpb-bc-item .lfpb-bc-list > li.lfpb-bc {
  position: relative;
  float: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 !important;
  padding: 6px 4px 7px;
  border: 1px solid #ece4dc;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, box-shadow .15s;
}
.lfpb-bc-item .lfpb-bc-list > li.lfpb-bc > input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  -webkit-appearance: none;
  appearance: none;
}
.lfpb-bc-item .lfpb-bc-list .lfpb-bc-ball,
.lfpb-bc-item .lfpb-bc-list .input-radio:checked + .lfpb-bc-ball,
.lfpb-bc-item .lfpb-bc-list .input-radio:hover + .lfpb-bc-ball {
  border: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
.lfpb-bc-item .lfpb-bc-ball {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
}
.lfpb-bc-item .lfpb-bc-ball img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  max-width: none;
}
.lfpb-bc-item .lfpb-bc-list .lfpb-bc-name,
.lfpb-bc-item .lfpb-bc-list .radio-label.lfpb-bc-name {
  display: block;
  margin: 4px 0 0;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #3a3a3a !important;
  margin-right: 0 !important;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  white-space: normal;
  min-height: 2.4em !important;
  line-height: 1.2 !important;
  text-transform: none;
}
.lfpb-bc-item .lfpb-bc-list > li.lfpb-bc:hover { border-color: #d8b79d; }
.lfpb-bc-item .lfpb-bc-list > li.lfpb-bc.is-checked,
.lfpb-bc-item .lfpb-bc-list > li.lfpb-bc:has(> input:checked) {
  border-color: #a45c40;
  box-shadow: 0 0 0 2px #a45c40 inset;
}
.lfpb-bc-item .lfpb-bc-list > li.lfpb-bc.is-checked .lfpb-bc-name { font-weight: 700; color: #a45c40 !important; }
.lfpb-bc-item .lfpb-bc-list > li.lfpb-bc:focus-within { outline: 2px solid #a45c40; outline-offset: 2px; }
.lfpb-bc-item .lfpb-bc-list > li.lfpb-bc.lfpb-bc-noimg .lfpb-bc-name { min-height: 60px; display: flex; align-items: center; justify-content: center; }
.lfpb-bc-select-hidden { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; overflow: hidden; }
@media (max-width: 767px) {
  .lfpb-bc-item .lfpb-bc-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .lfpb-bc-item .lfpb-bc-ball, .lfpb-bc-item .lfpb-bc-ball img { width: 52px; height: 52px; flex-basis: 52px; }
  .lfpb-bc-item .lfpb-bc-list .lfpb-bc-name { font-size: 11px; }
}


/* 1.1.26 : champ ruban / couleur verrouillé tant que l’option payante n’est pas choisie */
.product-customization-item.lfpb-ribbon-locked textarea,
.product-customization-item.lfpb-ribbon-locked input[type="text"] {
  pointer-events: none;
  background: #f3f1ef !important;
  color: #888 !important;
  cursor: not-allowed;
  opacity: .85;
}
.lfpb-ruban-opt-hint {
  margin: .35rem 0 0;
  font-size: .72rem;
  line-height: 1.35;
  color: #7a4a38;
}
