/* A/B-Test "pdp-kompakt" (27.09.2026) — greift nur in Gruppe b (html.rh-ab-kompakt; Zuteilung
   rh_ab in php/functions_custom.php, 50/50 ueber die Sitzung). Auswertung nach 7 Tagen mit
   rplay variants: pdp-kompakt gegen pdp-standard, Warenkorbquote der Produktseiten-Sitzungen.
   Gewinnt b: Regeln in die Module uebernehmen. Verliert b: diese Datei, den Include im Header,
   rh_price_trust.tpl und die Klasse entfernen.
   1) Kaufleiste mobil: beschrifteter Preis + Steuer/Versand | Button, ab 320 px ohne Überlagerung.
      Menge im Drawer/Warenkorb, Variante steht in der Seite, Zubehoer liegt ueber dem Button.
   2) Vertrauenszeile unter dem Preis (rh_price_trust.tpl).
   3) Doppelter gruener Lieferkasten in der Groessenwahl entfaellt (steht jetzt unter dem Preis). */

/* 2) Vertrauenszeile, alle Geraete */
html.rh-ab-kompakt body .rh-price-trust { display: grid; gap: 10px; margin: 14px 0 12px; padding: 12px 0 0; border-top: 1px solid #e2e9f0; }
html.rh-ab-kompakt body .rh-price-trust__list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
html.rh-ab-kompakt body .rh-price-trust__item { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: #172638; font: 500 13px/1.35 var(--font-body, 'IBM Plex Sans', sans-serif) !important; letter-spacing: normal !important; }
html.rh-ab-kompakt body .rh-price-trust__item strong { font-weight: 700; }
html.rh-ab-kompakt body .rh-price-trust__item svg { flex: 0 0 auto; width: 17px; height: 17px; color: #116bb0; }
html.rh-ab-kompakt body .rh-price-trust__item.is-fast,
html.rh-ab-kompakt body .rh-price-trust__item.is-fast svg { color: #1b6e3a; }
html.rh-ab-kompakt body .rh-price-trust__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
html.rh-ab-kompakt body .rh-price-trust__pay > span { color: #172638; font: 500 13px/1.35 var(--font-body, 'IBM Plex Sans', sans-serif) !important; letter-spacing: normal !important; }
html.rh-ab-kompakt body #content #product-offer .rh-price-trust .rt-pdp-payment-strip { display: flex !important; flex-wrap: wrap !important; justify-content: flex-start !important; align-items: center !important; gap: 10px !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
html.rh-ab-kompakt body #content #product-offer .rh-price-trust .rt-pdp-payment-strip .rt-pdp-payment-icon { display: block !important; flex: 0 0 auto !important; width: var(--rh-trust-logo-width, 44px) !important; height: 20px !important; max-width: none !important; margin: 0 !important; padding: 0 !important; object-fit: contain; }
html.rh-ab-kompakt body #content #product-offer .rh-price-trust .rt-pdp-payment-strip .rt-pdp-payment-icon:is([hidden], .rt-pdp-payment-icon--dhl) { display: none !important; }

/* Equal optical weight: SVGs have different aspect ratios and whitespace. */
html.rh-ab-kompakt .rh-price-trust .rt-pdp-payment-icon--klarna { --rh-trust-logo-width: 48px; }
html.rh-ab-kompakt .rh-price-trust .rt-pdp-payment-icon--mastercard { --rh-trust-logo-width: 30px; }
html.rh-ab-kompakt .rh-price-trust .rt-pdp-payment-icon--paypal { --rh-trust-logo-width: 66px; }
html.rh-ab-kompakt .rh-price-trust .rt-pdp-payment-icon--visa { --rh-trust-logo-width: 42px; }
html.rh-ab-kompakt .rh-price-trust .rt-pdp-payment-icon--rechnung { --rh-trust-logo-width: 22px; }

/* 3) Doppelter Lieferkasten in der Groessenwahl */
html.rh-ab-kompakt body .rh3-size-delivery { display: none !important; }

/* 1) Kaufleiste mobil einzeilig */
@media (max-width: 767.98px) {
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rt-pdp-mobile-cta__inner { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important; align-items: center !important; gap: 12px !important; }
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rt-pdp-mobile-cta__summary { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 3px !important; margin: 0 !important; min-width: 0 !important; }
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rt-pdp-mobile-cta__summary > * { position: static !important; grid-area: auto !important; justify-self: start !important; margin: 0 !important; text-align: left !important; }
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rh3-sticky-pricing { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; min-width: 0; }
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rh3-sticky-price-kind { display: block !important; order: -1; font-size: 11px !important; line-height: 1.2 !important; color: #5b6b7d; font-weight: 500; }
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rh3-sticky-uvp { display: none !important; }
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rt-pdp-mobile-cta__price { font-size: clamp(20px, 6vw, 24px) !important; white-space: nowrap; line-height: 1.1 !important; font-variant-numeric: tabular-nums; }
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rt-pdp-mobile-cta__note { display: block !important; min-width: 0 !important; max-width: 100% !important; color: #5b6b7d !important; font-size: 12px !important; font-weight: 500 !important; line-height: 1.3 !important; white-space: normal !important; }
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rt-pdp-mobile-cta__note * { font-size: 12px !important; }
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rh3-sticky-tax-ship { display: inline-block !important; white-space: nowrap !important; }
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rh3-sticky-shipping,
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta [data-rh-sticky-delivery],
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rt-pdp-mobile-cta__variant,
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rh3-sticky-quantity,
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rh3-sticky-config { display: none !important; }
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rh3-sticky-actions { display: block !important; min-width: 0 !important; margin: 0 !important; }
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rt-pdp-mobile-cta__button { width: 100% !important; min-width: 0 !important; min-height: 48px !important; height: auto !important; padding: 12px 8px !important; font-size: clamp(14px, 4vw, 16px) !important; line-height: 1.35 !important; white-space: normal !important; }
}

/* Nachtrag 26.09.2026: Die Zeile steht im Template INNERHALB des Preisbereichs. Mobil sortiert
   Modul 28 die Kinder des Produktkopfs per order (Grundwert 8); daneben stand sie hinter der
   Groessenwahl. Im Preisbereich wandert sie mit dem Preis. */
html.rh-ab-kompakt body .dh-pdp-buybox__price-under-title > .rh-price-trust { margin-bottom: 4px; }
/* Elektro-/Set-Leisten bauen ihre Steuerzeile ohne .rh3-sticky-tax-ship ("✓ Gratis Versand"):
   dort dieselbe Kurzform zeigen, der Originaltext bleibt fuer Screenreader. */
@media (max-width: 767.98px) {
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rt-pdp-mobile-cta__note:not(:has(.rh3-sticky-tax-ship)) .rh3-sticky-shipping { display: inline !important; font-size: 0 !important; }
  html.rh-pdp3.rh-ab-kompakt body .rh3-purchase-sticky.rt-pdp-mobile-cta .rt-pdp-mobile-cta__note:not(:has(.rh3-sticky-tax-ship)) .rh3-sticky-shipping::after { content: " · Versand frei"; font-size: 12px; font-weight: 500; color: #5b6b7d; }
}
