/*
 * LNK Listes de produits - ce qui est propre au back-office du module (vignette d'une liste,
 * produits choisis, choix de l'affichage, listes natives). L'habillage (en-tete, cartes, liste
 * groupee, editeur en rubriques, apercu) est la feuille commune de l'usine
 * views/css/lib/lnk-admin.css, chargee avant celle-ci et jamais redefinie ici : seulement des
 * classes lnkpl-*. Meme feuille sur les deux back-offices.
 *
 * @author    LNKBOOT
 * @copyright LNKBOOT
 * @license   Proprietaire - voir LICENSE.md
 */
/* ========================================================================== */
/* LNK Listes de produits                                                      */
/* ========================================================================== */
/* Scene de l'apercu : une liste tient dans une hauteur plus courte que la scene commune. */
.lnkh .lnkpl-stage { min-height: 240px; }
/* Vignette d'une liste : grille ou carrousel esquisses (aucune image a charger). */
.lnkpl-thumb { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 10px; background: var(--lnkh-soft); }
.lnkpl-thumb i { display: block; border-radius: 3px; background: #dcd8cf; }
.lnkpl-thumb--carousel { grid-template-columns: repeat(4, 34%); overflow: hidden; }
.lnkpl-thumb--magazine i:first-child { grid-column: span 2; grid-row: span 2; }
.lnkpl-thumb--staggered i:nth-child(even) { margin-block-start: 8px; }
.lnkpl-thumb--featured { grid-template-columns: repeat(3, 1fr); }
.lnkpl-thumb--featured i:first-child { grid-column: 1 / -1; }
a.lnkpl-thumb { height: 68px; }
.lnkpl-row.is-off .lnkpl-dim { opacity: .6; }
.lnkpl-group__help { padding: 8px 18px 0; font-size: 12px; color: var(--lnkh-muted); }
.lnkpl-move { display: inline-flex; gap: 4px; }
/* Listes natives de PrestaShop (colonne de droite). */
.lnkpl-natives { display: grid; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.lnkpl-natives li { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.lnkpl-natives__state { color: var(--lnkh-muted); }
.lnkpl-natives__state.is-on { color: var(--lnkh-ok); font-weight: 600; }
.lnkh .lnkpl-natives__warn { margin: 12px 0 0; font-size: 12px; }
.lnkpl-natives__actions { display: grid; gap: 8px; }
/* Champs par langue : le script n'affiche que la langue choisie en tete. */
.lnkpl-langfield { position: relative; }
.lnkpl-langfield + .lnkpl-langfield { margin-top: 6px; }
.lnkpl-langfield .lnkpl-badge { position: absolute; top: 12px; inset-inline-end: 10px; }
.lnkpl-langfield[hidden] + .lnkpl-langfield { margin-top: 0; }
.lnkh .lnkpl-number { max-width: 160px; }
.lnkh .lnkpl-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.lnkpl-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: var(--lnkh-ink); }
.lnkpl-shops { display: flex; flex-wrap: wrap; gap: 8px 20px; }
/* Affichage : grille ou carrousel en cartes a choisir. */
.lnkpl-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.lnkpl-choice { position: relative; margin: 0; cursor: pointer; }
.lnkpl-choice input { position: absolute; opacity: 0; pointer-events: none; }
.lnkpl-choice > span { display: flex; flex-direction: column; gap: 8px; width: 150px; padding: 8px; border: 1px solid #d9d6cf; border-radius: 10px; background: #fff; font-weight: 600; color: var(--lnkh-ink); }
.lnkpl-choice .lnkpl-thumb { height: 54px; border-radius: 6px; }
.lnkpl-choice input:checked + span { border-color: var(--lnkh-ink); box-shadow: inset 0 0 0 1px var(--lnkh-ink); }
.lnkpl-choice input:focus-visible + span { outline: 2px solid var(--lnkh-lang); outline-offset: 2px; }
/* Produits choisis a la main et resultats de la recherche. */
.lnkpl-picked { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; counter-reset: lnkpl; }
.lnkpl-picked:empty::before { content: attr(data-empty); color: var(--lnkh-muted); font-style: italic; }
.lnkpl-picked li { display: flex; align-items: center; gap: 10px; padding-block: 6px; padding-inline: 12px 6px; border: 1px solid var(--lnkh-line); border-radius: 8px; background: var(--lnkh-soft); counter-increment: lnkpl; }
.lnkpl-picked li::before { content: counter(lnkpl); min-width: 18px; font-size: 11px; font-weight: 600; color: var(--lnkh-muted); }
.lnkpl-picked li span { flex: 1 1 auto; min-width: 0; }
.lnkpl-picked small, .lnkpl-results small { color: var(--lnkh-muted); }
.lnkpl-results { margin: 6px 0 0; padding: 0; list-style: none; max-height: 16rem; overflow: auto; }
.lnkpl-results button { width: 100%; padding: 6px 10px; border: 0; border-radius: 6px; background: none; font: inherit; color: var(--lnkh-ink); text-align: start; cursor: pointer; }
.lnkpl-results button:hover, .lnkpl-results button:focus { background: var(--lnkh-tag); }
/* Apparence par defaut (colonne de droite) et apparence d'une liste (editeur), 1.9.3 / 1.1.3. */
.lnkpl-look__options, .lnkpl-looks { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; padding: 0; border: 0; min-width: 0; }
.lnkpl-look__options .lnkpl-check, .lnkpl-looks .lnkpl-check { font-weight: 500; }
.lnkpl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
