/* DS Précommandes — front */
.dsp-pre { border: 1px solid #DDE2EC; border-radius: 12px; padding: 18px; margin: 16px 0; background: #fff; }
.dsp-pre__test { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; background: #FFE9B8; color: #6B4200; font-size: 12px; font-weight: 600; }
.dsp-pre__title { font-size: 18px; margin: 0 0 12px; }
.dsp-count { margin-bottom: 16px; }
.dsp-count__label { margin: 0 0 8px; font-weight: 600; }
.dsp-count__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 360px; }
.dsp-count__grid span { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: #172033; color: #C9CFDD; font-size: 11px; }
.dsp-count__grid b { font-size: 24px; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.dsp-pre__form { display: grid; gap: 12px; }
.dsp-pre__choice { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.dsp-pre__choice label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.dsp-pre__field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; margin: 0; }
.dsp-pre__field input, .dsp-pre__field select { min-height: 42px; padding: 8px 10px; border: 1px solid #C9CFDD; border-radius: 8px; font: inherit; max-width: 320px; }
.dsp-pre__money { display: inline-flex; align-items: center; gap: 6px; }
.dsp-pre__money input { width: 140px; }
.dsp-pre__field--qty input { width: 90px; }
.dsp-pre__gift summary { cursor: pointer; font-weight: 500; }
.dsp-pre__note { margin: 0; color: #5B6478; font-size: 13px; }
.dsp-pre__btn { min-height: 46px; font-weight: 600; }
.dsp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.dsp-cart { margin-top: 16px; }
.dsp-cart__title { font-size: 16px; margin: 0 0 10px; }
.dsp-cart__list { list-style: none; padding: 0; margin: 0; }
.dsp-cart__list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid #ECEEF2; }
.dsp-cart__game { font-weight: 600; }
.dsp-cart__meta { grid-column: 1; color: #5B6478; font-size: 13px; }
.dsp-cart__remove { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; }
.dsp-cart__total { margin: 10px 0 0; font-size: 13px; color: #5B6478; }

.dsp-acc { display: grid; gap: 14px; }
.dsp-acc__card { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 18px; border: 1px solid #DDE2EC; border-radius: 12px; background: #fff; }
.dsp-acc__game { font-size: 18px; margin: 0 0 4px; }
.dsp-acc__meta { color: #5B6478; font-size: 13px; margin: 0 0 8px; }
.dsp-acc__nums { display: flex; flex-wrap: wrap; gap: 20px; margin: 12px 0; }
.dsp-acc__nums dt { font-size: 12px; color: #5B6478; font-weight: 500; }
.dsp-acc__nums dd { margin: 0; font-size: 18px; font-weight: 600; }
.dsp-acc__due dd { color: #B4232C; }
.dsp-acc__info { color: #5B6478; font-size: 13px; margin: 8px 0 0; }
.dsp-acc__qr { text-align: center; font-size: 12px; color: #5B6478; }
.dsp-acc__qr strong { font-size: 15px; color: #172033; letter-spacing: .08em; }
.dsp-qr img, .dsp-qr svg { width: 132px; height: 132px; }
.dsp-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.dsp-chip--waiting { color: #9A5B00; background: #FFF1D6; }
.dsp-chip--soldee { color: #1B5FC4; background: #E4EEFD; }
.dsp-chip--retiree { color: #1C7A50; background: #DFF3E8; }
.dsp-chip--annulee { color: #5B6478; background: #ECEEF2; }
@media (max-width: 575px) {
  .dsp-acc__card { grid-template-columns: 1fr; }
  .dsp-acc__qr { justify-self: start; text-align: left; }
}

/* Bloc déplacé à la place du bloc d'achat du thème */
#addcart-garant + .dsp-pre, .dsp-pre[data-dsp-moved] { margin-top: 8px; }

/* Le thème aligne les libellés de formulaire à droite : on rétablit une lecture naturelle dans le bloc. */
.dsp-pre { width: 100%; box-sizing: border-box; text-align: left; }
.dsp-pre label, .dsp-pre legend, .dsp-pre p, .dsp-pre h3, .dsp-pre summary, .dsp-pre .dsp-pre__field { text-align: left !important; justify-content: flex-start; }
.dsp-pre .dsp-pre__field { align-items: flex-start; }
.dsp-pre .dsp-pre__choice label { justify-content: flex-start; }

/* Ligne d'arrhes habillée dans le panier */
.dsp-line__games { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: #3F475A; }
.dsp-line__games li { margin: 2px 0; }
.dsp-line__note { color: #5B6478; font-size: 12px; }
/* Ligne d'arrhes : pas de sélecteur de quantité ni de stock magasin (règles CSS, indépendantes du rendu AJAX du thème) */
.dsp-line .bootstrap-touchspin, .dsp-line input.js-cart-line-product-quantity, .dsp-line .qty .input-group, .dsp-line .stocks_pdv { display: none !important; }
.dsp-line .dsp-line__qty { display: block !important; min-width: 2em; padding: 8px 0 0; font-weight: 600; font-size: 16px; }
.dsp-line__img { max-width: 100%; height: auto; }

.dsp-pre__hint { font-weight: 400; font-size: 12px; color: #5B6478; }
.dsp-checkout-note { margin: 8px 0; padding: 12px 14px; border-radius: 10px; background: #EEF0FE; color: #1F2A6B; font-size: 14px; }

.dsp-summary-label { display: inline-block; max-width: 68%; text-align: left !important; line-height: 1.3; }

.dsp-solde-note { margin: 4px 0; font-size: 13px; font-weight: 600; color: #1F7A3F; }
.dsp-arrhes-row, .dsp-arrhes-row * { color: #1F7A3F !important; }

.dsp-acc__rise { margin: 12px 0; padding: 14px; border-radius: 10px; background: #FFF4E5; border: 1px solid #F5C37A; }
.dsp-acc__rise p { margin: 0 0 10px; }
.dsp-acc__rise .btn { margin: 4px 6px 4px 0; }
.dsp-acc__avoir { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: #E9F7EF; color: #1F6B3A; }

/* ===================== Bloc Précommande v4 (couleurs du site) ===================== */
.dsp-pre.dsp-pre--v4 { --ink: #262626; --ink-2: #484848; --muted: #6B6B78; --blue: #465CFF; --blue-dark: #2F4AE8;
  --blue-tint: rgba(70, 92, 255, .07); --blue-line: rgba(70, 92, 255, .35); --red: #E11B24; --green: #1A9C5B;
  --panel: #F7F7FB; --line: #ECECF2; --line-2: #DADAE6; --err: #C4161C;
  font-family: Poppins, sans-serif; color: var(--ink); border: 0; padding: 0; background: transparent; margin: 14px 0; }
.dsp-pre--v4 [hidden] { display: none !important; }
.dsp-pre--v4 svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dsp-pre--v4 .dsp-pre__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.dsp-pre--v4 .dsp-pre__tag { display: inline-flex; background: var(--blue); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; padding: 4px 12px; border-radius: 50px; }
.dsp-pre--v4 .dsp-pre__date { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.dsp-pre--v4 .dsp-pre__date svg { color: var(--blue); }
.dsp-pre--v4 .dsp-pre__date strong { color: var(--ink); font-weight: 700; }
.dsp-pre--v4 .dsp-count { margin: 0 0 14px; }
.dsp-pre--v4 .dsp-count__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: none; }
.dsp-pre--v4 .dsp-count__grid span { display: flex; flex-direction: column; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 0 6px; color: var(--muted); font-size: 12px; }
.dsp-pre--v4 .dsp-count__grid b { font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--blue); font-variant-numeric: tabular-nums; }
.dsp-pre--v4 .dsp-pre__form { display: block; }
.dsp-pre--v4 .dsp-opts { border: 0; padding: 0; margin: 0; min-width: 0; }
.dsp-pre--v4 .dsp-opt { border: 1px solid var(--line-2); border-radius: 12px; margin: 0 0 10px; background: #fff; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.dsp-pre--v4 .dsp-opt:hover { border-color: var(--blue-line); }
.dsp-pre--v4 .dsp-opt.is-on { border-color: var(--blue); background: var(--blue-tint); box-shadow: 0 0 0 1px var(--blue) inset; }
.dsp-pre--v4 .dsp-opt__hit { display: grid !important; grid-template-columns: 24px 1fr auto; align-items: center; column-gap: 12px; padding: 14px 16px; min-height: 64px; margin: 0 !important; cursor: pointer; font-weight: 400; }
.dsp-pre--v4 .dsp-opt__hit input { width: 20px !important; height: 20px !important; margin: 0 !important; accent-color: var(--blue); cursor: pointer; position: static !important; opacity: 1 !important; }
.dsp-pre--v4 .dsp-opt__label { font-size: 16px; font-weight: 700; color: var(--ink); }
.dsp-pre--v4 .dsp-opt__amount { font-size: 22px; font-weight: 800; white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.dsp-pre--v4 .dsp-opt.is-on .dsp-opt__amount { color: var(--blue); }
.dsp-pre--v4 .dsp-opt__sub { grid-column: 2 / 4; color: var(--muted); font-size: 13.5px; }
.dsp-pre--v4 .dsp-opt__extra { padding: 0 16px 14px 52px; }
.dsp-pre--v4 .dsp-opt__more { background: none !important; border: 0 !important; padding: 6px 0 !important; min-height: 32px; color: var(--blue) !important; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: none !important; }
.dsp-pre--v4 .dsp-opt__more:hover { text-decoration: underline; }
.dsp-pre--v4 .dsp-opt__custom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.dsp-pre--v4 .dsp-field { position: relative; display: inline-block; margin: 0; }
.dsp-pre--v4 .dsp-field input { width: 140px !important; height: 46px !important; padding: 6px 34px 6px 14px !important; background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line-2) !important; border-radius: 10px !important; font: inherit; font-size: 17px !important; font-weight: 700; box-shadow: none !important; }
.dsp-pre--v4 .dsp-field input:focus { outline: 3px solid var(--blue-tint); border-color: var(--blue) !important; }
.dsp-pre--v4 .dsp-field > span:last-child { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.dsp-pre--v4 .dsp-opt__custom small { color: var(--muted); font-size: 12.5px; }
.dsp-pre--v4 .dsp-opt__err { display: block; color: var(--err); font-size: 13px; font-weight: 600; margin-top: 6px; }
.dsp-pre--v4 .dsp-alma { color: var(--green); font-weight: 700; font-size: 13.5px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.dsp-pre--v4 .dsp-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.dsp-pre--v4 .dsp-perks div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.dsp-pre--v4 .dsp-perks svg { color: var(--blue); }
.dsp-pre--v4 .dsp-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.dsp-pre--v4 .dsp-qty { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.dsp-pre--v4 .dsp-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 50px; overflow: hidden; background: #fff; }
.dsp-pre--v4 .dsp-stepper button { width: 44px !important; height: 44px !important; border: 0 !important; background: none !important; color: var(--blue) !important; font-size: 20px; font-weight: 600; cursor: pointer; padding: 0 !important; box-shadow: none !important; }
.dsp-pre--v4 .dsp-stepper button:hover { background: var(--blue-tint) !important; }
.dsp-pre--v4 .dsp-stepper input { width: 36px !important; height: 44px !important; border: 0 !important; text-align: center; font-weight: 700; font-size: 16px; background: transparent !important; padding: 0 !important; -moz-appearance: textfield; box-shadow: none !important; }
.dsp-pre--v4 .dsp-stepper input::-webkit-outer-spin-button, .dsp-pre--v4 .dsp-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dsp-pre--v4 .dsp-gift summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 600; list-style: none; }
.dsp-pre--v4 .dsp-gift summary::-webkit-details-marker { display: none; }
.dsp-pre--v4 .dsp-gift summary svg { color: var(--red); }
.dsp-pre--v4 .dsp-gift[open] { flex-basis: 100%; }
.dsp-pre--v4 .dsp-gift input { width: 100%; max-width: 360px; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; }
.dsp-pre--v4 .dsp-pre__field select { min-height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font: inherit; max-width: 100%; }
.dsp-pre--v4 .dsp-pre__field { margin: 0 0 12px; }
.dsp-pre--v4 .dsp-cta { width: 100%; min-height: 50px; border: 0 !important; border-radius: 50px !important; background: var(--blue) !important; color: #fff !important; font: inherit; font-size: 16px; font-weight: 600; display: flex !important; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none !important; text-transform: none !important; transition: background .15s ease; box-shadow: none !important; }
.dsp-pre--v4 .dsp-cta:hover { background: var(--blue-dark) !important; }
.dsp-pre--v4 .dsp-cta:disabled { background: #A0A7E1 !important; cursor: not-allowed; }
.dsp-pre--v4 .dsp-cta:focus-visible, .dsp-pre--v4 .dsp-opt__hit input:focus-visible, .dsp-pre--v4 .dsp-stepper button:focus-visible { outline: 3px solid var(--blue-line); outline-offset: 3px; }
.dsp-pre--v4 .dsp-safe { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.dsp-pre--v4 .dsp-safe svg { color: var(--green); margin-top: 2px; }
.dsp-pre--v4 .dsp-safe strong { display: block; font-size: 14px; }
.dsp-pre--v4 .dsp-safe p { margin: 2px 0 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.dsp-pre--v4 .dsp-pre__text { margin: 0 0 12px; color: var(--ink-2); }
.dsp-pre--v4 .dsp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .dsp-pre--v4 .dsp-opt, .dsp-pre--v4 .dsp-cta { transition: none; } }
@media (max-width: 420px) { .dsp-pre--v4 .dsp-perks { grid-template-columns: 1fr; } .dsp-pre--v4 .dsp-opt__amount { font-size: 20px; } }

/* 1.12.1 : précision « au prix du jour de sortie » et détail par jeu dès 2 exemplaires */
.dsp-pre--v4 .dsp-opt__note { font-size: 12px; color: var(--muted); }
.dsp-pre--v4 .dsp-opt__unit { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* 1.12.2 : solde groupé dans Mes précommandes */
.dsp-acc__group { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 0 0 16px; padding: 14px 16px; border: 2px solid #465CFF; border-radius: 12px; background: #EEF0FE; }
.dsp-acc__group p { margin: 0; }

/* 1.16.3 — Panier mixte : la livraison choisie ne concerne que les articles disponibles */
.dsp-mixed { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 12px 16px; border-radius: 10px; background: #FFF4DB; border: 1px solid #F3D48A; color: #5C3D00; font-size: 14px; line-height: 1.5; }
.dsp-mixed svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; margin-top: 1px; }
.dsp-mixed p { margin: 0; }

/* 1.16.7 — Bandeau « bon offert » : cadeau et montant bien visibles */
.dsp-bonus-banner { margin: 12px 0; border-radius: 12px; background: #FFF1F2; border: 1.5px solid #FFC2C6; color: #3A1115; font-size: 14px; overflow: hidden; }
.dsp-bonus-banner summary { display: flex; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; cursor: pointer; list-style: none; line-height: 1.4; }
.dsp-bonus-banner summary::-webkit-details-marker { display: none; }
.dsp-bonus-banner__badge { display: flex; align-items: center; gap: 8px; flex: none; padding: 8px 14px 8px 10px; border-radius: 10px; background: #ff141e; color: #fff; box-shadow: 0 4px 12px rgba(255, 20, 30, .28); }
.dsp-bonus-banner__badge svg { width: 30px; height: 30px; flex: none; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.dsp-bonus-banner__badge b { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.dsp-bonus-banner__badge small { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1; margin-top: 4px; }
.dsp-bonus-banner__txt { font-weight: 500; }
.dsp-bonus-banner u { text-underline-offset: 2px; color: #B3121A; font-weight: 600; }
.dsp-bonus-banner ul { margin: 0; padding: 4px 16px 12px 18px; font-size: 13px; color: #5A2A2E; border-top: 1px dashed #FFC2C6; }
.dsp-bonus-banner li { margin: 6px 0 0 16px; }
@media (max-width: 420px) { .dsp-bonus-banner summary { flex-direction: column; align-items: flex-start; gap: 8px; } }
