/* Warenkorb linke Spalte: Nochmals kaufen / Passt dazu (Zen_Shop_Cart_Suggestions). Kompakt, 3 je Zeile. */
.zsc { margin: 26px 0 0; }
.zsc-tabs { display: flex; gap: 18px; border-bottom: 1px solid #eee; margin-bottom: 14px; }
.zsc .zsc-tab { background: none !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; padding: 0 0 8px !important; margin: 0 0 -1px !important; font-size: 15px !important; font-weight: 600 !important; color: #999 !important; cursor: pointer; box-shadow: none !important; min-height: 0 !important; line-height: 1.3 !important; }
.zsc .zsc-tab.is-on { color: #111 !important; border-bottom-color: #111 !important; }
.zsc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.zsc-grid[hidden] { display: none; }
.zsc-card { display: flex; gap: 10px; align-items: center; border: 1px solid #eee; border-radius: 10px; padding: 8px; background: #fff; min-width: 0; }
.zsc-img { flex: 0 0 56px; width: 56px; height: 56px; display: block; }
.zsc-img img { width: 56px !important; height: 56px !important; object-fit: contain; margin: 0 !important; }
.zsc-body { min-width: 0; flex: 1; }
.zsc-name { display: block; font-size: 13px; font-weight: 600; color: #111 !important; text-decoration: none !important; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zsc-meta { font-size: 11px; color: #888; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zsc-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; }
.zsc-price { font-size: 12px; color: #444; white-space: nowrap; }
.zsc-price .amount { font-weight: 600; }
.zsc .zsc-add { background: #fff !important; color: #0b8a3e !important; border: 1px solid #10c956 !important; border-radius: 999px !important; padding: 2px 9px !important; margin: 0 !important; font-size: 11.5px !important; font-weight: 700 !important; line-height: 1.6 !important; cursor: pointer; white-space: nowrap; box-shadow: none !important; min-height: 0 !important; }
.zsc .zsc-add:hover { background: #10c956 !important; color: #fff !important; }
.zsc .zsc-add.is-busy { opacity: .5; cursor: default; }
@media (max-width: 1100px) { .zsc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .zsc-grid { grid-template-columns: 1fr; } .zsc { margin-top: 18px; } }

/* Zwischensumme: Hinweis auf die enthaltene Rezeptgebuehr */
.cart_totals .zsc-recipe { display: block; font-size: 11.5px; font-weight: 400; color: #888; line-height: 1.3; margin-top: 2px; white-space: nowrap; }
.cart_totals .zsc-recipe .amount { font-size: inherit !important; font-weight: 400 !important; color: inherit !important; }

/* Stephan 13.10.2026: Karten mit Shop-Stepper (- 10g + Warenkorb-Icon) statt "+ 10 g"-Knopf */
.zsc-card .zsc-body .cz-qtycart { justify-content: flex-start; margin-top: 6px; }
.zsc-card .cz-add-icon { width: 34px; height: 30px; }

/* ===== Warenkorb mobil kompakter (Stephan 13.10.2026, UX-Empfehlung): Produktzeile dicht, Passt dazu als Slider,
   Intervallwahl nur bei aktivem Behandlungsplan, Sticky-Leiste mit Summe + Weiter ===== */
@media (max-width: 760px) {
  body.woocommerce-cart .cz-cart-row { gap: 12px; padding: 12px 0; }
  body.woocommerce-cart .cz-cart-row-img { flex: 0 0 64px; width: 64px; }
  body.woocommerce-cart .cz-cart-row-img img { width: 64px !important; height: 64px !important; object-fit: contain; }
  body.woocommerce-cart .cz-cart-row-name a { font-size: 14px; font-weight: 600; }
  body.woocommerce-cart .cz-cart-item-details { font-size: 11.5px; color: #888; line-height: 1.35; }
  body.woocommerce-cart .cz-cart-item-unitprice { font-size: 12.5px; }
  body.woocommerce-cart .cz-cart-row-bottom { flex-wrap: nowrap; gap: 8px; margin-top: 8px; }
  body.woocommerce-cart .cz-cart-row .cz-qty-cart-wrap { gap: 6px; flex: 0 0 auto; }
  body.woocommerce-cart .cz-cart-remove .cz-remove-text { display: none; }
  body.woocommerce-cart .cz-cart-remove { min-width: 32px; min-height: 32px; }
  body.woocommerce-cart .cz-cart-row-subtotal { margin-left: auto; font-size: 14px; font-weight: 600; color: #555; white-space: nowrap; }

  /* Passt dazu: horizontaler Slider, ca. 2 Karten sichtbar */
  body.woocommerce-cart .zsc-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
  body.woocommerce-cart .zsc-grid::-webkit-scrollbar { display: none; }
  body.woocommerce-cart .zsc-grid[hidden] { display: none; }
  body.woocommerce-cart .zsc-card { flex: 0 0 168px; flex-direction: column; align-items: flex-start; gap: 6px; scroll-snap-align: start; }
  body.woocommerce-cart .zsc-body { width: 100%; }

  /* Bestellart: Intervall + Vertragsdetails nur, wenn der Behandlungsplan gewaehlt ist */
  body.woocommerce-cart .zab-opt:not(.is-on) .zab-opt-sub,
  body.woocommerce-cart .zab-opt:not(.is-on) .zab-trust-row { display: none; }

  /* Sticky Checkout-Leiste */
  #czCartBar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #eaeaea; box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
  #czCartBar .czb-sum { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  #czCartBar .czb-lbl { font-size: 11px; color: #888; }
  #czCartBar .czb-amt { font-size: 18px; font-weight: 800; color: #111; white-space: nowrap; }
  #czCartBar .czb-go { flex: 0 0 auto; background: #10c956; color: #fff !important; border: 0; border-radius: 10px; padding: 0 22px; height: 46px; line-height: 46px; font-size: 15px; font-weight: 700; text-decoration: none !important; cursor: pointer; }
  body.woocommerce-cart { padding-bottom: 84px; }
  /* Schwebende Widgets (Trustbadge u. a.) ueber die Leiste heben */
  body.woocommerce-cart [id^="trustbadge-container-"] { bottom: 96px !important; }
}
@media (min-width: 761px) { #czCartBar { display: none !important; } }

/* Nachbesserung 13.10.2026: Mengenzeile mobil in EINER Reihe (Stepper | x | Summe), Zen-Badge ueber die Leiste */
@media (max-width: 760px) {
  #top .cz-cart-row .cz-qty-cart-wrap { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center; gap: 4px; }
  #top .cz-cart-row .cz-qty-input-wrap { width: 58px; padding: 0 4px; gap: 2px; justify-content: center; }
  #top .cz-cart-row .cz-qty-wrap input[type="number"] { width: 30px !important; }
  body.woocommerce-cart .cz-cart-row-body { min-width: 0; }
  body.woocommerce-cart #zstTrustbadgeBtn { bottom: 92px !important; }
  body.woocommerce-cart .cz-cart-row-subtotal { font-size: 13px; }
}

/* Stephan 13.10.2026: "Medikationswunsch" oben kompakter (weniger Abstand, kleinere Ueberschrift) */
body.woocommerce-cart h2.cz-cart-heading { font-size: 24px; line-height: 1.2; margin: 12px 0 16px; }
body.woocommerce-cart .template-page.content { padding-top: 8px; }
@media (max-width: 760px) {
  body.woocommerce-cart h2.cz-cart-heading { font-size: 20px; margin: 4px 0 10px; }
  body.woocommerce-cart .template-page.content { padding-top: 0; }
}

/* Nachbesserung 13.10.2026 (3): Desktop-Ueberschrift nicht an den Header kleben lassen */
body.woocommerce-cart h2.cz-cart-heading { margin: 18px 0 20px; }
body.woocommerce-cart .template-page.content { padding-top: 28px; }

/* Mobil: Seitenraender schlank und gleich (vorher links ~48 px, rechts nichts), Kopfbereich kompakt */
@media (max-width: 760px) {
  body.woocommerce-cart #main { padding-top: 84px; }
  body.woocommerce-cart .container.av-section-cont-open { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
  body.woocommerce-cart .cz-cart-grid { padding: 0 14px; gap: 18px; }
  body.woocommerce-cart h2.cz-cart-heading { font-size: 20px; margin: 6px 0 8px; }
  body.woocommerce-cart .template-page.content { padding-top: 0; }
  body.woocommerce-cart .cz-cart-row-img { flex: 0 0 56px; width: 56px; }
  body.woocommerce-cart .cz-cart-row-img img { width: 56px !important; height: 56px !important; }
  body.woocommerce-cart .cz-cart-row { gap: 10px; padding: 10px 0; }
  body.woocommerce-cart .cz-cart-item-details { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.woocommerce-cart .cz-cart-row-bottom { margin-top: 6px; }
}

@media (max-width: 760px) {
  body.woocommerce-cart .woocommerce-error, body.woocommerce-cart .woocommerce-message, body.woocommerce-cart .woocommerce-info { margin: 0 14px 8px !important; }
  body.woocommerce-cart .zsc-grid { margin: 0 -14px; padding: 0 14px 6px; }
  body.woocommerce-cart .zsc { margin-top: 14px; }
}

@media (max-width: 760px) {
  body.woocommerce-cart .woocommerce-notices-wrapper, body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { padding: 0 14px; box-sizing: border-box; }
  body.woocommerce-cart .woocommerce-notices-wrapper > * { margin-left: 0 !important; margin-right: 0 !important; }
  body.woocommerce-cart .zsc-grid { scroll-padding-left: 14px; }
}

/* Summenblock (13.10.2026): alle Werte rechtsbuendig, Behandlung eigene Zeile */
.cart_totals .shop_table td { text-align: right; }
.cart_totals .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; text-align: right; }
.cart_totals .woocommerce-shipping-methods li { text-align: right; }
.cart_totals .woocommerce-shipping-totals td { text-align: right; }
.cart_totals .cz-fee-row td { font-weight: 600; }
.cz-cart-grid.is-updating .cz-cart-items, .cz-cart-grid.is-updating .cz-cart-summary { opacity: .55; pointer-events: none; transition: opacity .12s; }

.cart_totals tbody:has(.cz-fee-only) .cart-subtotal { display: none; }

/* Stephan 13.10.2026: Mengenfeld schmaler; Loeschen/Favoriten/Teilen jetzt als Icons DIREKT in
   der Mengen-Zeile (zwischen Stepper und Positionssumme) statt eigener Textlink-Zeile darunter
   ("minimal Icons, dann eine Zeile darueber zwischen Menge und Preis, spart Platz") -- Markup/
   Einfuege-Punkt siehe bauen() in cart-suggestions.js. */
#top .cz-cart-row .cz-qty-input-wrap { width: 46px; padding: 0 4px; gap: 2px; justify-content: center; }
#top .cz-cart-row .cz-qty-wrap input[type="number"] { width: 24px !important; }
#top .cz-cart-row .cz-qty-wrap input.plus, #top .cz-cart-row .cz-qty-wrap input.minus { width: 30px !important; min-width: 30px; }
.cz-cart-row .cz-cart-remove { display: none !important; }
.cz-cart-row-bottom .czr-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; margin: 0 0 0 2px; }
.czr-actions button.czr-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; color: #999 !important; cursor: pointer; border-radius: 50% !important; }
.czr-actions button.czr-btn svg { width: 16px; height: 16px; display: block; }
.czr-actions button.czr-btn:hover { color: #333 !important; background: #f3f3f3 !important; }
.czr-actions button.czr-btn.is-on { color: #0b8a3e !important; }
.czr-actions button.czr-btn.is-on svg { fill: #0b8a3e; }

/* Nachbesserung beim Re-Check (13.10.2026): auf 320 px (z.B. iPhone SE) lief die Positionssumme
   rechts aus dem sichtbaren Bereich -- Stepper (112px) + 3 Icons a 30px + Summe passten nicht in
   die ~226px verfuegbare Breite der Mengen-Zeile. #top fuer hoehere Spezifitaet noetig, sonst
   gewinnt die obige, unspezifischere .czr-actions-button-Regel per Ladereihenfolge. */
@media (max-width: 760px) {
  #top .czr-actions button.czr-btn { width: 26px; height: 26px; }
  #top .czr-actions button.czr-btn svg { width: 15px; height: 15px; }
  #top .cz-cart-row-bottom .czr-actions { gap: 0; }
}

/* Re-Check 13.10.2026: selbst mit den kleineren Icons passten Stepper + Icons + Summe auf ganz
   schmalen Screens (320 px, iPhone SE & aehnliche) nicht mehr nebeneinander, vor allem bei
   groesseren Betraegen ("275,40 €" ist breiter als "45,90 €") -- Positionssumme lief rechts raus.
   Hier bewusst wieder umbrechen lassen (die Basis-Regel in shop.css erlaubt das eigentlich schon,
   #top .cz-cart-row-bottom{flex-wrap:nowrap} weiter oben erzwingt aber eine Reihe) statt die
   Icons noch weiter zu verkleinern -- lieber 2 Zeilen als eine abgeschnittene Summe. */
@media (max-width: 360px) {
  #top .cz-cart-row-bottom { flex-wrap: wrap; row-gap: 6px; }
  #top .cz-cart-row-bottom .cz-cart-row-subtotal { margin-left: auto; }
}

/* Mengenfeld wirklich schmal: Zahl-Input hatte noch 70 px (andere Regel mit hoeherer Spezifitaet) */
#top .cz-cart-row .cz-qty-wrap .cz-qty-input-wrap input.qty[type="number"] { width: 26px !important; min-width: 0 !important; max-width: 26px !important; padding: 0 !important; margin: 0 !important; text-align: right !important; flex: 0 0 auto !important; }
#top .cz-cart-row .cz-qty-wrap .cz-qty-input-wrap { width: 46px !important; }


/* ===== Cart-Feinschliff 14.10.2026 (Spacing 8/16/24, Preis-Hierarchie, Klickflaechen, CTA) ===== */
/* Summenblock: gleiche Zeilen, durchgehende Linie, Gesamtsumme gross */
#top .cz-cart-summary-card .cart_totals table th,
#top .cz-cart-summary-card .cart_totals table td { font-size: 14px; line-height: 24px; padding: 8px 0 !important; }
#top .cz-cart-summary-card .cart_totals table td { font-weight: 600; color: #111; }
#top .cz-cart-summary-card .cart_totals table tr.shipping td, #top .cz-cart-summary-card .cart_totals table tr.shipping td * { font-size: 14px; font-weight: 600; color: #111; text-align: right; }
#top .cz-cart-summary-card .cart_totals table tr.shipping td ul { margin: 0; padding: 0; }
#top .cz-cart-summary-card .cart_totals .cz-ship-free { color: #0b8a3e; font-weight: 600; }
#top .cz-cart-summary-card .cart_totals table tr.order-total { border-top: 1px solid #eee !important; margin-top: 8px; padding-top: 8px; }
#top .cz-cart-summary-card .cart_totals table tr.order-total th, #top .cz-cart-summary-card .cart_totals table tr.order-total td { border-top: 0 !important; margin-top: 0; padding-top: 8px !important; }
#top .cz-cart-summary-card .cart_totals table tr.order-total th { font-size: 15px; font-weight: 600; align-self: flex-start; padding-top: 12px !important; }
#top .cz-cart-summary-card .cart_totals table tr.order-total td { font-size: 24px; line-height: 32px; font-weight: 700; }
#top .cz-cart-summary-card .cart_totals table tr.order-total td small, #top .cz-cart-summary-card .cart_totals table tr.order-total td .includes_tax { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: #888; }

/* Positionszeile: Einzelpreis leiser, Summe staerker, Menge mittig */
#top .cz-cart-row .cz-cart-item-unitprice, #top .cz-cart-row .cz-cart-row-price { font-size: 13px; font-weight: 400; color: #888; }
#top .cz-cart-row .cz-cart-row-subtotal { font-size: 17px; font-weight: 700; color: #111; }
#top .cz-cart-row .cz-qty-wrap input.minus, #top .cz-cart-row .cz-qty-wrap input.plus { min-width: 34px; width: 34px !important; font-size: 17px; line-height: 1; color: #333; text-align: center; }
#top .cz-cart-row .cz-qty-wrap .cz-qty-input-wrap { justify-content: center; }

/* Icon-Aktionen: 36 px Klickflaeche */
@media (min-width: 761px) {
  #top .czr-actions button.czr-btn { width: 36px; height: 36px; border-radius: 8px !important; }
  #top .czr-actions button.czr-btn svg { width: 17px; height: 17px; }
  #top .cz-cart-row-bottom .czr-actions { gap: 4px; }
}
/* erste Position buendig mit Oberkante der Summen-Karte */
#top .cz-cart-items .cz-cart-row:first-child { padding-top: 0; }

/* CTA: 54 px, Pfeil, ruhiger Hover */
#top .cz-cart-summary-card .checkout-button.button { height: 54px; line-height: 54px !important; font-size: 16px !important; font-weight: 600 !important; border-radius: 10px !important; transition: background-color .15s, box-shadow .15s, transform .15s; }
#top .cz-cart-summary-card .checkout-button.button:after { content: "\2192"; margin-left: 10px; display: inline-block; transition: transform .15s; }
#top .cz-cart-summary-card .checkout-button.button:hover { box-shadow: 0 6px 16px rgba(16,201,86,.28); }
#top .cz-cart-summary-card .checkout-button.button:hover:after { transform: translateX(3px); }

/* Mobil: feste Leiste mit Summe + Button, sobald der echte Button nicht sichtbar ist */
.cz-sticky-bar { display: none; }
@media (max-width: 760px) {
  .cz-sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; display: flex; align-items: center; gap: 16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #eee; box-shadow: 0 -6px 18px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .2s ease; }
  .cz-sticky-bar.is-on { transform: none; }
  .cz-sticky-bar .cz-sb-sum { display: flex; flex-direction: column; line-height: 1.2; flex: 0 0 auto; }
  .cz-sticky-bar .cz-sb-sum small { font-size: 11px; color: #888; }
  .cz-sticky-bar .cz-sb-sum strong { font-size: 20px; font-weight: 700; color: #111; }
  .cz-sticky-bar .cz-sb-btn { flex: 1 1 auto; display: block; height: 48px; line-height: 48px; text-align: center; border-radius: 10px; background: #10c956; color: #fff !important; font-size: 15px; font-weight: 600; text-decoration: none !important; }
  body.woocommerce-cart.cz-has-sticky { padding-bottom: 72px; }
}

#top .cz-cart-summary-card .cart_totals table tr.shipping td li, #top .cz-cart-summary-card .cart_totals table tr.shipping td label { display: block; margin: 0; padding: 0; line-height: 24px; }
#top .cz-cart-summary-card .cart_totals table tr.shipping .woocommerce-shipping-destination, #top .cz-cart-summary-card .cart_totals table tr.shipping .shipping-calculator-button { display: none; }


/* ===== Leerer Warenkorb = Aufbau des vollen Warenkorbs mit Skeleton (14.10.2026) ===== */
body.woocommerce-cart h2.cz-cart-heading { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 0 20px; box-sizing: border-box; }
.czc-leer .cz-cart-items { position: relative; }
.czc-leer i { display: block; background: #ececec; border-radius: 6px; position: relative; overflow: hidden; }
.czc-leer i:after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%); transform: translateX(-100%); animation: czcSh 1.4s ease-in-out infinite; }
@keyframes czcSh { to { transform: translateX(100%); } }
.czc-rows { opacity: .85; }
.czc-row { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid #eaeaea; }
.czc-row:first-child { padding-top: 0; }
.czc-img { flex: 0 0 88px; height: 88px; border-radius: 12px !important; }
.czc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.czc-l1 { width: 46%; height: 16px; }
.czc-l2 { width: 62%; height: 11px; }
.czc-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.czc-step { width: 112px; height: 38px; border-radius: 8px !important; }
.czc-sum { width: 64px; height: 18px; }
.czc-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, 92%); text-align: center; padding: 28px 24px; background: rgba(255,255,255,.96); border: 1px solid #eee; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.08); color: #b5b5b5; }
.czc-msg .cz-cart-empty-title { margin: 8px 0 16px; font-size: 20px; }
.czc-card { padding: 24px; }
.czc-bar { height: 12px; width: 70%; margin-bottom: 12px; }
.czc-prog { height: 6px; border-radius: 4px !important; margin-bottom: 24px; }
.czc-line { display: flex; justify-content: space-between; padding: 8px 0; }
.czc-line i { height: 13px; width: 90px; }
.czc-line i + i { width: 60px; }
.czc-total { border-top: 1px solid #eee; margin-top: 8px; padding-top: 16px; }
.czc-total i + i { height: 22px; width: 84px; }
.czc-btn { height: 54px; border-radius: 10px !important; margin-top: 16px; }
@media (max-width: 900px) {
  .czc-leer { grid-template-columns: 1fr; gap: 16px; }
  .czc-leer .cz-cart-summary { position: static; }
  .czc-row { gap: 12px; }
  .czc-img { flex-basis: 64px; height: 64px; }
  .czc-step { width: 96px; }
}
@media (prefers-reduced-motion: reduce) { .czc-leer i:after { animation: none; } }

@media (max-width: 900px) { .czc-leer .cz-cart-summary { display: none; } .czc-rows .czc-row:nth-child(3) { display: none; } body.woocommerce-cart h2.cz-cart-heading { margin-bottom: 20px; } }
.cz-cart-empty-box .splide__pagination__page { width: 6px !important; height: 6px !important; margin: 3px !important; background: #cfcfcf !important; opacity: 1 !important; transform: none !important; }
.cz-cart-empty-box .splide__pagination__page.is-active { background: #555 !important; }

.cz-cart-empty-box .splide__arrow { background: transparent !important; box-shadow: none !important; opacity: 1 !important; top: 30%; }
.cz-cart-empty-box .splide__arrow svg { fill: #fff !important; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
