/**
 * pricing-erp-lager-switch-leak.css — ROOT fix for the leaked Preise pricing chrome
 *
 * Client feedback (Preise sub-pages cleanup):
 *   "Auf diesen Seiten ist in der Preise Sektion noch der Switch zwischen ERP &
 *    Lager. Leider funktioniert er nicht und außer auf der Preise-Seite nicht
 *    wirklich Sinn."
 *   (shop-software, lagerverwaltung-software, jtl-warenwirtschaft-cloud,
 *    shop-hosting — and in fact every page that renders the pricing widget.)
 *
 * ── Root cause ───────────────────────────────────────────────────────────────
 * The "ERP & Lager switch" is NOT interactive DOM. The JP-372 navy pricing
 * redesign painted three DECORATIVE pseudo-elements onto the CardPrice widget
 * (`.product-price-plan-section` / `.dark-card-widget`) via a GLOBAL selector in
 * custom-clone.css (~L2891 / L2937 / L2964):
 *
 *   1. `.product-price-plan-section::before`
 *        → the prompt "Wofür interessierst du dich?"
 *   2. `.dark-card-widget::before`
 *        → a static SVG "ERP-Shopsysteme | Lagerverwaltung" tab strip
 *          (`pointer-events:none` → UNCLICKABLE — hence "funktioniert nicht")
 *   3. `.dark-card-widget__top-text::after`
 *        → a static SVG "Bis zu 17 % sparen / Monatlich | Jährlich" billing
 *          switch (no <input>, no JS → UNCLICKABLE)
 *
 * Because the source selector is global, these leak onto EVERY page that uses
 * the pricing widget, not just the main Preise page where the edition/billing
 * chooser belongs. This had been patched per-page at least seven times
 * (jp-510 partial, jp-521, jp-584, jp-585, jp-586, + JP-510/520 history) —
 * whack-a-mole that still left shop-software showing the ERP/Lager strip and
 * wawi-warenwirtschaft-cloud / shop-hosting showing all three.
 *
 * ── Fix (root, once) ─────────────────────────────────────────────────────────
 * Suppress the three leaked decorations on EVERY page EXCEPT the live Preise
 * page and its English twin, and restore the navy panel's natural rounded top
 * (it is only squared off + pushed down 46px to seat the tab strip above it).
 * One rule set covers all current and future pages, so no new per-page patch is
 * ever needed again.
 *
 *   Live Preise page (where the chooser legitimately renders, unchanged):
 *     DE  /de/preise-und-editionen/  → body.page-id-236585
 *     EN  /en/pricing/               → body.page-id-262970
 *
 * The `body:not(.page-id-…)` chain keeps these pages untouched while the doubled
 * `.product-price-plan-section.product-price-plan-section` source specificity is
 * beaten by the added :not() classes + !important + later load order. The page's
 * own functional controls (the prices-new price-table, and the real
 * monthly/yearly switch JP-510 added to the widget — a separate
 * `.dark-card-widget__price-switch` element) are NOT affected.
 *
 * NOTE: this lives in overrides/ (rule 4b) and makes the earlier per-page
 * suppressions (jp-510 ::after / jp-584 / jp-585 / jp-586) redundant no-ops;
 * they are left in place and can be cleaned up in a follow-up.
 */

/* 1 + 2 + 3 — kill the leaked decorative pseudo-elements everywhere but Preise */
body:not(.page-id-236585):not(.page-id-262970) .product-price-plan-section.product-price-plan-section::before,
body:not(.page-id-236585):not(.page-id-262970) .product-price-plan-section.product-price-plan-section .dark-card-widget::before,
body:not(.page-id-236585):not(.page-id-262970) .product-price-plan-section.product-price-plan-section .dark-card-widget .dark-card-widget__top-text::after {
    content: none !important;
    display: none !important;
    background-image: none !important;
}

/* 4 — tab strip gone → give the navy panel its full rounded top back and drop
   the 46px gap that was reserved for the strip above it. */
body:not(.page-id-236585):not(.page-id-262970) .product-price-plan-section.product-price-plan-section .dark-card-widget {
    margin-top: 0 !important;
    border-radius: 46px !important;
}
