/*
 * SmartGreens – Warenkorb, Kasse, Mein Konto im Startseiten-Design (Erika 2026-10-23)
 * Warenkorb und Kasse sind WooCommerce-Blöcke (React, Klassen wc-block-*), Mein Konto ist das klassische Template.
 * Tokens aus style.css (--sg-*). Alle Regeln mit #top wegen Enfold-Spezifität.
 */

/* ---------- Gemeinsam: Kopf (Überzeile + H1), Rahmen ---------- */
#top .sg-shop-page-head { margin: var(--sg-space-3) 0 var(--sg-space-5); }
#top .sg-shop-page-head .sg-eyebrow { margin: 0 0 6px; }
#top .sg-shop-page-head h1 { margin: 0; color: var(--sg-green); font-size: var(--sg-h2); line-height: 1.1; }
#top .sg-shop-page-head .sg-page-lead { margin: 10px 0 0; max-width: 60ch; color: var(--sg-green); font-size: var(--sg-lead); line-height: 1.45; }
#top .sg-shop-page-head .sg-page-lead a { color: var(--sg-green); text-decoration: underline; text-underline-offset: 3px; }

/* Block-Container nutzen die volle Bühne, alignwide-Ausreißer zurückholen */
#top .wp-block-woocommerce-cart.alignwide,
#top .wp-block-woocommerce-checkout.alignwide { margin-left: 0; margin-right: 0; max-width: none; width: auto; }
#top .wp-block-woocommerce-cart,
#top .wp-block-woocommerce-checkout,
#top.woocommerce-account .woocommerce { font-family: var(--sg-font); color: var(--sg-text); }

/* ---------- Block-Typografie ---------- */
#top .wc-block-components-title,
#top .wc-block-components-checkout-step__title,
#top .wc-block-components-totals-item__label,
#top .wc-block-components-product-name,
#top .wc-block-components-checkout-order-summary__title-text { font-family: var(--sg-font); color: var(--sg-green); }
#top .wc-block-components-title { font-size: var(--sg-h3); line-height: 1.2; margin: 0 0 var(--sg-space-2); }
#top .wc-block-components-checkout-step__title { font-size: var(--sg-h3); line-height: 1.2; margin: 0 0 var(--sg-space-2); font-weight: 700; }
#top .wc-block-components-checkout-step { padding-left: 0; margin-bottom: var(--sg-space-5); }
#top .wc-block-components-checkout-step__description { color: var(--sg-muted); font-size: var(--sg-body); margin-bottom: var(--sg-space-2); }
#top .wc-block-components-checkout-step__container { max-width: none; }
#top .wc-block-components-product-name { font-size: var(--sg-body); font-weight: 600; line-height: 1.35; text-decoration: none; }
#top .wc-block-components-product-name:hover { color: var(--sg-accent); }
#top .wc-block-components-product-metadata,
#top .wc-block-components-product-details,
#top .wc-block-components-product-metadata__description { color: var(--sg-muted); font-size: var(--sg-meta); line-height: 1.45; }
#top .wc-block-components-product-metadata__description { margin: 4px 0 0; }
#top .wc-block-components-product-price,
#top .wc-block-components-formatted-money-amount { font-family: var(--sg-font); font-weight: 600; color: var(--sg-text); }

/* Germanized-Zusätze (Grundpreis, Inhalt, Lieferzeit, Steuerhinweis) im Warenkorb/Kasse */
#top .wc-gzd-cart-item-unit-price,
#top .wc-gzd-cart-item-units,
#top .wc-gzd-cart-item-delivery-time,
#top .wc-gzd-additional-info,
#top .wc-block-components-product-metadata .wc-gzd-additional-info { display: block; margin: 2px 0 0; color: var(--sg-muted); font-size: var(--sg-meta); font-weight: 400; line-height: 1.4; }
#top .wc-gzd-cart-item-unit-price .unit,
#top .wc-gzd-additional-info .unit { float: none; display: inline; }
#top .wc-block-components-product-metadata .price-unit { white-space: nowrap; }
/* Germanized-Details im Block: Feldnamen (gzd-unit_price:) und Trenner ausblenden, Einheit nicht floaten, je Zeile ein Eintrag */
#top .wc-block-components-product-details .wc-block-components-product-details__gzd-unit-price,
#top .wc-block-components-product-details .wc-block-components-product-details__gzd-units,
#top .wc-block-components-product-details .wc-block-components-product-details__gzd-delivery-time { display: block; margin: 2px 0 0; color: var(--sg-muted); font-size: var(--sg-meta); line-height: 1.4; }
#top .wc-block-components-product-details [class*="__gzd-"] .wc-block-components-product-details__name,
#top .wc-block-components-product-details [class*="__gzd-"] > span[aria-hidden="true"] { display: none; }
#top .wc-block-components-product-details .unit,
#top .wc-gzd-cart-info .unit { float: none; display: inline; font-size: inherit; margin: 0 !important; padding: 0; }   /* Germanized setzt margin-left 50px */
#top .wc-block-components-product-details .wc-gzd-cart-info .woocommerce-Price-amount { font-weight: 400; color: var(--sg-muted); }
#top .wc-block-components-product-details__gzd-unit-price .wc-block-components-product-details__value::before { content: "Grundpreis:\00a0"; }   /* geschütztes Leerzeichen: ein normales fällt im Enfold-Merge weg */

/* ---------- Warenkorb: Tabelle ---------- */
#top .wc-block-components-sidebar-layout.wc-block-cart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: var(--sg-space-8); align-items: start; }
#top .wc-block-cart .wc-block-cart__main,
#top .wc-block-cart .wc-block-cart__sidebar { width: auto; max-width: none; padding: 0; float: none; }
#top .wc-block-cart .wc-block-cart__main { padding-right: 0; }
/* Keine Rahmen und Linien in der Tabelle (Erika 2026-11-15): Enfold gibt th/td Rahmen oben/links/unten mit */
#top .wc-block-cart-items,
#top .wc-block-cart-items tr,
#top .wc-block-cart-items th,
#top .wc-block-cart-items td { border: 0; }
#top .wc-block-cart-items th { padding: 14px 0; color: var(--sg-muted); font-size: var(--sg-meta); font-weight: 600; letter-spacing: var(--sg-tracking-caps); text-transform: uppercase; }
#top .wc-block-cart-items td { padding: var(--sg-space-3) 0; vertical-align: top; }
#top .wc-block-cart-items__row + .wc-block-cart-items__row td { padding-top: var(--sg-space-2); }
#top .wc-block-cart-item__image { width: 112px; padding-right: var(--sg-space-3) !important; }
#top .wc-block-cart-item__image img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: var(--sg-radius-card); background: var(--sg-beige-light); }
#top .wc-block-cart-item__prices { margin: 4px 0 6px; }
#top .wc-block-cart-item__total { text-align: right; white-space: nowrap; }
#top .wc-block-cart-item__total .wc-block-components-product-price { font-size: 1.0625rem; }
#top .wc-block-cart-item__quantity { margin-top: var(--sg-space-2); display: flex; align-items: center; gap: var(--sg-space-2); }

/* Mengenfeld: wie auf der Produktseite (−  Zahl  +, runde Ecken) */
#top .wc-block-components-quantity-selector { width: auto; min-width: 0; margin: 0; border-radius: var(--sg-radius-btn); background: var(--sg-white); box-shadow: inset 0 0 0 1px var(--sg-border); height: 44px; }
#top .wc-block-components-quantity-selector::after { display: none; }
#top .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { width: 48px; min-width: 48px; height: 44px; font-family: var(--sg-font); font-size: var(--sg-body); font-weight: 600; color: var(--sg-text); background: transparent; border: 0; box-shadow: none; text-align: center; padding: 0; }
#top .wc-block-components-quantity-selector button.wc-block-components-quantity-selector__button { width: 40px; min-width: 40px; height: 44px; padding: 0; color: var(--sg-green); font-size: 1.125rem; background: transparent; border: 0; box-shadow: none; opacity: 1; }
#top .wc-block-components-quantity-selector button.wc-block-components-quantity-selector__button:hover { color: var(--sg-accent); }
#top .wc-block-cart-item__remove-link { color: var(--sg-muted); font-size: var(--sg-meta); text-decoration: underline; text-underline-offset: 3px; margin: 0; }
#top .wc-block-cart-item__remove-link:hover { color: var(--sg-accent); }

/* ---------- Warenkorb: Summenkarte (Sidebar) ---------- */
#top .wc-block-cart__sidebar .wc-block-cart__totals-title { display: none; }
#top .wc-block-cart .wc-block-cart__sidebar { padding: var(--sg-space-4); background: var(--sg-beige-light); border-radius: var(--sg-radius-img); }
#top .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block::before { content: "Deine Bestellung"; display: block; margin: 0 0 var(--sg-space-2); color: var(--sg-green); font-size: var(--sg-h3); font-weight: 700; line-height: 1.2; }
/* Weniger Linien (Erika 2026-10-24, 2026-11-15): nur über der Gesamtsumme eine Linie */
#top .wc-block-cart .wp-block-woocommerce-cart-order-summary-block,
#top .wc-block-cart .wp-block-woocommerce-cart-order-summary-totals-block,
#top .wc-block-cart .wp-block-woocommerce-cart-order-summary-coupon-form-block { border: 0; }
#top .wc-block-components-totals-wrapper { padding: 8px 0; border-top: 0; }
#top .wc-block-components-totals-wrapper:has(.wc-block-components-totals-footer-item) { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(35,75,72,0.18); }
#top .wc-block-components-totals-wrapper:empty,
#top .wc-gzd-hide-total-wrapper { display: none; }
#top .wc-block-components-totals-wrapper::after { display: none; }
#top .wc-block-components-totals-item { padding: 0; font-size: var(--sg-body); color: var(--sg-text); }
#top .wc-block-components-totals-item__label { font-weight: 400; color: var(--sg-text); }
#top .wc-block-components-totals-item__value { font-weight: 600; }
#top .wc-block-components-totals-item__description { color: var(--sg-muted); font-size: var(--sg-meta); }
#top .wc-block-components-totals-footer-item { padding: 0; }
#top .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-weight: 700; color: var(--sg-green); font-size: 1.125rem; }
#top .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-weight: 700; color: var(--sg-green); font-size: 1.25rem; }
#top .wc-block-components-totals-footer-item-tax { color: var(--sg-muted); font-size: var(--sg-meta); }
#top .wc-block-components-totals-coupon { padding: 0 0 8px; }
#top .wp-block-woocommerce-cart-order-summary-coupon-form-block { margin-bottom: 8px; }
#top .wp-block-woocommerce-checkout-order-summary-coupon-form-block { border-bottom: 1px solid rgba(35,75,72,0.14); margin-bottom: 8px; }
#top .wc-block-components-totals-coupon-link,
#top .wc-block-components-panel__button { font-family: var(--sg-font); color: var(--sg-green); font-size: var(--sg-body); text-decoration: underline; text-underline-offset: 3px; }
#top .wc-block-components-panel__button { padding: 12px 0; }
#top .wc-block-components-totals-shipping__via { color: var(--sg-muted); font-size: var(--sg-meta); }
#top .wc-block-components-shipping-address,
#top .wc-block-components-totals-shipping__change-address__link { font-size: var(--sg-meta); color: var(--sg-muted); }

/* Zur Kasse: breiter Akzent-Button in der Karte */
#top .wc-block-cart__submit-container { padding: var(--sg-space-3) 0 0; background: transparent; }
#top .wc-block-cart__submit-container::before,
#top .wc-block-cart__submit-container::after { display: none; }
#top .wc-block-cart__submit-button,
#top .wc-block-cart__submit-button.contained,
#top .wc-block-components-checkout-place-order-button,
#top .wc-block-components-checkout-place-order-button.contained { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 16px 28px; font-size: 1.0625rem; font-weight: 600; border-radius: var(--sg-radius-btn); background: var(--sg-accent) !important; border-color: var(--sg-accent) !important; color: var(--sg-white) !important; opacity: 1; }
#top .wc-block-cart__submit-button:hover,
#top .wc-block-components-checkout-place-order-button:hover { background: var(--sg-accent-dark) !important; border-color: var(--sg-accent-dark) !important; }
#top .wc-gzd-checkout-submit { margin-top: var(--sg-space-3); }
#top .wc-block-cart__submit-container--sticky { background: var(--sg-offwhite); border-top: 1px solid var(--sg-border); }
#top .wc-block-cart .wc-block-components-express-payment { margin-bottom: var(--sg-space-2); }
#top .wc-block-cart__payment-method-icons,
#top .wp-block-woocommerce-cart-accepted-payment-methods-block { margin-top: var(--sg-space-2); }

/* Leerer Warenkorb */
#top .wp-block-woocommerce-empty-cart-block { padding: var(--sg-space-6) 0 var(--sg-space-8); text-align: left; }
#top .wp-block-woocommerce-empty-cart-block .with-empty-cart-icon::before,
#top .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title::before { display: none; }   /* nur das Smiley-Icon, nicht die Überschrift */
#top .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { margin: 0 0 var(--sg-space-2); color: var(--sg-green); font-size: var(--sg-h3); line-height: 1.2; text-align: left; }
#top .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title::after { display: none; }
#top .wp-block-woocommerce-empty-cart-block p { max-width: 60ch; color: var(--sg-text); font-size: var(--sg-body); margin: 0 0 var(--sg-space-3); text-align: left; }
#top .wp-block-woocommerce-empty-cart-block .wp-block-separator { display: none; }
#top .wp-block-woocommerce-empty-cart-block .wp-block-buttons { justify-content: flex-start; }
#top .wp-block-woocommerce-empty-cart-block .wp-block-button__link { display: inline-block; padding: 14px 30px; background: var(--sg-green); color: var(--sg-white); border-radius: var(--sg-radius-btn); font-weight: 600; text-decoration: none; }
#top .wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover { background: var(--sg-green-dark); color: var(--sg-white); }

/* ---------- Kasse ---------- */
#top .wc-block-components-sidebar-layout.wc-block-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: var(--sg-space-8); align-items: start; }   /* Klasse wc-block-checkout liegt auch auf der äußeren Hülle, daher mit sidebar-layout kombinieren */
#top .wc-block-checkout .wc-block-checkout__main,
#top .wc-block-checkout .wc-block-checkout__sidebar { width: auto; max-width: none; padding: 0; float: none; }
#top .wc-block-checkout__form { max-width: none; }
#top .wc-block-checkout__sidebar.is-sticky { position: sticky; top: 100px; }

/* Formularfelder: weiß, 16px-Ecken, grüner Fokus, Label innen (Block-Standard) */
#top .wc-block-components-text-input input,
#top .wc-block-components-form .wc-block-components-text-input input,
#top .wc-block-components-country-input .components-combobox-control__input,
#top .wc-block-components-state-input select,
#top .wc-block-components-select .components-custom-select-control__button,
#top .wc-block-components-textarea,
#top .wc-block-components-totals-coupon__input input { height: 56px; padding: 22px 16px 6px; font-family: var(--sg-font); font-size: var(--sg-body); color: var(--sg-text); background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: var(--sg-radius-card); box-shadow: none; }
#top .wc-block-components-textarea { height: auto; min-height: 120px; padding-top: 16px; }
#top .wc-block-components-text-input input:focus,
#top .wc-block-components-country-input .components-combobox-control__input:focus,
#top .wc-block-components-select .components-custom-select-control__button:focus,
#top .wc-block-components-textarea:focus { border-color: var(--sg-green); box-shadow: 0 0 0 1px var(--sg-green); outline: none; }
#top .wc-block-components-text-input label,
#top .wc-block-components-country-input label,
#top .wc-block-components-select label,
#top .wc-block-components-state-input label,
#top .wc-block-components-combobox label { font-family: var(--sg-font); font-size: var(--sg-body); font-weight: 400; color: var(--sg-muted); left: 16px; }
#top .wc-block-components-text-input.is-active label,
#top .wc-block-components-combobox.is-active label,
#top .wc-block-components-select.is-active label,
#top .wc-block-components-country-input.is-active label,
#top .wc-block-components-state-input.is-active label { transform: translateY(-12px) scale(0.78); transform-origin: left top; }
#top .wc-block-components-text-input { margin-top: var(--sg-space-2); }
#top .wc-block-components-address-form__email,
#top .wc-block-components-address-form .wc-block-components-text-input { margin-top: var(--sg-space-2); }
#top .wc-block-components-address-form__first_name,
#top .wc-block-components-address-form__last_name,
#top .wc-block-components-address-form__postcode,
#top .wc-block-components-address-form__city { margin-top: var(--sg-space-2); }
#top .wc-block-components-country-input,
#top .wc-block-components-state-input,
#top .wc-block-components-combobox { margin-top: var(--sg-space-2); }
#top .wc-block-components-combobox .components-combobox-control__suggestions-container { border-radius: var(--sg-radius-card); }
#top .wc-blocks-components-select { margin-top: var(--sg-space-2); }
#top .wc-blocks-components-select__container { position: relative; height: 56px; }
#top .wc-blocks-components-select__label { position: absolute; left: 16px; top: 8px; margin: 0; font-family: var(--sg-font); font-size: 12px; line-height: 1.2; color: var(--sg-muted); pointer-events: none; z-index: 1; }
#top select.wc-blocks-components-select__select { width: 100%; height: 56px; padding: 22px 44px 6px 16px; margin: 0; font-family: var(--sg-font); font-size: var(--sg-body); color: var(--sg-text); background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: var(--sg-radius-card); box-shadow: none; appearance: none; -webkit-appearance: none; }
#top select.wc-blocks-components-select__select:focus { border-color: var(--sg-green); box-shadow: 0 0 0 1px var(--sg-green); outline: none; }
#top .wc-blocks-components-select__expand { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); fill: var(--sg-green); pointer-events: none; }
#top .wc-block-components-address-form__address_2-toggle,
#top .wc-block-components-checkout-step .wc-block-components-button.wc-block-components-button--text { font-family: var(--sg-font); color: var(--sg-green); font-size: var(--sg-body); text-decoration: underline; text-underline-offset: 3px; padding: 0; margin-top: var(--sg-space-2); background: transparent; border: 0; box-shadow: none; }

/* Checkboxen */
#top .wc-block-components-checkbox { margin-top: var(--sg-space-2); }
#top .wc-block-components-checkbox label { font-family: var(--sg-font); font-size: var(--sg-body); color: var(--sg-text); line-height: 1.45; }
#top .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; margin: 0 10px 0 0; border: 1px solid var(--sg-green); border-radius: 6px; background: var(--sg-white); }
#top .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--sg-green); border-color: var(--sg-green); }
#top .wc-block-components-checkbox .wc-block-components-checkbox__mark { color: var(--sg-white); left: 4px; top: 2px; width: 14px; height: 16px; }
#top .wc-block-components-checkbox a { color: var(--sg-green); text-decoration: underline; text-underline-offset: 3px; }
#top .wc-block-components-checkbox a:hover { color: var(--sg-accent); }

/* Versand- und Zahlungsoptionen als Karten */
#top .wc-block-components-radio-control,
#top .wc-block-components-shipping-rates-control { margin-top: 0; }
#top .wc-block-components-radio-control__option,
#top .wc-block-components-radio-control-accordion-option,
#top .wc-block-components-checkout-payment-methods .wc-block-components-radio-control__option { padding: 16px 16px 16px 52px; margin: 0 0 10px; background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: var(--sg-radius-card); font-family: var(--sg-font); font-size: var(--sg-body); color: var(--sg-text); }
#top .wc-block-components-radio-control__option::after,
#top .wc-block-components-radio-control-accordion-option::after { display: none; }
#top .wc-block-components-radio-control__option.wc-block-components-radio-control__option-checked,
#top .wc-block-components-radio-control-accordion-option.wc-block-components-radio-control-accordion-option--checked { border-color: var(--sg-green); box-shadow: 0 0 0 1px var(--sg-green); }
#top .wc-block-components-radio-control__input { left: 16px; width: 22px; height: 22px; min-width: 22px; border: 1px solid var(--sg-green); background: var(--sg-white); }
#top .wc-block-components-radio-control__input:checked { border-width: 7px; border-color: var(--sg-green); }
#top .wc-block-components-radio-control__input:checked::before { display: none; }
#top .wc-block-components-radio-control__label,
#top .wc-block-components-radio-control__label-group { font-size: var(--sg-body); font-weight: 500; }
#top .wc-block-components-radio-control__description,
#top .wc-block-components-radio-control__secondary-description { color: var(--sg-muted); font-size: var(--sg-meta); }
#top .wc-block-components-radio-control__secondary-label { font-weight: 600; }
#top .wc-block-components-shipping-rates-control__package { border: 0; padding: 0; }
#top .wc-block-components-shipping-rates-control__package::after,
#top .wc-block-components-radio-control__option-layout::after,
#top .wc-block-components-radio-control--highlight-checked::after { display: none; }
#top .wc-block-components-radio-control--highlight-checked { border: 0; box-shadow: none; }
#top .wc-block-components-shipping-rates-control__package .wc-block-components-panel__button { display: none; }
#top .wc-block-components-shipping-rates-control__package .wc-block-components-radio-control__option { margin-left: 0; }
/* Zahlungsarten: die Akkordeon-Hülle ist die Karte, das innere Label bekommt keine zweite Box */
#top .wc-block-components-radio-control-accordion-option { padding: 16px; }
#top .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option { position: relative; padding: 0 0 0 36px; margin: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
#top .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__input { left: 0; top: 50%; transform: translateY(-50%); }
#top .wc-block-components-radio-control-accordion-content { padding: 10px 0 0 36px; margin: 0; background: transparent; border: 0; box-shadow: none; color: var(--sg-muted); font-size: var(--sg-meta); line-height: 1.45; }
#top .wc-block-components-radio-control-accordion-content p { margin: 0 0 6px; font-size: var(--sg-meta); }
#top .wc-block-components-payment-method-label { font-family: var(--sg-font); font-weight: 500; }
#top .wc-block-components-payment-method-icons { gap: 6px; }

/* Hinweise und Fehler */
#top .wc-block-components-notice-banner { border-radius: var(--sg-radius-card); font-family: var(--sg-font); font-size: var(--sg-body); }
#top .wc-block-components-notice-banner.is-error { border-color: var(--sg-accent); background: #fbf1f6; }
#top .wc-block-components-notice-banner.is-error > svg { background: var(--sg-accent); }
#top .wc-block-components-validation-error p { font-family: var(--sg-font); font-size: var(--sg-meta); color: var(--sg-accent); }
#top .wc-block-components-text-input.has-error input { border-color: var(--sg-accent); }

/* Bestellübersicht (Sidebar der Kasse) als beige Karte */
/* Die ganze Sidebar ist die Karte; Germanized klont den Summenblock (Gesamtsumme + Button) in .wc-gzd-checkout-submit darunter */
#top .wc-block-checkout .wc-block-checkout__sidebar { padding: var(--sg-space-4); background: var(--sg-beige-light); border: 0; border-radius: var(--sg-radius-img); }
#top .wc-block-checkout__sidebar .wc-block-components-sidebar,
#top .wp-block-woocommerce-checkout-order-summary-block { padding: 0; background: transparent; border: 0; }
#top .wc-block-components-order-summary,
#top .wc-block-components-order-summary.is-large { background: transparent; }
#top .wc-gzd-checkout-submit .wc-block-components-checkout-order-summary__title { display: none; }
#top .wc-block-components-checkout-order-summary__title { padding: 0 0 var(--sg-space-2); border: 0; }
#top .wc-block-components-checkout-order-summary__title-text { font-size: var(--sg-h3); font-weight: 700; line-height: 1.2; }
#top .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text { color: var(--sg-green); }
#top .wc-block-components-checkout-order-summary__title-arrow,
#top .wc-block-components-checkout-order-summary__title-button { display: none; }
#top .wc-block-components-checkout-order-summary__content,
#top .wc-block-components-checkout-order-summary__content.is-collapsed { display: block; }
#top .wc-block-components-order-summary { padding: 0; }
#top .wc-block-components-order-summary__content { padding: 0; }
#top .wc-block-components-order-summary-item { padding: 14px 0; border-bottom: 1px solid rgba(35,75,72,0.14); font-family: var(--sg-font); }
#top .wc-block-components-order-summary-item__image { width: 64px; margin-right: 14px; }
#top .wc-block-components-order-summary-item__image img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--sg-white); }
#top .wc-block-components-order-summary-item__quantity { background: var(--sg-green); border: 2px solid var(--sg-beige-light); color: var(--sg-white); box-shadow: none; font-size: 12px; min-width: 22px; height: 22px; }
#top .wc-block-components-order-summary-item__header { align-items: flex-start; }
#top .wc-block-components-order-summary-item__description { padding: 0; }
#top .wc-block-components-order-summary-item__individual-prices,
#top .wc-block-components-order-summary-item__individual-price { color: var(--sg-muted); font-size: var(--sg-meta); }
#top .wc-block-components-order-summary-item__total-price { font-size: var(--sg-body); font-weight: 600; }
#top .wc-block-components-order-summary-item .wc-block-components-product-metadata { margin-top: 4px; }
#top .wc-block-components-order-summary-item .wc-block-components-product-metadata__description { display: none; }   /* Kurztext in der Kasse weglassen, Zusammenfassung bleibt knapp */
#top .wc-block-checkout__sidebar .wc-block-components-totals-wrapper:first-of-type { border-top: 0; }
#top .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-cart-items-block { padding: 0; }
#top .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-coupon-form-block { padding: 0; }

/* Platzhaltertext „Jetzt kaufen" entspricht Germanized-Option; Button steht am Ende der linken Spalte */
#top .wc-block-checkout__actions { margin: var(--sg-space-4) 0 0; padding: 0; }
#top .wc-block-checkout__actions_row { justify-content: flex-start; }
#top .wc-block-components-checkout-return-to-cart-button { font-family: var(--sg-font); color: var(--sg-green); font-size: var(--sg-body); text-decoration: underline; text-underline-offset: 3px; }
#top .wc-block-components-checkout-place-order-button { width: 100%; max-width: none; }
#top .wc-block-checkout__terms,
#top .wc-block-checkout__terms-text,
#top .wc-block-components-checkout-order-note { font-family: var(--sg-font); font-size: var(--sg-body); color: var(--sg-text); }
#top .wc-block-checkout__terms a { color: var(--sg-green); text-decoration: underline; text-underline-offset: 3px; }
#top .wc-block-checkout__add-note .wc-block-components-checkbox { margin-top: var(--sg-space-2); }

/* Germanized-Pflichtangaben in der Kasse (Lieferzeit, Grundpreis, Fußhinweis) */
#top .wc-gzd-checkout-additional-info,
#top .wc-gzd-order-summary-additional-info { color: var(--sg-muted); font-size: var(--sg-meta); }

/* ---------- Mein Konto (klassisches Template) ---------- */
#top.woocommerce-account .woocommerce { font-family: var(--sg-font); }
#top.woocommerce-account .woocommerce h2,
#top.woocommerce-account .woocommerce-MyAccount-content h2,
#top.woocommerce-account .woocommerce-MyAccount-content h3,
#top.woocommerce-account .woocommerce h2.sg-account-title { color: var(--sg-green); font-size: var(--sg-h3); margin: 0 0 var(--sg-space-3); }

/* Login / Registrierung: Karte */
#top.woocommerce-account form.woocommerce-form-login,
#top.woocommerce-account form.woocommerce-form-register,
#top.woocommerce-account form.woocommerce-ResetPassword,
#top.woocommerce-account form.lost_reset_password { max-width: 560px; margin: 0; padding: var(--sg-space-4); background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: var(--sg-radius-img); }
#top.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sg-space-5); }
#top.woocommerce-account .u-columns.col2-set::before,
#top.woocommerce-account .u-columns.col2-set::after { display: none; }
#top.woocommerce-account .u-columns .u-column1,
#top.woocommerce-account .u-columns .u-column2 { width: auto; float: none; }
#top.woocommerce-account .woocommerce-form-row { margin: 0 0 var(--sg-space-2); }
#top.woocommerce-account .woocommerce-form-row label { display: block; margin: 0 0 6px; font-size: var(--sg-meta); font-weight: 600; color: var(--sg-green); }
#top.woocommerce-account .woocommerce-form-row label .required { color: var(--sg-accent); text-decoration: none; }
#top.woocommerce-account .woocommerce form .form-row input.input-text,
#top.woocommerce-account .woocommerce form .form-row input.woocommerce-Input,
#top.woocommerce-account .woocommerce-Input,
#top.woocommerce-account input.input-text,
#top.woocommerce-account select,
#top.woocommerce-account .woocommerce-form-row textarea { width: 100%; height: 52px; padding: 0 16px; margin: 0; font-family: var(--sg-font); font-size: var(--sg-body); color: var(--sg-text); background: var(--sg-white) !important; border: 1px solid var(--sg-border) !important; border-radius: var(--sg-radius-card) !important; box-shadow: none !important; }
#top.woocommerce-account .woocommerce-Input:focus,
#top.woocommerce-account input.input-text:focus,
#top.woocommerce-account select:focus { border-color: var(--sg-green); box-shadow: 0 0 0 1px var(--sg-green); outline: none; }
#top.woocommerce-account .password-input { display: block; position: relative; }
#top.woocommerce-account .show-password-input { position: absolute; top: 50%; right: 14px; width: 24px; height: 24px; margin: 0; padding: 0; transform: translateY(-50%); background: transparent; border: 0; }
#top.woocommerce-account .show-password-input::after { font-size: 20px; line-height: 24px; color: var(--sg-muted); }
#top.woocommerce-account .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--sg-space-3); font-size: var(--sg-body); color: var(--sg-text); font-weight: 400; }
#top.woocommerce-account .woocommerce-form-login__rememberme input { width: 20px; height: 20px; margin: 0; accent-color: var(--sg-green); }
#top.woocommerce-account .woocommerce-form-login__submit,
#top.woocommerce-account .woocommerce-form-register__submit,
#top.woocommerce-account .woocommerce-Button,
#top.woocommerce-account button.button { padding: 14px 30px; background: var(--sg-green); color: var(--sg-white); border: 0; border-radius: var(--sg-radius-btn); font-weight: 600; font-size: var(--sg-body); }
#top.woocommerce-account .woocommerce-form-login__submit:hover,
#top.woocommerce-account .woocommerce-form-register__submit:hover,
#top.woocommerce-account .woocommerce-Button:hover,
#top.woocommerce-account button.button:hover { background: var(--sg-green-dark); color: var(--sg-white); }
#top.woocommerce-account .woocommerce-LostPassword { margin: var(--sg-space-2) 0 0; font-size: var(--sg-body); }
#top.woocommerce-account .woocommerce-LostPassword a,
#top.woocommerce-account .woocommerce-privacy-policy-text a { color: var(--sg-green); text-decoration: underline; text-underline-offset: 3px; }
#top.woocommerce-account .woocommerce-privacy-policy-text { color: var(--sg-muted); font-size: var(--sg-meta); }

/* Dashboard: Navigation links als Karte mit Pillen, Inhalt rechts */
#top.woocommerce-account .woocommerce-MyAccount-navigation { width: 260px; float: none; margin: 0; padding: 0; border: 0; background: transparent; }
#top.woocommerce-account .woocommerce-MyAccount-content { width: auto; float: none; }
#top.woocommerce-account.logged-in .woocommerce { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--sg-space-6); align-items: start; }
#top.woocommerce-account.logged-in .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
#top.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: var(--sg-space-2); background: var(--sg-beige-light); border-radius: var(--sg-radius-img); }
#top.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; border: 0; background: transparent; }
#top.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 11px 16px; color: var(--sg-green); font-size: var(--sg-body); font-weight: 500; text-decoration: none; border-radius: var(--sg-radius-btn); }
#top.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: rgba(255,255,255,0.7); }
#top.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--sg-green); color: var(--sg-white); }
#top.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px; border-top: 1px solid rgba(35,75,72,0.14); padding-top: 6px; }
#top.woocommerce-account .woocommerce-MyAccount-content p { font-size: var(--sg-body); color: var(--sg-text); line-height: 1.55; }
#top.woocommerce-account .woocommerce-MyAccount-content a:not(.button) { color: var(--sg-green); text-decoration: underline; text-underline-offset: 3px; }
#top.woocommerce-account .woocommerce-MyAccount-content table { border: 0; border-collapse: collapse; }
#top.woocommerce-account .woocommerce-MyAccount-content th { padding: 12px 10px; color: var(--sg-muted); font-size: var(--sg-meta); font-weight: 600; letter-spacing: var(--sg-tracking-caps); text-transform: uppercase; border: 0; border-bottom: 1px solid var(--sg-border); background: transparent; }
#top.woocommerce-account .woocommerce-MyAccount-content td { padding: 14px 10px; border: 0; border-bottom: 1px solid var(--sg-border); background: transparent; font-size: var(--sg-body); }
#top.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button,
#top.woocommerce-account .woocommerce-MyAccount-content a.button { display: inline-block; padding: 9px 18px; margin: 0 6px 6px 0; background: var(--sg-green); color: var(--sg-white); border-radius: var(--sg-radius-btn); font-size: var(--sg-meta); font-weight: 600; text-decoration: none; }
#top.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button:hover,
#top.woocommerce-account .woocommerce-MyAccount-content a.button:hover { background: var(--sg-green-dark); color: var(--sg-white); }
#top.woocommerce-account .woocommerce-Addresses .woocommerce-Address { padding: var(--sg-space-3); background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: var(--sg-radius-card); }
#top.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title h2 { font-size: var(--sg-lead); margin: 0 0 8px; }
#top.woocommerce-account .woocommerce-Addresses .woocommerce-Address-title a { font-size: var(--sg-meta); }
#top.woocommerce-account .woocommerce-Addresses address { font-style: normal; color: var(--sg-text); line-height: 1.55; }
#top.woocommerce-account fieldset { border: 0; padding: 0; margin: var(--sg-space-4) 0 0; }
#top.woocommerce-account fieldset legend { color: var(--sg-green); font-size: var(--sg-lead); font-weight: 700; margin: 0 0 var(--sg-space-2); }
#top.woocommerce-account .woocommerce-EditAccountForm,
#top.woocommerce-account .woocommerce-address-fields { max-width: 640px; }
#top.woocommerce-account .woocommerce-message,
#top.woocommerce-account .woocommerce-info,
#top.woocommerce-account .woocommerce-error { margin: 0 0 var(--sg-space-3); padding: 14px 18px; background: var(--sg-white); border: 1px solid var(--sg-border); border-left: 4px solid var(--sg-green); border-radius: var(--sg-radius-card); font-size: var(--sg-body); color: var(--sg-text); }
#top.woocommerce-account .woocommerce-error { border-left-color: var(--sg-accent); }
#top.woocommerce-account .woocommerce-message::before,
#top.woocommerce-account .woocommerce-info::before,
#top.woocommerce-account .woocommerce-error::before { display: none; }
#top.woocommerce-account .woocommerce-message .button { float: none; margin: 8px 12px 0 0; }

/* Bestellung-erhalten-Seite (Danke) */
#top .woocommerce-order .woocommerce-notice--success { margin: 0 0 var(--sg-space-4); padding: var(--sg-space-3) var(--sg-space-4); background: var(--sg-beige-light); border-radius: var(--sg-radius-card); color: var(--sg-green); font-size: var(--sg-lead); font-weight: 600; }
#top .woocommerce-order .woocommerce-order-overview { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sg-space-3) var(--sg-space-5); margin: 0 0 var(--sg-space-5); padding: 0; }
#top .woocommerce-order .woocommerce-order-overview li { margin: 0; padding: 0; border: 0; color: var(--sg-muted); font-size: var(--sg-meta); text-transform: uppercase; letter-spacing: var(--sg-tracking-caps); }
#top .woocommerce-order .woocommerce-order-overview li strong { display: block; margin-top: 4px; color: var(--sg-text); font-size: var(--sg-body); text-transform: none; letter-spacing: 0; }
#top .woocommerce-order h2 { color: var(--sg-green); font-size: var(--sg-h3); margin: var(--sg-space-4) 0 var(--sg-space-2); }
#top .woocommerce-order table.shop_table { border: 0; border-collapse: collapse; }
#top .woocommerce-order table.shop_table th,
#top .woocommerce-order table.shop_table td { padding: 12px 10px; border: 0; border-bottom: 1px solid var(--sg-border); background: transparent; font-size: var(--sg-body); }
#top .woocommerce-order .woocommerce-customer-details address { font-style: normal; padding: var(--sg-space-3); background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: var(--sg-radius-card); line-height: 1.55; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
    #top .wc-block-components-sidebar-layout.wc-block-cart { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: var(--sg-space-5); }
    #top .wc-block-components-sidebar-layout.wc-block-checkout { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: var(--sg-space-5); }
}
@media (max-width: 900px) {
    #top .wc-block-components-sidebar-layout.wc-block-cart,
    #top .wc-block-components-sidebar-layout.wc-block-checkout,
    #top.woocommerce-account.logged-in .woocommerce { grid-template-columns: minmax(0, 1fr); }   /* Selektoren wie oben, sonst verliert die Media Query an Spezifität */
    #top .wc-block-cart .wc-block-cart__sidebar { padding: var(--sg-space-3); }
    /* Sidebar bleibt unter dem Formular: Germanized setzt den Bestell-Button in die Sidebar, er muss am Ende stehen */
    #top .wc-block-components-checkout-order-summary__title-price { display: none; }
    #top .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-checkout__form,
    #top .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-checkout__main { order: 1; }
    #top .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-checkout__sidebar { order: 2; }
    #top .wc-block-checkout__sidebar.is-sticky { position: static; }
    #top.woocommerce-account .woocommerce-MyAccount-navigation { width: auto; }
    #top.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 4px; }
    #top.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
}
@media (max-width: 767px) {
    #top .sg-shop-page-head { margin: var(--sg-space-2) 0 var(--sg-space-4); }
    #top .wc-block-cart-items th { display: none; }
    #top .wc-block-cart-item__image { width: 88px; }
    #top .wc-block-cart-item__image img { width: 76px; height: 76px; }
    #top .wc-block-cart__sidebar .wp-block-woocommerce-cart-totals-block,
    #top .wp-block-woocommerce-checkout-order-summary-block,
    #top .wc-block-checkout__sidebar .wc-block-components-sidebar { padding: var(--sg-space-3); }
    #top.woocommerce-account form.woocommerce-form-login,
    #top.woocommerce-account form.woocommerce-form-register { padding: var(--sg-space-3); }
}

/* ---------- Gutschein-Formular in Warenkorb und Kasse (Erika 2026-11-09) ----------
   Block-Standard: 56px-Feld mit schwebendem Label (Kassa-Stil) und ein Button, der sich auf die
   Zeilenhöhe streckt (92px). Hier: eine Zeile, 44px, Feld füllt die Breite, Button als grüne Pille,
   Label mittig als Platzhalter (verschwindet bei Eingabe – kein schwebendes Label im flachen Feld). */
#top .wc-block-components-totals-coupon__form { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 8px; padding: 2px 0 10px; }   /* flex-start: der Feld-Wrapper ist höher als das Feld (Platz für Fehlermeldung) */
#top .wc-block-components-totals-coupon__input { flex: 1 1 0; width: auto !important; min-width: 0; margin: 0 !important; }   /* Block-CSS setzt width:100% → Button würde umbrechen */
#top .wc-block-components-totals-coupon__input input { height: 44px; margin: 0; padding: 10px 18px; border-radius: var(--sg-radius-btn); }   /* Block-CSS: margin-bottom 20px → Leerraum unter dem Feld */
#top .wc-block-components-totals-coupon__input label { top: 50% !important; left: 18px !important; transform: translateY(-50%) !important; font-size: var(--sg-body); color: var(--sg-muted); }
#top .wc-block-components-totals-coupon__input.is-active label { opacity: 0; visibility: hidden; }
#top .wc-block-components-totals-coupon__button,
#top .wc-block-components-totals-coupon__button.contained { flex: 0 0 auto; align-self: flex-start; margin: 0; height: 44px; min-height: 0; padding: 0 20px; border-radius: var(--sg-radius-btn); background: var(--sg-green) !important; border: 1.5px solid var(--sg-green) !important; color: var(--sg-white) !important; font-family: var(--sg-font); font-size: var(--sg-body); font-weight: 600; opacity: 1; }
#top .wc-block-components-totals-coupon__button:hover:not(:disabled) { background: var(--sg-green-dark) !important; border-color: var(--sg-green-dark) !important; }
#top .wc-block-components-totals-coupon__button:disabled { background: transparent !important; border-color: var(--sg-border) !important; color: var(--sg-muted) !important; cursor: default; }
#top .wc-block-components-totals-coupon .wc-block-components-validation-error { margin: 6px 0 0; font-size: var(--sg-meta); }

