/**
 * Cramolin Shop Design v2 – exakte Umsetzung der Cramolin-Entwürfe
 * auf den Standard-WooCommerce-Seiten (eigene Templates unter templates/).
 *
 * Hell, eckig, Marken-Orange. Gescopet auf body.crm-scope
 * (Shop-Seiten) bzw. .crm-scope-drawer (Side-Cart, überall).
 */

:root {
  --crm-paper:   #ffffff;
  --crm-surface: #f4f5f7;
  --crm-ink:     #1d1e21;
  --crm-body:    #43464b;
  --crm-muted:   #74777d;
  --crm-line:    #e3e4e7;
  --crm-orange:  #e8471f;
  --crm-orange-dark: #c93a17;
  --crm-teal:    #1fae97;
  --crm-font-display: "Bahnschrift", "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", sans-serif;
}

/* ═══════════════════════════════════════════════
   THEME-/ELEMENTOR-FARBEN NEUTRALISIEREN
   Elementor-Kit-Selektoren (.elementor-kit-N a, … button)
   haben höhere Spezifität – hier hart übersteuern, damit
   überall die Cramolin-Farben gelten.
═══════════════════════════════════════════════ */

/* Links in allen Plugin-Bereichen: Tinte statt Theme-Linkfarbe */
body.crm-scope .crm-cart-page a,
body.crm-scope form.crm-checkout a,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product a:not(.button),
.crm-scope-drawer a {
  color: var(--crm-ink);
  text-decoration: none;
}
body.crm-scope .crm-cart-page a:hover,
body.crm-scope form.crm-checkout a:hover,
.crm-scope-drawer a:hover {
  color: var(--crm-orange);
}
/* Ausdrücklich orange Links */
body.crm-scope .crm-related-all,
body.crm-scope .crm-related-all:hover,
body.crm-scope .crm-login-hint a,
body.crm-scope .woocommerce-shipping-calculator a,
body.crm-scope .woocommerce-privacy-policy-text a,
body.crm-scope .woocommerce-terms-and-conditions-checkbox-text a,
body.crm-scope .woocommerce-form-coupon-toggle a {
  color: var(--crm-orange) !important;
}

/* Eigene Funktions-Buttons (Stepper, Schliessen, Entfernen):
   Theme-Button-Styles (Rahmen, Pink, Padding) komplett entfernen */
.crm-qty-btn,
.crm-drawer__close,
.crm-minicart-remove {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--crm-ink) !important;
  padding: 0 !important;
  min-height: 0 !important;
  line-height: 1 !important;
  font-family: inherit !important;
}
/* Auch Hover-/Focus-/Active-Zustände des Themes übersteuern
   (Elementor-Kits färben button:focus/hover ein → das Pink) */
.crm-qty-btn:hover,
.crm-qty-btn:focus,
.crm-qty-btn:active,
.crm-drawer__close:hover,
.crm-drawer__close:focus,
.crm-drawer__close:active {
  background: var(--crm-surface) !important;
  color: var(--crm-ink) !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.crm-qty-btn:focus-visible,
.crm-drawer__close:focus-visible,
.crm-minicart-remove:focus-visible {
  outline: 2px solid var(--crm-orange) !important;
  outline-offset: -2px !important;
}
.crm-minicart-remove { color: var(--crm-muted) !important; font-size: 0.76rem !important; }
.crm-minicart-remove:hover,
.crm-minicart-remove:focus,
.crm-minicart-remove:active {
  color: var(--crm-orange) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Entfernen-× im Warenkorb */
body.crm-scope .crm-row-remove,
body.crm-scope .crm-row-remove:visited { color: var(--crm-muted) !important; }
body.crm-scope .crm-row-remove:hover { color: var(--crm-orange) !important; }

/* Drawer-Typografie gegen Theme-Farben absichern */
.crm-scope-drawer .crm-drawer__title { color: var(--crm-ink) !important; }
.crm-scope-drawer .crm-drawer__title .crm-drawer-count { color: var(--crm-orange) !important; }
.crm-scope-drawer .crm-minicart-name { color: var(--crm-ink) !important; }
.crm-scope-drawer .crm-minicart-name:hover { color: var(--crm-orange) !important; }
.crm-scope-drawer .crm-minicart-unit,
.crm-scope-drawer .crm-minicart-note { color: var(--crm-muted) !important; }
.crm-scope-drawer .crm-minicart-total,
.crm-scope-drawer .crm-minicart-subtotal__label,
.crm-scope-drawer .crm-minicart-subtotal__value { color: var(--crm-ink) !important; }

/* Drawer-Buttons: Orange/Outline erzwingen */
.crm-scope-drawer .crm-minicart-buttons a.button {
  background: transparent !important;
  color: var(--crm-ink) !important;
  border: 1px solid var(--crm-ink) !important;
  box-shadow: none !important;
}
.crm-scope-drawer .crm-minicart-buttons a.button:hover {
  background: var(--crm-ink) !important;
  color: #fff !important;
}
.crm-scope-drawer .crm-minicart-buttons a.button.checkout {
  background: var(--crm-orange) !important;
  color: #fff !important;
  border: none !important;
}
.crm-scope-drawer .crm-minicart-buttons a.button.checkout:hover {
  background: var(--crm-orange-dark) !important;
}

/* Stepper-Rahmen: nur unsere schmale Linie, kein Theme-Rahmen */
.crm-scope-drawer .quantity,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .quantity {
  border: 1px solid var(--crm-line) !important;
  box-shadow: none !important;
}
.crm-scope-drawer .quantity .qty,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .quantity .qty {
  border: none !important;
  background: #fff !important;
  color: var(--crm-ink) !important;
  -webkit-text-fill-color: var(--crm-ink) !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 32px !important;
  min-height: 0 !important;
  height: auto !important;
  text-align: center !important;
  text-indent: 0 !important;
  opacity: 1 !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}
.crm-scope-drawer .quantity .qty:focus,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .quantity .qty:focus {
  border: none !important;
  background: #fff !important;
  box-shadow: none !important;
  outline: 2px solid var(--crm-orange) !important;
  outline-offset: -2px !important;
}
/* Falls Theme-JS eigene +/- Buttons in .quantity einbaut: ausblenden,
   es gelten nur unsere .crm-qty-btn */
.crm-scope-drawer .quantity > :not(.qty):not(.crm-qty-btn),
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .quantity > :not(.qty):not(.crm-qty-btn):not(label) {
  display: none !important;
}

/* ═══════════════════════════════════════════════
   BASIS
═══════════════════════════════════════════════ */
/* Basis nur auf die Shop-Inhalte anwenden, nicht auf Header/Footer –
   bei Themes mit .woocommerce direkt am <body> würde sonst die ganze
   Seite getroffen */
body.crm-scope :is(div.product, ul.products, .crm-related, .crm-cart-page, form.crm-checkout, .crm-steps, .woocommerce-notices-wrapper, .woocommerce-tabs, .crm-account-page, .crm-auth) {
  color: var(--crm-body);
}
body.crm-scope :is(div.product, ul.products, .crm-related, .crm-cart-page, form.crm-checkout, .crm-steps, .woocommerce-notices-wrapper, .woocommerce-tabs, .crm-account-page, .crm-auth) *,
.crm-scope-drawer * { border-radius: 0 !important; }

/* Buttons – !important, weil Elementor-Kit-Selektoren (Lila)
   sonst gewinnen (gleiches Muster wie oben bei den Links) */
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .button,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) button.button,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) a.button,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) input.button,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) #respond input#submit {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--crm-orange) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.85em 1.6em;
  transition: background 0.18s ease-out, color 0.18s ease-out;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .button:hover,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) button.button:hover,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) a.button:hover,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) input.button:hover {
  background: var(--crm-orange-dark) !important;
  color: #fff !important;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .button:focus-visible {
  outline: 2px solid var(--crm-ink);
  outline-offset: 3px;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .button:disabled,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .button.disabled {
  background: var(--crm-muted) !important;
  color: #fff !important;
  opacity: 1;
}
/* Outline-Variante */
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .button.crm-btn-outline,
.crm-scope-drawer .button.crm-btn-outline {
  background: transparent !important;
  color: var(--crm-ink) !important;
  border: 1px solid var(--crm-ink) !important;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .button.crm-btn-outline:hover,
.crm-scope-drawer .button.crm-btn-outline:hover {
  background: var(--crm-ink) !important;
  color: #fff !important;
}
/* "Jetzt kaufen": Outline-Box ohne Füllung (wie im Entwurf) */
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .button.crm-buy-now {
  background: transparent !important;
  color: var(--crm-ink) !important;
  border: 1px solid var(--crm-ink) !important;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .button.crm-buy-now:hover,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .button.crm-buy-now:focus {
  background: var(--crm-ink) !important;
  color: #fff !important;
}

/* Formularfelder */
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) input.input-text,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) textarea.input-text,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) select,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .input-text {
  border: 1px solid #c9cbd0;
  background: #fff;
  color: var(--crm-ink);
  padding: 0.7em 0.85em;
  font-size: 0.92rem;
  transition: border-color 0.15s ease-out;
  box-shadow: none;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) input.input-text:focus,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) textarea.input-text:focus,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) select:focus {
  outline: none;
  border-color: var(--crm-orange);
  box-shadow: 0 0 0 1px var(--crm-orange);
}

/* Auswahlfelder (Land, Kanton …): gleiches eckiges Design wie die
   Textfelder, eigener Pfeil statt Browser-/Theme-Standard */
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  height: 44px !important;
  padding: 0 2.6rem 0 0.85rem !important;
  border: 1px solid #c9cbd0 !important;
  background-color: #fff !important;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%231d1e21" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  background-size: 13px !important;
  color: var(--crm-ink) !important;
  font-size: 0.92rem !important;
  line-height: 42px;
  cursor: pointer;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) select:focus {
  border-color: var(--crm-orange) !important;
  box-shadow: 0 0 0 1px var(--crm-orange) !important;
  outline: none !important;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) select::-ms-expand { display: none; }

/* Abschnitt "Zusätzliche Informationen" (Bestellnotiz) im Sektions-Stil */
body.crm-scope .woocommerce-additional-fields > h3 {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crm-ink);
  border-bottom: 2px solid var(--crm-ink);
  padding: 0 0 0.6rem;
  margin: 2rem 0 1.3rem;
}

/* ── Hinweise / Notices (eigene Templates unter notices/) ──
   Flache Karte: graue Fläche, 3px-Akzentlinie links (Teal bzw.
   Orange bei Fehlern), SVG-Icon, Button rechtsbündig. !important
   gegen WC-Core- und Theme-Notice-Styles (Icons, Floats, Farben). */
body.crm-scope .woocommerce-message,
body.crm-scope .woocommerce-info,
body.crm-scope ul.woocommerce-error li {
  background: var(--crm-surface) !important;
  border: none !important;
  border-left: 3px solid var(--crm-teal) !important;
  color: var(--crm-body) !important;
  padding: 1rem 1.2rem !important;
  margin: 0 0 1.2rem !important;
  list-style: none !important;
  font-size: 0.92rem;
  line-height: 1.6;
  width: auto !important;
  float: none !important;
}
body.crm-scope ul.woocommerce-error {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
body.crm-scope ul.woocommerce-error li { border-left-color: var(--crm-orange) !important; }

/* Font-Icons von WC-Core/Theme entfernen – es gilt nur unser SVG */
body.crm-scope .woocommerce-message::before,
body.crm-scope .woocommerce-info::before,
body.crm-scope .woocommerce-error::before,
body.crm-scope .woocommerce-error li::before,
body.crm-scope .woocommerce-message::after,
body.crm-scope .woocommerce-info::after,
body.crm-scope .woocommerce-error li::after {
  display: none !important;
  content: none !important;
}

/* Eckig auch dann, wenn die Meldung ausserhalb der Plugin-Wrapper
   gerendert wird (z. B. Theme-eigener Notice-Bereich) */
body.crm-scope :is(.woocommerce-message, .woocommerce-info, ul.woocommerce-error),
body.crm-scope :is(.woocommerce-message, .woocommerce-info, ul.woocommerce-error) * {
  border-radius: 0 !important;
}

body.crm-scope .crm-notice {
  display: flex !important;
  align-items: center;
  gap: 0.9rem;
}
body.crm-scope .crm-notice__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--crm-teal);
}
body.crm-scope .crm-notice--error .crm-notice__icon { color: var(--crm-orange); }
body.crm-scope .crm-notice__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}
/* Button in der Meldung (z. B. "Produkte durchsuchen",
   "Warenkorb anzeigen"): kompakt und rechtsbündig */
body.crm-scope .crm-notice__body .button,
body.crm-scope .crm-notice__body .woocommerce-Button {
  order: 2;
  margin: 0 0 0 auto !important;
  float: none !important;
  padding: 0.6em 1.2em;
  font-size: 0.8rem;
  white-space: nowrap;
}
/* Text-Links in Meldungen (z. B. "Rückgängig?") */
body.crm-scope .crm-notice__body a:not(.button):not(.woocommerce-Button) {
  color: var(--crm-orange) !important;
  font-weight: 600;
  text-decoration: none;
}
body.crm-scope .crm-notice__body a:not(.button):not(.woocommerce-Button):hover { text-decoration: underline; }
@media (max-width: 560px) {
  body.crm-scope .crm-notice__body .button,
  body.crm-scope .crm-notice__body .woocommerce-Button { margin-left: 0 !important; }
}

:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }

/* Mengen-Stepper (JS baut − / + ein) */
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.quantity,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) span.quantity,
.crm-scope-drawer .quantity {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--crm-line);
  background: #fff;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .quantity .qty,
.crm-scope-drawer .quantity .qty {
  width: 44px;
  border: none;
  text-align: center;
  font-weight: 600;
  color: var(--crm-ink);
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
  box-shadow: none;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .quantity .qty::-webkit-outer-spin-button,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .quantity .qty::-webkit-inner-spin-button,
.crm-scope-drawer .quantity .qty::-webkit-outer-spin-button,
.crm-scope-drawer .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.crm-qty-btn {
  width: 34px;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--crm-ink);
  cursor: pointer;
  transition: background 0.15s ease-out;
}
.crm-qty-btn:hover { background: var(--crm-surface); }

/* wpautop-Schutz: Themes, die the_content auf die Shortcode-Ausgabe
   anwenden, injizieren <br> und leere <p> ins Template-Markup. In
   Grid-/Flex-Containern werden die zu unsichtbaren Zellen und
   verschieben alle Spalten – hier hart ausblenden. */
body.crm-scope :is(.crm-page-head, .crm-items-header, .crm-cart-row, .crm-cart-rows, .crm-row-product, .crm-row-info, .crm-cart-layout, .crm-cart-actions, .crm-review-item, .crm-review-info, .crm-review-right, .crm-review-items, .crm-sum-row, .crm-sum-total, .crm-summary, .crm-review-sums, .crm-order-box, .crm-checkout-main, form.crm-checkout, .crm-coupon) > :is(br, p:empty) {
  display: none !important;
}

/* Schritt-Anzeige */
body.crm-scope .crm-steps {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0 0 1.8rem;
  font-family: var(--crm-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.crm-scope .crm-steps a { text-decoration: none; }
body.crm-scope .crm-steps__done { color: var(--crm-muted); }
body.crm-scope .crm-steps__done:hover { color: var(--crm-ink); }
body.crm-scope .crm-steps__now { color: var(--crm-orange); }
body.crm-scope .crm-steps__next,
body.crm-scope .crm-steps__sep { color: #c3c5c9; }

/* ═══════════════════════════════════════════════
   1) SINGLE PRODUCT
═══════════════════════════════════════════════ */

/* Breadcrumbs: klein und versal im Cramolin-Look – aktuelle Seite
   dunkel, Links grau mit Orange-Hover (!important gegen Theme-Farben) */
body.crm-scope .woocommerce-breadcrumb {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.8rem !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--crm-ink) !important;
  margin: 1.4rem 0 1.6rem !important;
  padding: 0 !important;
}
body.crm-scope .woocommerce-breadcrumb a {
  color: var(--crm-muted) !important;
  text-decoration: none !important;
  transition: color 0.15s ease-out;
}
body.crm-scope .woocommerce-breadcrumb a:hover { color: var(--crm-orange) !important; }
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product div.images {
  background: var(--crm-surface);
  padding: 2rem;
  box-sizing: border-box;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product div.images img { mix-blend-mode: multiply; }

/* Marken-Kicker gross in Orange über dem Titel (wie im Entwurf) */
body.crm-scope .crm-brand-kicker {
  display: block;
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crm-orange);
  margin-bottom: 0;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .product_title {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--crm-ink);
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product p.price {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--crm-ink);
  margin: 0.6rem 0 0.4rem;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product p.price .woocommerce-price-suffix {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--crm-muted);
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .woocommerce-product-details__short-description {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 34rem;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product form.cart {
  display: flex;
  align-items: stretch;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--crm-line);
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product form.cart div.quantity { margin: 0; }
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product form.cart .single_add_to_cart_button { flex-shrink: 0; }
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product form.cart .single_add_to_cart_button::after {
  content: "›";
  margin-left: 0.6em;
  font-size: 1.15em;
  line-height: 0;
}

/* Meta-Block wie im Entwurf: Label grau links, Wert fett schwarz rechts */
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .product_meta {
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--crm-line);
  font-size: 0.95rem;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .product_meta > span { color: var(--crm-muted); }
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .crm-meta__row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .product_meta .crm-meta__label {
  color: var(--crm-muted);
  font-weight: 400;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .crm-meta__value,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .product_meta > span > span {
  color: var(--crm-ink);
  font-weight: 700;
  text-decoration: none;
}
/* Links im Meta-Block: Schwarz statt Theme-Lila (!important gegen Elementor-Kit) */
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .product_meta a {
  color: var(--crm-ink) !important;
  font-weight: 700;
  text-decoration: none !important;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .product_meta a:hover { color: var(--crm-orange) !important; }
@media (max-width: 479px) {
  :is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .crm-meta__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* Tabs */
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 0.5rem;
  border-bottom: 2px solid var(--crm-line);
  display: flex;
  flex-wrap: wrap;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .woocommerce-tabs ul.tabs::before,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .woocommerce-tabs ul.tabs::after,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .woocommerce-tabs ul.tabs li::before,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .woocommerce-tabs ul.tabs li::after { display: none; }
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .woocommerce-tabs ul.tabs li {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--crm-muted);
  padding: 0.9rem 1.4rem;
  position: relative;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--crm-ink); }
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .woocommerce-tabs ul.tabs li.active a { color: var(--crm-ink); }
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .woocommerce-tabs ul.tabs li.active a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--crm-orange);
  display: block;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .woocommerce-Tabs-panel {
  padding: 1.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) div.product .woocommerce-Tabs-panel > h2:first-of-type { display: none; }

:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) table.woocommerce-product-attributes { border: none; }
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) table.woocommerce-product-attributes th,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) table.woocommerce-product-attributes td {
  border: none;
  border-bottom: 1px solid var(--crm-line);
  padding: 0.75rem 1rem;
  font-style: normal;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) table.woocommerce-product-attributes th {
  background: var(--crm-surface);
  color: var(--crm-muted);
  font-weight: 600;
  width: 40%;
}

/* Ähnliche Produkte */
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) section.related > h2,
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) section.up-sells > h2 {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-transform: uppercase;
  color: var(--crm-ink);
}
body.crm-scope .crm-related-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--crm-orange);
  text-decoration: none;
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0.5rem 0 1rem;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) ul.products li.product {
  border: 1px solid var(--crm-line);
  padding: 0 0 1.2rem;
  text-align: left;
  background: #fff;
  transition: border-color 0.18s ease-out;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) ul.products li.product:hover { border-color: var(--crm-ink); }
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) ul.products li.product a img {
  background: var(--crm-surface);
  padding: 1.2rem;
  box-sizing: border-box;
  margin-bottom: 0.9rem;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--crm-ink);
  padding: 0 1.1rem;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) ul.products li.product .price {
  color: var(--crm-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 1.1rem;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) ul.products li.product .button {
  margin: 0.7rem 1.1rem 0;
  background: transparent;
  color: var(--crm-orange);
  padding: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) ul.products li.product .button:hover {
  background: transparent;
  color: var(--crm-orange-dark);
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) span.onsale {
  background: var(--crm-orange);
  color: #fff;
  font-family: var(--crm-font-display);
  font-weight: 700;
  text-transform: uppercase;
  min-height: 0;
  min-width: 0;
  line-height: 1;
  padding: 0.4em 0.7em;
}

/* Ähnliche Produkte – Slider (4 Karten nebeneinander) */
body.crm-scope .crm-related { margin: 1rem 0 3rem; }

body.crm-scope .crm-related__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
body.crm-scope .crm-related__title {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-transform: uppercase;
  color: var(--crm-ink);
  margin: 0;
}
body.crm-scope .crm-related__nav { display: flex; gap: 0.5rem; }
body.crm-scope .crm-related__arrow {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff !important;
  color: var(--crm-ink) !important;
  border: 1px solid var(--crm-line) !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  font-size: 1rem;
  line-height: 1 !important;
  cursor: pointer;
  transition: border-color 0.18s ease-out, color 0.18s ease-out, opacity 0.18s ease-out;
  flex-shrink: 0;
}
body.crm-scope .crm-related__arrow:hover,
body.crm-scope .crm-related__arrow:focus {
  background: #fff !important;
  border-color: var(--crm-ink) !important;
  color: var(--crm-ink) !important;
  box-shadow: none !important;
  outline: none !important;
}
body.crm-scope .crm-related__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #fff !important;
  border-color: var(--crm-line) !important;
}

body.crm-scope .crm-related__viewport { overflow: hidden; }
body.crm-scope .crm-related__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}
body.crm-scope .crm-related__slide {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 0.5rem;
  min-width: 0;
  box-sizing: border-box;
}
body.crm-scope .crm-related__slide:first-child { padding-left: 0; }

/* Karte: Rahmen, zentrierter Name, Preis darunter */
body.crm-scope .crm-related-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--crm-line);
  padding: 1.2rem 1.1rem 1.4rem;
  text-align: center;
  text-decoration: none !important;
  transition: border-color 0.18s ease-out;
}
body.crm-scope .crm-related-card:hover { border-color: var(--crm-ink); }

body.crm-scope .crm-related-card__image {
  display: block;
  background: var(--crm-surface);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
body.crm-scope .crm-related-card__image img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin: 0 auto;
}
body.crm-scope .crm-related-card__name {
  display: block;
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--crm-ink) !important;
  margin-bottom: 0.35rem;
}
body.crm-scope .crm-related-card:hover .crm-related-card__name { color: var(--crm-orange) !important; }
body.crm-scope .crm-related-card__price {
  display: block;
  color: var(--crm-muted) !important;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: auto;
}
body.crm-scope .crm-related-card__price del { opacity: 0.55; margin-right: 0.35rem; }
body.crm-scope .crm-related-card__price ins { text-decoration: none; }

@media (max-width: 991px) {
  body.crm-scope .crm-related__slide { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
@media (max-width: 767px) {
  body.crm-scope .crm-related__slide { flex: 0 0 50%; max-width: 50%; }
  body.crm-scope .crm-related-card__image img { height: 150px; }
}
@media (max-width: 479px) {
  body.crm-scope .crm-related__slide { flex: 0 0 100%; max-width: 100%; }
}

/* ═══════════════════════════════════════════════
   2) SIDE-CART (Drawer, alle Seiten)
═══════════════════════════════════════════════ */
.crm-scope-drawer .crm-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(23, 24, 27, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease-out, visibility 0.28s;
}
.crm-scope-drawer .crm-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 99991;
  width: min(430px, 100vw);
  background: var(--crm-paper);
  border-left: 1px solid var(--crm-line);
  box-shadow: -24px 0 48px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.34s;
  color: var(--crm-body);
}
body.crm-drawer-open .crm-drawer-overlay { opacity: 1; visibility: visible; }
body.crm-drawer-open .crm-drawer { transform: translateX(0); visibility: visible; }
body.crm-drawer-open { overflow: hidden; }

.crm-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--crm-line);
  flex-shrink: 0;
}
.crm-drawer__title {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--crm-ink);
}
.crm-drawer__title .crm-drawer-count { color: var(--crm-orange); }
.crm-drawer__close {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--crm-ink);
  padding: 0;
  transition: background 0.15s ease-out;
}
.crm-drawer__close:hover { background: var(--crm-surface); }

.crm-drawer__body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Artikel-Liste (eigenes mini-cart.php-Markup) */
.crm-scope-drawer ul.crm-minicart-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 1.5rem !important;
  flex: 1;
}
/* Raster hart erzwingen – WC-Core/Theme stylen ul.cart_list li
   (Floats, Paddings, ::before/::after) mit höherer Spezifität */
.crm-scope-drawer li.crm-minicart-item {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) auto !important;
  gap: 1rem !important;
  padding: 1.2rem 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--crm-line) !important;
  align-items: start !important;
  position: relative !important;
  float: none !important;
  width: auto !important;
  overflow: visible !important;
  list-style: none !important;
}
.crm-scope-drawer li.crm-minicart-item::before,
.crm-scope-drawer li.crm-minicart-item::after {
  display: none !important;
  content: none !important;
}
.crm-scope-drawer .crm-minicart-thumb {
  grid-column: 1 !important;
  grid-row: 1 !important;
  float: none !important;
  margin: 0 !important;
}
.crm-scope-drawer .crm-minicart-info {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  min-width: 0;
  float: none !important;
  margin: 0 !important;
}
.crm-scope-drawer .crm-minicart-right {
  grid-column: 3 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  align-self: stretch !important;
  float: none !important;
  margin: 0 !important;
  position: static !important;
  text-align: right !important;
}
.crm-minicart-thumb {
  background: var(--crm-surface);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.crm-minicart-thumb {
  width: 64px !important;
  max-width: 64px !important;
}
.crm-minicart-thumb img {
  width: 52px !important;
  max-width: 52px !important;
  height: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  mix-blend-mode: multiply;
}
.crm-minicart-name {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--crm-ink) !important;
  text-decoration: none;
  line-height: 1.3;
  display: block;
  margin-bottom: 0.15rem;
}
.crm-minicart-unit {
  display: block;
  font-size: 0.8rem;
  color: var(--crm-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.7rem;
}
.crm-minicart-item .quantity { border-color: var(--crm-line); }
.crm-minicart-item .quantity .qty { width: 32px; font-size: 0.85rem; }
.crm-minicart-item .crm-qty-btn { width: 30px; font-size: 0.95rem; }

.crm-minicart-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
}
.crm-minicart-total {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--crm-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.crm-minicart-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--crm-muted);
  transition: color 0.15s ease-out;
}
.crm-minicart-remove:hover { color: var(--crm-orange); }

.crm-minicart-empty {
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.crm-minicart-empty p {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crm-muted);
  margin: 0 0 1.4rem;
}

.crm-minicart-foot {
  flex-shrink: 0;
  border-top: 2px solid var(--crm-ink);
  padding: 1.3rem 1.5rem 1.5rem;
  background: var(--crm-paper);
}
.crm-minicart-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.3rem;
}
.crm-minicart-subtotal__label {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crm-ink);
}
.crm-minicart-subtotal__value {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--crm-ink);
  font-variant-numeric: tabular-nums;
}
.crm-minicart-note {
  font-size: 0.78rem;
  color: var(--crm-muted);
  margin: 0 0 1.1rem;
}
.crm-minicart-buttons {
  display: flex;
  flex-direction: column-reverse; /* Kasse (checkout) zuoberst */
  gap: 0.6rem;
  margin: 0;
}
.crm-minicart-buttons a.button {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9em 1.6em;
  background: transparent;
  color: var(--crm-ink);
  border: 1px solid var(--crm-ink);
  margin: 0;
}
.crm-minicart-buttons a.button:hover { background: var(--crm-ink); color: #fff; }
.crm-minicart-buttons a.button.checkout {
  background: var(--crm-orange);
  color: #fff;
  border: none;
}
.crm-minicart-buttons a.button.checkout:hover { background: var(--crm-orange-dark); }

/* ═══════════════════════════════════════════════
   3) WARENKORB-SEITE (eigenes cart.php-Markup)
═══════════════════════════════════════════════ */
body.crm-scope .crm-page-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.6rem;
}
body.crm-scope .crm-page-head h1 {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--crm-ink);
  margin: 0;
}
body.crm-scope .crm-page-head__count {
  font-size: 1rem;
  color: var(--crm-muted);
  font-weight: 600;
}

body.crm-scope .crm-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

body.crm-scope .crm-items-header {
  display: grid;
  grid-template-columns: 1fr 110px 130px 110px 40px;
  gap: 1rem;
  padding: 0 0 0.7rem;
  border-bottom: 2px solid var(--crm-ink);
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crm-muted);
}
body.crm-scope .crm-items-header span:nth-child(2),
body.crm-scope .crm-items-header span:nth-child(4) { text-align: right; }
body.crm-scope .crm-items-header span:nth-child(3) { text-align: center; }

body.crm-scope .crm-cart-row {
  display: grid;
  grid-template-columns: 1fr 110px 130px 110px 40px;
  gap: 1rem;
  align-items: center;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--crm-line);
}
body.crm-scope .crm-row-product {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}
body.crm-scope .crm-row-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 92px;
  background: var(--crm-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body.crm-scope .crm-row-thumb img {
  width: 56px !important;
  height: auto !important;
  mix-blend-mode: multiply;
}
body.crm-scope .crm-row-name {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--crm-ink);
  line-height: 1.3;
  display: block;
  text-decoration: none;
}
body.crm-scope a.crm-row-name:hover { color: var(--crm-orange); }
body.crm-scope .crm-row-sku {
  font-size: 0.78rem;
  color: var(--crm-muted);
  display: block;
  margin-top: 0.2rem;
}
body.crm-scope .crm-row-price,
body.crm-scope .crm-row-total {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  white-space: nowrap;
}
body.crm-scope .crm-row-total {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--crm-ink);
}
body.crm-scope .crm-row-qty { justify-self: center; }
body.crm-scope .crm-row-remove-wrap { text-align: center; }
body.crm-scope .crm-row-remove {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--crm-muted) !important;
  text-decoration: none;
  transition: color 0.15s ease-out, background 0.15s ease-out;
}
body.crm-scope .crm-row-remove:hover {
  color: var(--crm-orange) !important;
  background: var(--crm-surface);
}

/* Gutschein + Aktionen */
body.crm-scope .crm-cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.4rem 0 0;
}
body.crm-scope .crm-coupon { display: inline-flex; align-items: stretch; }
body.crm-scope .crm-coupon .input-text {
  width: 190px;
  border-right: none;
  margin: 0;
}
body.crm-scope .crm-update-cart { display: none; } /* JS aktualisiert automatisch */
body.crm-scope .crm-continue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--crm-body);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
body.crm-scope .crm-continue-link:hover { color: var(--crm-orange); }

/* Leerer Warenkorb */
body.crm-scope .crm-cart-empty {
  text-align: center;
  padding: 4rem 0 2rem;
}
body.crm-scope .crm-cart-empty__title {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crm-muted);
  margin: 0 0 1.6rem;
}

/* Summen-Box (Warenkorb + geteilt mit Kasse) */
body.crm-scope .crm-cart-collaterals {
  width: 100% !important;
  min-width: 0;
  float: none !important;
}
body.crm-scope .crm-summary {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  background: var(--crm-surface);
  padding: 1.6rem;
  box-sizing: border-box;
  position: sticky;
  top: 1.5rem;
  overflow: hidden;
}
body.crm-scope .crm-summary > h2 {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crm-ink);
  margin: 0 0 1rem;
}
body.crm-scope .crm-sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #d9dbdf;
  font-size: 0.92rem;
}
body.crm-scope .crm-sum-row .crm-sum-label { color: var(--crm-body); }
body.crm-scope .crm-sum-row .crm-sum-value {
  color: var(--crm-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
body.crm-scope .crm-sum-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  padding: 1rem 0 1.3rem;
  border-top: 2px solid var(--crm-ink);
  margin-top: 0.8rem;
}
body.crm-scope .crm-sum-total .crm-sum-label {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crm-ink);
}
body.crm-scope .crm-sum-total .crm-sum-value {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.6vw, 1.7rem);
  color: var(--crm-ink);
  font-variant-numeric: tabular-nums;
}

/* Versand in der Summen-Box (Woo rendert <tr> – Tabelle neutralisieren) */
body.crm-scope .crm-sum-shipping { border-bottom: 1px solid #d9dbdf; }
body.crm-scope .crm-shipping-table { width: 100%; border-collapse: collapse; }
body.crm-scope .crm-shipping-table th,
body.crm-scope .crm-shipping-table td {
  border: none;
  background: none;
  padding: 0.65rem 0;
  font-size: 0.92rem;
  vertical-align: top;
}
body.crm-scope .crm-shipping-table th {
  color: var(--crm-body);
  font-weight: 400;
  text-align: left;
}
body.crm-scope .crm-shipping-table td {
  text-align: right;
  color: var(--crm-ink);
  font-weight: 600;
}
body.crm-scope .crm-shipping-table td ul#shipping_method,
body.crm-scope .crm-shipping-table td ul.woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: right;
}
body.crm-scope .woocommerce-shipping-destination { font-size: 0.8rem; color: var(--crm-muted); }
body.crm-scope .woocommerce-shipping-calculator a { color: var(--crm-orange); font-size: 0.82rem; }

body.crm-scope .wc-proceed-to-checkout { padding: 0; }
body.crm-scope .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 0;
  display: block;
}
body.crm-scope .crm-pay-hint {
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crm-muted);
  margin: 0.9rem 0 0;
}

/* ═══════════════════════════════════════════════
   4) KASSE (eigenes form-checkout.php-Markup)
═══════════════════════════════════════════════ */
body.crm-scope form.crm-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}
body.crm-scope .crm-checkout-main { min-width: 0; }
body.crm-scope form.crm-checkout .col2-set {
  width: 100%;
  float: none;
}
body.crm-scope form.crm-checkout .col2-set .col-1,
body.crm-scope form.crm-checkout .col2-set .col-2 {
  width: 100%;
  float: none;
}

body.crm-scope .crm-login-hint {
  font-size: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: var(--crm-surface);
  margin: 0 0 2rem;
}
body.crm-scope .crm-login-hint a {
  color: var(--crm-orange);
  font-weight: 600;
  text-decoration: none;
}
body.crm-scope .crm-login-hint a:hover { text-decoration: underline; }

body.crm-scope .crm-form-section { margin-bottom: 2.4rem; }
body.crm-scope .crm-section-head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  border-bottom: 2px solid var(--crm-ink);
  padding-bottom: 0.6rem;
  margin-bottom: 1.3rem;
}
body.crm-scope .crm-section-num {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--crm-orange);
}
body.crm-scope .crm-section-head h3 {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crm-ink);
  margin: 0;
  border: none;
  padding: 0;
}

/* Felder */
body.crm-scope form.crm-checkout .form-row label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crm-ink);
}
body.crm-scope form.crm-checkout .form-row label .optional {
  color: var(--crm-muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
body.crm-scope form.crm-checkout .form-row { margin-bottom: 1rem; }
body.crm-scope form.crm-checkout .select2-container--default .select2-selection--single {
  border: 1px solid #c9cbd0;
  height: 42px;
}
body.crm-scope form.crm-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  color: var(--crm-ink);
}
body.crm-scope form.crm-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; }

/* Versand-Abschnitt + Zahlarten als Options-Karten */
body.crm-scope .crm-option-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--crm-line);
  background: #fff;
  padding: 1rem 1.1rem;
  cursor: pointer;
  margin-bottom: 0.6rem;
  transition: border-color 0.15s ease-out;
}
body.crm-scope .crm-option-card:hover { border-color: #9a9da3; }
body.crm-scope .crm-option-card.crm-selected { border-color: var(--crm-ink); }
body.crm-scope .crm-option-card input[type="radio"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--crm-orange);
  flex-shrink: 0;
}
body.crm-scope .crm-option-card .crm-option-name {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crm-ink);
}
body.crm-scope .crm-shipping-note,
body.crm-scope .crm-payment-note {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--crm-muted);
  margin: 0.5rem 0 1rem;
}

/* Zahlarten (Standard-#payment-Markup in Karten-Optik) */
body.crm-scope #payment { background: none; }
body.crm-scope #payment ul.wc_payment_methods {
  border-bottom: none;
  padding: 0;
  margin: 0 0 1rem;
}
body.crm-scope #payment ul.wc_payment_methods li.wc_payment_method {
  position: relative;
  border: 1px solid var(--crm-line);
  background: #fff;
  padding: 0;
  margin-bottom: 0.6rem;
  list-style: none;
  transition: border-color 0.15s ease-out;
}
body.crm-scope #payment ul.wc_payment_methods li.wc_payment_method:hover { border-color: #9a9da3; }
body.crm-scope #payment ul.wc_payment_methods li.wc_payment_method.crm-selected { border-color: var(--crm-ink); }
body.crm-scope #payment ul.wc_payment_methods li.wc_payment_method > label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem 1rem 2.6rem;
  cursor: pointer;
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crm-ink);
  width: auto;
  margin: 0;
}
body.crm-scope #payment ul.wc_payment_methods li.wc_payment_method > input[type="radio"] {
  position: absolute;
  top: 1.2rem;
  left: 1.1rem;
  margin: 0;
  accent-color: var(--crm-orange);
}
body.crm-scope #payment div.payment_box {
  background: var(--crm-surface);
  color: var(--crm-body);
  font-size: 0.85rem;
  margin: 0;
  padding: 0.9rem 1.1rem;
}
body.crm-scope #payment div.payment_box::before { display: none; }

body.crm-scope .woocommerce-privacy-policy-text p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--crm-muted);
}
body.crm-scope .woocommerce-privacy-policy-text a,
body.crm-scope .woocommerce-terms-and-conditions-checkbox-text a { color: var(--crm-orange); }

body.crm-scope #payment .place-order { padding: 1rem 0 0; }
body.crm-scope #payment #place_order {
  width: 100%;
  box-sizing: border-box;
  font-size: 1.05rem;
  padding: 1em 1.8em;
  float: none;
}
body.crm-scope .crm-secure-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crm-muted);
  margin: 0.9rem 0 0;
}
body.crm-scope .crm-secure-hint svg { color: var(--crm-teal); }

/* Bestellübersicht rechts ("Ihr Warenkorb") */
body.crm-scope .crm-order-col { min-width: 0; }
body.crm-scope .crm-order-box {
  background: var(--crm-surface);
  padding: 1.6rem;
  box-sizing: border-box;
  position: sticky;
  top: 1.5rem;
}
body.crm-scope .crm-order-box h2 {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crm-ink);
  margin: 0 0 1.1rem;
  border: none;
  padding: 0;
}

body.crm-scope .crm-review-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #d9dbdf;
  align-items: start;
}
body.crm-scope .crm-review-thumb {
  background: #fff;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body.crm-scope .crm-review-thumb img {
  width: 42px !important;
  height: auto !important;
  mix-blend-mode: multiply;
}
body.crm-scope .crm-review-name {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--crm-ink);
  line-height: 1.3;
  display: block;
  margin-bottom: 0.1rem;
}
body.crm-scope .crm-review-unit {
  display: block;
  font-size: 0.78rem;
  color: var(--crm-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}
body.crm-scope .crm-review-item .quantity { background: #fff; }
body.crm-scope .crm-review-item .quantity .qty { width: 28px; font-size: 0.82rem; }
body.crm-scope .crm-review-item .crm-qty-btn { width: 26px; font-size: 0.9rem; }
body.crm-scope .crm-review-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
body.crm-scope .crm-review-total {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--crm-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.crm-scope .crm-review-sums { margin-top: 0.6rem; }
body.crm-scope .crm-review-sums .crm-sum-row { padding: 0.5rem 0; font-size: 0.9rem; }
body.crm-scope .crm-review-sums .crm-sum-total { padding: 0.9rem 0 0; }
body.crm-scope .crm-review-sums .crm-sum-total .crm-sum-value { font-size: 1.55rem; }

/* Gutschein-Toggle der Kasse */
body.crm-scope .woocommerce-form-coupon-toggle .woocommerce-info {
  border-left-color: var(--crm-orange) !important;
}
body.crm-scope .woocommerce-form-coupon-toggle a { color: var(--crm-orange); }

/* Trust-Box */
body.crm-scope .crm-trust-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid #d9dbdf;
  background: #fff;
  padding: 0.9rem 1.1rem;
  margin-top: 1.4rem;
}
body.crm-scope .crm-trust-box svg { color: var(--crm-teal); flex-shrink: 0; }
body.crm-scope .crm-trust-title {
  display: block;
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crm-ink);
}
body.crm-scope .crm-trust-desc { font-size: 0.78rem; color: var(--crm-muted); }

/* ═══════════════════════════════════════════════
   5) MEIN KONTO (Anmelden, Registrieren, Konto-Bereich)
═══════════════════════════════════════════════ */

/* Links im Konto-Bereich: Tinte statt Theme-Linkfarbe */
body.crm-scope .crm-account-page a,
body.crm-scope .crm-auth a {
  color: var(--crm-ink);
  text-decoration: none;
}
body.crm-scope .crm-account-page a:hover,
body.crm-scope .crm-auth a:hover { color: var(--crm-orange); }

/* Labels in allen Konto-Formularen wie an der Kasse */
body.crm-scope .crm-auth .form-row label,
body.crm-scope .crm-account-content .form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crm-ink);
  margin-bottom: 0.35rem;
}
body.crm-scope .crm-auth .form-row label .optional,
body.crm-scope .crm-account-content .form-row label .optional {
  color: var(--crm-muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
body.crm-scope .crm-auth .form-row,
body.crm-scope .crm-account-content .form-row {
  margin: 0 0 1.1rem;
  padding: 0;
  float: none;
  width: auto;
}
body.crm-scope .crm-auth .form-row .input-text,
body.crm-scope .crm-account-content .form-row .input-text {
  width: 100%;
  box-sizing: border-box;
}
body.crm-scope .crm-account-content .required,
body.crm-scope .crm-auth .required {
  color: var(--crm-orange);
  text-decoration: none;
}
body.crm-scope .crm-field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--crm-muted);
  margin-top: 0.35rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* Zweispaltiges Feld-Raster (Adress- und Kontodetails-Formulare) */
body.crm-scope .crm-form-grid,
body.crm-scope .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2rem;
}
body.crm-scope .crm-form-grid .form-row,
body.crm-scope .woocommerce-address-fields__field-wrapper .form-row { min-width: 0; }
body.crm-scope .crm-form-grid .form-row-wide,
body.crm-scope .woocommerce-address-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }

/* Select2 (Land/Kanton) im Konto-Bereich wie an der Kasse */
body.crm-scope .crm-account-content .select2-container--default .select2-selection--single {
  border: 1px solid #c9cbd0;
  height: 42px;
}
body.crm-scope .crm-account-content .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  color: var(--crm-ink);
}
body.crm-scope .crm-account-content .select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; }

body.crm-scope .crm-form-submit { margin: 0.4rem 0 0; }
body.crm-scope .crm-password-fields {
  border: none;
  margin: 0;
  padding: 0;
}

/* ── Layout: Navigation links, Inhalt rechts ── */
body.crm-scope .crm-account-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
body.crm-scope .crm-account-content { min-width: 0; }

/* Navigation (min-width: 0, damit die nowrap-Liste als Grid-Item
   die Spalte nicht sprengt – die ul scrollt mobil horizontal).
   WooCommerce-Core setzt float + width 30 %/68 % auf Nav und
   Inhalt – im Grid-Layout hart zurücksetzen. */
body.crm-scope .crm-account-nav,
body.crm-scope nav.woocommerce-MyAccount-navigation {
  min-width: 0;
  max-width: 100%;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.crm-scope .woocommerce-MyAccount-content {
  width: auto !important;
  float: none !important;
}
body.crm-scope .crm-account-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--crm-line);
  background: #fff;
}
body.crm-scope .crm-account-nav li { margin: 0; padding: 0; }
body.crm-scope .crm-account-nav li + li { border-top: 1px solid var(--crm-line); }
body.crm-scope .crm-account-nav li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.1rem;
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--crm-muted) !important;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.15s ease-out, background 0.15s ease-out, border-color 0.15s ease-out;
}
body.crm-scope .crm-account-nav li a svg { flex-shrink: 0; }
body.crm-scope .crm-account-nav li a:hover {
  color: var(--crm-ink) !important;
  background: var(--crm-surface);
}
body.crm-scope .crm-account-nav li.is-active a {
  color: var(--crm-ink) !important;
  background: var(--crm-surface);
  border-left-color: var(--crm-orange);
}
body.crm-scope .crm-account-nav li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  color: var(--crm-orange) !important;
}

/* Überschriften im Inhalt (z. B. "Bestelldetails" auf view-order) */
body.crm-scope .crm-account-content h2 {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crm-ink);
  border-bottom: 2px solid var(--crm-ink);
  padding: 0 0 0.6rem;
  margin: 2rem 0 1.3rem;
}
body.crm-scope .crm-account-content .crm-section-head { margin-top: 0; }
body.crm-scope .crm-account-content .crm-form-section { margin-bottom: 2.2rem; }

/* ── Dashboard (Übersicht) ── */
body.crm-scope .crm-dash-greeting {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 1.8rem;
}
body.crm-scope .crm-dash-greeting a { color: var(--crm-orange) !important; font-weight: 600; }
body.crm-scope .crm-dash-greeting a:hover { text-decoration: underline; }
body.crm-scope .crm-dash-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}
/* wpautop-Schutz: Themes, die the_content auf die Shortcode-Ausgabe
   anwenden, injizieren <br> und leere <p> – im Kachel-Raster würden
   die zu unsichtbaren Grid-Items und verschieben die Kacheln */
body.crm-scope .crm-dash-grid > p:empty,
body.crm-scope .crm-dash-grid > br,
body.crm-scope .crm-dash-tile br,
body.crm-scope .crm-dash-greeting br,
body.crm-scope .crm-account-nav a br { display: none !important; }
body.crm-scope .crm-dash-tile {
  display: block;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  box-sizing: border-box;
  border: 1px solid var(--crm-line);
  background: #fff;
  padding: 1.4rem 1.3rem 1.5rem;
  text-decoration: none !important;
  transition: border-color 0.18s ease-out;
}
body.crm-scope .crm-dash-tile:hover { border-color: var(--crm-ink); }
body.crm-scope .crm-dash-tile svg { color: var(--crm-orange); margin-bottom: 0.9rem; display: block; }
body.crm-scope .crm-dash-tile__title {
  display: block;
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--crm-ink) !important;
  margin-bottom: 0.3rem;
}
body.crm-scope .crm-dash-tile:hover .crm-dash-tile__title { color: var(--crm-orange) !important; }
body.crm-scope .crm-dash-tile__desc {
  display: block;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--crm-muted) !important;
}

/* ── Tabellen (Bestellungen, Downloads, Bestelldetails) ── */
body.crm-scope .crm-account-content table.shop_table {
  width: 100%;
  border: none;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
}
body.crm-scope .crm-account-content table.shop_table th,
body.crm-scope .crm-account-content table.shop_table td {
  border: none;
  border-bottom: 1px solid var(--crm-line);
  padding: 0.85rem 0.8rem;
  font-size: 0.92rem;
  text-align: left;
  background: none;
}
body.crm-scope .crm-account-content table.shop_table thead th {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crm-muted);
  border-bottom: 2px solid var(--crm-ink);
  padding-top: 0;
}
body.crm-scope .crm-account-content table.shop_table td.woocommerce-orders-table__cell-order-number a,
body.crm-scope .crm-account-content table.shop_table .woocommerce-orders-table__cell-order-number a {
  font-family: var(--crm-font-display);
  font-weight: 700;
  color: var(--crm-ink);
}
body.crm-scope .crm-account-content table.shop_table td .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }
body.crm-scope .crm-account-content table.shop_table tfoot th,
body.crm-scope .crm-account-content table.shop_table tfoot td { font-weight: 600; color: var(--crm-ink); }

/* Kleine Outline-Buttons in Tabellen (Anzeigen, Erneut bestellen …) */
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .crm-account-content table.shop_table .button {
  background: transparent !important;
  color: var(--crm-ink) !important;
  border: 1px solid var(--crm-ink) !important;
  padding: 0.5em 1.1em;
  font-size: 0.78rem;
  margin: 0.15rem 0.35rem 0.15rem 0;
}
:is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .crm-account-content table.shop_table .button:hover {
  background: var(--crm-ink) !important;
  color: #fff !important;
}

/* Seitennummerierung unter den Bestellungen */
body.crm-scope .woocommerce-pagination--without-numbers {
  display: flex;
  gap: 0.6rem;
}

/* ── Adressen ── */
body.crm-scope .crm-addresses-intro p {
  font-size: 0.92rem;
  color: var(--crm-muted);
  margin: 0 0 1.4rem;
}
body.crm-scope .crm-addresses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
body.crm-scope .crm-address-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--crm-line);
  background: #fff;
  padding: 1.4rem 1.3rem;
}
body.crm-scope .crm-address-card h3 {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crm-ink);
  margin: 0 0 0.9rem;
  padding: 0 0 0.6rem;
  border-bottom: 2px solid var(--crm-ink);
}
body.crm-scope .crm-address-card address {
  flex: 1;
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--crm-body);
  margin: 0 0 1.1rem;
  border: none;
  padding: 0;
}
body.crm-scope .crm-address-empty { color: var(--crm-muted); }
body.crm-scope .crm-address-edit {
  font-family: var(--crm-font-display);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crm-orange) !important;
}
body.crm-scope .crm-address-edit:hover { color: var(--crm-orange-dark) !important; }

/* ── Anmelden / Registrieren / Passwort ── */
body.crm-scope .crm-auth { max-width: 1000px; margin: 0 auto; }
body.crm-scope .crm-auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
body.crm-scope .crm-auth-layout--single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}
body.crm-scope .crm-auth-card {
  border: 1px solid var(--crm-line);
  background: #fff;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-sizing: border-box;
}
body.crm-scope .crm-auth-card--register { background: var(--crm-surface); }
body.crm-scope .crm-auth-card .crm-section-head { margin-bottom: 1.4rem; }

body.crm-scope .crm-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.2rem 0 1.4rem;
}
body.crm-scope .crm-remember {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--crm-body);
  cursor: pointer;
  margin: 0;
}
body.crm-scope .crm-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--crm-orange);
  flex-shrink: 0;
}
body.crm-scope .crm-remember span {
  font-weight: 400;
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--crm-body);
}
body.crm-scope .crm-lost-password {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--crm-orange) !important;
}
body.crm-scope .crm-lost-password:hover { text-decoration: underline; }

body.crm-scope .crm-auth-submit {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
body.crm-scope .crm-auth-note {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--crm-muted);
  margin: 0 0 1.2rem;
}
body.crm-scope .crm-auth-benefits {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
body.crm-scope .crm-auth-benefits li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--crm-body);
  margin: 0 0 0.55rem;
}
body.crm-scope .crm-auth-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--crm-teal);
  font-weight: 700;
}
body.crm-scope .crm-auth-back { margin: 1.2rem 0 0; font-size: 0.86rem; }
body.crm-scope .crm-auth-back a { color: var(--crm-muted); font-weight: 600; }
body.crm-scope .crm-auth-back a:hover { color: var(--crm-orange); }
body.crm-scope .crm-auth-card--confirmation { text-align: center; }
body.crm-scope .crm-auth-check { color: var(--crm-teal); margin: 0.4rem auto 1rem; display: inline-block; }
body.crm-scope .crm-auth-confirmation { font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* Konto-Bereich responsive */
@media (max-width: 860px) {
  body.crm-scope .crm-account-layout { grid-template-columns: 1fr; }

  /* Navigation als horizontale Leiste */
  body.crm-scope .crm-account-nav ul {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: none;
    border-bottom: 2px solid var(--crm-line);
    background: transparent;
  }
  body.crm-scope .crm-account-nav li + li { border-top: none; }
  body.crm-scope .crm-account-nav li a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.8rem 0.9rem;
  }
  body.crm-scope .crm-account-nav li a:hover { background: transparent; }
  body.crm-scope .crm-account-nav li.is-active a {
    background: transparent;
    border-bottom-color: var(--crm-orange);
  }
  body.crm-scope .crm-account-nav li a svg { display: none; }

  body.crm-scope .crm-auth-layout { grid-template-columns: 1fr; }

  /* Bestell-Tabelle gestapelt (nutzt data-title der Woo-Zellen) –
     ab demselben Umbruch wie das Layout, sonst sprengt die
     5-Spalten-Tabelle (min. ~560px) die Seitenbreite */
  body.crm-scope .crm-account-content table.woocommerce-orders-table thead { display: none; }
  body.crm-scope .crm-account-content table.woocommerce-orders-table tr {
    display: block;
    border-bottom: 1px solid var(--crm-line);
    padding: 0.9rem 0;
  }
  body.crm-scope .crm-account-content table.woocommerce-orders-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: none;
    padding: 0.25rem 0;
  }
  body.crm-scope .crm-account-content table.woocommerce-orders-table td::before {
    content: attr(data-title);
    font-family: var(--crm-font-display);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--crm-muted);
  }
  body.crm-scope .crm-account-content table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before { content: none; }
}
@media (max-width: 560px) {
  body.crm-scope .crm-form-grid,
  body.crm-scope .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1020px) {
  body.crm-scope .crm-cart-layout,
  body.crm-scope form.crm-checkout { grid-template-columns: 1fr; }
  body.crm-scope .crm-summary,
  body.crm-scope .crm-order-box { position: static; }
  body.crm-scope .crm-order-col { order: -1; }
}
@media (max-width: 680px) {
  body.crm-scope .crm-items-header { display: none; }
  body.crm-scope .crm-cart-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "product remove"
      "qty total";
    row-gap: 1rem;
  }
  body.crm-scope .crm-row-product { grid-area: product; }
  body.crm-scope .crm-row-remove-wrap { grid-area: remove; }
  body.crm-scope .crm-row-qty { grid-area: qty; justify-self: start; }
  body.crm-scope .crm-row-total { grid-area: total; align-self: center; }
  body.crm-scope .crm-row-price { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .crm-scope-drawer .crm-drawer {
    transition: opacity 0.15s ease-out;
    transform: none;
    opacity: 0;
  }
  body.crm-drawer-open .crm-drawer { opacity: 1; }
  .crm-scope-drawer .crm-drawer-overlay { transition: opacity 0.15s ease-out; }
  :is(body.crm-scope.woocommerce, body.crm-scope .woocommerce) .button,
  .crm-qty-btn { transition: none; }
}
