/* Promotions with free gifts on the shop (Connector C25d, approved docs/roadmap/design/C25d): the banner (black with the
   gift's photo, D1, or light), the product page line, "Spend €8 more" with its meter, the choice box, the gift line in
   the basket ("Free gift · BO", "Free", "worth €35", the locked quantity, D4), the picker and the thin bar. Drawn with the
   --dsec-* tokens; the brand's colours as fallbacks for the parts that sit in WooCommerce's own tables. */

/* ---- the banner ---- */
.dsec-ui.dsec-pb { display: grid; grid-template-columns: minmax(0, 1fr); background: #111; color: #fff; border-radius: var(--dsec-r-card, 12px); overflow: hidden; margin: 0 0 24px; }
@media (min-width: 900px) { .dsec-ui.dsec-pb { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.dsec-pb__media { position: relative; background: linear-gradient(160deg, #f7f7f8, #e4e5e8); display: grid; place-items: center; padding: 22px; min-height: 200px; }
.dsec-pb__img { width: 62%; max-width: 230px; height: auto; aspect-ratio: 1; object-fit: contain; display: block; mix-blend-mode: multiply; }
.dsec-pb__worth { position: absolute; left: 14px; top: 14px; background: #fff; color: #111; font: 600 12px/1 var(--dsec-font); padding: 7px 10px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.dsec-pb__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 360px; }
.dsec-pb__choice { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; border-radius: 8px; display: block; }
.dsec-pb__body { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 12px; justify-content: center; min-width: 0; }
@media (min-width: 900px) { .dsec-pb__body { padding: 36px 40px; gap: 14px; } }
.dsec-pb__eyebrow { font: 600 11px/1 var(--dsec-font); letter-spacing: .16em; text-transform: uppercase; color: var(--dsec-gold, #d4af37); }
.dsec-ui .dsec-pb__title { font: 500 30px/1.12 var(--dsec-serif); margin: 0; color: #fff; text-wrap: balance; }
@media (min-width: 900px) { .dsec-ui .dsec-pb__title { font-size: 40px; } }
.dsec-ui .dsec-pb__text { font: 400 15px/1.5 var(--dsec-font); color: #d1d5db; margin: 0; max-width: 46ch; }
.dsec-pb__text b { color: #fff; font-weight: 600; }
.dsec-pb__code { display: inline-flex; align-items: center; gap: 10px; border: 1px dashed var(--dsec-gold, #d4af37); border-radius: var(--dsec-r-control, 8px); padding: 8px 8px 8px 14px; align-self: flex-start; margin: 0; flex-wrap: wrap; }
.dsec-pb__code[hidden], .dsec-pb__applied[hidden] { display: none !important; }
.dsec-pb__label { font: 500 12px/1 var(--dsec-font); color: #d1d5db; }
.dsec-pb__mono { font: 700 16px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; color: #fff; }
.dsec-ui .dsec-pb__apply { min-height: 36px; background: var(--dsec-gold, #d4af37); border-color: var(--dsec-gold, #d4af37); color: #111; }
.dsec-ui .dsec-pb__applied { display: flex; gap: 8px; align-items: center; margin: 0; color: #fff; font-size: 14px; }
.dsec-pb__applied svg { color: var(--dsec-gold, #d4af37); flex: 0 0 auto; }
.dsec-pb__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dsec-ui .dsec-pb__actions .dsec-btn--primary { background: #fff; color: #111; border-color: #fff; }
.dsec-ui .dsec-pb__fine { font: 400 12px/1.45 var(--dsec-font); color: #9ca3af; margin: 0; }
.dsec-pb__tiers { display: grid; gap: 8px; }
.dsec-pb__tier { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #2a2a2a; border-radius: 8px; font-size: 14px; }
.dsec-pb__tier b { color: #fff; font-weight: 600; }
.dsec-pb__tier-img { width: 44px; height: 44px; flex: 0 0 44px; object-fit: cover; background: #fff; border-radius: 6px; }
.dsec-pb__tier-w { font-size: 12px; color: #9ca3af; }
.dsec-pb__err { color: #fca5a5; font-size: 13px; margin: 0; }
/* light (D1 B) */
.dsec-ui.dsec-pb--light { background: #fff; color: #111; border: 1px solid var(--dsec-gold, #d4af37); }
.dsec-pb--light .dsec-pb__eyebrow { color: var(--dsec-gold-text, #8a6d12); }
.dsec-ui.dsec-pb--light .dsec-pb__title { color: #111; }
.dsec-ui.dsec-pb--light .dsec-pb__text, .dsec-pb--light .dsec-pb__label { color: #444; }
.dsec-pb--light .dsec-pb__text b, .dsec-pb--light .dsec-pb__mono, .dsec-pb--light .dsec-pb__tier b, .dsec-ui.dsec-pb--light .dsec-pb__applied { color: #111; }
.dsec-ui.dsec-pb--light .dsec-pb__actions .dsec-btn--primary { background: #111; color: #fff; border-color: #111; }
.dsec-ui.dsec-pb--light .dsec-pb__fine { color: #6b7280; }
.dsec-pb--light .dsec-pb__tier { border-color: #e5e7eb; }

/* ---- the product page line ---- */
.dsec-ui.dsec-pr-line { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid #eedfa8; background: var(--dsec-gold-tint, #fbf6e6); border-radius: 10px; margin: 12px 0; }
.dsec-pr-line__img { width: 52px; height: 52px; flex: 0 0 52px; object-fit: cover; background: #fff; border-radius: 6px; }
.dsec-pr-line__t { font: 500 14px/1.4 var(--dsec-font); color: #111; }
.dsec-pr-line__t b { font-weight: 600; }
.dsec-pr-line__s { font: 400 12px/1.4 var(--dsec-font); color: #6b5410; }
.dsec-pr-code { font: 700 12px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .1em; background: #111; color: #fff; padding: 3px 6px; border-radius: 4px; white-space: nowrap; }

/* ---- the basket ---- */
.dsec-pr-parts { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; }
.dsec-ui.dsec-pr-goal { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid #eedfa8; background: var(--dsec-gold-tint, #fbf6e6); border-radius: 10px; }
.dsec-pr-goal__top { display: flex; gap: 12px; align-items: center; }
.dsec-pr-goal__img { width: 56px; height: 56px; flex: 0 0 56px; object-fit: cover; background: #fff; border-radius: 6px; }
.dsec-pr-goal__t { font: 600 15px/1.35 var(--dsec-font); color: #111; }
.dsec-pr-goal__s { font: 400 13px/1.4 var(--dsec-font); color: #6b5410; }
.dsec-pr-goal__minis { display: inline-grid; grid-template-columns: repeat(3, 44px); gap: 6px; flex: 0 0 auto; }
.dsec-pr-goal__mini { width: 44px; height: 44px; object-fit: cover; background: #fff; border-radius: 6px; }
.dsec-pr-meter { height: 8px; border-radius: 999px; background: #efe4bf; overflow: hidden; }
.dsec-pr-meter > span { display: block; height: 100%; background: var(--dsec-gold, #d4af37); border-radius: inherit; }
.dsec-pr-meter-l { display: flex; justify-content: space-between; font: 500 12px/1 var(--dsec-font); color: #6b5410; font-variant-numeric: tabular-nums; }
.dsec-ui.dsec-pr-next, .dsec-ui.dsec-pr-mini { display: flex; gap: 8px; align-items: center; margin: 0; font: 400 13px/1.4 var(--dsec-font); color: var(--dsec-text, #444); }
.dsec-pr-next svg, .dsec-pr-mini svg { color: var(--dsec-gold-text, #8a6d12); flex: 0 0 auto; }
.dsec-pr-mini { padding: 8px 0; }
.dsec-pr-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--dsec-r-card, 12px); border: 1px solid #eedfa8; background: var(--dsec-gold-tint, #fbf6e6); color: #6b5410; font-size: 14px; }
.dsec-pr-alert svg { flex: 0 0 auto; }
.dsec-pr-center { text-align: center; display: block; }
.dsec-pr-img--empty { display: inline-grid; place-items: center; color: var(--dsec-gold-text, #8a6d12); }

/* a gift line in WooCommerce's tables (no .dsec-ui root there) */
.dsec-pr-tag { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 "Inter", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #6b5410; background: #fbf6e6; border: 1px solid #eedfa8; border-radius: 999px; padding: 4px 8px; margin: 0 6px 4px 0; vertical-align: middle; }
.dsec-pr-free { font-weight: 700; color: #111; white-space: nowrap; }
.dsec-pr-worth { display: block; font-size: 12px; line-height: 1.2; color: #6b7280; white-space: nowrap; font-weight: 400; }
.dsec-pr-qlock { display: inline-grid; place-items: center; min-width: 48px; min-height: 36px; border: 1px dashed #d1d5db; border-radius: 8px; font: 500 14px/1 "Inter", system-ui, sans-serif; color: #6b7280; }
.dsec-pr-change { display: inline-block; margin-left: 6px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.dsec-pr-status { font-size: 13px; color: #444; }
.dsec-pr-order-note { margin: 12px 0; color: #444; }

/* ---- the picker ---- */
.dsec-ui.dsec-pr-picker form { margin: 0; }
.dsec-pr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 600px) { .dsec-pr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dsec-pr-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--dsec-line, #e5e7eb); border-radius: 10px; background: #fff; cursor: pointer; min-width: 0; }
.dsec-pr-opt input[type="radio"], .dsec-pr-opt input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dsec-pr-opt.is-on, .dsec-pr-opt:has(input:checked) { border-color: var(--dsec-ink, #111); box-shadow: inset 0 0 0 1px var(--dsec-ink, #111); }
.dsec-pr-opt:focus-within { outline: 2px solid var(--dsec-gold, #d4af37); outline-offset: 2px; }
.dsec-pr-opt__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #f7f7f8; display: block; }
.dsec-pr-opt__n { font: 500 13px/1.3 var(--dsec-font); color: #111; }
.dsec-pr-opt__w { font: 400 12px/1.2 var(--dsec-font); color: var(--dsec-muted, #6b7280); }
.dsec-pr-opt__tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: #111; color: #fff; display: none; place-items: center; }
.dsec-pr-opt.is-on .dsec-pr-opt__tick, .dsec-pr-opt:has(input:checked) .dsec-pr-opt__tick { display: grid; }
.dsec-pr-opt.is-gone { opacity: .5; cursor: default; }
.dsec-pr-opt.is-gone .dsec-pr-opt__img { filter: grayscale(1); }
.dsec-pr-opt__gone { font: 600 11px/1 var(--dsec-font); color: var(--dsec-danger-text, #b91c1c); }
.dsec-pr-sizes[hidden] { display: none !important; }
.dsec-pr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dsec-pr-pill { position: relative; cursor: pointer; }
.dsec-pr-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dsec-pr-pill span { display: inline-grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 12px; border: 1px solid var(--dsec-line, #e5e7eb); border-radius: 8px; font: 500 14px/1 var(--dsec-font); background: #fff; }
.dsec-pr-pill input:checked + span { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.dsec-pr-pill input:focus-visible + span { outline: 2px solid var(--dsec-gold, #d4af37); outline-offset: 2px; }
.dsec-pr-pill.is-off span { opacity: .4; text-decoration: line-through; cursor: default; }
.dsec-pr-err { margin: 0; color: var(--dsec-danger-text, #b91c1c); font-size: 13px; }
.dsec-pr-err[hidden] { display: none; }

/* ---- the thin bar (C17's place, D3 B; off by default) ---- */
.dsec-pr-bar { position: relative; z-index: 9999; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 30px; margin: 0; padding: 6px 44px; background: #111; color: #d4af37; font: 500 12px/1.4 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .02em; text-align: center; }
.dsec-pr-bar b { color: #fff; font-weight: 600; letter-spacing: .08em; }
.dsec-pr-bar[hidden] { display: none !important; }
.dsec-pr-bar__short { display: none; }
.dsec-pr-bar__x { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
.dsec-pr-bar__x svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .dsec-pr-bar { padding-left: 12px; justify-content: flex-start; }
  .dsec-pr-bar__full { display: none; }
  .dsec-pr-bar__short { display: inline; }
}
