/*
 * JB Shopwerk · Seitenwarenkorb (assets/cart.js)
 *
 * Vorlage „Klar“ (Entwurf runde-2.html Nr. 1), Empfehlungsspalte D3 (runde-2d.html),
 * Lieferzeit je Artikel W1 (Kundenbereich runde-4 #warenkorb-w1), Handy-Popup B
 * (seite-2.html#h2). Alle Regeln hängen unter `.jbsw-overlay .jbsw-cart`: das
 * schlägt die globalen Regeln für a, h2, h3 (Kit, eine Klasse + Element)
 * per Spezifität, nie per Ladereihenfolge.
 *
 * Breiten:
 * - bis 600 px: Vollbild-Popup, alles scrollt, Kopf und Kassenleiste fest.
 * - ab 601 px: Panel 420 px rechts, Empfehlungen als Streifen (oder Liste).
 * - ab 1100 px mit data-layout="column": Empfehlungen als linke Spalte 290 px.
 */

.jbsw-overlay {
  position: fixed;
  inset: 0;
  /* Ganz oben: Shop-Leisten (z. B. Mix-Match 2147483000) dürfen den Warenkorb nicht verdecken. */
  z-index: 2147483647;
  opacity: 0;
  transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.jbsw-overlay.is-open {
  opacity: 1;
}

.jbsw-overlay[hidden] {
  display: none;
}

html.jbsw-cart-open {
  overflow: hidden;
}

.jbsw-overlay .jbsw-scrim {
  position: absolute;
  inset: 0;
  background: rgb(16 19 18 / 0.5);
}

.jbsw-overlay .jbsw-cart {
  --jbsw-font: var(--jb-font-sans, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  --jbsw-width: 420px;
  --jbsw-pad: 20px;
  --jbsw-thumb: 64px;
  --jbsw-bg: #ffffff;
  --jbsw-surface: #f5f5f3;
  --jbsw-ink: #1f2322;
  --jbsw-muted: #586160;
  --jbsw-line: #e4e7e6;
  --jbsw-field-line: #b9c2c0;
  --jbsw-placeholder: #66706e;
  --jbsw-accent: #637a77;
  --jbsw-accent-dark: #4c5f5d;
  --jbsw-accent-tint: #e8eeed;
  --jbsw-hover: rgb(0 0 0 / 0.05);
  --jbsw-count-bg: #1f2322;
  --jbsw-count-ink: #ffffff;
  --jbsw-badge-bg: #eef0ef;
  --jbsw-badge-ink: #2f3132;
  /* Versandbalken und Aktionen im Grün der Pillen (Entwurf X5, WF.46) */
  --jbsw-bar-track: #e3efe6;
  --jbsw-bar-fill: #2f6b45;
  --jbsw-deal-bg: #e3efe6;
  --jbsw-deal-ink: #2f6b45;
  --jbsw-cta-bg: #ffd450;
  --jbsw-cta-ink: #000000;
  --jbsw-cta-hover: #ffcb2e;
  --jbsw-cta-ring: linear-gradient(40deg, #dfa91f, #ffe48f 60%, #fff6d6);
  --jbsw-cta-shadow: 0 1px 2px rgb(120 85 0 / 0.22), 0 8px 18px -10px rgb(120 85 0 / 0.5);
  --jbsw-wallet-ring: linear-gradient(40deg, #000000, #3a3a3a 60%, #8c8c8c);
  --jbsw-wallet-shadow: 0 1px 2px rgb(0 0 0 / 0.28), 0 8px 18px -10px rgb(0 0 0 / 0.55);
  --jbsw-error: #b42318;
  /* Angebotspreis: das Rot „Fehler und Aktion“ des Design-Systems (DS.1.14) */
  --jbsw-sale: var(--jb-farbe-rot, #b42318);
  /* Gratis-Knopf: Grundfarbe ohne Shop. Im Shop kommen Fläche, Ring und Schatten aus dessen Knopf-System
     (jb-foto: assets/css/jb-knoepfe.css, „Grün · Gratis“). */
  --jbsw-free: #17803f;
  --jbsw-free-hover: #126c35;
  --jbsw-free-shadow: 0 1px 2px rgb(6 60 30 / 0.28), 0 8px 18px -10px rgb(6 60 30 / 0.55);
  --jbsw-remove-bg: #a9463e;
  --jbsw-remove-hover: #963c35;
  --jbsw-radius: 10px;
  --jbsw-radius-btn: 8px;
  --jbsw-radius-media: 6px;
  --jbsw-qty-h: 30px;
  --jbsw-col: 372px;
  /* Empfehlungen (Entwurf 2026-11-07 Warenkorb-Empfehlungen: Spalte Salbei hell F.2, Marke „3 für 2“) */
  --jbsw-reco-bg: #dce5e2;
  --jbsw-reco-card: #eef3f1;
  --jbsw-reco-card-line: #c9d6d2;
  --jbsw-reco-set-bg: #fff8df;
  --jbsw-reco-btn-shadow: 0 1px 2px rgb(30 30 50 / 0.1), 0 8px 18px -10px rgb(30 30 50 / 0.3);
  --jbsw-mark-bg: #ffd450;
  --jbsw-mark-ink: #121212;
  --jbsw-mark-font: var(--jb-font-serif, Georgia, serif);
  --jbsw-shadow: -16px 0 40px rgb(0 0 0 / 0.16);

  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(var(--jbsw-width), 100%);
  overflow: hidden;
  font-family: var(--jbsw-font);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  color: var(--jbsw-ink);
  background: var(--jbsw-bg);
  box-shadow: var(--jbsw-shadow);
  outline: none;
  -webkit-font-smoothing: antialiased;
}

/* Grundlagen unter der Wurzel: Theme- und Regeln neutralisieren. */
.jbsw-overlay .jbsw-cart *,
.jbsw-overlay .jbsw-cart *::before,
.jbsw-overlay .jbsw-cart *::after {
  box-sizing: border-box;
}

.jbsw-overlay .jbsw-cart :where(h2, h3, p, ul, dl, dd, dt, form, del) {
  margin: 0;
  padding: 0;
}

.jbsw-overlay .jbsw-cart ul {
  list-style: none;
}

.jbsw-overlay .jbsw-cart img {
  display: block;
  max-width: 100%;
  height: auto;
}

.jbsw-overlay .jbsw-cart a,
.jbsw-overlay .jbsw-cart button,
.jbsw-overlay .jbsw-cart input,
.jbsw-overlay .jbsw-cart summary {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  text-shadow: none;
}

.jbsw-overlay .jbsw-cart a {
  text-decoration: none;
}

.jbsw-overlay .jbsw-cart button {
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.jbsw-overlay .jbsw-cart summary {
  cursor: pointer;
}

.jbsw-overlay .jbsw-cart :where(button, a, input, summary) {
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, opacity 150ms ease-out;
}

.jbsw-overlay .jbsw-cart :focus-visible {
  outline: 2px solid var(--jbsw-accent-dark);
  outline-offset: 2px;
}

.jbsw-overlay .jbsw-cart .jbsw-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.jbsw-overlay .jbsw-cart .jbsw-icon {
  display: block;
  flex: none;
}

/* ------------------------------------------------------------------ Kopf */

.jbsw-overlay .jbsw-cart .jbsw-cart__head {
  position: relative;
  z-index: 3;
  flex: none;
  background: var(--jbsw-bg);
  border-bottom: 1px solid var(--jbsw-line);
}

.jbsw-overlay .jbsw-cart .jbsw-cart__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--jbsw-pad) 8px;
}

.jbsw-overlay .jbsw-cart .jbsw-cart__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  color: var(--jbsw-ink);
}

.jbsw-overlay .jbsw-cart .jbsw-cart__count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--jbsw-count-ink);
  background: var(--jbsw-count-bg);
  border-radius: 999px;
}

.jbsw-overlay .jbsw-cart .jbsw-cart__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: -10px;
  color: var(--jbsw-ink);
  border-radius: var(--jbsw-radius-btn);
}

.jbsw-overlay .jbsw-cart .jbsw-cart__close:hover {
  background: var(--jbsw-hover);
}

.jbsw-overlay .jbsw-cart .jbsw-ship {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px 8px;
  padding: 0 var(--jbsw-pad) 12px;
}

.jbsw-overlay .jbsw-cart .jbsw-ship__icon {
  color: var(--jbsw-accent-dark);
}

.jbsw-overlay .jbsw-cart .jbsw-ship__text {
  font-size: 13px;
  font-weight: 600;
}

.jbsw-overlay .jbsw-cart .jbsw-ship__text strong {
  font-weight: 800;
  white-space: nowrap;
}

.jbsw-overlay .jbsw-cart .jbsw-ship__bar {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  background: var(--jbsw-bar-track);
  border-radius: 999px;
}

.jbsw-overlay .jbsw-cart .jbsw-ship__fill {
  display: block;
  height: 100%;
  background: var(--jbsw-bar-fill);
  border-radius: inherit;
}

/* ---------------------------------------------------------------- Inhalt */

.jbsw-overlay .jbsw-cart .jbsw-cart__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 2px var(--jbsw-pad) 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* W1: „Kommt in 2 Paketen“ */
.jbsw-overlay .jbsw-cart .jbsw-pkgnote {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--jbsw-accent-dark);
  background: var(--jbsw-accent-tint);
  border-radius: var(--jbsw-radius-btn);
}

.jbsw-overlay .jbsw-cart .jbsw-pkgnote + .jbsw-items {
  margin-top: -12px;
}

.jbsw-overlay .jbsw-cart .jbsw-items {
  display: flex;
  flex-direction: column;
}

.jbsw-overlay .jbsw-cart .jbsw-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--jbsw-thumb) minmax(0, 1fr) auto;
  grid-template-areas:
    "media name price"
    "media meta meta"
    "media note note"
    "media foot foot";
  column-gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--jbsw-line);
  transition: opacity 150ms ease-out;
}

.jbsw-overlay .jbsw-cart .jbsw-item:last-child {
  border-bottom: 0;
}

.jbsw-overlay .jbsw-cart .jbsw-item.is-busy {
  opacity: 0.55;
}

.jbsw-overlay .jbsw-cart .jbsw-item__media {
  grid-area: media;
  align-self: start;
  display: block;
  width: var(--jbsw-thumb);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--jbsw-radius-media);
}

/* Ganzes Bild: ohne Fläche fiele der Beschnitt auf (Stirnband links abgeschnitten). */
.jbsw-overlay .jbsw-cart .jbsw-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jbsw-overlay .jbsw-cart .jbsw-item__name {
  grid-area: name;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}

.jbsw-overlay .jbsw-cart .jbsw-item__name a {
  color: inherit;
  border-radius: 2px;
}

.jbsw-overlay .jbsw-cart .jbsw-item__name a:hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jbsw-overlay .jbsw-cart .jbsw-item__meta {
  grid-area: meta;
  min-width: 0;
  margin-top: 1px;
  overflow: hidden;
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--jbsw-muted);
}

.jbsw-overlay .jbsw-cart .jbsw-item__note {
  grid-area: note;
  justify-self: start;
  margin-top: 5px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--jbsw-badge-ink);
  background: var(--jbsw-badge-bg);
  border-radius: 4px;
}

/* Fußzeile (Entwurf 2026-11-01 B): Menge, Lieferzeit, Papierkorb. Wird es eng, rutscht die Lieferzeit samt Papierkorb in die nächste Zeile. */
.jbsw-overlay .jbsw-cart .jbsw-item__foot {
  grid-area: foot;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 6px;
}

.jbsw-overlay .jbsw-cart .jbsw-item__tail {
  flex: 1 1 min-content;
  display: flex;
  align-items: center;
  column-gap: 10px;
}

.jbsw-overlay .jbsw-cart .jbsw-item__time,
.jbsw-overlay .jbsw-cart .jbsw-parcel__time {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--jbsw-muted);
}

.jbsw-overlay .jbsw-cart .jbsw-item__time .jbsw-icon,
.jbsw-overlay .jbsw-cart .jbsw-parcel__time .jbsw-icon {
  color: var(--jbsw-accent-dark);
}

/* Streichpreis vor dem Preis in einer Zeile, der Name bricht dafür um: gleich hohe Zeilen
   mit und ohne Streichpreis (User 2026-11-07). */
.jbsw-overlay .jbsw-cart .jbsw-item__price {
  grid-area: price;
  align-self: start;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-left: 8px;
  line-height: 1.3;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.jbsw-overlay .jbsw-cart .jbsw-item__now {
  font-size: 14.5px;
  font-weight: 800;
}

.jbsw-overlay .jbsw-cart .jbsw-item__old {
  font-size: 12px;
  color: var(--jbsw-muted);
}

.jbsw-overlay .jbsw-cart .jbsw-qty {
  display: inline-flex;
  align-items: center;
  height: var(--jbsw-qty-h);
  background: #ffffff;
  border: 1px solid var(--jbsw-field-line);
  border-radius: 999px;
}

.jbsw-overlay .jbsw-cart .jbsw-qty__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(var(--jbsw-qty-h) - 2px);
  height: calc(var(--jbsw-qty-h) - 2px);
  color: var(--jbsw-ink);
  border-radius: 999px;
}

.jbsw-overlay .jbsw-cart .jbsw-qty__btn:hover {
  background: var(--jbsw-hover);
}

.jbsw-overlay .jbsw-cart .jbsw-qty__btn:disabled {
  cursor: default;
  opacity: 0.35;
}

.jbsw-overlay .jbsw-cart .jbsw-qty__btn:disabled:hover {
  background: transparent;
}

/* Zahl zum Eintippen (bearbeitbar, kein Eingabefeld): sieht aus wie vorher, nur mit Schreibmarke. */
.jbsw-overlay .jbsw-cart .jbsw-qty__val {
  display: inline-block;
  min-width: 20px;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 800;
  line-height: calc(var(--jbsw-qty-h) - 6px);
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--jbsw-ink);
  cursor: text;
  border-radius: 4px;
}

.jbsw-overlay .jbsw-cart .jbsw-qty__val:focus {
  outline: 2px solid var(--jbsw-accent);
  outline-offset: -2px;
}

/* Minus bei Mindestmenge: das Mengenfeld wird zur roten Pille „Entfernen“, erst sie entfernt
   (Entwurf 2026-11-08-warenkorb-menge, MG.2.B, Rot gedämpft). */
.jbsw-overlay .jbsw-cart .jbsw-qty-remove {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--jbsw-qty-h);
  padding: 0 12px 0 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #ffffff;
  background: var(--jbsw-remove-bg);
  border: 0;
  border-radius: 999px;
}

.jbsw-overlay .jbsw-cart .jbsw-qty-remove:hover,
.jbsw-overlay .jbsw-cart .jbsw-qty-remove.is-hover {
  color: #ffffff;
  background: var(--jbsw-remove-hover);
}

/* -------------------------------------------------------- Empfehlungen */

.jbsw-overlay .jbsw-cart .jbsw-reco__title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  color: var(--jbsw-ink);
}

.jbsw-overlay .jbsw-cart .jbsw-reco__item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas:
    "media name add"
    "media price add";
  align-items: center;
  column-gap: 10px;
  min-width: 0;
}

.jbsw-overlay .jbsw-cart .jbsw-reco__media {
  grid-area: media;
  display: block;
  width: 48px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--jbsw-radius-media);
}

.jbsw-overlay .jbsw-cart .jbsw-reco__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.jbsw-overlay .jbsw-cart .jbsw-reco__item.is-art .jbsw-reco__media img {
  object-fit: contain;
}

.jbsw-overlay .jbsw-cart .jbsw-reco__name {
  grid-area: name;
  align-self: end;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.jbsw-overlay .jbsw-cart .jbsw-reco__name a {
  color: inherit;
}

.jbsw-overlay .jbsw-cart .jbsw-reco__name a:hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jbsw-overlay .jbsw-cart .jbsw-reco__price {
  grid-area: price;
  align-self: start;
  font-size: 12.5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--jbsw-muted);
}

/* Angebot (EM.13, User 2026-11-10): neuer Preis vorn in Rot, Streichpreis rechts daneben. WooCommerce liefert
   erst `del`, dann `ins`; umgestellt wird nur die Anzeige, Vorleser hören weiter erst den alten Preis. */
.jbsw-overlay .jbsw-cart .jbsw-reco__price:has(> del) {
  display: flex;
  align-items: baseline;
  column-gap: 0.35em;
}

.jbsw-overlay .jbsw-cart .jbsw-reco__price del {
  order: 1;
  opacity: 0.75;
}

.jbsw-overlay .jbsw-cart .jbsw-reco__price ins {
  color: var(--jbsw-sale);
  text-decoration: none;
}

.jbsw-overlay .jbsw-cart .jbsw-reco__price:has(> del) .jbsw-reco__badge {
  order: 2;
}

/* Marke neben dem Preis (EM.1.5c) */
.jbsw-overlay .jbsw-cart .jbsw-reco__badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px 0;
  font: 700 11.5px/1.25 var(--jbsw-mark-font);
  font-variant-numeric: lining-nums;
  vertical-align: 1px;
  color: var(--jbsw-mark-ink);
  background: var(--jbsw-mark-bg);
  border-radius: 4px;
}

/* Aktionen unter den Produkten (Entwurf 2026-11-07 aktionen.html, EM.5/EM.8 A): je Zeile ein Link
   mit gefächerten Bildern, Name, Stand und Marke, kein Kaufknopf. */
.jbsw-overlay .jbsw-cart .jbsw-acts {
  margin-top: 16px;
}

.jbsw-overlay .jbsw-cart .jbsw-acts__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jbsw-overlay .jbsw-cart .jbsw-act {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  color: var(--jbsw-ink);
  text-decoration: none;
  background: var(--jbsw-reco-set-bg);
  border-radius: 8px;
}

.jbsw-overlay .jbsw-cart .jbsw-act:hover {
  color: var(--jbsw-ink);
  background: #fff2c4;
}

.jbsw-overlay .jbsw-cart .jbsw-act__set {
  position: relative;
  width: 58px;
  height: 44px;
}

.jbsw-overlay .jbsw-cart .jbsw-act__img {
  position: absolute;
  top: 3px;
  left: 0;
  width: 36px;
  height: 36px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
  transform: rotate(-6deg);
}

.jbsw-overlay .jbsw-cart .jbsw-act__img:nth-child(2) {
  top: 1px;
  left: 10px;
  transform: none;
}

.jbsw-overlay .jbsw-cart .jbsw-act__img:nth-child(3) {
  left: 20px;
  transform: rotate(6deg);
}

.jbsw-overlay .jbsw-cart .jbsw-act__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jbsw-overlay .jbsw-cart .jbsw-act__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jbsw-overlay .jbsw-cart .jbsw-act__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

/* Marke vorn im Titel (Entwurf aktion-zuerst.html B) */
.jbsw-overlay .jbsw-cart .jbsw-act__badge {
  margin-left: 0;
  margin-right: 2px;
}

.jbsw-overlay .jbsw-cart .jbsw-act__desc {
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--jbsw-muted);
}

.jbsw-overlay .jbsw-cart .jbsw-act .jbsw-icon {
  width: 14px;
  height: 14px;
}

/* Sammelkachel: drei Bilder gefächert (Handy, Streifen), ab 1100 px nebeneinander. */
.jbsw-overlay .jbsw-cart .jbsw-reco__set {
  position: relative;
  overflow: visible;
}

.jbsw-overlay .jbsw-cart .jbsw-reco__set-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
}

.jbsw-overlay .jbsw-cart .jbsw-reco__set-img:nth-child(2) {
  top: 5px;
  left: 5px;
}

.jbsw-overlay .jbsw-cart .jbsw-reco__set-img:nth-child(3) {
  top: 10px;
  left: 10px;
}


.jbsw-overlay .jbsw-cart .jbsw-reco__add {
  grid-area: add;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--jbsw-ink);
  background: #ffffff;
  border: 1px solid var(--jbsw-ink);
  border-radius: var(--jbsw-radius-btn);
}

.jbsw-overlay .jbsw-cart .jbsw-reco__add:hover {
  color: var(--jbsw-ink);
  background: var(--jbsw-surface);
}

.jbsw-overlay .jbsw-cart .jbsw-reco__add:disabled {
  cursor: default;
  opacity: 0.55;
}

/* „Größe wählen“ führt zur Produktseite: Text statt Symbol, außer im engen Streifen. */
.jbsw-overlay .jbsw-cart .jbsw-reco__add--choose .jbsw-icon {
  display: none;
}

/* Streifen (Standard ab 601 px; „linke Spalte“ unter 1100 px) */
.jbsw-overlay .jbsw-cart:not([data-layout="below"]) .jbsw-reco__list {
  display: grid;
  grid-auto-columns: 64%;
  grid-auto-flow: column;
  gap: 10px;
  margin: 0 calc(var(--jbsw-pad) * -1);
  padding: 0 var(--jbsw-pad) 4px;
  overflow-x: auto;
  scroll-padding: 0 var(--jbsw-pad);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.jbsw-overlay .jbsw-cart:not([data-layout="below"]) .jbsw-reco__item {
  padding: 8px;
  border: 1px solid var(--jbsw-line);
  border-radius: var(--jbsw-radius);
  scroll-snap-align: start;
}

/* Im Streifen nur das Symbol: beide Seiten gleich. Icon-Seite 0,85 × Textseite nur neben sichtbarem Text
   (jb-knoepfe.css, User 2026-11-16); Spalte ab 1100 px und Gratis-Stück schalten es wieder ein. */
.jbsw-overlay .jbsw-cart:not([data-layout="below"]) .jbsw-reco__add {
  --jb-k-icon-polster: var(--jb-k-polster-x);
  width: 32px;
  padding: 0;
}

.jbsw-overlay .jbsw-cart:not([data-layout="below"]) .jbsw-reco__add-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.jbsw-overlay .jbsw-cart:not([data-layout="below"]) .jbsw-reco__add--choose .jbsw-icon {
  display: block;
}

/* Unten als Liste */
.jbsw-overlay .jbsw-cart[data-layout="below"] .jbsw-reco__list {
  display: flex;
  flex-direction: column;
}

.jbsw-overlay .jbsw-cart[data-layout="below"] .jbsw-reco__item {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  padding: 8px 0;
  border-top: 1px solid var(--jbsw-line);
}

.jbsw-overlay .jbsw-cart[data-layout="below"] .jbsw-reco__media {
  width: 44px;
}

.jbsw-overlay .jbsw-cart[data-layout="below"] .jbsw-reco__add {
  height: 30px;
}

/* ------------------------------------------------------------------ Fuß */
/* Entwurf X5 (jb-foto/_docs/entwuerfe/2026-10-28-kopf-warenkorbfuss/runde-11.html#x5):
   Rabatt- und Gutscheinzeile, Trennstrich, Versandzeile mit Flagge, Knopf mit Summe. */

.jbsw-overlay .jbsw-cart .jbsw-cart__dyn {
  display: contents;
}

.jbsw-overlay .jbsw-cart .jbsw-cart__foot {
  position: relative;
  z-index: 3;
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 10px;
  padding: 10px var(--jbsw-pad) 12px;
  background: var(--jbsw-bg);
  border-top: 1px solid var(--jbsw-line);
}

.jbsw-overlay .jbsw-cart .jbsw-deals {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--jbsw-line);
}

.jbsw-overlay .jbsw-cart .jbsw-line {
  display: flex;
  align-items: center;
  min-height: 30px;
  font-size: 14px;
}

.jbsw-overlay .jbsw-cart .jbsw-line__label {
  flex: none;
  margin-right: 10px;
}

.jbsw-overlay .jbsw-cart .jbsw-line__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.jbsw-overlay .jbsw-cart .jbsw-line__amount {
  flex: none;
  margin-left: auto;
  padding-left: 10px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--jbsw-deal-ink);
}

.jbsw-overlay .jbsw-cart .jbsw-line__amount--plain {
  color: var(--jbsw-ink);
}

/* Grüne Pille: Aktionen, Gratis-Stücke, eingelöster Gutschein */
.jbsw-overlay .jbsw-cart .jbsw-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--jbsw-deal-ink);
  background: var(--jbsw-deal-bg);
  border-radius: 999px;
}

/* Gutschein mit Etikett-Symbol: Icon-Seite 0,85 × Textseite (User 2026-11-16), Text 10, Symbol 8,5. */
.jbsw-overlay .jbsw-cart .jbsw-pill.jbsw-pill--code {
  padding-inline-start: 8.5px;
}

.jbsw-overlay .jbsw-cart .jbsw-pill__code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
}

.jbsw-overlay .jbsw-cart .jbsw-pill__x {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: -5px;
  color: var(--jbsw-deal-ink);
  border-radius: 999px;
}

.jbsw-overlay .jbsw-cart .jbsw-pill__x:hover {
  background: rgb(47 107 69 / 0.12);
}

.jbsw-overlay .jbsw-cart .jbsw-addcoupon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--jbsw-muted);
  border-radius: 6px;
}

.jbsw-overlay .jbsw-cart .jbsw-addcoupon:hover {
  color: var(--jbsw-ink);
}

.jbsw-overlay .jbsw-cart .jbsw-addcoupon:hover span {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Gutscheinfeld als Pille mit rundem Pfeil-Knopf, so breit wie „Gutscheincode eingeben“ (E2) */
.jbsw-overlay .jbsw-cart .jbsw-codefield {
  display: inline-flex;
  align-items: center;
  height: 32px;
  background: #ffffff;
  border: 1.5px solid var(--jbsw-field-line);
  border-radius: 999px;
  animation: jbsw-auf 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.jbsw-overlay .jbsw-cart .jbsw-codefield:focus-within {
  border-color: var(--jbsw-ink);
}

.jbsw-overlay .jbsw-cart .jbsw-codefield.is-error {
  border-color: var(--jbsw-error);
}

.jbsw-overlay .jbsw-cart .jbsw-codefield__input {
  width: 172px;
  height: 100%;
  margin: 0;
  padding: 0 6px 0 12px;
  font-size: 13.5px;
  color: var(--jbsw-ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  outline: none;
  box-shadow: none;
}

.jbsw-overlay .jbsw-cart .jbsw-codefield__input:not(:placeholder-shown) {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.jbsw-overlay .jbsw-cart .jbsw-codefield__input::placeholder {
  color: var(--jbsw-placeholder);
  opacity: 1;
}

.jbsw-overlay .jbsw-cart .jbsw-codefield__send {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 3px 0 0;
  color: #ffffff;
  background: var(--jbsw-ink);
  border-radius: 999px;
}

.jbsw-overlay .jbsw-cart .jbsw-codefield__send:hover {
  background: #000000;
}

.jbsw-overlay .jbsw-cart .jbsw-codefield__send:disabled {
  cursor: default;
  opacity: 0.55;
}

@keyframes jbsw-auf {
  from { opacity: 0; transform: scale(0.98); }
}

.jbsw-overlay .jbsw-cart .jbsw-coupon__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--jbsw-error);
}

/* Versandzeile mit Flagge, darunter der feine Strich bis kostenlos */
.jbsw-overlay .jbsw-cart .jbsw-shipline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  font-size: 14px;
}

.jbsw-overlay .jbsw-cart .jbsw-shipline.has-bar {
  padding-bottom: 9px;
}

.jbsw-overlay .jbsw-cart .jbsw-shipline__to {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.jbsw-overlay .jbsw-cart .jbsw-flag {
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
}

.jbsw-overlay .jbsw-cart .jbsw-shipline__bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: var(--jbsw-bar-track);
  border-radius: 9px;
}

.jbsw-overlay .jbsw-cart .jbsw-shipline__bar span {
  display: block;
  height: 100%;
  background: var(--jbsw-bar-fill);
  border-radius: inherit;
  transition: width 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.jbsw-overlay .jbsw-cart .jbsw-shipline__left {
  margin-top: -6px;
  font-size: 12.5px;
  text-align: right;
  color: var(--jbsw-muted);
}

/* Bleibt beim Neuzeichnen stehen: Express-Knöpfe und „Zur Kasse“ */
.jbsw-overlay .jbsw-cart .jbsw-pay {
  position: relative;
  z-index: 3;
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 8px;
  padding: 0 var(--jbsw-pad) 14px;
  background: var(--jbsw-bg);
}

.jbsw-overlay .jbsw-cart .jbsw-pay[hidden],
.jbsw-overlay .jbsw-cart .jbsw-pay__coupon:empty {
  display: none;
}

/* X5: links PayPal, rechts Apple Pay bzw. Google Pay; ein Knopf allein nimmt die ganze Breite.
   Leere Plätze (Plugin zeichnet nichts, Wallet fehlt am Gerät) fallen weg. */
:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express {
  display: flex;
  gap: 8px;
  min-height: 46px;
}

:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express:not([data-ready]) > * {
  visibility: hidden;
  opacity: 0;
}

/* Ring und Schatten wie „Zur Kasse“, außen um den Knopf: Fläche und Schrift kommen von PayPal und Google.
   Die Grundfarbe darunter steht, bis deren Fläche gemalt ist. */
:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express > * {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(#ffc439, #ffc439) padding-box, var(--jbsw-cta-ring) border-box;
  box-shadow: var(--jbsw-cta-shadow);
  transition: opacity 0.16s ease-out;
}

:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express > .jbsw-express__wallet {
  background: linear-gradient(#000000, #000000) padding-box, var(--jbsw-wallet-ring) border-box;
  box-shadow: var(--jbsw-wallet-shadow);
}

/* Nur PayPal, ohne eigenen Knopf für „Später bezahlen“. Als Pille wie die übrigen Knöpfe.
   PayPal setzt Höhe und Radius am Element und zeigt seine Knöpfe über eine ID, deshalb !important. */
:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express__pp paypal-pay-later-button {
  display: none !important;
}

:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express__pp paypal-button {
  height: 42px !important;
  --paypal-button-border-radius: 21px !important;
}

:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express__pp .woocommerce-mini-cart__buttons {
  margin: 0;
  padding: 0;
}

:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express__pp:has(#ppc-button-minicart-v6:empty),
:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express__pp:has(.jbsw-paypal-express:empty),
:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express__wallet:not(:has(.fkwcs_smart_button_shown)):not(:has(.jbsw-stripe-wallet__mount.is-ready)) {
  display: none;
}

:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express[data-ready]:not(:has(.fkwcs_smart_button_shown, .jbsw-stripe-wallet__mount.is-ready, #ppc-button-minicart-v6:not(:empty), .jbsw-paypal-express:not(:empty))) {
  display: none;
}

:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express .fkwcs_express_smart_button_wrapper {
  margin: 0;
  padding: 0;
}

/* Pillen wie „Zur Kasse“ (Entwurf 2026-11-01 runde-13.html): Stripe lässt sich über FunnelKit nicht runden, also Zuschnitt. Sein Rahmen ist 50 px hoch,
   darin der Knopf mit 42 px und je 4 px Rand für den Fokus. FunnelKit gibt 10 px Außenabstand mit, ohne margin klafft der Spalt zu „Zur Kasse“. */
:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express .fkwcs_smart_cart_button {
  overflow: hidden;
  height: 42px;
  margin: 0;
  border-radius: 999px;
}

:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express .fkwcs_smart_cart_button .__PrivateStripeElement {
  top: -4px;
}

/* Der Zuschnitt nimmt Stripe den eigenen Fokusrahmen. */
:is(.jbsw-overlay .jbsw-cart, .jbsw-page-host .jbsw-page) .jbsw-express > :focus-within {
  outline: 2px solid var(--jbsw-accent-dark);
  outline-offset: 2px;
}

.jbsw-overlay .jbsw-cart .jbsw-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--jbsw-cta-ink);
  background: linear-gradient(var(--jbsw-cta-bg), var(--jbsw-cta-bg)) padding-box, var(--jbsw-cta-ring) border-box;
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow: var(--jbsw-cta-shadow);
}

.jbsw-overlay .jbsw-cart .jbsw-checkout:hover,
.jbsw-overlay .jbsw-cart .jbsw-checkout:focus {
  --jbsw-cta-bg: var(--jbsw-cta-hover);
  color: var(--jbsw-cta-ink);
}

.jbsw-overlay .jbsw-cart .jbsw-checkout:active {
  opacity: 0.9;
}

.jbsw-overlay .jbsw-cart .jbsw-checkout__sep {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: rgb(0 0 0 / 0.3);
}

.jbsw-overlay .jbsw-cart .jbsw-checkout__sum {
  font-variant-numeric: tabular-nums;
}

/* Gratis-Stücke an der Zeile: Pille neben der Menge */
.jbsw-overlay .jbsw-cart .jbsw-item__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.jbsw-overlay .jbsw-cart .jbsw-item__act .jbsw-pill {
  height: 22px;
  padding: 0 9px;
  font-size: 12px;
}

/* ------------------------------------------------------------------ Leer */

.jbsw-overlay .jbsw-cart.is-empty .jbsw-cart__body {
  justify-content: center;
}

.jbsw-overlay .jbsw-cart .jbsw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 4px;
  text-align: center;
}

.jbsw-overlay .jbsw-cart .jbsw-empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  color: var(--jbsw-accent-dark);
  background: var(--jbsw-surface);
  border-radius: 999px;
}

.jbsw-overlay .jbsw-cart .jbsw-empty__title {
  font-size: 17px;
  font-weight: 800;
}

.jbsw-overlay .jbsw-cart .jbsw-empty__text {
  max-width: 34ch;
  font-size: 13.5px;
  color: var(--jbsw-muted);
}

.jbsw-overlay .jbsw-cart .jbsw-empty__cta {
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin-top: 10px;
  padding: 0 22px;
  font-weight: 800;
  white-space: nowrap;
  color: #ffffff;
  background: var(--jbsw-accent-dark);
  border-radius: var(--jbsw-radius-btn);
}

.jbsw-overlay .jbsw-cart .jbsw-empty__cta:hover {
  color: #ffffff;
  background: #3b4a48;
}

/* ---------------------------------------- D3: linke Spalte ab 1100 px */
/* Entwurf 2026-11-07 Warenkorb-Empfehlungen (EM.2.D3, F.2): Fläche Salbei hell, getönte Kästchen,
   Bild 84 px 3:2, Titel bis zwei Zeilen, weißer Knopf rechts in derselben Zeile. */

@media (min-width: 1100px) {
  .jbsw-overlay .jbsw-cart[data-layout="column"].has-recos {
    width: calc(var(--jbsw-width) + var(--jbsw-col));
    padding-left: var(--jbsw-col);
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: var(--jbsw-col);
    margin: 0;
    padding: 14px 12px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--jbsw-reco-bg);
  }

  /* Aktionen unten in der Spalte */
  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-acts {
    margin-top: auto;
    padding-top: 16px;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-acts .jbsw-reco__title {
    margin-bottom: 8px;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__title {
    margin: 4px 0 12px;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__item {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    padding: 6px;
    background: var(--jbsw-reco-card);
    border: 1px solid var(--jbsw-reco-card-line);
    border-radius: 8px;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__media {
    width: 84px;
    aspect-ratio: 3 / 2;
    border-radius: 4px;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__name {
    display: -webkit-box;
    font-size: 13.5px;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__price {
    margin-top: 3px;
    font-size: 13px;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__add {
    --jb-k-icon-polster: initial;
    gap: 6px;
    width: auto;
    height: auto;
    padding: 6px 13px;
    font-size: 13px;
    line-height: 1.4;
    color: #000000;
    border: 0;
    border-radius: 999px;
    box-shadow: var(--jbsw-reco-btn-shadow);
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__add:hover {
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--jbsw-reco-card-line), var(--jbsw-reco-btn-shadow);
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__add .jbsw-icon {
    width: 13px;
    height: 13px;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__add-text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__add--choose .jbsw-icon {
    display: none;
  }

  /* Sammelkachel: Bilderreihe oben, darunter Name, Preis und „Alle ansehen“ */
  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__item--set {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "media media"
      "name add"
      "price add";
    padding: 6px 6px 8px;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__set {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: auto;
    height: 64px;
    margin-bottom: 8px;
    aspect-ratio: auto;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__set-img {
    position: static;
    width: auto;
    height: 64px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__set-img img {
    object-fit: contain;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__item--set .jbsw-reco__name {
    font-size: 15px;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__item--set .jbsw-reco__price {
    margin-top: 0;
  }
}

/* ------------------------------------------- Handy: Vollbild-Popup B */

@media (max-width: 600px) {
  .jbsw-overlay .jbsw-cart {
    --jbsw-pad: 16px;
    --jbsw-radius-media: 10px;
    --jbsw-thumb: 56px;
    /* Leicht getönt, damit die weißen runden Knöpfe der Empfehlungen herausstechen (EM.2.H2). */
    --jbsw-bg: #f4f3ef;

    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: none;
  }

  .jbsw-overlay .jbsw-cart > * {
    flex: none;
  }

  .jbsw-overlay .jbsw-cart .jbsw-cart__head {
    position: sticky;
    top: 0;
    order: 0;
  }

  .jbsw-overlay .jbsw-cart:not(.is-empty) .jbsw-cart__body,
  .jbsw-overlay .jbsw-cart .jbsw-cart__foot {
    display: contents;
  }

  /* Kopf mit Versandstand (Entwurf 2026-11-01 runde-9.html#l3): Titel nur für Screenreader, Versand und Balken neben dem Schließen-Feld.
     Ohne Versandstand (leerer Warenkorb, nur Digitales) bleibt der sichtbare Titel. */
  .jbsw-overlay .jbsw-cart .jbsw-cart__head:has(.jbsw-ship) .jbsw-cart__top {
    display: contents;
  }

  .jbsw-overlay .jbsw-cart .jbsw-cart__head:has(.jbsw-ship) .jbsw-cart__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .jbsw-overlay .jbsw-cart .jbsw-cart__head:has(.jbsw-ship) .jbsw-cart__close {
    position: absolute;
    top: 50%;
    right: 6px;
    margin: 0;
    transform: translateY(-50%);
  }

  .jbsw-overlay .jbsw-cart .jbsw-ship {
    padding: 8px 54px 8px var(--jbsw-pad);
  }

  .jbsw-overlay .jbsw-cart.is-empty .jbsw-cart__body {
    flex: 1 0 auto;
  }

  /* Pakete und Zeile (Entwurf 2026-11-01 runde-3.html#g): Lieferzeit als Überschrift, Name allein, darunter Menge, Preis, Papierkorb. */
  /* „Kommt in 2 Paketen“ auch am Handy, über dem ersten Paket (User 2026-11-11). */
  .jbsw-overlay .jbsw-cart .jbsw-pkgnote {
    order: 1;
    margin: 10px var(--jbsw-pad) 0;
  }

  .jbsw-overlay .jbsw-cart .jbsw-parcel {
    order: 1;
    margin: 0 var(--jbsw-pad);
  }

  .jbsw-overlay .jbsw-cart .jbsw-parcel + .jbsw-parcel {
    border-top: 1px solid var(--jbsw-line);
  }

  .jbsw-overlay .jbsw-cart .jbsw-parcel__time {
    padding-top: 8px;
  }

  .jbsw-overlay .jbsw-cart .jbsw-item__time {
    display: none;
  }

  /* Die Menge nimmt, was der Preis lässt: reicht das nicht, rutscht die Pille unter die Menge. */
  .jbsw-overlay .jbsw-cart .jbsw-item {
    --jbsw-item-foot-gap: 6px;

    grid-template-columns: calc(var(--jbsw-thumb) + 4px) minmax(0, 1fr) max-content;
    grid-template-areas:
      "media name name"
      "media meta meta"
      "media note note"
      "media act price";
    column-gap: 8px;
    padding: 8px 0;
  }

  /* Mit Maßen hat die Zeile drei Ebenen: enger, damit Wandbilder den Empfehlungen nicht den Platz nehmen. */
  .jbsw-overlay .jbsw-cart .jbsw-item:has(.jbsw-item__meta) {
    --jbsw-item-foot-gap: 3px;

    padding: 6px 0;
  }

  .jbsw-overlay .jbsw-cart .jbsw-item__meta {
    line-height: 16px;
  }

  .jbsw-overlay .jbsw-cart .jbsw-item__name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .jbsw-overlay .jbsw-cart .jbsw-item__foot,
  .jbsw-overlay .jbsw-cart .jbsw-item__tail {
    display: contents;
  }

  .jbsw-overlay .jbsw-cart .jbsw-item__foot > .jbsw-qty,
  .jbsw-overlay .jbsw-cart .jbsw-item__foot > .jbsw-qty-remove,
  .jbsw-overlay .jbsw-cart .jbsw-item__act {
    grid-area: act;
    justify-self: start;
  }

  .jbsw-overlay .jbsw-cart .jbsw-item__foot > .jbsw-qty,
  .jbsw-overlay .jbsw-cart .jbsw-item__foot > .jbsw-qty-remove,
  .jbsw-overlay .jbsw-cart .jbsw-item__act,
  .jbsw-overlay .jbsw-cart .jbsw-item__price {
    margin-top: var(--jbsw-item-foot-gap);
  }

  .jbsw-overlay .jbsw-cart .jbsw-item__act {
    gap: 6px;
  }

  .jbsw-overlay .jbsw-cart .jbsw-item__price {
    align-self: center;
    padding-left: 0;
  }

  /* Neben der Pille wäre der Streichpreis doppelt, die Ersparnis steht zudem in der Rabattzeile. */
  .jbsw-overlay .jbsw-cart .jbsw-item:has(.jbsw-pill) .jbsw-item__old {
    display: none;
  }

  .jbsw-overlay .jbsw-cart .jbsw-deals {
    order: 3;
    margin: 8px var(--jbsw-pad) 10px;
    padding-top: 10px;
    border-top: 1px solid var(--jbsw-line);
  }

  .jbsw-overlay .jbsw-cart .jbsw-shipline,
  .jbsw-overlay .jbsw-cart .jbsw-shipline__left {
    order: 3;
    margin-right: var(--jbsw-pad);
    margin-left: var(--jbsw-pad);
  }

  .jbsw-overlay .jbsw-cart .jbsw-shipline__left {
    margin-top: 4px;
  }

  /* Der Balken steht schon im Kopf. */
  .jbsw-overlay .jbsw-cart .jbsw-shipline.has-bar {
    padding-bottom: 0;
  }

  .jbsw-overlay .jbsw-cart .jbsw-shipline__bar {
    display: none;
  }

  .jbsw-overlay .jbsw-cart .jbsw-recos {
    order: 2;
    margin: 10px var(--jbsw-pad) 14px;
  }

  .jbsw-overlay .jbsw-cart .jbsw-pay {
    position: sticky;
    bottom: 0;
    z-index: 3;
    order: 7;
    margin-top: auto;
    padding: 10px var(--jbsw-pad) calc(10px + env(safe-area-inset-bottom));
    background: var(--jbsw-bg);
    border-top: 1px solid var(--jbsw-line);
    box-shadow: 0 -8px 18px rgb(0 0 0 / 0.06);
  }

  .jbsw-overlay .jbsw-cart .jbsw-cart__close {
    width: 44px;
    height: 44px;
  }

  /* Empfehlungen flach direkt unter den Produkten: Bild 48, Name, Preis, runder Knopf.
     Der Knopf steht in einer Spalte direkt hinter dem breitesten Text, nicht am Zeilenende
     (Entwurf 2026-11-07 Warenkorb-Empfehlungen EM.2.H1). */
  .jbsw-overlay .jbsw-cart[data-layout] .jbsw-reco__list {
    display: grid;
    /* Knopfspalte so breit wie der breiteste Knopf: 36 px beim runden Plus, mehr bei der Pille „Gratis“ (EM.14). */
    grid-template-columns: 48px minmax(0, max-content) minmax(36px, auto) 1fr;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .jbsw-overlay .jbsw-cart[data-layout] .jbsw-reco__item {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    grid-template-areas:
      "media name add ."
      "media price add .";
    column-gap: 12px;
    margin: 0 -10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
  }

  .jbsw-overlay .jbsw-cart[data-layout] .jbsw-reco__item--set {
    background: var(--jbsw-reco-set-bg);
  }

  .jbsw-overlay .jbsw-cart[data-layout] .jbsw-reco__item--set .jbsw-reco__name {
    font-size: 14px;
  }

  .jbsw-overlay .jbsw-cart[data-layout] .jbsw-reco__media {
    width: 48px;
  }

  .jbsw-overlay .jbsw-cart[data-layout] .jbsw-reco__add {
    --jb-k-icon-polster: var(--jb-k-polster-x);
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    box-shadow: var(--jbsw-reco-btn-shadow);
  }

  .jbsw-overlay .jbsw-cart[data-layout] .jbsw-reco__add .jbsw-icon {
    display: block;
    width: 14px;
    height: 14px;
  }

  .jbsw-overlay .jbsw-cart[data-layout] .jbsw-reco__add-text {
    display: none;
  }

  /* Aktionen unter den Produkten, abgesetzt durch eine Linie (Entwurf aktionen.html, Handy A) */
  .jbsw-overlay .jbsw-cart .jbsw-acts {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #dedcd5;
  }

  .jbsw-overlay .jbsw-cart .jbsw-acts .jbsw-reco__title {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .jbsw-overlay .jbsw-cart .jbsw-act {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    margin: 0 -6px;
    padding: 6px 10px 6px 6px;
  }

  .jbsw-overlay .jbsw-cart .jbsw-act__set {
    width: 48px;
    height: 40px;
  }

  .jbsw-overlay .jbsw-cart .jbsw-act__img {
    width: 30px;
    height: 30px;
  }

  .jbsw-overlay .jbsw-cart .jbsw-act__img:nth-child(2) {
    left: 8px;
  }

  .jbsw-overlay .jbsw-cart .jbsw-act__img:nth-child(3) {
    left: 16px;
  }

  .jbsw-overlay .jbsw-cart .jbsw-act__name {
    font-size: 13.5px;
  }

  /* Trefferflächen 44 px über unsichtbare Flächen, ohne die Optik zu vergrößern */
  .jbsw-overlay .jbsw-cart .jbsw-qty__btn::after {
    position: absolute;
    top: calc((var(--jbsw-qty-h) - 46px) / 2);
    bottom: calc((var(--jbsw-qty-h) - 46px) / 2);
    content: "";
  }

  .jbsw-overlay .jbsw-cart .jbsw-qty__btn--dec::after {
    right: 0;
    left: calc(var(--jbsw-qty-h) - 46px);
  }

  .jbsw-overlay .jbsw-cart .jbsw-qty__btn--inc::after {
    right: calc(var(--jbsw-qty-h) - 46px);
    left: 0;
  }

  /* iOS vergrößert die Seite bei bearbeitbaren Stellen unter 16 px. */
  .jbsw-overlay .jbsw-cart .jbsw-qty__val {
    font-size: 16px;
  }

  .jbsw-overlay .jbsw-cart .jbsw-qty-remove::after,
  .jbsw-overlay .jbsw-cart .jbsw-pill__x::after,
  .jbsw-overlay .jbsw-cart .jbsw-reco__add::after,
  .jbsw-overlay .jbsw-cart .jbsw-addcoupon::after {
    position: absolute;
    inset: -8px;
    content: "";
  }

  /* Gutschein als Zeile ganz oben in der Kassenleiste (Entwurf 2026-11-01 K1): 24 px sichtbar, Feld über die ganze Breite. */
  .jbsw-overlay .jbsw-cart .jbsw-pay__coupon .jbsw-line {
    min-height: 24px;
  }

  .jbsw-overlay .jbsw-cart .jbsw-addcoupon {
    position: relative;
    min-height: 24px;
  }

  .jbsw-overlay .jbsw-cart .jbsw-addcoupon::after {
    inset: -10px 0;
  }

  .jbsw-overlay .jbsw-cart .jbsw-codefield {
    flex: 1 1 auto;
  }

  /* 16 px gegen das Hineinzoomen in iOS Safari */
  .jbsw-overlay .jbsw-cart .jbsw-codefield__input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    font-size: 16px;
  }
}

/* ------------------------------------------------- Gratis-Stück in den Empfehlungen */
/* EM.14 (User 2026-11-10: „exakt wie auf Produktseiten mit grünen Button, Preis dann ausblenden“): Kostet das
   Stück beim Hinzufügen nichts, ist der Knopf grün wie der Mengenschalter der Produktseiten und sagt
   „gratis hinzufügen“, der Preis entfällt, der Name steht mittig. Wo der Knopf sonst nur das Plus zeigt
   (Streifen, Handy), wird er zur Pille „Gratis“. Steht nach den Layouts, damit er überall gilt.
   Farbe hier nur als Grundform: Im Shop setzt dessen Knopf-System Fläche, Ring, Polster und Schrift. */
.jbsw-overlay .jbsw-cart .jbsw-reco__item.is-free .jbsw-reco__name {
  grid-row: 1 / -1;
  align-self: center;
}

.jbsw-overlay .jbsw-cart .jbsw-recos .jbsw-reco__item.is-free .jbsw-reco__add {
  gap: 5px;
  color: #ffffff;
  background: var(--jbsw-free);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--jbsw-free-shadow);
}

.jbsw-overlay .jbsw-cart .jbsw-recos .jbsw-reco__item.is-free .jbsw-reco__add:hover {
  background: var(--jbsw-free-hover);
}

.jbsw-overlay .jbsw-cart .jbsw-reco__add-short {
  display: none;
}

.jbsw-overlay .jbsw-cart:not([data-layout="below"]) .jbsw-recos .jbsw-reco__item.is-free .jbsw-reco__add {
  --jb-k-icon-polster: initial;
  width: auto;
  padding: 0 12px 0 9px;
}

.jbsw-overlay .jbsw-cart:not([data-layout="below"]) .jbsw-reco__add-short {
  display: inline;
}

/* Streifen: Die Pille nimmt dem Namen Platz, dafür fehlt die Preiszeile. Der Name darf zwei Zeilen haben,
   und Streifen mit Gratis-Stück haben breitere Kacheln: 106 statt 76 px für den Namen, das längste Wort im
   Shop braucht 96. Am Handy steht der Name einzeilig neben der Pille und hat genug Platz. */
@media (min-width: 601px) {
  .jbsw-overlay .jbsw-cart:not([data-layout="below"]) .jbsw-reco__list:has(.is-free) {
    grid-auto-columns: 72%;
  }

  .jbsw-overlay .jbsw-cart:not([data-layout="below"]) .jbsw-reco__item.is-free .jbsw-reco__name {
    display: -webkit-box;
    overflow-wrap: break-word;
    white-space: normal;
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 13 4 4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (min-width: 1100px) {
  /* Der Knopf ist breiter als „Hinzufügen“, dafür fehlt die Preiszeile: Der Name darf drei Zeilen haben.
     Lange Wörter bleiben ganz (User 2026-11-10 zu „Sternenhimm/el“: „richtig umgebrochen oder minimal
     kleiner“): Name und Knopftext je einen halben Pixel kleiner, der Knopf schmaler gepolstert und näher
     am Namen. Das gibt dem Namen 98 statt 83 px, das längste Wort im Shop („Steinbockkampf“) braucht 96.
     Längere Wörter trennt der Browser nach deutscher Silbentrennung; das Brechen mitten im Wort ist nur
     der Rückfall für Browser ohne Trennung, damit nichts abgeschnitten wird. */
  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__item.is-free .jbsw-reco__add {
    gap: 4px;
    margin-left: -6px;
    padding: 6px 10px;
    font-size: 12.5px;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__item.is-free .jbsw-reco__name {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .jbsw-overlay .jbsw-cart[data-layout="column"] .jbsw-recos .jbsw-reco__add-short {
    display: none;
  }
}

@media (max-width: 600px) {
  .jbsw-overlay .jbsw-cart[data-layout] .jbsw-recos .jbsw-reco__item.is-free .jbsw-reco__add {
    justify-self: start;
    width: auto;
    padding: 0 14px 0 11px;
  }

  .jbsw-overlay .jbsw-cart[data-layout] .jbsw-reco__add-short {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jbsw-overlay,
  .jbsw-overlay .jbsw-cart *,
  .jbsw-overlay .jbsw-cart *::before,
  .jbsw-overlay .jbsw-cart *::after {
    transition: none;
  }

  .jbsw-overlay .jbsw-cart .jbsw-codefield {
    animation: none;
  }
}

/* Shortcode [jbsw_cart_button] */
.jbsw-cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.jbsw-cart-button__count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: #394d45;
  border-radius: 8px;
}

.jbsw-cart-button__count:empty,
.jbsw-cart-button__count[data-jbsw-count="0"] {
  display: none;
}

/* Ersatz für FunnelKits [fk_cart_menu] (gleiche Klassen, aber <button>).
   FunnelKits eigenes Stylesheet lädt nicht mehr, deshalb hier das Nötigste. */
.jbsw-fk-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px 0 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.jbsw-fk-menu .fkcart-shortcode-icon-wrap {
  position: relative;
  display: inline-flex;
}

.jbsw-fk-menu .fkcart-shortcode-count {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #394d45;
  border-radius: 9px;
}

.jbsw-fk-menu .fkcart-shortcode-count[data-item-count="0"] {
  display: none;
}
