/* Warenkorb, Kasse, Bestellbestätigung (Baustein F) */

body #main-content.rupp-kasse-seite { background: var(--rupp-paper); }
.rupp-kasse-section { padding: clamp(32px, 4vw, 56px) 0 var(--rupp-section-y); }
body .rupp-kasse-titel {
  font-family: var(--rupp-font-display);
  font-weight: 800;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: .92;
  color: var(--rupp-ink);
  margin: 0 0 32px;
  padding: 0;
}
body .rupp-kasse-seite h2,
body .rupp-kasse-seite h3 {
  font-family: var(--rupp-font-display);
  font-weight: 800;
  color: var(--rupp-ink);
  text-transform: none;
}
body .rupp-kasse-seite a { color: var(--rupp-bordeaux); }
.rupp-kasse-hinweis { font-size: 15px; line-height: 1.5; color: var(--rupp-ink); background: var(--rupp-cream); border: 1px solid var(--rupp-line); padding: 12px 14px; margin: 16px 0; }

/* Hinweise */
body .rupp-kasse-seite .woocommerce-message,
body .rupp-kasse-seite .woocommerce-info,
body .rupp-kasse-seite .woocommerce-error {
  background: var(--rupp-cream) !important;
  border: 1px solid var(--rupp-bordeaux);
  border-radius: 0;
  color: var(--rupp-ink) !important;
  font-size: 16px;
}
body .rupp-kasse-seite .woocommerce-error li { color: var(--rupp-ink); }

/* Knöpfe */
body .rupp-kasse-seite .button,
body .rupp-kasse-seite button.button {
  border-radius: 0;
  font-family: var(--rupp-font-display);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
body .rupp-kasse-seite .button::after { display: none; }
body .rupp-kasse-seite a.checkout-button,
body .rupp-kasse-seite #place_order,
body .rupp-kasse-seite .return-to-shop .button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  background: var(--rupp-bordeaux) !important;
  color: var(--rupp-paper) !important;
  border: 0 !important;
  font-size: 20px !important;
  padding: 0 20px !important;
}

/* ================= Warenkorb ================= */
body .rupp-kasse-seite .woocommerce:has(.woocommerce-cart-form) {
  display: flex;
  flex-wrap: wrap;
  gap: 32px clamp(32px, 4vw, 56px);
  align-items: flex-start;
}
body .rupp-kasse-seite .woocommerce-notices-wrapper { flex: 1 1 100%; }
body .rupp-kasse-seite .woocommerce-cart-form { flex: 2 1 520px; min-width: 0; }
body .rupp-kasse-seite .cart-collaterals { flex: 1 1 300px; min-width: 0; width: auto; }
body .rupp-kasse-seite .cart-collaterals .cart_totals { float: none; width: 100%; }

/* Tabelle als Zeilenliste */
body .rupp-kasse-seite table.shop_table.cart { border: 0; border-radius: 0; margin: 0; }
body .rupp-kasse-seite table.shop_table.cart thead { display: none; }
body .rupp-kasse-seite table.shop_table.cart tr.cart_item {
  display: grid;
  grid-template-columns: clamp(72px, 18vw, 110px) 1fr auto;
  grid-template-areas:
    "bild name summe"
    "bild preis summe"
    "bild menge menge";
  column-gap: 18px;
  row-gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--rupp-line);
}
body .rupp-kasse-seite table.shop_table.cart tr.cart_item td {
  display: block;
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent !important;
}
body .rupp-kasse-seite table.shop_table.cart tr.cart_item td::before { display: none !important; }
body .rupp-kasse-seite table.shop_table.cart tr.cart_item td.product-name,
body .rupp-kasse-seite table.shop_table.cart tr.cart_item td.product-price,
body .rupp-kasse-seite table.shop_table.cart tr.cart_item td.product-quantity { text-align: left !important; }
body .rupp-kasse-seite td.product-thumbnail { grid-area: bild; }
body .rupp-kasse-seite td.product-thumbnail img { width: 100% !important; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rupp-line); }
body .rupp-kasse-seite td.product-name { grid-area: name; }
body .rupp-kasse-seite td.product-name > a {
  font-family: var(--rupp-font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  color: var(--rupp-ink);
}
body .rupp-kasse-seite td.product-name dl.variation,
body .rupp-kasse-seite td.product-name .variation { font-size: 15px; color: var(--rupp-muted); margin: 4px 0 0; }
body .rupp-kasse-seite td.product-name dl.variation dt,
body .rupp-kasse-seite td.product-name dl.variation dd,
body .rupp-kasse-seite td.product-name dl.variation p { display: inline; margin: 0; padding: 0; font-size: 15px; }
body .rupp-kasse-seite td.product-price { grid-area: preis; font-size: 15px; color: var(--rupp-muted); }
body .rupp-kasse-seite td.product-quantity { grid-area: menge; display: flex !important; align-items: center; gap: 16px; }
body .rupp-kasse-seite td.product-subtotal { grid-area: summe; font-size: 19px; font-weight: 600; text-align: right; white-space: nowrap; }
body .rupp-kasse-seite td.product-remove { grid-area: menge; justify-self: end; align-self: center; }
body .rupp-kasse-seite td.product-remove a.remove {
  width: auto !important;
  height: auto !important;
  font-size: 15px !important;
  font-weight: 400;
  line-height: 44px;
  color: var(--rupp-ink) !important;
  text-decoration: underline;
  background: none !important;
  border-radius: 0;
}
body .rupp-kasse-seite td.product-subtotal small,
body .rupp-kasse-seite td.product-price small { display: block; font-size: 13px; font-weight: 400; color: var(--rupp-muted); }

/* Aktionen-Zeile (Gutschein, Aktualisieren) */
body .rupp-kasse-seite table.shop_table.cart tr:not(.cart_item) td.actions {
  display: block;
  padding: 18px 0 0;
  border-top: 1px solid var(--rupp-line);
  background: transparent;
}
body .rupp-kasse-seite td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; }
body .rupp-kasse-seite td.actions .coupon input.input-text {
  min-height: 46px;
  min-width: 180px;
  padding: 0 12px;
  border: 1px solid var(--rupp-ink);
  border-radius: 0;
  background: var(--rupp-cream);
}
body .rupp-kasse-seite td.actions .button { min-height: 46px; background: transparent; color: var(--rupp-ink); border: 1px solid var(--rupp-ink); font-size: 16px; }
/* Mit JavaScript aktualisiert sich der Warenkorb selbst → Knopf ausblenden */
body.rupp-js .rupp-kasse-seite td.actions [name="update_cart"] { display: none; }

.rupp-weiter-einkaufen { margin: 20px 0 0; }
body .rupp-weiter-einkaufen a { font-weight: 600; color: var(--rupp-bordeaux); text-decoration: none; }

/* Mengen-Stepper */
.rupp-stepper { display: inline-flex; align-items: stretch; height: 46px; border: 1px solid var(--rupp-ink); background: #fff; }
body .rupp-stepper input.qty {
  width: 48px;
  height: 100%;
  border: 0 !important;
  border-radius: 0;
  text-align: center;
  font-size: 17px;
  background: transparent;
  -moz-appearance: textfield;
}
.rupp-stepper input.qty::-webkit-outer-spin-button,
.rupp-stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rupp-stepper__knopf { width: 44px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--rupp-ink); }
.rupp-stepper__knopf:hover { background: var(--rupp-cream); }

/* Übersicht */
body .rupp-kasse-seite .cart_totals {
  background: var(--rupp-cream);
  border: 1px solid var(--rupp-line);
  padding: 28px;
}
body .rupp-kasse-seite .cart_totals h2 { font-size: 30px; margin: 0 0 12px; padding: 0; }
body .rupp-kasse-seite .cart_totals table.shop_table { border: 0; margin: 0 0 18px; }
body .rupp-kasse-seite .cart_totals table.shop_table th,
body .rupp-kasse-seite .cart_totals table.shop_table td { border-top: 1px solid var(--rupp-line); padding: 12px 0; background: transparent; font-size: 16px; vertical-align: top; }
body .rupp-kasse-seite .cart_totals tr.order-total th,
body .rupp-kasse-seite .cart_totals tr.order-total td { font-size: 20px; font-weight: 600; }
body .rupp-kasse-seite .cart_totals .includes_tax,
body .rupp-kasse-seite .cart_totals .woocommerce-shipping-destination { display: block; font-size: 14px; font-weight: 400; color: var(--rupp-muted); }
body .rupp-kasse-seite .cart_totals ul#shipping_method { margin: 0; padding: 0; list-style: none; }
body .rupp-kasse-seite .wc-proceed-to-checkout { padding: 0; }

/* Leerer Warenkorb */
body .rupp-kasse-seite .cart-empty.woocommerce-info { font-size: 18px; padding: 24px; }
body .rupp-kasse-seite .return-to-shop { max-width: 320px; }

/* ================= Kasse ================= */
body .rupp-kasse-seite form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  grid-template-areas:
    "meldung meldung"
    "kunde titel"
    "kunde uebersicht";
  grid-template-rows: auto auto 1fr;
  gap: 0 clamp(32px, 4vw, 56px);
  align-items: start;
}
body .rupp-kasse-seite form.checkout .woocommerce-NoticeGroup-checkout { grid-area: meldung; }
body .rupp-kasse-seite form.checkout #customer_details { grid-area: kunde; }
body .rupp-kasse-seite form.checkout #order_review_heading { grid-area: titel; }
body .rupp-kasse-seite form.checkout #order_review {
  grid-area: uebersicht;
  background: var(--rupp-cream);
  border: 1px solid var(--rupp-line);
  padding: 24px;
}
/* Mitlaufen nur, wenn das Fenster hoch genug ist (sonst bliebe der Bestellen-Knopf unsichtbar) */
@media (min-width: 981px) and (min-height: 900px) {
  body .rupp-kasse-seite form.checkout #order_review { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; }
}
@media (max-width: 980px) {
  body .rupp-kasse-seite form.checkout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "meldung" "kunde" "titel" "uebersicht"; grid-template-rows: auto; }
  body .rupp-kasse-seite form.checkout #order_review { position: static; }
}
body .rupp-kasse-seite #customer_details .col-1,
body .rupp-kasse-seite #customer_details .col-2 { float: none; width: 100%; }
body .rupp-kasse-seite form.checkout h3 { font-size: 36px; line-height: 1; margin: 28px 0 16px; padding: 0; }
body .rupp-kasse-seite #customer_details .col-1 h3:first-child { margin-top: 0; }
body .rupp-kasse-seite #ship-to-different-address { font-size: 20px; }

/* Felder */
body .rupp-kasse-seite .form-row { padding: 0; margin: 0 0 14px; }
body .rupp-kasse-seite .form-row label { font-size: 14px; font-weight: 600; color: var(--rupp-ink); margin-bottom: 4px; display: block; }
body .rupp-kasse-seite .form-row .input-text,
body .rupp-kasse-seite .form-row select,
body .rupp-kasse-seite .select2-container .select2-selection--single {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--rupp-ink) !important;
  border-radius: 0 !important;
  background: var(--rupp-cream) !important;
  font-size: 17px;
  color: var(--rupp-ink) !important; /* Divi färbt eingetippten Text sonst hellgrau (#999) wie einen Platzhalter */
}
body .rupp-kasse-seite .form-row .input-text::placeholder { color: var(--rupp-muted); opacity: .75; }
body .rupp-kasse-seite .form-row select { width: 100%; }
/* „Land“ mit nur einer Auswahl (Deutschland): als normaler Text, nicht als Feld – wie von WooCommerce vorgesehen */
body .rupp-kasse-seite .form-row select.country_to_state--single {
  min-height: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  font-size: 17px;
  font-weight: 400;
  pointer-events: none;
}
body .rupp-kasse-seite .select2-container .select2-selection--single .select2-selection__rendered { line-height: 50px; padding-left: 0; }
body .rupp-kasse-seite .select2-container .select2-selection--single .select2-selection__arrow { height: 50px; }
body .rupp-kasse-seite textarea.input-text { min-height: 110px; padding: 12px 14px; }
body .rupp-kasse-seite .form-row.woocommerce-invalid .input-text { border-color: var(--rupp-bordeaux) !important; }

/* Bestellübersicht */
body .rupp-kasse-seite #order_review table.shop_table { border: 0; margin: 0 0 18px; }
body .rupp-kasse-seite #order_review table.shop_table th,
body .rupp-kasse-seite #order_review table.shop_table td { border-top: 1px solid var(--rupp-line); padding: 10px 0; background: transparent; font-size: 15px; vertical-align: top; }
body .rupp-kasse-seite #order_review tr.order-total th,
body .rupp-kasse-seite #order_review tr.order-total td { font-size: 20px; font-weight: 600; }
body .rupp-kasse-seite #order_review .includes_tax { display: block; font-size: 13px; font-weight: 400; color: var(--rupp-muted); }
body .rupp-kasse-seite #order_review ul#shipping_method { margin: 0; padding: 0; list-style: none; }

/* Zahlungsarten als Karten */
body .rupp-kasse-seite #payment { background: transparent; border-radius: 0; }
body .rupp-kasse-seite #payment ul.payment_methods { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
body .rupp-kasse-seite #payment ul.payment_methods li {
  list-style: none;
  border: 1px solid var(--rupp-line);
  background: var(--rupp-paper);
  padding: 14px 16px;
  margin: 0;
}
body .rupp-kasse-seite #payment ul.payment_methods li:has(input:checked) { border: 2px solid var(--rupp-bordeaux); background: var(--rupp-cream); padding: 13px 15px; }
body .rupp-kasse-seite #payment ul.payment_methods li label { font-weight: 600; font-size: 17px; cursor: pointer; }
body .rupp-kasse-seite #payment ul.payment_methods li img { max-height: 24px; margin-left: 8px; vertical-align: middle; }
body .rupp-kasse-seite #payment ul.payment_methods li input[type="radio"] { accent-color: var(--rupp-bordeaux); width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; }
body .rupp-kasse-seite #payment div.payment_box {
  background: transparent !important;
  color: var(--rupp-ink);
  padding: 6px 0 0 26px;
  margin: 0;
  font-size: 15px;
}
body .rupp-kasse-seite #payment div.payment_box::before { display: none; }
body .rupp-kasse-seite #payment .place-order { padding: 0; }
body .rupp-kasse-seite .woocommerce-terms-and-conditions-wrapper { font-size: 15px; margin-bottom: 16px; }
body .rupp-kasse-seite .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] { accent-color: var(--rupp-bordeaux); width: 18px; height: 18px; }
body .rupp-kasse-seite .woocommerce-privacy-policy-text p { font-size: 14px; color: var(--rupp-muted); }
body .rupp-kasse-seite h3.rupp-kasse-zahlung { font-size: 30px; margin: 8px 0 12px; }

/* ================= Bestellbestätigung ================= */
.rupp-danke { max-width: 760px; margin-bottom: 40px; }
body .rupp-danke h1 {
  font-family: var(--rupp-font-display);
  font-weight: 800;
  font-size: clamp(44px, 5.4vw, 76px);
  line-height: .92;
  color: var(--rupp-ink);
  margin: 10px 0 18px;
  padding: 0;
}
.rupp-danke__text { font-size: 19px; line-height: 1.55; }
.rupp-zeitstrahl { list-style: none; margin: 28px 0; padding: 0 0 0 26px; border-left: 2px solid var(--rupp-bordeaux); }
.rupp-zeitstrahl li { position: relative; list-style: none; padding: 0 0 22px; }
.rupp-zeitstrahl li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rupp-paper);
  border: 2px solid var(--rupp-bordeaux);
}
.rupp-zeitstrahl li:first-child::before { background: var(--rupp-bordeaux); }
.rupp-zeitstrahl strong { display: block; font-family: var(--rupp-font-display); font-weight: 800; font-size: 22px; }
.rupp-zeitstrahl span { display: block; font-size: 16px; color: var(--rupp-ink-soft); }
.rupp-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
body .rupp-danke a.rupp-btn { color: var(--rupp-paper); }
body .rupp-danke a.rupp-btn--outline { color: var(--rupp-bordeaux); }
body .rupp-kasse-seite ul.woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 18px 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--rupp-line);
  border-bottom: 1px solid var(--rupp-line);
  list-style: none;
}
body .rupp-kasse-seite ul.woocommerce-order-overview li { border: 0; padding: 0; margin: 0; font-size: 14px; color: var(--rupp-muted); text-transform: none; }
body .rupp-kasse-seite ul.woocommerce-order-overview li strong { display: block; font-size: 17px; color: var(--rupp-ink); }
body .rupp-kasse-seite .woocommerce-bacs-bank-details,
body .rupp-kasse-seite .wc-bacs-bank-details {
  background: var(--rupp-cream);
  border: 1px solid var(--rupp-line);
  padding: 20px 22px;
  margin-bottom: 28px;
}

/* ================= Mein Konto ================= */
body .rupp-kasse-seite .woocommerce-account .woocommerce,
body.woocommerce-account .rupp-kasse-seite .woocommerce { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 4vw, 56px); align-items: flex-start; }
body .rupp-kasse-seite .woocommerce-MyAccount-navigation { flex: 1 1 220px; float: none; width: auto; }
body .rupp-kasse-seite .woocommerce-MyAccount-content { flex: 3 1 480px; float: none; width: auto; min-width: 0; }
body .rupp-kasse-seite .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rupp-line); }
body .rupp-kasse-seite .woocommerce-MyAccount-navigation li { list-style: none; padding: 0; border-bottom: 1px solid var(--rupp-line); }
body .rupp-kasse-seite .woocommerce-MyAccount-navigation li a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--rupp-ink); text-decoration: none; font-size: 17px; }
body .rupp-kasse-seite .woocommerce-MyAccount-navigation li.is-active a { background: var(--rupp-cream); color: var(--rupp-bordeaux); font-weight: 600; }
body .rupp-kasse-seite .woocommerce-form-login,
body .rupp-kasse-seite .woocommerce-form-register { border: 1px solid var(--rupp-line); background: var(--rupp-cream); border-radius: 0; padding: 24px; }
body .rupp-kasse-seite .woocommerce-form-login .button,
body .rupp-kasse-seite .woocommerce-form-register .button,
body .rupp-kasse-seite .woocommerce-MyAccount-content .button { min-height: 50px; padding: 0 22px; background: var(--rupp-bordeaux); color: var(--rupp-paper); border: 0; font-size: 18px; }
body .rupp-kasse-seite .woocommerce-MyAccount-content table.shop_table { border-radius: 0; }

/* Bestellübersicht an der Kasse: Beträge rechtsbündig, Produktname bekommt den Platz */
body .rupp-kasse-seite table.woocommerce-checkout-review-order-table th:last-child,
body .rupp-kasse-seite table.woocommerce-checkout-review-order-table td:last-child { text-align: right; white-space: nowrap; }
body .rupp-kasse-seite table.woocommerce-checkout-review-order-table td.product-name { width: 70%; }
body .rupp-kasse-seite table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td { white-space: normal; }

/* Mengen-Stepper im Warenkorb: WooCommerce setzt .quantity auf feste Breite und drückte die Knöpfe auf 22 px zusammen */
body .rupp-kasse-seite .woocommerce-cart-form .quantity.rupp-stepper {
  width: auto !important;
  height: 46px;
  border: 1px solid var(--rupp-line);
  background: #fff;
}
body .rupp-kasse-seite .woocommerce-cart-form .rupp-stepper .rupp-stepper__knopf {
  flex: 0 0 44px;
  width: 44px;
  padding: 0 !important;
  font-family: var(--rupp-font-text);
  font-size: 22px;
  line-height: 1;
  color: var(--rupp-bordeaux);
}
body .rupp-kasse-seite .woocommerce-cart-form .rupp-stepper .rupp-stepper__knopf:hover { background: var(--rupp-cream); }
body .rupp-kasse-seite .woocommerce-cart-form .rupp-stepper input.qty {
  flex: 0 0 52px;
  width: 52px !important;
  padding: 0 !important;
  border-left: 1px solid var(--rupp-line) !important;
  border-right: 1px solid var(--rupp-line) !important;
  background: transparent !important;
  font-family: var(--rupp-font-text);
  font-size: 17px;
  font-weight: 600;
  color: var(--rupp-ink) !important;
  box-shadow: none !important;
}
/* Produktname ruhiger: dunkel, ohne Unterstreichung, Bordeaux beim Darüberfahren */
html body .rupp-kasse-seite td.product-name > a { text-decoration: none !important; color: var(--rupp-ink) !important; font-size: 21px; }
html body .rupp-kasse-seite td.product-name > a:hover { color: var(--rupp-bordeaux) !important; }
/* Übersicht im Warenkorb: Bezeichnung links, Betrag rechtsbündig mit Abstand */
body .rupp-kasse-seite .cart_totals table.shop_table th { padding-right: 16px; }
body .rupp-kasse-seite .cart_totals table.shop_table td { text-align: right; }
body .rupp-kasse-seite .cart_totals table.shop_table td small { display: block; }
/* „Entfernen“ dezenter */
body .rupp-kasse-seite td.product-remove a.remove { color: var(--rupp-muted) !important; text-decoration-color: var(--rupp-line); }
body .rupp-kasse-seite td.product-remove a.remove:hover { color: var(--rupp-bordeaux) !important; }

/* =========================================================
   Einheitliche Textgrößen in Warenkorb und Kasse (3 Stufen, siehe --rupp-text-* in style.css)
   klein  = Nebeninfos (Stückpreis, Grundpreis, „inkl. MwSt.“, Versand nach …, Entfernen)
   normal = Zeilen und Beträge
   groß   = Gesamtsumme
   ========================================================= */
html body .rupp-kasse-seite td.product-price,
html body .rupp-kasse-seite td.product-price *,
html body .rupp-kasse-seite td.product-remove a.remove,
html body .rupp-kasse-seite .includes_tax,
html body .rupp-kasse-seite .includes_tax *,
html body .rupp-kasse-seite .woocommerce-shipping-destination,
html body .rupp-kasse-seite .woocommerce-shipping-destination *,
html body .rupp-kasse-seite .rupp-weiter-einkaufen,
html body .rupp-kasse-seite .rupp-weiter-einkaufen a,
html body .rupp-kasse-seite .rupp-kasse-hinweis,
html body .rupp-kasse-seite .rupp-kasse-hinweis * {
  font-size: var(--rupp-text-s) !important;
  line-height: 1.5;
}
html body .rupp-kasse-seite td.product-price,
html body .rupp-kasse-seite td.product-price *,
html body .rupp-kasse-seite .includes_tax,
html body .rupp-kasse-seite .includes_tax *,
html body .rupp-kasse-seite .woocommerce-shipping-destination,
html body .rupp-kasse-seite .woocommerce-shipping-destination * { font-weight: 400 !important; color: var(--rupp-muted); }

html body .rupp-kasse-seite td.product-subtotal,
html body .rupp-kasse-seite td.product-subtotal *,
html body .rupp-kasse-seite .cart_totals table.shop_table th,
html body .rupp-kasse-seite .cart_totals table.shop_table td,
html body .rupp-kasse-seite .cart_totals #shipping_method label,
html body .rupp-kasse-seite #order_review table.shop_table th,
html body .rupp-kasse-seite #order_review table.shop_table td,
html body .rupp-kasse-seite #order_review #shipping_method label {
  font-size: var(--rupp-text-m);
  line-height: 1.45;
}
/* Bezeichnungen links normal, Beträge kräftig */
html body .rupp-kasse-seite .cart_totals table.shop_table th,
html body .rupp-kasse-seite #order_review table.shop_table th { font-weight: 600; }
html body .rupp-kasse-seite .cart_totals table.shop_table td,
html body .rupp-kasse-seite #order_review table.shop_table td,
html body .rupp-kasse-seite .cart_totals #shipping_method label,
html body .rupp-kasse-seite #order_review #shipping_method label { font-weight: 400; }
html body .rupp-kasse-seite td.product-subtotal .amount,
html body .rupp-kasse-seite .cart_totals table.shop_table td .amount,
html body .rupp-kasse-seite #order_review table.shop_table td .amount { font-weight: 600; }
html body .rupp-kasse-seite .includes_tax .amount { font-weight: 400 !important; }

html body .rupp-kasse-seite .cart_totals tr.order-total th,
html body .rupp-kasse-seite .cart_totals tr.order-total td,
html body .rupp-kasse-seite .cart_totals tr.order-total td .amount,
html body .rupp-kasse-seite #order_review tr.order-total th,
html body .rupp-kasse-seite #order_review tr.order-total td,
html body .rupp-kasse-seite #order_review tr.order-total td > strong .amount {
  font-size: var(--rupp-text-l);
  font-weight: 700;
}
/* Nur zwei Stärken: normal (400) und kräftig (600); Gesamtsumme 700 */
html body .rupp-kasse-seite .cart_totals table.shop_table td strong,
html body .rupp-kasse-seite #order_review table.shop_table td strong,
html body .rupp-kasse-seite .rupp-kasse-hinweis strong,
html body .rupp-kasse-seite .rupp-weiter-einkaufen a { font-weight: 600 !important; }
html body .rupp-kasse-seite .rupp-kasse-hinweis { font-weight: 400; }
html body .rupp-kasse-seite .cart_totals tr.order-total td strong,
html body .rupp-kasse-seite #order_review tr.order-total td strong { font-weight: 700 !important; }
/* Versandzeile in der Übersicht: „Sendung“ oben, Versandart + Preis darunter in voller Breite (statt schmaler Spalte) */
html body .rupp-kasse-seite .cart_totals tr.woocommerce-shipping-totals { display: block; border-top: 1px solid var(--rupp-line); }
html body .rupp-kasse-seite .cart_totals tr.woocommerce-shipping-totals th,
html body .rupp-kasse-seite .cart_totals tr.woocommerce-shipping-totals td { display: block; width: auto; border-top: 0; padding: 12px 0 0; }
html body .rupp-kasse-seite .cart_totals tr.woocommerce-shipping-totals td { padding: 4px 0 12px; }
html body .rupp-kasse-seite .woocommerce-shipping-destination strong { font-weight: 400 !important; }
/* Datenschutz-Hinweis und AGB-Häkchen: kleine Stufe, normal (Links bleiben unterstrichen) */
html body .rupp-kasse-seite .woocommerce-privacy-policy-text,
html body .rupp-kasse-seite .woocommerce-privacy-policy-text p,
html body .rupp-kasse-seite .woocommerce-terms-and-conditions-wrapper,
html body .rupp-kasse-seite .woocommerce-terms-and-conditions-wrapper label,
html body .rupp-kasse-seite .woocommerce-terms-and-conditions-wrapper span:not(.required) {
  font-size: var(--rupp-text-s) !important;
  font-weight: 400 !important;
  line-height: 1.5;
}
/* Handy: Name über die ganze Breite, Betrag rechts neben dem Stückpreis */
@media (max-width: 640px) {
  body .rupp-kasse-seite table.shop_table.cart tr.cart_item {
    grid-template-columns: 72px 1fr auto;
    grid-template-areas:
      "bild name name"
      "bild preis summe"
      "bild menge menge";
  }
  html body .rupp-kasse-seite td.product-name > a { font-size: 19px; }
  body .rupp-kasse-seite td.product-subtotal { align-self: start; }
}

/* Übersicht im Warenkorb als Zeilenliste über die volle Kastenbreite (statt Tabelle mit schmaler Spalte) */
html body .rupp-kasse-seite .cart_totals table.shop_table,
html body .rupp-kasse-seite .cart_totals table.shop_table tbody { display: block; width: 100%; }
html body .rupp-kasse-seite .cart_totals table.shop_table tr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--rupp-line);
  padding: 12px 0;
}
html body .rupp-kasse-seite .cart_totals table.shop_table tr:first-child { border-top: 0; }
html body .rupp-kasse-seite .cart_totals table.shop_table th,
html body .rupp-kasse-seite .cart_totals table.shop_table td { display: block; border: 0 !important; padding: 0 !important; width: auto; }
html body .rupp-kasse-seite .cart_totals table.shop_table th { flex: 0 0 auto; }
html body .rupp-kasse-seite .cart_totals table.shop_table td { flex: 1 1 auto; text-align: right; }
/* Versand: „Sendung“ oben, darunter Versandart mit Preis und Lieferadresse linksbündig über die ganze Breite */
html body .rupp-kasse-seite .cart_totals tr.woocommerce-shipping-totals { flex-direction: column; align-items: stretch; gap: 4px; }
html body .rupp-kasse-seite .cart_totals tr.woocommerce-shipping-totals td { text-align: left; }
html body .rupp-kasse-seite .cart_totals tr.woocommerce-shipping-totals .woocommerce-shipping-destination { margin-top: 4px; }
html body .rupp-kasse-seite .cart_totals table.shop_table td .woocommerce-shipping-destination strong { font-weight: 400 !important; }

/* „Entfernen“ direkt neben dem Mengenregler statt am rechten Rand */
html body .rupp-kasse-seite table.shop_table.cart tr.cart_item {
  grid-template-columns: clamp(72px, 18vw, 110px) auto 1fr auto;
  grid-template-areas:
    "bild name name summe"
    "bild preis preis summe"
    "bild menge entf entf";
}
html body .rupp-kasse-seite td.product-remove { grid-area: entf; justify-self: start; align-self: center; margin-left: 14px; }
@media (max-width: 640px) {
  html body .rupp-kasse-seite table.shop_table.cart tr.cart_item {
    grid-template-columns: 72px auto 1fr auto;
    grid-template-areas:
      "bild name name name"
      "bild preis preis summe"
      "bild menge entf entf";
  }
}

/* Artikel in der Warenkorb-Übersicht über der Zwischensumme: kleiner, ohne Trennlinien, Name darf umbrechen */
html body .rupp-kasse-seite .cart_totals table.shop_table tr.rupp-uebersicht-artikel { border-top: 0; padding: 3px 0; }
html body .rupp-kasse-seite .cart_totals table.shop_table tr.rupp-uebersicht-artikel:first-child { padding-top: 0; }
html body .rupp-kasse-seite .cart_totals table.shop_table tr.rupp-uebersicht-artikel + tr.cart-subtotal { margin-top: 10px; }
html body .rupp-kasse-seite .cart_totals table.shop_table tr.rupp-uebersicht-artikel th,
html body .rupp-kasse-seite .cart_totals table.shop_table tr.rupp-uebersicht-artikel td,
html body .rupp-kasse-seite .cart_totals table.shop_table tr.rupp-uebersicht-artikel td .amount { font-size: 15px; font-weight: 400; }
html body .rupp-kasse-seite .cart_totals table.shop_table tr.rupp-uebersicht-artikel th { flex: 1 1 auto; }
html body .rupp-kasse-seite .cart_totals table.shop_table tr.rupp-uebersicht-artikel td { flex: 0 0 auto; white-space: nowrap; }
/* Schmale Bildschirme: WooCommerce setzt die Bezeichnung zusätzlich vor jeden Betrag („Zwischensumme Zwischensumme:“) – Bezeichnung steht schon links */
html body .rupp-kasse-seite .cart_totals table.shop_table td::before { display: none !important; }
html body .rupp-kasse-seite .cart_totals tr.woocommerce-shipping-totals td { text-align: left !important; }
