/* ==========================================================================
   Loftino · Warenkorb, Checkout, Bestellbestätigung, Mein Konto
   Nur Gestaltung. Inhalte, Rechtstexte, Checkboxen und der Bestell-Button
   kommen unverändert von WooCommerce / German Market / Flatsome.
   ========================================================================== */

body.loftino-shop {
  --lfs-ink: #211E1A;
  --lfs-ink-2: #4A443C;
  --lfs-muted: #6F665B;
  --lfs-paper: #FAF6EE;
  --lfs-sand: #F1EADD;
  --lfs-line: #E2D8C8;
  --lfs-white: #FFFFFF;
  --lfs-oak: #A8763F;
  --lfs-oak-2: #8A5F30;
  --lfs-oak-3: #74501F;
  --lfs-display: 'Loftino Inter Tight', 'Loftino Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --lfs-text: 'Loftino Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --lfs-r: 16px;
}

body.loftino-shop,
body.loftino-shop #wrapper,
body.loftino-shop #main { background: var(--lfs-paper); }

body.loftino-shop #main,
body.loftino-shop #main p,
body.loftino-shop #main td,
body.loftino-shop #main th,
body.loftino-shop #main label,
body.loftino-shop #main input,
body.loftino-shop #main select,
body.loftino-shop #main textarea,
body.loftino-shop #main li {
  font-family: var(--lfs-text);
  -webkit-font-smoothing: antialiased;
}
body.loftino-shop #main { color: var(--lfs-ink-2); }

body.loftino-shop #main h1,
body.loftino-shop #main h2,
body.loftino-shop #main h3,
body.loftino-shop .page-title,
body.loftino-shop .cart_totals h2,
body.loftino-shop #order_review_heading,
body.loftino-shop .woocommerce-billing-fields h3,
body.loftino-shop .woocommerce-shipping-fields h3,
body.loftino-shop .woocommerce-additional-fields h3,
body.loftino-shop .woocommerce-order-details__title,
body.loftino-shop .woocommerce-column__title {
  color: var(--lfs-ink);
  font-family: var(--lfs-display);
  font-weight: 600;
  letter-spacing: -.02em;
  text-transform: none;
}
body.loftino-shop #main h3,
body.loftino-shop .cart_totals h2,
body.loftino-shop #order_review_heading,
body.loftino-shop .woocommerce-billing-fields h3,
body.loftino-shop .woocommerce-shipping-fields h3 { font-size: 22px; }

body.loftino-shop #main a:not(.button) { color: var(--lfs-oak-2); }
body.loftino-shop #main a:not(.button):hover { color: var(--lfs-oak-3); }

/* ---------- Flatsome: Schritte Warenkorb › Kasse › Bestellung ---------- */
body.loftino-shop .checkout-page-title,
body.loftino-shop .page-title.checkout-page-title { background: var(--lfs-sand) !important; border: 0; }
body.loftino-shop .checkout-breadcrumbs a,
body.loftino-shop .checkout-breadcrumbs > * {
  color: var(--lfs-muted) !important;
  font-family: var(--lfs-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.loftino-shop .checkout-breadcrumbs a.current,
body.loftino-shop .checkout-breadcrumbs .current { color: var(--lfs-ink) !important; }
body.loftino-shop .checkout-breadcrumbs .divider { color: var(--lfs-line) !important; }

/* ---------- Karten / Boxen ---------- */
body.loftino-shop .cart_totals,
body.loftino-shop .cart-collaterals .cart_totals,
body.loftino-shop .is-well,
body.loftino-shop .col-inner.has-border,
body.loftino-shop #order_review,
body.loftino-shop .woocommerce-order,
body.loftino-shop .woocommerce-MyAccount-content,
body.loftino-shop .woocommerce-form-login,
body.loftino-shop .woocommerce-form-register {
  border: 1px solid var(--lfs-line) !important;
  border-radius: var(--lfs-r);
  background: var(--lfs-white);
  box-shadow: 0 1px 2px rgba(33, 30, 26, .04);
}
body.loftino-shop .cart_totals,
body.loftino-shop .is-well,
body.loftino-shop .woocommerce-order,
body.loftino-shop .woocommerce-MyAccount-content { padding: clamp(18px, 2.4vw, 28px) !important; }
body.loftino-shop .is-well #order_review,
body.loftino-shop .is-well .cart_totals { border: 0 !important; box-shadow: none; padding: 0 !important; }
/* Umrandete Bestell-Box (Kasse / „Bestellung prüfen“): Innenabstand, damit Überschrift & Tabelle nicht am Rahmen kleben */
body.loftino-shop .col-inner.has-border,
body.loftino-shop #order_review:has(> h2, > h3, > #order_review_heading) { padding: clamp(18px, 2.4vw, 28px) !important; }
body.loftino-shop .col-inner.has-border #order_review { border: 0 !important; border-radius: 0; box-shadow: none !important; padding: 0 !important; }
body.loftino-shop #order_review_heading { margin: 0 0 12px !important; padding: 0 !important; }

/* ---------- Tabellen ---------- */
body.loftino-shop .shop_table { border: 0 !important; border-collapse: collapse; }
body.loftino-shop .shop_table th,
body.loftino-shop .shop_table td { text-align: left; padding: 14px 8px; border: 0; border-bottom: 1px solid var(--lfs-line) !important; background: none; }
body.loftino-shop .shop_table thead th {
  color: var(--lfs-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.loftino-shop .shop_table .product-name a { color: var(--lfs-ink) !important; font-weight: 600; text-decoration: none; }
body.loftino-shop .shop_table .product-thumbnail img { width: 84px; border-radius: 10px; }
body.loftino-shop .shop_table .amount { color: var(--lfs-ink); font-weight: 600; }
body.loftino-shop .shop_table tr.order-total th,
body.loftino-shop .shop_table tr.order-total td { border-bottom: 0 !important; padding-top: 18px; }
body.loftino-shop .shop_table tr.order-total td > strong .amount,
body.loftino-shop .shop_table tr.order-total td > .woocommerce-Price-amount,
body.loftino-shop .shop_table tr.order-total td > strong > .woocommerce-Price-amount { font-family: var(--lfs-display); font-size: 24px; letter-spacing: -.02em; }
body.loftino-shop .shop_table small,
body.loftino-shop .shop_table .includes_tax,
body.loftino-shop .shop_table .tax_label { color: var(--lfs-muted); font-size: 12.5px; font-weight: 400; }
body.loftino-shop a.remove {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--lfs-line) !important;
  border-radius: 50%;
  color: var(--lfs-muted) !important;
  font-size: 18px;
  line-height: 1;
}
body.loftino-shop a.remove:hover { border-color: var(--lfs-oak) !important; background: var(--lfs-sand) !important; color: var(--lfs-oak-3) !important; }

/* ---------- Formularfelder ---------- */
body.loftino-shop #main input[type="text"],
body.loftino-shop #main input[type="email"],
body.loftino-shop #main input[type="tel"],
body.loftino-shop #main input[type="number"],
body.loftino-shop #main input[type="password"],
body.loftino-shop #main textarea,
body.loftino-shop #main select,
body.loftino-shop .select2-container .select2-selection--single {
  min-height: 48px;
  border: 1.5px solid var(--lfs-line) !important;
  border-radius: 10px !important;
  background-color: var(--lfs-white);
  box-shadow: none !important;
  color: var(--lfs-ink);
  font-size: 16px;
  transition: border-color .2s;
}
body.loftino-shop .select2-container .select2-selection--single .select2-selection__rendered { line-height: 45px; }
body.loftino-shop .select2-container .select2-selection--single .select2-selection__arrow { height: 45px; }
body.loftino-shop #main input:focus,
body.loftino-shop #main textarea:focus,
body.loftino-shop #main select:focus,
body.loftino-shop .select2-container--open .select2-selection--single { border-color: var(--lfs-ink) !important; outline: none; }
body.loftino-shop #main .form-row label { color: var(--lfs-ink-2); font-size: 14px; font-weight: 500; }
body.loftino-shop #main .form-row .required { color: var(--lfs-oak-2); text-decoration: none; }
body.loftino-shop #main input[type="checkbox"],
body.loftino-shop #main input[type="radio"] { width: 18px; height: 18px; accent-color: var(--lfs-oak-2); vertical-align: -3px; }
body.loftino-shop .woocommerce-invalid input.input-text { border-color: #B3261E !important; }

/* Menge (Flatsome-Plus/Minus) */
body.loftino-shop .quantity .qty { width: 56px; min-height: 42px !important; border-radius: 10px !important; text-align: center; }
body.loftino-shop .ux-quantity__button,
body.loftino-shop .quantity .button.minus,
body.loftino-shop .quantity .button.plus {
  min-height: 42px;
  border: 1.5px solid var(--lfs-line) !important;
  border-radius: 10px !important;
  background: var(--lfs-white) !important;
  color: var(--lfs-ink) !important;
}

/* ---------- Buttons ---------- */
body.loftino-shop #main .button,
body.loftino-shop #main button.button,
body.loftino-shop #main input.button {
  min-height: 46px;
  padding: 0 22px;
  border: 1.5px solid var(--lfs-line) !important;
  border-radius: 12px !important;
  background: var(--lfs-white) !important;
  box-shadow: none !important;
  color: var(--lfs-ink) !important;
  font-family: var(--lfs-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 43px;
  text-transform: none;
  transition: border-color .2s, background .2s, color .2s;
}
body.loftino-shop #main .button:hover,
body.loftino-shop #main button.button:hover { border-color: var(--lfs-ink) !important; }

/* Hauptaktionen: zur Kasse, zahlungspflichtig bestellen */
body.loftino-shop #main .checkout-button,
body.loftino-shop #main .wc-proceed-to-checkout .button,
body.loftino-shop #main #place_order,
body.loftino-shop #main .button.alt,
body.loftino-shop #main button.alt {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-color: var(--lfs-oak-2) !important;
  background: var(--lfs-oak-2) !important;
  color: #fff !important;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}
body.loftino-shop #main .checkout-button:hover,
body.loftino-shop #main #place_order:hover,
body.loftino-shop #main .button.alt:hover { border-color: var(--lfs-oak-3) !important; background: var(--lfs-oak-3) !important; }
body.loftino-shop #main .button:disabled,
body.loftino-shop #main .button.disabled { opacity: .5; }

/* Gutschein */
body.loftino-shop .coupon { display: flex; flex-wrap: wrap; gap: 8px; }
body.loftino-shop .coupon .input-text { flex: 1 1 180px; }

/* ---------- Zahlungsarten ---------- */
body.loftino-shop #payment { border-radius: var(--lfs-r); background: transparent !important; }
body.loftino-shop #payment ul.payment_methods { padding: 0 !important; border: 0 !important; }
body.loftino-shop #payment ul.payment_methods > li {
  margin: 0 0 8px;
  padding: 14px 16px;
  border: 1.5px solid var(--lfs-line);
  border-radius: 12px;
  background: var(--lfs-white);
  list-style: none;
  transition: border-color .2s;
}
body.loftino-shop #payment ul.payment_methods > li:has(input:checked) { border-color: var(--lfs-ink); }
body.loftino-shop #payment ul.payment_methods > li label { color: var(--lfs-ink); font-weight: 600; }
body.loftino-shop #payment ul.payment_methods > li img { max-height: 24px; margin-left: 6px; vertical-align: middle; }
body.loftino-shop #payment div.payment_box {
  margin: 10px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 10px;
  background: var(--lfs-sand) !important;
  color: var(--lfs-ink-2);
  font-size: 14px;
}
body.loftino-shop #payment div.payment_box::before { display: none !important; }
body.loftino-shop #payment .place-order { padding: 16px 0 0 !important; }

/* Rechtstexte / Checkboxen (WooCommerce + German Market) – nur Lesbarkeit, Inhalt unverändert */
body.loftino-shop .woocommerce-terms-and-conditions-wrapper,
body.loftino-shop #payment .place-order p.form-row,
body.loftino-shop #main [class*="german-market"],
body.loftino-shop #main [class*="wgm-"] { color: var(--lfs-ink-2); font-size: 14px; line-height: 1.55; }
body.loftino-shop .woocommerce-terms-and-conditions-wrapper .form-row,
body.loftino-shop #payment .place-order p.form-row { margin-bottom: 10px; }
body.loftino-shop .woocommerce-privacy-policy-text { color: var(--lfs-muted); font-size: 13px; }

/* ---------- Hinweise ---------- */
body.loftino-shop .woocommerce-message,
body.loftino-shop .woocommerce-info,
body.loftino-shop .woocommerce-error,
body.loftino-shop .message-container {
  border: 0 !important;
  border-left: 3px solid var(--lfs-oak) !important;
  border-radius: 10px;
  background: var(--lfs-white) !important;
  box-shadow: 0 1px 2px rgba(33, 30, 26, .05);
  color: var(--lfs-ink) !important;
  padding: 14px 18px !important;
}
body.loftino-shop .woocommerce-error { border-left-color: #B3261E !important; }

/* ---------- Leerer Warenkorb ---------- */
body.loftino-shop .cart-empty,
body.loftino-shop .woocommerce-info.cart-empty { font-family: var(--lfs-display); font-size: 20px; text-align: center; }
body.loftino-shop .return-to-shop { text-align: center; }

/* ---------- Bestellbestätigung ---------- */
body.loftino-shop .woocommerce-thankyou-order-received {
  color: var(--lfs-ink);
  font-family: var(--lfs-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -.02em;
}
body.loftino-shop ul.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 20px 0 28px !important;
  padding: 0;
}
body.loftino-shop ul.woocommerce-order-overview li {
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid var(--lfs-line) !important;
  border-radius: 12px;
  background: var(--lfs-sand);
  color: var(--lfs-muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  list-style: none;
}
body.loftino-shop ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; color: var(--lfs-ink); font-size: 16px; letter-spacing: 0; text-transform: none; }

/* ---------- Mein Konto ---------- */
body.loftino-shop .woocommerce-MyAccount-navigation ul { padding: 0; border: 0; }
body.loftino-shop .woocommerce-MyAccount-navigation li { list-style: none; border: 0 !important; }
body.loftino-shop .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--lfs-ink-2) !important; font-weight: 500; }
body.loftino-shop .woocommerce-MyAccount-navigation li.is-active a { background: var(--lfs-sand); color: var(--lfs-ink) !important; }

/* ---------- Hilfe-Box (Loftino) ---------- */
.lfs-help {
  box-sizing: border-box;
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: #F1EADD;
  color: #4A443C;
  font-family: 'Loftino Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
}
.lfs-help p { margin: 0; }
.lfs-help__label { margin-bottom: 8px !important; color: #6F665B; font-size: 13px; font-weight: 500; }
.lfs-help__pay { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px !important; padding: 0; }
.lfs-help__pay li { margin: 0; padding: 5px 10px; border: 1px solid #E2D8C8; border-radius: 8px; background: #fff; color: #211E1A; font-size: 12.5px; font-weight: 600; list-style: none; }
.lfs-help__note { color: #6F665B; font-size: 13px; }
.lfs-help__contact { margin-top: 14px; padding-top: 14px; border-top: 1px solid #E2D8C8; }
.lfs-help__contact strong { color: #211E1A; }
.lfs-help__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lfs-help__btns a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1.5px solid #E2D8C8;
  border-radius: 10px;
  background: #fff;
  color: #211E1A !important;
  font-weight: 600;
  text-decoration: none;
}
.lfs-help__btns a:hover { border-color: #211E1A; }
.lfs-ico { width: 17px; height: 17px; flex: 0 0 17px; }

/* ---------- Mini-Warenkorb (Flatsome-Header, überall) ---------- */
.widget_shopping_cart { font-family: 'Loftino Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #211E1A; }
.widget_shopping_cart .mini_cart_item a:not(.remove),
.widget_shopping_cart .woocommerce-mini-cart-item a:not(.remove) { color: #211E1A !important; font-weight: 600; line-height: 1.3; }
.widget_shopping_cart .mini_cart_item a:not(.remove):hover { color: #8A5F30 !important; }
.widget_shopping_cart .variation,
.widget_shopping_cart dl.variation { color: #6F665B; font-size: 12.5px; }
.widget_shopping_cart .quantity { color: #6F665B; font-size: 13px; }
.widget_shopping_cart .quantity .amount { color: #211E1A; font-weight: 700; }
.widget_shopping_cart .woocommerce-mini-cart__total,
.widget_shopping_cart .total { color: #211E1A; }
.widget_shopping_cart .woocommerce-mini-cart__total .amount,
.widget_shopping_cart .total .amount { color: #211E1A; font-weight: 700; }
.widget_shopping_cart .remove { border-color: #E2D8C8 !important; color: #6F665B !important; }
.widget_shopping_cart .remove:hover { border-color: #211E1A !important; color: #211E1A !important; background: transparent !important; }
.widget_shopping_cart p:not(.buttons) a,
.widget_shopping_cart .wgm-info a,
.widget_shopping_cart .woocommerce-mini-cart__total + p a { color: #211E1A !important; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #A8763F; }
.widget_shopping_cart .buttons,
.widget_shopping_cart .woocommerce-mini-cart__buttons { display: grid; gap: 8px; }
.widget_shopping_cart .buttons .button,
.widget_shopping_cart .woocommerce-mini-cart__buttons .button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1.5px solid #211E1A !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
  color: #211E1A !important;
  font-family: 'Loftino Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  transition: background .2s, border-color .2s, color .2s;
}
.widget_shopping_cart .buttons .button:hover,
.widget_shopping_cart .woocommerce-mini-cart__buttons .button:hover { background: #F1EADD !important; }
.widget_shopping_cart .buttons .button.checkout,
.widget_shopping_cart .woocommerce-mini-cart__buttons .button.checkout {
  border-color: #8A5F30 !important;
  background: #8A5F30 !important;
  color: #FFFFFF !important;
}
.widget_shopping_cart .buttons .button.checkout:hover,
.widget_shopping_cart .woocommerce-mini-cart__buttons .button.checkout:hover { border-color: #74501F !important; background: #74501F !important; }

/* ---------- Block-Warenkorb/-Kasse (falls statt Shortcode verwendet) ---------- */
body.loftino-shop .wc-block-components-button:not(.is-link) {
  min-height: 56px;
  border-radius: 12px;
  background: #8A5F30;
  color: #fff;
}
body.loftino-shop .wc-block-components-text-input input,
body.loftino-shop .wc-block-components-combobox .components-combobox-control__input { border-radius: 10px !important; }

@media (max-width: 849px) {
  body.loftino-shop .shop_table .product-thumbnail img { width: 64px; }
  body.loftino-shop .woocommerce-cart-form,
  body.loftino-shop .cart_totals,
  body.loftino-shop .is-well { padding: 16px !important; }
}

/* Robustheit gegen Theme-Vorgaben */
body.loftino-shop .shop_table tr,
body.loftino-shop .shop_table tbody tr:nth-child(odd),
body.loftino-shop .shop_table tbody tr:nth-child(even),
body.loftino-shop .shop_table td,
body.loftino-shop .shop_table th { background: transparent !important; }
body.loftino-shop .quantity .qty { padding: 0 4px !important; color: var(--lfs-ink) !important; background: var(--lfs-white) !important; font-size: 16px !important; }


/* ==========================================================================
   Loftino Warenkorb-Icon im Flatsome-Header (ersetzt das Icon-Font-Symbol,
   die Anzahl-Blase von Flatsome bleibt erhalten). Abschalten: 'cart_icon' => false.
   ========================================================================== */
body.loftino-cart-icon .header-cart-link i[class*="icon-shopping"]::before,
body.loftino-cart-icon .cart-item i[class*="icon-shopping"]::before,
body.loftino-cart-icon .off-canvas-cart i[class*="icon-shopping"]::before {
  content: "" !important;
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.2 8h13.6l-.9 11.2a1.6 1.6 0 0 1-1.6 1.5H7.7a1.6 1.6 0 0 1-1.6-1.5z'/%3E%3Cpath d='M8.8 10.5V6.8a3.2 3.2 0 0 1 6.4 0v3.7'/%3E%3Cpath d='M10 13.5v4.2M12 13.5v4.2M14 13.5v4.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.2 8h13.6l-.9 11.2a1.6 1.6 0 0 1-1.6 1.5H7.7a1.6 1.6 0 0 1-1.6-1.5z'/%3E%3Cpath d='M8.8 10.5V6.8a3.2 3.2 0 0 1 6.4 0v3.7'/%3E%3Cpath d='M10 13.5v4.2M12 13.5v4.2M14 13.5v4.2'/%3E%3C/svg%3E") center / contain no-repeat;
  vertical-align: -0.12em;
}
body.loftino-cart-icon .header-cart-link i[class*="icon-shopping"]::after {
  background-color: #8A5F30 !important;
  color: #fff !important;
  font-family: 'Loftino Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
}


/* ---------- Summen: Steuer- und Zusatzzeilen klein, Beträge rechtsbündig ---------- */
body.loftino-shop .cart_totals .shop_table th,
body.loftino-shop #order_review .shop_table th,
body.loftino-shop .woocommerce-checkout-review-order-table th { text-align: left !important; }
body.loftino-shop .cart_totals .shop_table td,
body.loftino-shop #order_review .shop_table td,
body.loftino-shop .woocommerce-checkout-review-order-table td,
body.loftino-shop .woocommerce-cart-form .product-subtotal,
body.loftino-shop .woocommerce-cart-form .product-price { text-align: right !important; }
/* alles, was „enthält … MwSt.“ o. Ä. ausgibt (WooCommerce + German Market) */
body.loftino-shop .shop_table small,
body.loftino-shop .shop_table small .amount,
body.loftino-shop .shop_table .includes_tax,
body.loftino-shop .shop_table .includes_tax .amount,
body.loftino-shop .shop_table [class*="tax"] .amount,
body.loftino-shop .shop_table .product-tax {
  display: inline;
  color: var(--lfs-muted) !important;
  font-family: var(--lfs-text) !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.5;
}
body.loftino-shop .shop_table td small,
body.loftino-shop .shop_table td .includes_tax { display: block; margin-top: 2px; }

/* Montage-Position im Warenkorb */
body.loftino-shop .lfm-qty { display: inline-block; min-width: 40px; color: var(--lfs-ink); font-weight: 600; text-align: center; }
body.loftino-shop .shop_table dl.variation { margin: 4px 0 0; color: var(--lfs-muted); font-size: 13px; }
body.loftino-shop .shop_table dl.variation dt, body.loftino-shop .shop_table dl.variation dd { display: inline; margin: 0; }
body.loftino-shop .shop_table dl.variation dd p { display: inline; margin: 0; }


/* ---------- Warenkorb-Tabelle (v2.3.2) ----------
   Feste Spaltenbreiten: Inhalte brechen um, statt die Tabelle über die Spalte hinaus zu schieben. */
body.loftino-shop .woocommerce-cart-form { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
body.loftino-shop .woocommerce-cart-form .shop_table { width: 100% !important; max-width: 100%; table-layout: auto; }
body.loftino-shop .woocommerce-cart-form .shop_table th,
body.loftino-shop .woocommerce-cart-form .shop_table td { white-space: normal !important; overflow-wrap: normal; hyphens: auto; }
body.loftino-shop .woocommerce-cart-form td.product-remove { width: 36px; padding-right: 0; }
body.loftino-shop .woocommerce-cart-form td.product-thumbnail { width: 64px; padding-right: 4px; }
body.loftino-shop .woocommerce-cart-form td.product-name { min-width: 120px; }
body.loftino-shop .woocommerce-cart-form td.product-quantity { white-space: nowrap !important; }
/* Einzelpreis ist bei mittleren Breiten doppelt (steht auch in der Zwischensumme) – ausblenden, damit alles passt */
@media (min-width: 850px) and (max-width: 1199px) {
  body.loftino-shop .woocommerce-cart-form .product-price { display: none; }
}
body.loftino-shop .woocommerce-cart-form .product-thumbnail img { width: 56px !important; }
body.loftino-shop .woocommerce-cart-form .product-price .amount,
body.loftino-shop .woocommerce-cart-form .product-subtotal .amount { white-space: nowrap; }
body.loftino-shop .woocommerce-cart-form .product-name { font-size: 15px; line-height: 1.35; }
body.loftino-shop .woocommerce-cart-form dl.variation,
body.loftino-shop .woocommerce-cart-form dl.variation * { font-size: 13px !important; }

/* Steuerzeile unter dem Zwischenbetrag (WooCommerce + German Market): klein, eigene Zeile */
body.loftino-shop .woocommerce-cart-form .product-subtotal > *:not(:first-child),
body.loftino-shop .woocommerce-cart-form .product-subtotal [class*="tax"],
body.loftino-shop .woocommerce-cart-form .product-subtotal [class*="wgm"],
body.loftino-shop .woocommerce-cart-form .product-subtotal small {
  display: block;
  margin-top: 2px;
  color: var(--lfs-muted) !important;
  font-family: var(--lfs-text) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45;
}
body.loftino-shop .woocommerce-cart-form .product-subtotal > *:not(:first-child) .amount,
body.loftino-shop .woocommerce-cart-form .product-subtotal [class*="tax"] .amount,
body.loftino-shop .woocommerce-cart-form .product-subtotal [class*="wgm"] .amount {
  color: inherit !important; font-size: inherit !important; font-weight: 400 !important; white-space: nowrap;
}

/* Hinweiszeile von German Market („Hier erfährst du mehr zu …“) als normaler Satz */
body.loftino-shop .woocommerce-cart-form tr:not(.cart_item) td { text-align: left !important; }
body.loftino-shop .woocommerce-cart-form tr:not(.cart_item) td a,
body.loftino-shop .woocommerce-cart-form tr:not(.cart_item) td span { display: inline !important; }

/* Menge: Flatsome-Plus/Minus kompakt */
body.loftino-shop .woocommerce-cart-form .quantity { display: inline-flex; align-items: center; gap: 4px; }
body.loftino-shop .woocommerce-cart-form .quantity .button.minus,
body.loftino-shop .woocommerce-cart-form .quantity .button.plus,
body.loftino-shop .woocommerce-cart-form .ux-quantity__button { width: 36px; min-width: 36px; min-height: 38px !important; padding: 0 !important; line-height: 36px !important; }
body.loftino-shop .woocommerce-cart-form .quantity .qty { width: 42px; min-height: 38px !important; }

/* Buttons als Block mit fester Höhe (auch Links wie „Einkauf fortsetzen“) */
body.loftino-shop #main a.button,
body.loftino-shop #main .button { display: inline-flex !important; align-items: center; justify-content: center; vertical-align: middle; }

/* Tablet/Handy: WooCommerce stapelt die Tabelle – feste Breiten wieder lösen */
@media (max-width: 849px) {
  body.loftino-shop .woocommerce-cart-form .shop_table td { width: auto !important; }
}

body.loftino-shop #main a.button,
body.loftino-shop #main a.button:hover { text-decoration: none !important; }
body.loftino-shop .woocommerce-cart-form td.actions .continue-shopping { display: inline-block; margin: 0 8px 8px 0; }
body.loftino-shop .shop_table dl.variation dt { margin-right: 4px !important; }

/* Kontrollanzeige (nur Admins): grün = aktuelles CSS geladen */
.lfs-ver { background: #2E6B3A !important; }
.lfs-ver__css { font-size: 0; }
.lfs-ver__css::after { content: "2.3.3 aktiv"; font-size: 11px; }

/* Vereinfachter Versand im Warenkorb */
body.loftino-shop .cart_totals .woocommerce-shipping-destination,
body.loftino-shop .cart_totals .woocommerce-shipping-calculator,
body.loftino-shop .cart_totals .shipping-calculator-button { display: none !important; }
body.loftino-shop .woocommerce-shipping-methods { margin: 0 !important; padding: 0 !important; list-style: none; }
body.loftino-shop .woocommerce-shipping-methods li { margin: 0 !important; }
body.loftino-shop .lfs-ship-note { display: block; margin-top: 2px; color: var(--lfs-muted); font-size: 12.5px; font-weight: 400; }
body.loftino-shop .cart_totals p:empty { display: none; }
.lfs-ver__css::after { content: "4.15.0 aktiv"; }

/* ==========================================================================
   Mobiles Menü (Flatsome Off-Canvas) im Loftino-Design – überall
   ========================================================================== */
.off-canvas .mfp-content,
.off-canvas-left .mfp-content,
.off-canvas-right .mfp-content,
#main-menu.mobile-sidebar { background: #FAF6EE !important; }
.off-canvas-left .mfp-content, .off-canvas-right .mfp-content { width: min(86vw, 380px) !important; box-shadow: 0 0 60px rgba(33, 30, 26, .18); }
.mfp-bg.off-canvas { background: #211E1A !important; }
.mfp-bg.off-canvas.mfp-ready { opacity: .45 !important; }
.off-canvas .mfp-close { color: #211E1A !important; opacity: 1 !important; font-size: 30px !important; }
#main-menu .sidebar-menu { padding: 70px 0 28px !important; }
#main-menu .nav-sidebar { margin: 0 !important; }
#main-menu .nav-sidebar > li { margin: 0 24px !important; border: 0 !important; border-bottom: 1px solid #E2D8C8 !important; }
#main-menu .nav-sidebar > li:not(.lfn-contact) > a {
  display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 0 !important; padding: 15px 0 !important;
  color: #211E1A !important;
  font-family: 'Loftino Heading', 'Loftino Inter Tight', 'Loftino Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 21px !important; font-weight: 600 !important; letter-spacing: -.015em !important; line-height: 1.2 !important;
  text-transform: none !important;
  transition: color .2s, padding .25s;
}
#main-menu .nav-sidebar > li:not(.lfn-contact) > a::after {
  content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-right: 4px;
  border-top: 1.6px solid #A8763F; border-right: 1.6px solid #A8763F; transform: rotate(45deg); opacity: .8;
}
#main-menu .nav-sidebar > li:not(.lfn-contact) > a:hover,
#main-menu .nav-sidebar > li.current-menu-item > a,
#main-menu .nav-sidebar > li.current_page_item > a { color: #8A5F30 !important; }
#main-menu .nav-sidebar > li:not(.lfn-contact) > a:active { padding-left: 4px !important; }
#main-menu .nav-sidebar .sub-menu a { padding: 8px 0 8px 12px !important; color: #4A443C !important; font-size: 16px !important; text-transform: none !important; }
#main-menu .nav-sidebar .toggle { color: #A8763F !important; }
/* Flatsome-Extras im Menü (Suche, Konto, Social) ruhiger */
#main-menu .nav-sidebar > li.header-search-form, #main-menu .nav-sidebar > li.html { border-bottom: 0 !important; }
#main-menu .nav-sidebar > li.account-item > a, #main-menu .nav-sidebar > li.header-newsletter-item > a { font-size: 16px !important; font-weight: 500 !important; }

/* Kontaktblock unten im mobilen Menü */
#main-menu .nav-sidebar > li.lfn-contact { margin-top: 26px !important; padding: 18px; border: 1px solid #E2D8C8 !important; border-radius: 16px; background: #fff; }
.lfn-contact__title { margin: 0 0 12px !important; color: #211E1A; font: 600 15px/1.35 'Loftino Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.lfn-contact__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#main-menu .lfn-btn {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px !important; padding: 0 12px !important;
  border: 1.5px solid #E2D8C8; border-radius: 12px; background: #FAF6EE;
  color: #211E1A !important; font: 600 14px/1 'Loftino Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  text-transform: none !important; letter-spacing: 0 !important;
}
#main-menu .lfn-btn--wa { grid-column: 1 / -1; border-color: #8A5F30; background: #8A5F30; color: #fff !important; }
.lfn-ico { width: 18px; height: 18px; }
.lfn-contact__mail { margin: 12px 0 0 !important; color: #6F665B; font: 400 12.5px/1.4 'Loftino Inter', sans-serif; text-align: center; }
