/* ==========================================================
   BT Woo – Warenkorb + Checkout
   Zweck:
   - Gemeinsamer CSS-Owner für Warenkorb und Kasse
   - Warenkorb-CLS-Guard
   - Sichere Lesbarkeit auf hellen Flächen
   ========================================================== */


/* ==========================================================
   Warenkorb – CLS Guard
   ========================================================== */

body.woocommerce-cart .wc-block-components-sidebar.wc-block-cart__sidebar {
  min-height: 360px;
}

.wc-block-grid__products {
  margin: 0 !important;
}


/* ==========================================================
   Warenkorb + Checkout – Seitentitel / Überschriften
   ========================================================== */

body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-cart .woocommerce h1,
body.woocommerce-cart .woocommerce h2,
body.woocommerce-cart .woocommerce h3,
body.woocommerce-checkout .woocommerce h1,
body.woocommerce-checkout .woocommerce h2,
body.woocommerce-checkout .woocommerce h3 {
  color: #414544;
}


/* ==========================================================
   Classic Checkout – Texte / Labels
   ========================================================== */

body.woocommerce-checkout .woocommerce-checkout,
body.woocommerce-checkout .woocommerce-checkout p,
body.woocommerce-checkout .woocommerce-checkout label,
body.woocommerce-checkout .woocommerce-checkout th,
body.woocommerce-checkout .woocommerce-checkout td,
body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout #order_review_heading {
  color: #414544;
}


/* ==========================================================
   Woo Blocks Cart – Texte / Überschriften
   ========================================================== */

body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .wc-block-cart p,
body.woocommerce-cart .wc-block-cart label,
body.woocommerce-cart .wc-block-cart th,
body.woocommerce-cart .wc-block-cart td,
body.woocommerce-cart .wc-block-components-title,
body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value {
  color: #414544;
}


/* ==========================================================
   Woo Notices – Warenkorb + Checkout
   ========================================================== */

/*
 * Gemeinsame Basis:
 * - BT Mindestbestellwert im Blocks-Warenkorb
 * - Woo Info-/Message-Hinweise im Checkout
 * - Woo Fehler beim Checkout
 */
.woocommerce-cart .woocommerce-info,
.woocommerce-checkout .woocommerce-info,
.woocommerce-cart .woocommerce-message,
.woocommerce-checkout .woocommerce-message,
.woocommerce-cart .woocommerce-error,
.woocommerce-checkout .woocommerce-error,
.bt-minimum-order-notice {
  margin: 0 0 24px;
  padding: 14px 18px;

  border: 1px solid rgba(128, 86, 109, 0.24);
  border-left: 4px solid #80566d;
  border-radius: 8px;

  background: rgba(128, 86, 109, 0.07);
  color: #2f2f33;

  font-size: 15px;
  line-height: 1.55;

  box-shadow: none;
}


/* ==========================================================
   Informationszustand
   ========================================================== */

.woocommerce-cart .woocommerce-info,
.woocommerce-checkout .woocommerce-info,
.woocommerce-cart .woocommerce-message,
.woocommerce-checkout .woocommerce-message,
.bt-minimum-order-notice {
  border-left-color: #80566d;
  background: rgba(128, 86, 109, 0.07);
}


/* ==========================================================
   Fehlerzustand
   ========================================================== */

.woocommerce-cart .woocommerce-error,
.woocommerce-checkout .woocommerce-error {
  border-color: rgba(176, 42, 55, 0.24);
  border-left-color: #b02a37;

  background: rgba(176, 42, 55, 0.07);
  color: #7a1f28;
}


/* ==========================================================
   Notices mit eigenem Icon
   ========================================================== */

.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error,
.bt-minimum-order-notice {
  position: relative;
  padding-left: 54px;
}


/*
 * Gemeinsame Icon-Geometrie.
 * Inhalt und Farbe werden darunter je Zustand gesetzt.
 */
.woocommerce-checkout .woocommerce-info::before,
.woocommerce-checkout .woocommerce-error::before,
.bt-minimum-order-notice::before {
  position: absolute;
  top: 50%;
  left: 18px;

  width: 22px;
  height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);

  border: 2px solid;
  border-radius: 50%;

  background: transparent;

  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  box-sizing: border-box;
}


/* Info-Icon */

.woocommerce-checkout .woocommerce-info::before,
.bt-minimum-order-notice::before {
  content: "i";
  border-color: #80566d;
  color: #80566d;
}


/* Fehler-Icon */

.woocommerce-checkout .woocommerce-error::before {
  content: "!";
  border-color: #b02a37;
  color: #b02a37;
}


/* ==========================================================
   Textdetails
   ========================================================== */

.bt-minimum-order-notice {
  font-weight: 500;
}

.bt-minimum-order-notice strong {
  font-weight: 700;
}

.woocommerce-cart .woocommerce-error li,
.woocommerce-checkout .woocommerce-error li {
  margin: 0;
}

.woocommerce-cart .woocommerce-info a,
.woocommerce-checkout .woocommerce-info a,
.woocommerce-cart .woocommerce-message a,
.woocommerce-checkout .woocommerce-message a,
.woocommerce-cart .woocommerce-error a,
.woocommerce-checkout .woocommerce-error a {
   color: var(--bt-accent-text);
   font-weight: 600;
   text-decoration: underline;
   text-decoration-thickness: 2px;
   text-underline-offset: 4px;
}

.woocommerce-cart .woocommerce-info a:hover,
.woocommerce-checkout .woocommerce-info a:hover,
.woocommerce-cart .woocommerce-message a:hover,
.woocommerce-checkout .woocommerce-message a:hover,
.woocommerce-cart .woocommerce-error a:hover,
.woocommerce-checkout .woocommerce-error a:hover {
   color: var(--bt-accent-secondary);
}

/* ==========================================================
   WARENKORB – PRODUKTINFORMATIONEN
   ========================================================== */

/* Kurzbeschreibung ausblenden */
body.woocommerce-cart
  .wc-block-components-product-metadata__description {
  display: none;
}

/* Produktdetails – gemeinsame Typografie und vertikale Darstellung */
body.woocommerce-cart .wc-block-cart
.wc-block-components-product-details {
   display: flex;
   flex-direction: column;
   gap: 2px;
   font-size: 14px;
   line-height: 1.5;
   margin: 0;
}

body.woocommerce-cart .wc-block-cart
.wc-block-components-product-details > :is(li, span) {
   display: block;
   margin: 0;
}

/* Überflüssige Slash-Trennzeichen entfernen */
body.woocommerce-cart .wc-block-cart
.wc-block-components-product-details > :is(li, span)::after,
body.woocommerce-cart .wc-block-cart
.wc-block-components-product-details__value::after {
   content: none !important;
}

body.woocommerce-cart .wc-block-cart
.wc-block-components-product-details > span > span[aria-hidden="true"] {
   display: none;
}

body.woocommerce-cart .wc-block-cart
.wc-block-components-product-details__name {
   font-weight: 600;
}

body.woocommerce-cart .wc-block-cart
.wc-block-components-product-details__value {
   font-weight: 400;
}

/* Girlanden – redundante Längenangabe ausblenden */
body.woocommerce-cart .wc-block-cart
.wc-block-components-product-details:has(> .wc-block-components-product-details__montage-aufh-ngung)
> .wc-block-components-product-details__l-nge {
   display: none;
}

/* Montage unmittelbar unter der Preisangabe,
   Abstand zu den technischen Produktinformationen */
body.woocommerce-cart .wc-block-cart
.wc-block-components-product-details > [class*="product-details__montage"] {
   margin-top: 0;
   margin-bottom: 8px;
}

body.woocommerce-cart .wc-block-cart
.wc-block-cart-item__product:has([class*="product-details__montage"])
.wc-block-cart-item__prices {
   margin-bottom: 0;
}

/* Girlanden: vorhandene Längen-/Preisangabe statt redundantem Einzelpreis.
   Montage-Metadaten kennzeichnen die vorhandenen Meterware-Positionen. */
body.woocommerce-cart .wc-block-cart
.wc-block-cart-item__product:has(li[class*="product-details__montage"]):has(li:is([class$="__lange"], [class$="__l-nge"], [class$="__lnge"], [class$="__länge"])) .wc-block-cart-item__prices {
   display: none;
}

body.woocommerce-cart .wc-block-cart
.wc-block-components-product-details:has(> li[class*="product-details__montage"]) > li:is([class$="__lange"], [class$="__l-nge"], [class$="__lnge"], [class$="__länge"]) {
   font-size: 16px;
   font-weight: 600;
}

body.woocommerce-cart .wc-block-cart
.wc-block-components-product-details:has(> li[class*="product-details__montage"]) > li:is([class$="__lange"], [class$="__l-nge"], [class$="__lnge"], [class$="__länge"]) .wc-block-components-product-details__value {
   font-weight: 600;
}

body.woocommerce-cart .wc-block-cart
.wc-block-components-product-details > li[class*="product-details__montage"] {
   margin-bottom: 8px;
}


/* ==========================================================
   CHECKOUT – Freiwillige Anfrageinformationen
   ========================================================== */

body.woocommerce-checkout .bt-checkout-request {
   grid-column: 1 / -1;
   clear: both;
   width: 100%;
   box-sizing: border-box;
   margin: 30px 0;
}

/* ==========================================================
   CLASSIC CHECKOUT – Formulardesign
   ========================================================== */

/* Adressbereiche und Anfrageinformationen */

body.woocommerce-checkout #customer_details > .col-1,
body.woocommerce-checkout #customer_details > .col-2,
body.woocommerce-checkout .bt-checkout-request {
   box-sizing: border-box;
   padding: 24px;
   background: #fff;
   border: 1px solid var(--bt-border-08);
   border-radius: var(--bt-radius-contain-12);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
}

/* Abweichende Lieferadresse – Sticky Desktop */

@media (min-width: 769px) {
   body.woocommerce-checkout #customer_details > .col-2 {
      position: sticky;
      top: 120px;
      align-self: flex-start;
   }
}

/* Abschnittsüberschriften */

body.woocommerce-checkout form.checkout h3 {
   margin: 0 0 24px;
   font-size: 24px;
   font-weight: 600;
   line-height: 1.25;
   color: var(--bt-accent-text);
}

/* Feldbeschriftungen */

body.woocommerce-checkout form.checkout .form-row label {
   font-size: 15px;
   font-weight: 600;
   line-height: 1.5;
   margin-bottom: 5px;
}

/* Formularabstände */

body.woocommerce-checkout form.checkout .form-row {
   margin-bottom: 16px;
   padding: 0;
}

/* Eingabefelder */

body.woocommerce-checkout form.checkout .input-text,
body.woocommerce-checkout form.checkout select {
   min-height: 46px;
   padding: 10px 14px;
   background: #fff;
   border: 1px solid var(--bt-border-12);
   border-radius: var(--bt-radius-input-4);
   color: var(--bt-accent-text);
   font-size: 16px;
   box-sizing: border-box;
}

/* Sichtbarer Fokuszustand */

body.woocommerce-checkout form.checkout .input-text:focus,
body.woocommerce-checkout form.checkout select:focus {
   outline: 2px solid var(--bt-accent-secondary);
   outline-offset: 1px;
}

/* Textarea */

body.woocommerce-checkout form.checkout textarea.input-text {
   min-height: 140px;
   resize: vertical;
}

/* Freiwillige Anfrageinformationen */

body.woocommerce-checkout .bt-checkout-request .optional {
   display: none;
}

body.woocommerce-checkout .bt-checkout-request > p {
   line-height: 1.6;
   margin-bottom: 24px;
}
/* Radio-Auswahl */

body.woocommerce-checkout
#bt_request_type_field .woocommerce-input-wrapper {
  max-width: 800px;
   display: grid;
   grid-template-columns: max-content minmax(0, 1fr)
                       max-content minmax(0, 1fr);
grid-auto-flow: row;
   align-items: start;
   gap: 10px 8px;
}

/* Mengen- und Einzelpreisangabe */
body.woocommerce-checkout #order_review
.bt-checkout-line-price {
   display: block;
   margin: 4px 0 0;
   font-size: 16px;
   font-weight: 600;
   line-height: 1.4;
}

/* Montageinformation – sauberer responsiver Textumbruch */
body.woocommerce-checkout #order_review
dl.variation dt[class^="variation-Montage"],
body.woocommerce-checkout #order_review
dl.variation dd[class^="variation-Montage"],
body.woocommerce-checkout #order_review
dl.variation dd[class^="variation-Montage"] p {
   display: inline;
   float: none;
   margin: 0;
   padding: 0;
}

body.woocommerce-checkout #order_review
dl.variation dd[class^="variation-Montage"]::after {
   content: "";
   display: block;
   margin-bottom: 8px;
}

/* Sämtliche Summen rechtsbündig ausrichten */
body.woocommerce-checkout #order_review
table.shop_table tfoot td {
   text-align: right;
}

@media (max-width: 768px) {
   body.woocommerce-checkout
   #bt_request_type_field .woocommerce-input-wrapper {
      grid-template-columns: max-content minmax(0, 1fr);
      grid-template-rows: none;
      grid-auto-flow: row;
   }
}

body.woocommerce-checkout
#bt_request_type_field input[type="radio"] {
   accent-color: var(--bt-accent-secondary);
   margin: 4px 0 0;
}

body.woocommerce-checkout
#bt_request_type_field label.radio {
   display: block;
   width: auto;
   margin: 0;
   font-weight: 400;
}

/* Mobile */

@media (max-width: 768px) {
   body.woocommerce-checkout #customer_details > .col-1,
   body.woocommerce-checkout #customer_details > .col-2,
   body.woocommerce-checkout .bt-checkout-request {
      padding: 16px;
   }

   body.woocommerce-checkout form.checkout h3 {
      font-size: 30px;
   }
}


/* ==========================================================
   CLASSIC CHECKOUT – Zahlungsbereich und Bestellübersicht
   ========================================================== */

/* Weiße Container im BT-Design */

body.woocommerce-checkout form.checkout #payment,
body.woocommerce-checkout form.checkout #order_review {
   background: #fff;
   border: 1px solid var(--bt-border-08);
   border-radius: var(--bt-radius-contain-12);
   box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
   padding: 22px;
   box-sizing: border-box;
   margin-bottom: 3em;
}

/* Zahlungsbereich */

body.woocommerce-checkout #payment ul.payment_methods {
   display: grid;
   gap: 12px;
   padding: 0;
   margin: 0;
   border: 0;
}

body.woocommerce-checkout #payment li.wc_payment_method {
   margin: 0;
   padding: 16px 20px;
   background: #fff;
   border: 1px solid var(--bt-border-12);
   border-radius: 8px;
   line-height: 1.5;
}

body.woocommerce-checkout #payment li.wc_payment_method:has(input:checked) {
   border-color: var(--bt-accent-secondary);
   background: rgba(200, 31, 121, 0.035);
}

body.woocommerce-checkout #payment input.input-radio {
   accent-color: var(--bt-accent-secondary);
   margin-right: 10px;
}

body.woocommerce-checkout #payment li.wc_payment_method > label {
   font-size: 17px;
   font-weight: 600;
   cursor: pointer;
}

body.woocommerce-checkout #payment div.payment_box {
   width: auto;
   background: transparent;
   color: var(--bt-accent-text);
   padding: 0;
   margin: 10px 0 0;
   font-size: 15px;
   line-height: 1.65;
}

body.woocommerce-checkout #payment div.payment_box p {
   margin: 0;
}

body.woocommerce-checkout #payment div.payment_box::before {
   display: none;
}

/* Bestellübersicht – Tabellenoptik reduzieren */

body.woocommerce-checkout #order_review table.shop_table {
   background: #fff;
   border: 0;
   border-collapse: collapse;
   margin: 0 0 24px;
}

body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
   background: #fff;
   border: 0;
   border-bottom: 1px solid var(--bt-border-08);
   padding: 16px 10px;
   color: var(--bt-accent-text);
}

/* Produktnamen */

body.woocommerce-checkout #order_review .product-name a {
   color: var(--bt-accent-text);
   font-weight: 600;
   text-decoration: none;
}

body.woocommerce-checkout #order_review .product-name a:hover {
   color: var(--bt-accent-secondary);
   text-decoration: underline;
   text-decoration-thickness: 2px;
   text-underline-offset: 4px;
}

/* Gesamtsumme */

body.woocommerce-checkout #order_review .order-total th,
body.woocommerce-checkout #order_review .order-total td {
   font-size: 22px;
   font-weight: 700;
   padding-top: 20px;
   padding-bottom: 20px;
}

/* Mehrwertsteuer – untergeordnete Darstellung */

body.woocommerce-checkout #order_review tr.order-tax th,
body.woocommerce-checkout #order_review tr.order-tax td {
   font-size: 14px;
   font-weight: 400;
}

/* Anfragebutton */

body.woocommerce-checkout #place_order {
   width: 100%;
   min-height: 50px;
   float: none;
   margin: 0;
   color: #fff !important;
   font-weight: 600 !important;
border-radius: var(--bt-radius-button-7);
}

body.woocommerce-checkout #place_order:hover {
   color: #fff !important;
}

/* Mobile */

@media (max-width: 768px) {
   body.woocommerce-checkout form.checkout #payment,
   body.woocommerce-checkout form.checkout #order_review {
      padding: 16px;
   }

   body.woocommerce-checkout #order_review table.shop_table th,
   body.woocommerce-checkout #order_review table.shop_table td {
      padding: 12px 6px;
   }
}


/* ==========================================================
   CLASSIC CHECKOUT – Produktdarstellung
   ========================================================== */

body.woocommerce-checkout #order_review {
   --bt-checkout-thumbnail-width: 110px;
   --bt-checkout-thumbnail-gap: 16px;
   --bt-checkout-product-padding-x: 10px;
   --bt-checkout-product-padding-y: 16px;
}

/* Tabellenstruktur erhalten; Platz für das Bild reservieren. */
body.woocommerce-checkout #order_review table.shop_table
tr.wc-gzd-cart-item-has-thumbnail > td.product-name {
   position: relative;
   vertical-align: top;
   padding-left: calc(var(--bt-checkout-product-padding-x) + var(--bt-checkout-thumbnail-width) + var(--bt-checkout-thumbnail-gap));
   height: calc(var(--bt-checkout-thumbnail-width) + 2 * var(--bt-checkout-product-padding-y));
   box-sizing: border-box;
}

/* Titel und Menge im normalen Textfluss. */
body.woocommerce-checkout #order_review
.wc-gzd-cart-item-name-wrapper {
   display: block;
   position: static;
   min-height: 0;
   margin: 0;
   padding: 0;
   line-height: 1.4;
}

body.woocommerce-checkout #order_review
.wc-gzd-cart-item-name-wrapper > a {
   display: inline;
   float: none;
   width: auto;
   font-size: 18px;
   overflow-wrap: anywhere;
}

body.woocommerce-checkout #order_review
.wc-gzd-cart-item-name-wrapper > .product-quantity {
   display: inline;
   position: static;
   float: none;
   margin: 0;
   font-size: 18px;
   white-space: nowrap;
}

/* Bild unabhängig von Titel und Eigenschaften positionieren. */
body.woocommerce-checkout #order_review
.wc-gzd-cart-item-name-wrapper > .wc-gzd-cart-item-thumbnail {
   position: absolute;
   top: var(--bt-checkout-product-padding-y);
   left: var(--bt-checkout-product-padding-x);
   float: none;
   width: var(--bt-checkout-thumbnail-width);
   max-width: none;
   margin: 0;
}

body.woocommerce-checkout #order_review
.wc-gzd-cart-item-thumbnail img {
   display: block;
   width: 100%;
   max-width: 100%;
   height: auto;
   margin: 0;
}

body.woocommerce-checkout #order_review table.shop_table
tr.wc-gzd-cart-item-has-thumbnail > td.product-name dl.variation {
   clear: none;
   margin: 0;
   padding: 0;
   font-size: 14px;
   line-height: 1.5;
}

/* Preis auf Höhe des Produkttitels, rechtsbündig. */
body.woocommerce-checkout #order_review table.shop_table
tr.cart_item > td.product-total {
   vertical-align: top;
   white-space: nowrap;
   font-size: 18px;
   line-height: 1.4;
   text-align: right;
}

body.woocommerce-checkout #order_review table.shop_table
th.product-total {
   text-align: right;
}

@media (max-width: 768px) {
   body.woocommerce-checkout #order_review {
      --bt-checkout-thumbnail-width: 60px;
      --bt-checkout-thumbnail-gap: 10px;
      --bt-checkout-product-padding-x: 6px;
      --bt-checkout-product-padding-y: 12px;
   }

   body.woocommerce-checkout #order_review
   .wc-gzd-cart-item-name-wrapper > a,
   body.woocommerce-checkout #order_review
   .wc-gzd-cart-item-name-wrapper > .product-quantity,
   body.woocommerce-checkout #order_review table.shop_table
   tr.cart_item > td.product-total {
      font-size: 15px;
   }
}


/* Warenkorb – native Variationsgröße vor Flugzeit */
body.woocommerce-cart .wc-block-components-product-metadata:has(
  > .wc-block-components-product-details + .wc-block-components-product-details
) {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.woocommerce-cart .wc-block-components-product-details:has(
  > .wc-block-components-product-details__ballon:only-child
) {
  order: -1;
}

















/* ==========================================================
   WOO BLOCKS CART – Container- und Produktdesign
   ========================================================== */

/* Seitliche Abstände */

body.woocommerce-cart .wc-block-cart {
   box-sizing: border-box;
   padding: 0 3%;
}

/* Container im Checkout-Design */

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
   box-sizing: border-box;
   padding: 24px;
   background: #fff;
   border: 1px solid var(--bt-border-08);
   border-radius: var(--bt-radius-contain-12);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
   align-self: flex-start;
}

/* Spaltenverhältnis Desktop */

body.woocommerce-cart .wc-block-cart.is-large
.wc-block-cart__main {
   width: 68%;
   padding: 24px;
}

body.woocommerce-cart .wc-block-cart.is-large
.wc-block-cart__sidebar {
   width: 30%;
   padding: 24px;
   margin: 0 0 0 2%;
}

/* Tabellenüberschriften */

body.woocommerce-cart .wc-block-cart-items__header th {
   font-size: 15px;
   font-weight: 600;
   color: var(--bt-accent-text);
}

/* Produktbilder */

body.woocommerce-cart
.wc-block-cart-items .wc-block-cart-item__image {
   width: 110px;
}

body.woocommerce-cart
.wc-block-cart-item__image img {
   display: block;
   width: 100%;
   max-width: 110px;
   height: auto;
}

/* Produktnamen */

body.woocommerce-cart .wc-block-cart
.wc-block-components-product-name {
   color: var(--bt-accent-text);
   font-size: 20px;
   font-weight: 600;
   line-height: 1.4;
   text-decoration: none;
}

body.woocommerce-cart a.wc-block-components-product-name:hover {
   color: var(--bt-accent-secondary);
   text-decoration: underline;
   text-decoration-thickness: 2px;
   text-underline-offset: 4px;
}

/* Einzelpreise */

body.woocommerce-cart .wc-block-cart-item__prices {
   font-size: 16px;
   font-weight: 600;
   margin: 4px 0;
}

body.woocommerce-cart .wc-block-cart-item__prices
.wc-block-components-product-price {
   font-size: inherit;
   font-weight: inherit;
}

/* Summen – Schriftgröße auch an den tatsächlichen Betragselementen */
body.woocommerce-cart .wc-block-cart .wc-block-cart-item__total,
body.woocommerce-cart .wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price__value,
body.woocommerce-cart .wc-block-cart .wc-block-cart-item__total .wc-block-components-formatted-money-amount {
   font-size: 18px;
   font-weight: 600;
   line-height: 1.4;
}

body.woocommerce-cart .wc-block-cart__totals-title {
   font-size: 20px;
   font-weight: 600;
   color: var(--bt-accent-text);
}

body.woocommerce-cart .wc-block-cart .wc-block-components-totals-item__value {
   font-size: 18px;
   font-weight: 600;
}

body.woocommerce-cart .wc-block-cart .wc-block-components-totals-footer-item,
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
   font-size: 22px;
   font-weight: 700;
}

/* Weiter zur Kasse */

body.woocommerce-cart .wc-block-cart__submit-button {
   min-height: 50px;
   background: var(--bt-accent);
   border-radius: var(--bt-radius-button-7);
   color: #fff !important;
   font-weight: 600;
   text-decoration: none;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover {
   background: var(--bt-accent-secondary);
   color: #fff !important;
   text-decoration: none;
}

/* Mobile und schmale Container */

body.woocommerce-cart .wc-block-cart:not(.is-large)
.wc-block-cart__main,
body.woocommerce-cart .wc-block-cart:not(.is-large)
.wc-block-cart__sidebar {
   width: 100%;
   padding: 16px;
   margin: 0 0 20px;
}

body.woocommerce-cart .wc-block-cart:not(.is-large)
.wc-block-cart-item__image {
   width: 60px;
}

body.woocommerce-cart .wc-block-cart:not(.is-large)
.wc-block-components-product-name {
   font-size: 16px;
}

/* ==========================================================
   CLASSIC CHECKOUT – Dankesseite / Anfrage erhalten
   ========================================================== */

body.woocommerce-order-received .woocommerce-order {
   color: var(--bt-accent-text);
}

/* Erfolgreicher Anfrageeingang */

body.woocommerce-order-received
.woocommerce-thankyou-order-received {
   display: flex;
   align-items: center;
   gap: 14px;
   padding: 20px 24px;
   margin: 0 0 24px;
   background: rgba(128, 86, 109, 0.07);
   border: 1px solid rgba(128, 86, 109, 0.24);
   border-left: 4px solid #80566d;
   border-radius: var(--bt-radius-contain-12);
   font-size: 18px;
   font-weight: 600;
}

body.woocommerce-order-received
.woocommerce-thankyou-order-received::before {
   content: "✓";
   display: flex;
   align-items: center;
   justify-content: center;
   flex: 0 0 28px;
   height: 28px;
   border: 2px solid #80566d;
   border-radius: 50%;
   color: #80566d;
   box-sizing: border-box;
}

/* Anfrageübersicht */

body.woocommerce-order-received
ul.woocommerce-order-overview {
   display: grid;
   grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: 16px;
   padding: 0;
   margin: 0 0 40px;
   list-style: none;
}

body.woocommerce-order-received
ul.woocommerce-order-overview::before,
body.woocommerce-order-received
ul.woocommerce-order-overview::after {
   display: none;
}

body.woocommerce-order-received
ul.woocommerce-order-overview > li {
   float: none;
   min-width: 0;
   margin: 0;
   padding: 20px;
   background: #fff;
   border: 1px solid var(--bt-border-08);
   border-radius: var(--bt-radius-contain-12);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
   font-size: 13px;
   line-height: 1.5;
}

body.woocommerce-order-received
ul.woocommerce-order-overview > li strong {
   display: block;
   margin-top: 6px;
   font-size: 18px;
   font-weight: 600;
   overflow-wrap: anywhere;
}

/* Container für Anfragedetails */

body.woocommerce-order-received
.woocommerce-order-details {
   box-sizing: border-box;
   padding: 24px;
   margin-bottom: 30px;
   background: #fff;
   border: 1px solid var(--bt-border-08);
   border-radius: var(--bt-radius-contain-12);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
}

/* Abschnittsüberschriften */

body.woocommerce-order-received
.woocommerce-order-details__title,
body.woocommerce-order-received
.woocommerce-column__title {
   margin: 0 0 24px;
   font-size: 24px;
   font-weight: 600;
   line-height: 1.25;
   color: var(--bt-accent-text);
}

/* Tabellenoptik analog zur Kasse */

body.woocommerce-order-received
table.woocommerce-table--order-details {
   width: 100%;
   margin: 0;
   background: #fff;
   border: 0;
   border-collapse: collapse;
}

body.woocommerce-order-received
table.woocommerce-table--order-details th,
body.woocommerce-order-received
table.woocommerce-table--order-details td {
   padding: 16px 10px;
   background: #fff;
   border: 0;
   border-bottom: 1px solid var(--bt-border-08);
   color: var(--bt-accent-text);
   vertical-align: top;
}

/* Dankesseite – Produktnamen */

body.woocommerce-order-received
.woocommerce-table--order-details .product-name a {
   color: var(--bt-accent-text);
   font-size: 18px;
   font-weight: 600;
   line-height: 1.4;
   text-decoration: underline;
   text-decoration-thickness: 2px;
   text-underline-offset: 4px;
   overflow-wrap: anywhere;
}

body.woocommerce-order-received
.woocommerce-table--order-details .product-name a:hover {
   color: var(--bt-accent-secondary);
}

/* Dankesseite – Produkteigenschaften */

body.woocommerce-order-received
.woocommerce-table--order-details .wc-item-meta {
   margin: 2px 0 0;
   padding: 0;
   list-style: none;
   font-size: 14px;
   line-height: 1.5;
}

/* Länge und Einzelpreis hervorheben */

body.woocommerce-order-received
.wc-item-meta > li:has(.bt-item-length) {
   font-size: 16px;
   font-weight: 600;
}

/* Abstand nach der Montageinformation */

body.woocommerce-order-received
.wc-item-meta > li:has(.bt-item-montage) {
   margin-bottom: 8px;
}

/* Beträge rechtsbündig */

body.woocommerce-order-received
.woocommerce-table--order-details .product-total,
body.woocommerce-order-received
.woocommerce-table--order-details tfoot td {
   text-align: right;
}

body.woocommerce-order-received
.woocommerce-table--order-details .product-total {
   white-space: nowrap;
   font-size: 18px;
}

/* Gesamtsumme */

body.woocommerce-order-received
.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-order-received
.woocommerce-table--order-details tfoot tr:last-child td {
   font-size: 22px;
   font-weight: 700;
   padding-top: 20px;
   padding-bottom: 20px;
}


/* Rechnungs- und Lieferadresse */

body.woocommerce-order-received
.woocommerce-customer-details .woocommerce-columns {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 24px;
}

body.woocommerce-order-received
.woocommerce-customer-details .woocommerce-columns::before,
body.woocommerce-order-received
.woocommerce-customer-details .woocommerce-columns::after {
   display: none;
}

body.woocommerce-order-received
.woocommerce-customer-details .woocommerce-column {
   float: none;
   width: 100%;
   min-width: 0;
   margin: 0;
   padding: 24px;
   box-sizing: border-box;
   background: #fff;
   border: 1px solid var(--bt-border-08);
   border-radius: var(--bt-radius-contain-12);
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
}

body.woocommerce-order-received
.woocommerce-customer-details address {
   padding: 0;
   margin: 0;
   border: 0;
   font-style: normal;
   line-height: 1.65;
   overflow-wrap: anywhere;
}

/* Responsive */

@media (max-width: 768px) {

   body.woocommerce-order-received
   ul.woocommerce-order-overview {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
   }

   body.woocommerce-order-received
   ul.woocommerce-order-overview > li,
   body.woocommerce-order-received
   .woocommerce-order-details,
   body.woocommerce-order-received
   .woocommerce-customer-details .woocommerce-column {
      padding: 16px;
   }

   body.woocommerce-order-received
   .woocommerce-customer-details .woocommerce-columns {
      grid-template-columns: minmax(0, 1fr);
   }

   body.woocommerce-order-received
   table.woocommerce-table--order-details th,
   body.woocommerce-order-received
   table.woocommerce-table--order-details td {
      padding: 12px 6px;
   }

   body.woocommerce-order-received
   .woocommerce-table--order-details .product-name a,
   body.woocommerce-order-received
   .woocommerce-table--order-details .product-total {
      font-size: 15px; 
   }
}