/* PRATINIUM preorder v1.0.676 — Lots partagés (vente par parts)
 * .pmp-sl-*   espace vendeur + « Mes parts réservées »
 * .pmp-slp-*  sélecteur client (fiche offre / fiche produit)
 */

/* ═════════════ commun ═════════════ */
.pmp-sl, .pmp-slp {
  --sl-gold: #a87a2a; --sl-gold-dark: #8f6420; --sl-gold-soft: #fbf6ea;
  --sl-ink: #0f172a; --sl-text: #334155; --sl-muted: #64748b; --sl-line: #e7e1d3;
  --sl-free: #16a34a; --sl-sold: #94a3b8; --sl-held: #f59e0b;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--sl-text);
}
.pmp-sl *, .pmp-slp * { box-sizing: border-box; }

.pmp-sl-progress, .pmp-slp-progress {
  position: relative; height: 8px; border-radius: 999px; background: #efe9dc; overflow: visible; min-width: 120px;
}
.pmp-sl-progress span, .pmp-slp-progress span {
  display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c9a14a, var(--sl-gold));
}
.pmp-sl-progress i, .pmp-slp-progress i {
  position: absolute; top: -4px; width: 2px; height: 16px; margin-left: -1px; background: var(--sl-ink); border-radius: 2px;
}
.pmp-sl-progress--lg { height: 10px; margin: 14px 0 8px; }

.pmp-sl-pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: #f1f5f9; color: #475569; vertical-align: middle; white-space: nowrap;
}
.pmp-sl-pill--ok { background: #dcfce7; color: #166534; }
.pmp-sl-pill--wait { background: #fbf1da; color: #7a5413; }
.pmp-sl-pill--warn { background: #fee2e2; color: #991b1b; }
.pmp-sl-pill--off { background: #f1f5f9; color: #64748b; text-decoration: line-through; }

/* ═════════════ espace vendeur ═════════════ */
.pmp-sl { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.pmp-sl-band {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 22px; margin-bottom: 16px; border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff;
}
.pmp-sl-band__title { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: #fff; }
.pmp-sl-band__text { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .78); max-width: 760px; }
.pmp-sl-band__btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 8px;
  background: var(--sl-gold); color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none !important;
}
.pmp-sl-alert { padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; font-size: 14px; }
.pmp-sl-alert--ok { background: #dcfce7; border: 1px solid #86efac; color: #14532d; }
.pmp-sl-alert--err { background: #fee2e2; border: 1px solid #fca5a5; color: #7f1d1d; }
.pmp-sl-crumb { margin: 0 0 10px; }
.pmp-sl-crumb a { color: var(--sl-gold-dark) !important; font-weight: 600; text-decoration: none !important; }

.pmp-sl-card {
  margin-bottom: 16px; padding: 20px 22px; border: 1px solid var(--sl-line); border-radius: 16px; background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04); scroll-margin-top: 90px;
}
.pmp-sl-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.pmp-sl .pmp-sl-card__head h2 { margin: 0 !important; font-size: 18px !important; font-weight: 800 !important; color: var(--sl-ink) !important; text-transform: none !important; }
.pmp-sl-card__head small { color: var(--sl-muted); font-size: 13px; }

.pmp-sl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
  text-decoration: none !important; transition: background-color .15s, border-color .15s, color .15s;
}
.pmp-sl-btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.pmp-sl-btn--gold { background: var(--sl-gold); border-color: var(--sl-gold); color: #fff !important; }
.pmp-sl-btn--gold:hover { background: var(--sl-gold-dark); border-color: var(--sl-gold-dark); }
.pmp-sl-btn--ghost { background: #fff; border-color: var(--sl-ink); color: var(--sl-ink) !important; }
.pmp-sl-btn--ghost:hover { border-color: var(--sl-gold); color: var(--sl-gold-dark) !important; background: var(--sl-gold-soft); }
.pmp-sl-btn--danger { background: #fff; border-color: #ef4444; color: #b91c1c !important; }
.pmp-sl-btn--danger:hover { background: #fef2f2; }
.pmp-sl-btn--link { background: transparent; border-color: transparent; color: var(--sl-muted) !important; padding: 0 8px; }
.pmp-sl-btn--link:hover { color: #b91c1c !important; }

.pmp-sl-table-wrap { overflow-x: auto; }
.pmp-sl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pmp-sl-table th { padding: 8px 10px; border-bottom: 1px solid var(--sl-line); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; }
.pmp-sl-table td { padding: 12px 10px; border-bottom: 1px solid #f3efe6; vertical-align: middle; }
.pmp-sl-table small { color: var(--sl-muted); }
.pmp-sl-empty { padding: 26px; border: 1.5px dashed #ddd3bd; border-radius: 14px; background: #fcfaf5; text-align: center; }
.pmp-sl-note { margin: 8px 0 12px; font-size: 13px; color: var(--sl-muted); }
.pmp-sl-warn { display: block; margin-top: 4px; color: #b91c1c; font-weight: 600; }

/* statut */
.pmp-sl-status { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pmp-sl-status__main { flex: 1 1 420px; min-width: 0; }
.pmp-sl .pmp-sl-status h1 { margin: 0 !important; font-size: 22px !important; font-weight: 800 !important; color: var(--sl-ink) !important; text-transform: none !important; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pmp-sl-status__nums { margin: 0; font-size: 14px; color: var(--sl-text); }
.pmp-sl-status__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pmp-sl-status__actions form { margin: 0; }

/* formulaire de réglages */
.pmp-sl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; margin-bottom: 16px; }
.pmp-sl-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; color: var(--sl-ink); }
.pmp-sl-field--wide { grid-column: 1 / -1; }
.pmp-sl-field small { font-weight: 500; color: var(--sl-muted); }
.pmp-sl input[type=text], .pmp-sl input[type=number], .pmp-sl input[type=date], .pmp-sl select, .pmp-sl textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #d6d3cb; border-radius: 10px; background: #fff;
  font: 500 14px/1.4 Inter, "Segoe UI", system-ui, sans-serif; color: var(--sl-ink);
}
.pmp-sl input:focus, .pmp-sl select:focus, .pmp-sl textarea:focus { border-color: var(--sl-gold); box-shadow: 0 0 0 3px rgba(168, 122, 42, .12); outline: 0; }
.pmp-sl input:disabled, .pmp-sl select:disabled, .pmp-sl textarea:disabled { background: #f8f7f3; color: #64748b; }
.pmp-sl-choice { margin: 0; padding: 12px 14px; border: 1px solid var(--sl-line); border-radius: 12px; }
.pmp-sl-choice legend { width: auto; margin: 0 0 4px; padding: 0 6px; font-size: 13px; font-weight: 800; color: var(--sl-ink); }
.pmp-sl-choice label { display: block; margin: 6px 0; font-weight: 500; color: var(--sl-text); }
.pmp-sl-choice small { color: var(--sl-muted); }

/* parts */
.pmp-sl-parts { display: flex; flex-direction: column; gap: 10px; }
.pmp-sl-part {
  display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(170px, 1.6fr) repeat(4, minmax(90px, .7fr)) ;
  grid-auto-flow: row; gap: 10px; align-items: end;
  padding: 14px; border: 1px solid #efe9dc; border-radius: 12px; background: #fdfcf9;
}
.pmp-sl-part label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 700; color: var(--sl-muted); }
.pmp-sl-part--new { background: #fff; border-style: dashed; border-color: #d8ccb0; }
.pmp-sl-part__meta { grid-column: 1 / 4; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--sl-text); }
.pmp-sl-part__meta .is-ok { color: #15803d; font-weight: 600; }
.pmp-sl-part__meta .is-missing { color: var(--sl-muted); }
.pmp-sl-part__actions { grid-column: 4 / -1; display: flex; justify-content: flex-end; gap: 6px; }

/* vues + éditeur */
.pmp-sl-views { display: flex; flex-direction: column; gap: 18px; }
.pmp-sl-view { padding: 14px; border: 1px solid #efe9dc; border-radius: 14px; }
.pmp-sl-view__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 0 0 12px; }
.pmp-sl-view__form label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 700; color: var(--sl-muted); }
.pmp-sl-view__form--new { padding: 14px; border: 1.5px dashed #d8ccb0; border-radius: 14px; }
.pmp-sl-canvas { position: relative; max-width: 900px; border-radius: 12px; overflow: hidden; background: #f4f1ea; user-select: none; }
.pmp-sl-canvas img { display: block; width: 100%; height: auto; }
.pmp-sl-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pmp-sl-canvas.is-drawing { cursor: crosshair; outline: 3px solid var(--sl-gold); outline-offset: -3px; }
.pmp-sl-zone { fill: rgba(168, 122, 42, .22); stroke: #a87a2a; stroke-width: .35; vector-effect: non-scaling-stroke; }
.pmp-sl-zone.is-current { fill: rgba(22, 163, 74, .28); stroke: #15803d; }
.pmp-sl-zone.is-drawing { fill: rgba(59, 130, 246, .2); stroke: #2563eb; stroke-dasharray: 1 .6; }
.pmp-sl-zone-label { font: 700 2.6px Inter, sans-serif; fill: #0f172a; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: #fff; stroke-width: .6px; pointer-events: none; }
.pmp-sl-dot { fill: #2563eb; stroke: #fff; stroke-width: .3; }
.pmp-sl-draw { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin-top: 10px; }
.pmp-sl-draw label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 700; color: var(--sl-muted); }
.pmp-sl-draw__hint { flex: 1 1 100%; font-size: 13px; color: var(--sl-muted); }
.pmp-sl-measure { display: flex; gap: 6px; margin: 0; }
.pmp-sl-measure input { max-width: 110px; }

/* Mes parts réservées */
.pmp-sl-mypart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pmp-sl-mypart__lot { margin: 0 0 4px; font-size: 13px; color: var(--sl-muted); }
.pmp-sl .pmp-sl-mypart h2 { margin: 0 !important; font-size: 19px !important; font-weight: 800 !important; color: var(--sl-ink) !important; text-transform: none !important; }
.pmp-sl-mypart__details { margin: 2px 0 0; color: var(--sl-muted); font-size: 14px; }
.pmp-sl-mypart__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 18px; margin: 14px 0 0; }
.pmp-sl-mypart__facts dt { font-size: 12px; font-weight: 600; color: var(--sl-muted); }
.pmp-sl-mypart__facts dd { margin: 2px 0 0; font-weight: 700; color: var(--sl-ink); }

@media (max-width: 991.98px) {
  .pmp-sl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmp-sl-part { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pmp-sl-part > label:first-of-type, .pmp-sl-part__details { grid-column: span 3; }
  .pmp-sl-part__meta { grid-column: 1 / -1; }
  .pmp-sl-part__actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 575.98px) {
  .pmp-sl-band { flex-direction: column; align-items: flex-start; }
  .pmp-sl-grid { grid-template-columns: minmax(0, 1fr); }
  .pmp-sl-part { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmp-sl-part > label:first-of-type, .pmp-sl-part__details { grid-column: span 2; }
  .pmp-sl-card { padding: 16px 14px; }
}

/* ═════════════ sélecteur client ═════════════ */
.pmp-slp-native[hidden] { display: none !important; }
body.pmp-has-shared-lot #pmp-price-display,
body.pmp-has-shared-lot .product-variants,
body.pmp-has-shared-lot .product-add-to-cart,
body.pmp-has-shared-lot .product-prices { display: none !important; }

.pmp-slp {
  margin: 16px 0; padding: 20px; border: 1px solid var(--sl-line); border-radius: 18px;
  background: linear-gradient(180deg, #fffdf8, #fff 40%); box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.pmp-slp-loading, .pmp-slp-msg { margin: 0; color: var(--sl-muted); font-size: 14px; }
.pmp-slp-kicker { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sl-gold); }
.pmp-slp .pmp-slp-title { margin: 0 0 6px !important; font-size: 20px !important; font-weight: 800 !important; line-height: 1.25 !important; color: var(--sl-ink) !important; text-transform: none !important; }
.pmp-slp-intro { margin: 0 0 10px; font-size: 14px; color: var(--sl-text); }
.pmp-slp-progress { margin: 12px 0 8px; height: 10px; }
.pmp-slp-facts { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 10px; font-size: 13.5px; color: var(--sl-text); }
.pmp-slp-facts span + span::before { content: "·"; margin: 0 8px; color: #b6ab93; }
.pmp-slp-facts strong { color: var(--sl-ink); }
.pmp-slp-rules { margin: 0 0 14px; padding: 10px 12px 10px 28px; border-radius: 12px; background: var(--sl-gold-soft); font-size: 13px; color: #5b4316; }
.pmp-slp-rules li { margin: 2px 0; }

.pmp-slp-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 12px; scrollbar-width: none; }
.pmp-slp-tabs button {
  flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--sl-line); border-radius: 999px; background: #fff;
  font: 600 13px Inter, sans-serif; color: var(--sl-text); cursor: pointer;
}
.pmp-slp-tabs button.is-active { background: var(--sl-ink); border-color: var(--sl-ink); color: #fff; }

.pmp-slp-body { display: flex; flex-direction: column; gap: 12px; }
.pmp-slp-stage { position: relative; border-radius: 14px; overflow: hidden; background: #f4f1ea; }
.pmp-slp-stage img { display: block; width: 100%; height: auto; }
.pmp-slp-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pmp-slp-zone { stroke-width: .4; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .15s ease; outline: none; }
.pmp-slp-zone.is-free { fill: rgba(22, 163, 74, .20); stroke: #15803d; }
.pmp-slp-zone.is-free:hover, .pmp-slp-zone.is-free:focus { fill: rgba(22, 163, 74, .38); }
.pmp-slp-zone.is-reserved { fill: rgba(245, 158, 11, .30); stroke: #b45309; cursor: not-allowed; }
.pmp-slp-zone.is-sold { fill: rgba(100, 116, 139, .45); stroke: #64748b; cursor: not-allowed; }
.pmp-slp-zone.is-selected { fill: rgba(168, 122, 42, .55) !important; stroke: #6f4d18 !important; stroke-width: .8; }
.pmp-slp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--sl-muted); }
.pmp-slp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pmp-slp-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.pmp-slp-legend .is-free i { background: rgba(22, 163, 74, .45); }
.pmp-slp-legend .is-selected i { background: rgba(168, 122, 42, .75); }
.pmp-slp-legend .is-reserved i { background: rgba(245, 158, 11, .55); }
.pmp-slp-legend .is-sold i { background: rgba(100, 116, 139, .6); }

.pmp-slp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pmp-slp-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px;
  border: 1.5px solid var(--sl-line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer;
  font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.pmp-slp-item:hover { border-color: #c9b68d; }
.pmp-slp-item.is-selected { border-color: var(--sl-gold); box-shadow: 0 0 0 3px rgba(168, 122, 42, .15); }
.pmp-slp-item.is-sold, .pmp-slp-item.is-reserved { opacity: .62; }
.pmp-slp-item__name { font-size: 14px; font-weight: 700; color: var(--sl-ink); }
.pmp-slp-item__details { font-size: 12.5px; color: var(--sl-muted); }
.pmp-slp-item__price { margin-top: 4px; font-size: 14.5px; font-weight: 800; color: var(--sl-ink); }
.pmp-slp-item__avail { font-size: 12px; font-weight: 600; }
.pmp-slp-item.is-free .pmp-slp-item__avail { color: #15803d; }
.pmp-slp-item.is-reserved .pmp-slp-item__avail { color: #b45309; }
.pmp-slp-item.is-sold .pmp-slp-item__avail { color: #64748b; }

.pmp-slp-panel { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--sl-line); }
.pmp-slp-panel__empty { margin: 0; color: var(--sl-muted); font-size: 14px; }
.pmp-slp-panel__label { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--sl-muted); }
.pmp-slp-panel__name { margin: 2px 0 0; font-size: 18px; font-weight: 800; color: var(--sl-ink); }
.pmp-slp-panel__details { margin: 2px 0 0; font-size: 13.5px; color: var(--sl-muted); }
.pmp-slp-panel__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.pmp-slp-panel__price { margin: 0; display: flex; flex-direction: column; }
.pmp-slp-panel__price strong { font-size: 22px; color: var(--sl-ink); }
.pmp-slp-panel__price small { font-size: 12.5px; color: var(--sl-muted); }
.pmp-slp-qty { display: inline-flex; align-items: center; border: 1px solid var(--sl-line); border-radius: 999px; overflow: hidden; }
.pmp-slp-qty button { width: 36px; height: 38px; border: 0; background: #faf7f0; font-size: 18px; cursor: pointer; }
.pmp-slp-qty span { min-width: 34px; text-align: center; font-weight: 700; }
.pmp-slp-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; margin-left: auto;
  border: 0; border-radius: 999px; background: var(--sl-gold); color: #fff !important; font: 700 15px Inter, sans-serif;
  text-decoration: none !important; cursor: pointer; transition: background-color .15s;
}
.pmp-slp-btn:hover { background: var(--sl-gold-dark); }
.pmp-slp-btn:disabled { background: #cbd5e1; cursor: not-allowed; }
.pmp-slp-flash { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.pmp-slp-flash p { margin: 0; }
.pmp-slp-flash.is-ok { background: #dcfce7; color: #14532d; }
.pmp-slp-flash.is-err { background: #fee2e2; color: #7f1d1d; }
.pmp-slp-flash__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.pmp-slp-flash__links .pmp-slp-btn { margin-left: 0; height: 40px; }
.pmp-slp-link { color: #14532d !important; font-weight: 700; }

@media (max-width: 575.98px) {
  .pmp-slp { padding: 16px 14px; }
  .pmp-slp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmp-slp-btn { width: 100%; margin-left: 0; }
}

/* ═════════════ v1.0.677 — section intégrée aux formulaires produit / campagne ═════════════ */
.pmp-sl-embed { margin: 24px 0 18px; padding: 18px 20px; border: 1px solid var(--sl-line); border-radius: 16px; background: #fffdf8; clear: both; }
.pmp-sl-embed__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pmp-sl-switch { display: flex; align-items: flex-start; gap: 12px; margin: 0; cursor: pointer; }
.pmp-sl-switch input { width: 20px; height: 20px; margin-top: 2px; accent-color: #a87a2a; flex: 0 0 auto; }
.pmp-sl-switch strong { display: block; font-size: 16px; color: var(--sl-ink); }
.pmp-sl-switch small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--sl-muted); }
.pmp-sl-embed__body { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--sl-line); }
.pmp-sl-embed__body[hidden] { display: none !important; }
.pmp-sl-field--wide2 { grid-column: span 2; }
.pmp-sl-editor { margin-top: 22px; scroll-margin-top: 90px; }
.pmp-sl-editor .pmp-sl-card { scroll-margin-top: 90px; }

/* ═════════════ v1.0.677 — page Commandes : suivi des lots ═════════════ */
.pmp-sl-overview { margin: 0 0 26px; scroll-margin-top: 90px; }
.pmp-sl .pmp-sl-overview__title { margin: 0 !important; font-size: 20px !important; font-weight: 800 !important; color: var(--sl-ink) !important; text-transform: none !important; }
.pmp-sl-lotrow { padding: 0; }
.pmp-sl-lotrow > summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 16px 20px; cursor: pointer; list-style: none;
}
.pmp-sl-lotrow > summary::-webkit-details-marker { display: none; }
.pmp-sl-lotrow > summary::after { content: "▾"; color: var(--sl-muted); margin-left: 6px; }
.pmp-sl-lotrow[open] > summary::after { content: "▴"; }
.pmp-sl-lotrow[open] > summary { border-bottom: 1px solid #f1ece2; }
.pmp-sl-lotrow > :not(summary) { margin-left: 20px; margin-right: 20px; }
.pmp-sl-lotrow__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pmp-sl-lotrow__title strong { font-size: 15.5px; color: var(--sl-ink); }
.pmp-sl-lotrow__nums { font-size: 13.5px; color: var(--sl-text); font-weight: 600; margin-left: auto; }
.pmp-sl-partsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 12px 20px; }
.pmp-sl-partchip { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; border: 1px solid #d8eedd; background: #f3fbf5; font-size: 12.5px; color: var(--sl-text); }
.pmp-sl-partchip strong { font-size: 13.5px; color: var(--sl-ink); }
.pmp-sl-partchip.is-held { border-color: #f3dca8; background: #fdf7e8; }
.pmp-sl-partchip.is-sold { border-color: #e2e8f0; background: #f8fafc; }
.pmp-sl-lotrow__foot { margin: 6px 20px 18px; }

/* offre en précommande par parts : renvoi vers la campagne */
.pmp-slp--notice { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pmp-slp--notice .pmp-slp-btn { margin-left: 0; }

/* v1.0.678 — formulaire des parts : protège la grille contre les styles de formulaire du thème
   (sur la page produit, les champs s'empilaient en pleine largeur avec des libellés alignés à droite). */
html body .pmp-sl form.pmp-sl-part {
  display: grid !important;
  grid-template-columns: minmax(150px, 1.2fr) minmax(170px, 1.6fr) repeat(4, minmax(90px, .7fr)) !important;
  align-items: end !important;
  gap: 10px !important;
  flex-direction: initial !important;
}
html body .pmp-sl form.pmp-sl-part > label,
html body .pmp-sl .pmp-sl-view__form > label,
html body .pmp-sl .pmp-sl-draw > label,
html body .pmp-sl .pmp-sl-field {
  display: flex !important; flex-direction: column !important; align-items: stretch !important;
  text-align: left !important; width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important;
}
html body .pmp-sl form.pmp-sl-part input,
html body .pmp-sl form.pmp-sl-part select { width: 100% !important; max-width: none !important; margin: 0 !important; }
html body .pmp-sl .pmp-sl-part__meta { grid-column: 1 / 4 !important; }
html body .pmp-sl .pmp-sl-part__actions { grid-column: 4 / -1 !important; }
@media (max-width: 991.98px) {
  html body .pmp-sl form.pmp-sl-part { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  html body .pmp-sl form.pmp-sl-part > label:first-of-type, html body .pmp-sl .pmp-sl-part__details { grid-column: span 3 !important; }
  html body .pmp-sl .pmp-sl-part__meta, html body .pmp-sl .pmp-sl-part__actions { grid-column: 1 / -1 !important; }
}
@media (max-width: 575.98px) {
  html body .pmp-sl form.pmp-sl-part { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body .pmp-sl form.pmp-sl-part > label:first-of-type, html body .pmp-sl .pmp-sl-part__details { grid-column: span 2 !important; }
}

/* ═════════════ v1.0.680 — outil de dessin précis ═════════════ */
.pmp-sl-canvas-wrap { position: relative; max-width: 100%; max-height: 72vh; overflow: auto; border-radius: 12px; background: #f4f1ea; border: 1px solid var(--sl-line); }
.pmp-sl-canvas-wrap .pmp-sl-canvas { width: 100%; max-width: none; border-radius: 0; touch-action: pan-x pan-y; }
.pmp-sl-canvas img { pointer-events: none; -webkit-user-drag: none; }
.pmp-sl-canvas.is-drawing { cursor: crosshair; touch-action: none; outline: 3px solid var(--sl-gold); outline-offset: -3px; }
.pmp-sl-canvas.is-free { cursor: cell; }
.pmp-sl-handles { position: absolute; inset: 0; pointer-events: none; }
.pmp-sl-handle {
  position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: #2563eb; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .35);
  pointer-events: auto; cursor: grab; touch-action: none;
}
.pmp-sl-handle:hover { transform: scale(1.35); background: #1d4ed8; }
.pmp-sl-handle:active { cursor: grabbing; }
.pmp-sl-zone-tag {
  position: absolute; transform: translate(-50%, -50%); padding: 1px 6px; border-radius: 6px;
  background: rgba(255, 255, 255, .88); color: #0f172a; font: 700 11px Inter, sans-serif; white-space: nowrap; pointer-events: none;
}
.pmp-sl-zone.is-drawing { fill: rgba(59, 130, 246, .22); stroke: #2563eb; stroke-width: 1.5px; stroke-dasharray: none; }
.pmp-sl-zone { stroke-width: 1.5px; }
.pmp-sl-zoom { display: inline-flex; align-items: center; gap: 0; margin-left: auto; border: 1px solid var(--sl-line); border-radius: 999px; overflow: hidden; background: #fff; }
.pmp-sl-zoom button { width: 34px; height: 34px; border: 0; background: #faf7f0; font: 700 18px Inter, sans-serif; color: var(--sl-ink); cursor: pointer; }
.pmp-sl-zoom button:hover { background: var(--sl-gold-soft); }
.pmp-sl-zoom span { min-width: 58px; text-align: center; font: 700 12.5px Inter, sans-serif; color: var(--sl-text); }
.pmp-sl-draw { margin: 0 0 10px; }
/* Les boutons masqués (attribut hidden) le restent malgré display:inline-flex des boutons. */
.pmp-sl [hidden], .pmp-slp [hidden] { display: none !important; }

/* v1.0.683 — parts déjà dans le panier du client */
.pmp-slp-zone.is-mine { fill: rgba(168, 122, 42, .38); stroke: #8a6420; cursor: default; }
.pmp-slp-legend .is-mine i { background: repeating-linear-gradient(45deg, rgba(168,122,42,.75) 0 3px, rgba(168,122,42,.35) 3px 6px); }
.pmp-slp-item.is-mine { border-color: rgba(168, 122, 42, .55); background: #fbf6ec; }
.pmp-slp-item.is-mine .pmp-slp-item__avail { color: #8a6420; }
.pmp-slp-panel__buy .pmp-slp-link { display: inline-block; margin-top: 8px; }
.pmp-slp-hold { display: block; margin-top: 8px; font-size: 12.5px; color: #8a6420; }
/* v1.0.686 — réservation expirée (part retirée du panier) */
.pmp-slp-flash.is-warn { background: #fff7e6; border: 1px solid #f5c26b; color: #7a4b06; }
