/* ==========================================================================
   InSono — Warenkorb
   Ported from shopify-dev/assets/component-insono-cart.css
   ========================================================================== */

/* ============================================================
   Insono premium cart page
   Two column cart layout with a sticky totals panel.
   into a modern two-column layout with a sticky summary panel.
   Brand accent: #0a7a4f
   Markup: templates/cart/index.html, Verhalten: js/cart/cart.js
   ============================================================ */

:root {
  --cart-accent: #0a7a4f;
  --cart-accent-soft: rgba(10, 122, 79, 0.08);
}

/* ---------- Zweispaltiges Layout (Desktop) ------------------ */
.cart-page {
  padding-block: 36px;
}

.cart-page__grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media screen and (min-width: 990px) {
  .cart-page__grid {
    grid-template-columns: minmax(0, 1fr) 40rem;
    gap: 2.6rem;
  }

  .cart-page__grid > * {
    min-width: 0;
  }

  .cart-summary {
    position: sticky;
    top: calc(var(--header-height) + 16px);
  }
}

/* ---------- Page title ------------------------------------- */
.cart-page .title-wrapper-with-link {
  align-items: baseline;
  margin-block: 0 1.8rem;
  border: 0;
  padding-bottom: 0;
}
.cart-page .title--primary {
  font-size: 2.8rem;
  letter-spacing: -0.02em;
  margin: 0;
}
.cart-page .title-wrapper-with-link .underlined-link {
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(var(--color-foreground), 0.6);
  text-underline-offset: 0.3rem;
}
.cart-page .title-wrapper-with-link .underlined-link:hover {
  color: var(--cart-accent);
}

/* ---------- Free-shipping banner -------------------------- */
.cart-shipbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding: 1.2rem 1.5rem;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, rgba(10, 122, 79, 0.12), rgba(10, 122, 79, 0.04));
  border: 0.1rem solid rgba(10, 122, 79, 0.18);
}
.cart-shipbar svg {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  fill: none;
  stroke: var(--cart-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-shipbar b {
  color: var(--cart-accent);
  font-weight: 800;
}
.cart-shipbar span {
  font-size: 1.35rem;
  line-height: 1.3;
  color: rgb(var(--color-foreground));
}

/* ---------- Cart items: table → cards --------------------- */
.cart-page .cart-items,
.cart-page .cart-items > tbody {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
}
.cart-page .cart-items thead {
  display: none;
}
/* Zero the table-cell borders/padding without forcing display (so the row
   can flex and the cells become flex items). */
.cart-page .cart-item > td {
  padding: 0;
  border: 0;
}

.cart-page .cart-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.2rem 1.4rem;
  margin: 0 0 1rem;
  padding: 1.4rem;
  border-radius: 1.6rem;
  background: rgb(var(--color-background));
  border: 0.1rem solid rgba(var(--color-foreground), 0.08);
  box-shadow: 0 0.4rem 1.4rem -1rem rgba(var(--color-foreground), 0.25);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cart-page .cart-item:hover {
  border-color: rgba(var(--color-foreground), 0.16);
  box-shadow: 0 0.8rem 2rem -1rem rgba(var(--color-foreground), 0.32);
}

/* Media */
.cart-page .cart-item__media {
  flex: 0 0 auto;
  width: 8.4rem;
}
.cart-page .cart-item__image-container {
  border-radius: 1.1rem;
  overflow: hidden;
  background: #f1efe9;
  border: 0.1rem solid rgba(var(--color-foreground), 0.06);
}
.cart-page .cart-item__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Details */
.cart-page .cart-item__details {
  flex: 1 1 16rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cart-page .cart-item__name {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: rgb(var(--color-foreground));
  text-decoration: none;
}
.cart-page .cart-item__name:hover {
  color: var(--cart-accent);
}
.cart-page .cart-item__details .product-option {
  font-size: 1.2rem;
  line-height: 1.4;
  color: rgba(var(--color-foreground), 0.6);
}
.cart-page .cart-item__details dl {
  margin: 0.2rem 0 0;
}
.cart-page .cart-item__details dl .product-option {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cart-page .cart-item__details dl dt {
  font-weight: 600;
  color: rgba(var(--color-foreground), 0.5);
}
.cart-page .cart-item__details dl dd {
  margin: 0;
  color: rgba(var(--color-foreground), 0.8);
}
.cart-page .cart-item__discounted-prices {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.cart-page .cart-item__discounted-prices dd {
  margin: 0;
}
.cart-page .cart-item__old-price {
  color: rgba(var(--color-foreground), 0.45);
}
.cart-page .cart-item__line-final {
  color: rgb(var(--color-foreground));
}
.cart-page .cart-item__final-price {
  color: var(--cart-accent);
}

/* Line totals: always stack old/new so long amounts stay readable */
.cart-page .cart-item__totals .cart-item__price-wrapper {
  gap: 0.25rem;
}
.cart-page .cart-item__totals .cart-item__price-wrapper:has(.cart-item__discounted-prices)::before {
  content: 'Gesamt';
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--color-foreground), 0.42);
  line-height: 1;
}
.cart-page .cart-item__totals .cart-item__discounted-prices {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}
.cart-page .cart-item__totals .cart-item__old-price {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.1;
}
.cart-page .cart-item__totals .cart-item__line-final {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--cart-accent);
}

/* Quantity stepper */
.cart-page .cart-item__quantity {
  flex: 0 0 auto;
  order: 3;
  padding: 0;
  border: 0;
}
.cart-page .cart-item__quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.cart-page .quantity.cart-quantity {
  display: inline-flex;
  width: auto;
  min-height: 4.2rem;
  border: 0.1rem solid rgba(var(--color-foreground), 0.16);
  border-radius: 1.1rem;
  overflow: hidden;
  background: rgba(var(--color-foreground), 0.015);
}
.cart-page .quantity.cart-quantity::after {
  display: none;
}
.cart-page .quantity.cart-quantity .quantity__button {
  width: 3.8rem;
  min-height: 4.2rem;
  color: rgb(var(--color-foreground));
  border-radius: 0;
}
.cart-page .quantity.cart-quantity .quantity__button:hover {
  background: var(--cart-accent-soft);
  color: var(--cart-accent);
}
.cart-page .quantity.cart-quantity .quantity__input {
  width: 4rem;
  font-size: 1.45rem;
  font-weight: 700;
}
/* Remove button */
.cart-page .cart-item__remove {
  min-height: 4.2rem;
  min-width: 4.2rem;
  color: rgba(var(--color-foreground), 0.5);
  border-radius: 1.1rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.cart-page .cart-item__remove:hover {
  background: rgba(214, 60, 60, 0.1);
  color: #d63c3c;
}

/* Line total */
.cart-page .cart-item__totals {
  flex: 0 0 auto;
  order: 4;
  margin-left: auto;
  padding: 0;
  border: 0;
  text-align: right;
}
.cart-page .cart-item__totals .price {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgb(var(--color-foreground));
}

/* ---------- Quantity campaign badge (per line item) -------- */
.cart-page .cart-campaign {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.9rem 0 0;
  padding: 0.6rem 1rem 0.6rem 0.7rem;
  border-radius: 1rem;
  font-size: 1.2rem;
  line-height: 1.25;
}
.cart-page .cart-campaign.is-active {
  background: var(--cart-accent-soft);
  border: 0.1rem solid rgba(10, 122, 79, 0.22);
  color: var(--cart-accent);
}
.cart-page .cart-campaign.is-nudge {
  background: rgba(214, 158, 46, 0.1);
  border: 0.1rem solid rgba(214, 158, 46, 0.3);
  color: #9a6a12;
}
/* Hint under the campaign badge: tells the customer that changing the quantity
   here does NOT recalculate the staffel discount — they must do it in the
   product configurator. Links back to the product page. */
.cart-page .cart-campaign-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.6rem 0 0;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(var(--color-foreground), 0.6);
  text-decoration: none;
  transition: color 0.18s ease;
}
.cart-page .cart-campaign-hint:hover {
  color: var(--cart-accent);
}
.cart-page .cart-campaign-hint strong {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}
.cart-page .cart-campaign-hint__icon {
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-page .cart-campaign-hint:focus-visible {
  outline: 0.2rem solid rgba(10, 122, 79, 0.45);
  outline-offset: 0.2rem;
  border-radius: 0.4rem;
}
.cart-page .cart-campaign__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}
.cart-page .cart-campaign__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-page .cart-campaign__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.cart-page .cart-campaign__text strong {
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cart-page .cart-campaign__sub {
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.85;
}

/* ---------- Summary panel (footer) ------------------------ */
/* Neutralise the theme's cream section background so only the card shows. */
.cart-page ,
#main-cart-footer:has(.cart-summary) {
  background: transparent !important;
}
.cart-summary {
  padding: 2.2rem;
  border-radius: 2rem;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(10, 122, 79, 0.09), rgba(10, 122, 79, 0) 46%),
    linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
  border: 0.1rem solid rgba(10, 122, 79, 0.16);
  box-shadow:
    0 2.4rem 5rem -2.6rem rgba(10, 122, 79, 0.3),
    0 0.2rem 0.6rem -0.2rem rgba(16, 40, 32, 0.06);
  min-width: 0;
  overflow-x: clip;
  box-sizing: border-box;
}
/* .cart__footer stacks vertically so that
   summary content (title, totals, CTAs, extras) gets full width. */
.cart__footer.cart-summary {
  display: block;
  width: 100%;
  /* Beat the theme's .section-id-padding (which overrode our vertical padding
     and made the card top/bottom uneven). */
  padding: 2.2rem !important;
}
.cart-page .cart__blocks,
.cart-page .cart__blocks > .js-contents,
.cart-page .cart__ctas {
  display: block;
  width: 100%;
}
.cart-summary__title {
  margin: 0 0 1.4rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgb(var(--color-foreground));
}

/* Summenblock (.cart-totals) */
.cart-page .js-contents > div:first-child:empty {
  display: none;
}
.cart-page .cart-totals {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.2rem;
  margin: 0;
  padding: 1.3rem 1.5rem;
  border: 0;
  border-radius: 1.2rem;
  background: var(--cart-accent-soft);
  text-align: left;
}
.cart-page .cart-totals__label {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(var(--color-foreground), 0.72);
}
.cart-page .cart-totals__value {
  margin: 0;
  flex: 0 0 auto;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--cart-accent);
}
.cart-page .tax-note {
  display: block;
  margin: 0.9rem 0 1.6rem;
  font-size: 1.15rem;
  line-height: 1.4;
  text-align: left;
  color: rgba(var(--color-foreground), 0.55);
}

/* Unified summary card: Zwischensumme − Mengenrabatt + inklusive Leistungen. */
.cart-page .cart-summary-card {
  margin: 0 0 1rem;
  padding: 1.2rem 1.3rem;
  border: 0.1rem solid rgba(10, 122, 79, 0.18);
  border-radius: 1.2rem;
  background: var(--cart-accent-soft);
}
.cart-summary-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(var(--color-foreground), 0.75);
}
.cart-summary-card__save {
  flex: 0 0 auto;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--cart-accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  white-space: nowrap;
}
.cart-summary-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.cart-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.3rem;
  line-height: 1.3;
  color: rgb(var(--color-foreground));
}

/* Cart-wide Mengenrabatt callout (above product list) */
.cart-page .cart-tier-wide-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1.4rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  font-size: 1.2rem;
  line-height: 1.4;
}
.cart-page .cart-tier-wide-note.is-active {
  background: var(--cart-accent-soft);
  border: 0.1rem solid rgba(10, 122, 79, 0.22);
  color: var(--cart-accent);
}
.cart-page .cart-tier-wide-note.is-nudge {
  background: rgba(214, 158, 46, 0.1);
  border: 0.1rem solid rgba(214, 158, 46, 0.28);
  color: #8a6010;
}
.cart-page .cart-tier-wide-note__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
}
.cart-page .cart-tier-wide-note.is-active .cart-tier-wide-note__icon {
  color: var(--cart-accent);
}
.cart-page .cart-tier-wide-note.is-nudge .cart-tier-wide-note__icon {
  color: #9a6a12;
}
.cart-page .cart-tier-wide-note__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-page .cart-tier-wide-note__text strong {
  font-weight: 800;
}
.cart-page .cart-tier-wide-note__next {
  display: block;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 0.1rem dashed rgba(10, 122, 79, 0.25);
  color: #8a6010;
  font-weight: 600;
}

/* Discount ladder (volume tiers) in the cart */
.cart-page .cart-tier-ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
}
.cart-page .cart-tier-ladder__tier {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  border: 0.1rem solid rgba(31, 28, 23, 0.12);
  background: rgba(255, 253, 249, 0.85);
  font-size: 1.15rem;
  line-height: 1.25;
  color: rgba(31, 28, 23, 0.75);
}
.cart-page .cart-tier-ladder__check {
  display: inline-flex;
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0.1rem solid rgba(31, 28, 23, 0.2);
  color: transparent;
}
.cart-page .cart-tier-ladder__check svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-page .cart-tier-ladder__label {
  min-width: 0;
  font-weight: 600;
}
.cart-page .cart-tier-ladder__pct {
  margin-left: auto;
  font-weight: 800;
  white-space: nowrap;
}
.cart-page .cart-tier-ladder__tier.is-active,
.cart-page .cart-tier-ladder__tier.is-reached {
  background: var(--cart-accent-soft);
  border-color: rgba(10, 122, 79, 0.3);
  color: var(--cart-accent);
}
.cart-page .cart-tier-ladder__tier.is-active {
  box-shadow: 0 0 0 0.15rem rgba(10, 122, 79, 0.14);
}
.cart-page .cart-tier-ladder__tier.is-active .cart-tier-ladder__check,
.cart-page .cart-tier-ladder__tier.is-reached .cart-tier-ladder__check {
  background: var(--cart-accent);
  border-color: var(--cart-accent);
  color: #fff;
}
@media screen and (max-width: 749px) {
  .cart-page .cart-tier-ladder {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .cart-page .cart-tier-ladder__tier {
    padding: 0.6rem 0.85rem;
  }
}

.cart-summary-line__label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-weight: 600;
}
.cart-summary-line__pct {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cart-accent);
}
.cart-summary-line__val {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-weight: 700;
}
.cart-summary-line__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--cart-accent);
}
.cart-summary-line__icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-summary-line.is-save .cart-summary-line__val {
  color: var(--cart-accent);
}
.cart-summary-line__val s {
  color: rgba(var(--color-foreground), 0.45);
  font-weight: 600;
  font-size: 1.2rem;
}
.cart-summary-line__val strong {
  color: var(--cart-accent);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

/* Checkout button */
.cart-page .cart__ctas {
  margin: 1.6rem 0 0;
}
.cart-page .cart__checkout-button {
  position: relative;
  width: 100%;
  min-height: 5.6rem;
  border: 0;
  border-radius: 1.4rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #0e9462 0%, #0a7a4f 55%, #086a44 100%);
  box-shadow: 0 0.4rem 1.2rem -0.6rem rgba(10, 122, 79, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.cart-page .cart__checkout-button::after {
  display: none;
}
.cart-page .cart__checkout-button:hover:not([disabled]) {
  transform: translateY(-0.1rem);
  box-shadow: 0 0.7rem 1.8rem -0.7rem rgba(10, 122, 79, 0.5);
  filter: brightness(1.03);
}

/* Dynamic / express checkout buttons */
.cart-page .cart__dynamic-checkout-buttons {
  margin-top: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
/* Hide the Google Pay express button in the cart (for now). */
/* Force the accelerated-checkout wallets into a single full-width column so
   PayPal spans the full width (like the checkout button) even when Google Pay
   is hidden — otherwise its 2-column grid leaves PayPal at half width. */
/* Legacy dynamic-checkout list (pre–web-component wallets). */
.cart-page #dynamic-checkout-cart ul > li {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
/* PayPal always fills its container, exactly like the full-width "Auschecken"
   button above it (which is width:100% with no cap). Hardcoding a px width made
   PayPal look narrow whenever the summary column was wider than that value. */

/* ---------- Included perks / value stack ------------------- */
.cart-page .cart-perks {
  margin: 1.4rem 0 0;
  padding: 1.2rem 1.3rem;
  border: 0.1rem solid rgba(10, 122, 79, 0.18);
  border-radius: 1.2rem;
  background: var(--cart-accent-soft);
}
.cart-perks__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(var(--color-foreground), 0.75);
}
.cart-perks__save {
  flex: 0 0 auto;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--cart-accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  white-space: nowrap;
}
.cart-perks ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.cart-perks li {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto auto;
  align-items: center;
  column-gap: 0.7rem;
  font-size: 1.3rem;
  color: rgb(var(--color-foreground));
}
.cart-perks__icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--cart-accent);
}
.cart-perks__icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-perks__label {
  flex: 1 1 auto;
  font-weight: 600;
}
.cart-perks__price {
  display: contents;
}
.cart-perks__price s {
  justify-self: end;
  color: rgba(var(--color-foreground), 0.45);
  font-size: 1.2rem;
}
.cart-perks__price strong {
  justify-self: end;
  color: var(--cart-accent);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

/* ---------- Trust badges / payments / secure -------------- */
.cart-extras {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 0.1rem solid rgba(var(--color-foreground), 0.1);
}
.cart-extras__trust {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}
.cart-extras__trust li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(var(--color-foreground), 0.78);
}
.cart-extras__trust svg {
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  fill: none;
  stroke: var(--cart-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-extras__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(var(--color-foreground), 0.55);
}
.cart-extras__secure svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-extras__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cart-extras__pay li {
  display: inline-flex;
}
.cart-extras__pay svg,
.cart-extras__pay img {
  width: 3.8rem;
  height: 2.4rem;
  border-radius: 0.4rem;
}

/* ---------- Empty state ----------------------------------- */
/* Live: two-column layout with empty prompt left + summary right */
.cart-page.is-empty .cart-page__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32rem;
}
.cart-page.is-empty .cart__warnings {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem 1.5rem;
  width: 100%;
}
.cart-page .cart-empty__icon {
  width: 7rem;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cart-accent-soft);
  color: var(--cart-accent);
  margin-bottom: 0.4rem;
}
.cart-page .cart-empty__icon svg {
  width: 3.4rem;
  height: 3.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-page.is-empty .cart__empty-text {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
}
.cart-page.is-empty .cart__warnings .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5.2rem;
  padding: 0 2.6rem;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0e9462 0%, #0a7a4f 100%);
  border: 0;
  border-radius: 1.4rem;
  text-align: center;
}
.cart-page.is-empty .cart__warnings .button::after {
  display: none;
}
.cart-page .cart__checkout-button[disabled],
.cart-page .cart__checkout-button:disabled {
  cursor: not-allowed;
  background: #93b9a6;
  box-shadow: none;
  filter: none;
  transform: none;
  opacity: 1;
}
.cart-page .cart-checkout-placeholders {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}
.cart-page .cart-checkout-placeholders span {
  display: block;
  width: 100%;
  height: 4.4rem;
  border-radius: 999px;
  background: rgba(16, 40, 32, 0.06);
}

/* ---------- DPO "configure / edit" link in cart ----------- */
/* The DPO app injects a big black "Configure" button into each line item.
   We re-label it (German) and turn it into a subtle inline link. */
/* Hidden for now (per request). Remove this rule + the JS display:none in
   main-cart-items.liquid to bring the "Konfiguration ändern" link back. */
.cart-page .cart-item__edit {
  display: none !important;
}
.cart-page .cart-item__edit,
.cart-page .cart-item__edit:link,
.cart-page .cart-item__edit:visited {
  order: 2;
  align-self: flex-start;
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0.2rem 0 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--cart-accent) !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  cursor: pointer;
}
.cart-page .cart-item__edit::before,
.cart-page .cart-item__edit::after {
  display: none !important;
}
.cart-page .cart-item__edit:hover {
  filter: brightness(0.88);
}

/* ---------- Tablet / single-column tweaks ----------------- */
/* Below the 2-column breakpoint (990px) the cart stacks. Keep it as a
   focused, centered checkout column instead of stretching edge-to-edge. */
@media screen and (max-width: 989px) {
  .cart-page .cart__contents,
  .cart-page .cart-summary {
    max-width: 52rem;
    margin-inline: auto;
  }
  /* Predictable cart-item layout on phone/tablet:
       row 1 → image + details (title, price, options, campaign badge)
       row 2 → quantity (left) + line total (right)
     This avoids the flex-wrap shuffling that left the quantity floating at the
     top-right and the total stranded at the bottom. */
  .cart-page .cart-item {
    display: grid;
    grid-template-columns: 8.4rem minmax(0, 1fr);
    grid-template-areas:
      'media   details'
      'actions actions';
    column-gap: 1.4rem;
    row-gap: 1.2rem;
    align-items: start;
  }
  .cart-page .cart-item__media {
    grid-area: media;
    width: 100%;
  }
  .cart-page .cart-item__details {
    grid-area: details;
  }
  /* Bottom action row spans the full card width; the quantity sits on the left
     and the line total on the right (both share the cell via justify-self, so
     the wide stepper no longer squeezes the details column above). */
  .cart-page .cart-item__quantity {
    grid-area: actions;
    justify-self: start;
    align-self: center;
  }
  .cart-page .cart-item__totals {
    grid-area: actions;
    justify-self: end;
    align-self: center;
    margin-left: 0;
  }
  /* Close the gap between the items and the summary card. */
  .cart-page {
    padding-bottom: 0.4rem !important;
    background: transparent !important;
  }
  #main-cart-footer:has(.cart-summary) {
    padding-top: 0 !important;
    padding-bottom: 2rem !important;
    background: transparent !important;
  }
  .cart-page .cart__dynamic-checkout-buttons {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  .cart-extras {
    margin-right:0;
    width: 100%;
  }
}

/* ---------- Mobile tweaks --------------------------------- */
@media screen and (max-width: 749px) {
  /* Tighten the gap between the cart items and the summary card on mobile. */
  .cart-page {
    padding-bottom: 0.4rem !important;
  }
  #main-cart-footer:has(.cart-summary) {
    padding-top: 0 !important;
    padding-bottom: 1.5rem !important;
  }
  .cart-summary {
    margin-top: 1.2rem;
  }
}


/* ── Gutscheinfeld ─────────────────────────────────────────── */

.cart-discount-form {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cart-discount-form .form__control {
  flex: 1;
  min-height: 44px;
  font-size: 14px;
}

/* ── Position entfernen ────────────────────────────────────── */

.cart-page .cart-item__remove {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease;
}

.cart-page .cart-item__remove:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ── Note below the grand total ────────────────────────────── */

.cart-totals__note {
  margin-top: 6px;
  margin-bottom: 14px;
  color: var(--soft);
  font-size: 12px;
}


/* ========================================================================
   Small layout helpers for the cart table
   (in the Shopify theme they came from base.css / component-cart-items.css)
   ======================================================================== */

.cart-page__inner {
  min-width: 0;
}

.cart-page .title-wrapper-with-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-page .title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.cart-page .underlined-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-page .underlined-link:hover {
  color: var(--header-accent);
}

.cart-page .cart__items {
  width: 100%;
}

.cart-page .cart-item__link {
  position: absolute;
  inset: 0;
}

.cart-page .cart-item__media {
  position: relative;
}

.cart-page .cart-item__price-wrapper {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.cart-page .cart-item__quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-page .caption-with-letter-spacing {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-page .right {
  text-align: right;
}

.cart-page .break {
  overflow-wrap: anywhere;
}

.cart-page .cart-items__heading--wide {
  width: 200px;
}

.cart-page .cart-items__heading--quantity {
  text-align: left;
}

/* Visibility per viewport (counterpart to Dawn's small-hide / medium-hide) */

@media screen and (max-width: 749px) {
  .cart-page .small-hide {
    display: none !important;
  }
}

@media screen and (min-width: 750px) {
  .cart-page .medium-hide,
  .cart-page .large-up-hide {
    display: none !important;
  }
}

/* Grey out the row while it is updating */

.cart-page .cart-item.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

/* Empty-cart login prompt (live parity) */
.cart-page.is-empty .cart__login-title {
  margin: 2.4rem 0 0.6rem;
  font-size: 1.85rem;
  font-weight: 700;
  text-align: center;
}
.cart-page.is-empty .cart__login-paragraph {
  margin: 0;
  max-width: 38rem;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.45;
  color: rgba(var(--color-foreground), 0.7);
}
.cart-page.is-empty .cart__login-paragraph a {
  color: var(--cart-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

@media screen and (max-width: 989px) {
  .cart-page.is-empty .cart-page__inner {
    min-height: 0;
  }
}

/* PayPal express look-alike on the cart summary */
.cart-page .cart-paypal-btn,
.cart-page .insono-paypal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5.4rem;
  margin-top: 0.2rem;
  border-radius: 1.4rem;
  background: #ffc439;
  color: #003087;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.08);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.cart-page .cart-paypal-btn:hover,
.cart-page .insono-paypal-btn:hover {
  filter: brightness(0.97);
  transform: translateY(-0.05rem);
}
.cart-page .insono-paypal-btn__brand {
  font-style: italic;
  font-weight: 800;
  margin-left: 0.25rem;
}
