/* =========================================================================
   Duwerag Shop – Styles (Blog 6)
   Stil angelehnt an alltron.ch: flach, kompakt, Linien statt Boxen
   ========================================================================= */

.single-product,
.post-type-archive-product,
.tax-product_cat,
.tax-product_tag {
  --dw-red: #d84c53;
  --dw-coral: #ef776e;
  --dw-dark: #231f20;
  --dw-grey: #f5f5f5;
  --dw-line: #e3e3e3;
  --dw-r: 3px;
}

/* Kalender (Litepicker-Variablen) */
:root {
  --litepicker-is-start-color-bg: #d84c53;
  --litepicker-is-end-color-bg: #d84c53;
  --litepicker-is-in-range-color: #fbe4e5;
  --litepicker-is-today-color: #d84c53;
  --litepicker-day-color-hover: #d84c53;
  --litepicker-button-prev-month-color: #231f20;
  --litepicker-button-next-month-color: #231f20;
  --litepicker-button-prev-month-color-hover: #d84c53;
  --litepicker-button-next-month-color-hover: #d84c53;
  --litepicker-button-apply-color-bg: #ef776e;
  --litepicker-highlighted-day-color-bg: #d84c53;
}

/* =========================================================================
   PRODUKTSEITE
   ========================================================================= */

/* Titel + Preis */
.single-product .product_title { font-size: 30px !important; line-height: 1.25; }
.single-product .elementor-element-06379d8 { color: #666; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 -10px; }
.single-product .elementor-widget-woocommerce-product-price .price,
.single-product .elementor-widget-woocommerce-product-price .price * { color: var(--dw-dark) !important; font-weight: 700; font-size: 26px; }

/* MWST-Hinweis neben Preisen */
.woocommerce-price-suffix { font-size: 12px !important; font-weight: 400 !important; color: #888 !important; white-space: nowrap; }

/* Bestellbereich ohne Box */
.single-product .elementor-widget-woocommerce-product-add-to-cart { background: transparent !important; padding: 0 !important; }

/* Add-Ons: Linien statt Box */
.single-product .wc-pao-addons-container { padding: 14px 0; margin: 0 0 16px !important; border-top: 1px solid var(--dw-line); border-bottom: 1px solid var(--dw-line); }
.single-product .wc-pao-addon-container,
.single-product .wc-pao-addons-container .wc-pao-addon-wrap { margin: 0 !important; }
.single-product .wc-pao-addon-name,
.single-product .wc-pao-fieldset legend { font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: .03em; color: var(--dw-dark); margin-bottom: 4px; }
.single-product .wc-pao-addon-wrap label { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 3px 0; cursor: pointer; }
.single-product .wc-pao-addon-wrap p { margin: 0; }
.single-product form.cart input[type=checkbox] { accent-color: var(--dw-red); width: 18px; height: 18px; }
.single-product .wc-pao-addon-price { color: #666; }

/* Mietzeitraum oben, darunter Menge + Button in einer Zeile */
.single-product .e-atc-qty-button-holder { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.single-product .e-atc-qty-button-holder > .wcrp-rental-products-rental-form { order: 1; flex: 1 1 100%; width: 100%; }
.single-product .e-atc-qty-button-holder > .quantity { order: 2; flex: 0 0 90px !important; max-width: 90px !important; margin: 0 !important; }
.single-product .e-atc-qty-button-holder > .single_add_to_cart_button { order: 3; flex: 1 1 0 !important; width: auto !important; margin: 0 !important; }
.single-product .wcrp-rental-products-rental-dates-wrap { margin: 0; }
.single-product .wcrp-rental-products-rental-dates-wrap label { display: block; font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: .03em; color: var(--dw-dark); margin-bottom: 4px; }
.single-product input.wcrp-rental-products-rental-dates,
.single-product form.cart .quantity input.qty { height: 42px !important; min-height: 42px; padding: 0 12px !important; border: 1px solid var(--dw-line) !important; border-radius: var(--dw-r) !important; background: #fff; font-size: 15px; width: 100%; }

/* Kalender-Popup */
.single-product .litepicker { border-radius: var(--dw-r); box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.single-product .litepicker button.button-previous-month,
.single-product .litepicker button.button-next-month { background: transparent !important; border: 0 !important; padding: 4px 8px !important; box-shadow: none !important; }
.single-product .litepicker button.button-previous-month:hover,
.single-product .litepicker button.button-next-month:hover { background: var(--dw-grey) !important; }
.single-product .litepicker .month-item-name,
.single-product .litepicker .month-item-year { font-size: 14px; color: var(--dw-dark); }

/* Hinweise: schlanke Zeile */
.single-product .wcrp-rental-products-rental-form .wcrp-rental-products-notice { margin: 10px 0 0 !important; }
.single-product .wcrp-rental-products-in-person-pick-up-return-unavailable { display: none !important; }
.single-product .woocommerce-info { background: var(--dw-grey); border-top: 0; border-left: 3px solid var(--dw-red); border-radius: 0; padding: 10px 14px 10px 40px !important; font-size: 13px; }
.single-product .woocommerce-info::before { color: var(--dw-red); top: 10px !important; left: 14px !important; }

/* Warenkorb-Button */
.single-product .single_add_to_cart_button { height: 42px; padding: 0 24px !important; background: var(--dw-coral) !important; color: #fff !important; border: 0 !important; border-radius: var(--dw-r) !important; font-family: 'Open Sans', Arial, sans-serif !important; text-transform: uppercase; font-weight: 600; font-size: 14px; letter-spacing: .02em; transition: background .2s; }
.single-product .single_add_to_cart_button:hover { background: var(--dw-red) !important; }
.single-product .single_add_to_cart_button.disabled { opacity: .45; }

/* Technische Daten (Tabelle unter dem Button) */
.single-product .dw-specs { margin-top: 24px; border-top: 1px solid var(--dw-line); padding-top: 14px; }
.single-product .dw-specs__title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--dw-dark); margin: 0 0 8px; }
.single-product .dw-specs table.woocommerce-product-attributes { border: 0 !important; margin: 0; width: 100%; }
.single-product .dw-specs tr { border-bottom: 1px solid #eee !important; background: none !important; }
.single-product .dw-specs tr:last-child { border-bottom: 0 !important; }
.single-product .dw-specs tr th,
.single-product .dw-specs tr td { border: 0 !important; background: none !important; padding: 7px 0 !important; vertical-align: top; font-weight: 400; font-size: 14px; line-height: 1.4; }
.single-product .dw-specs tr th { width: 40%; color: #666; padding-right: 16px !important; }
.single-product .dw-specs tr td,
.single-product .dw-specs tr td * { font-style: normal !important; color: var(--dw-dark); }
.single-product .dw-specs tr td p { padding: 0 !important; margin: 0 !important; }
.single-product .dw-specs tr.dw-spec-chosen td,
.single-product .dw-specs tr.dw-spec-chosen td * { font-weight: 600 !important; }

/* Variable Produkte: Auswahl als Buttons */
.single-product form.variations_form { display: block !important; }
.single-product form.variations_form table.variations { float: none !important; width: 100% !important; display: block !important; margin: 0 0 18px !important; border: 0 !important; }
.single-product form.variations_form table.variations tbody { display: block; }
.single-product table.variations tr { display: block; margin: 0 0 14px; }
.single-product table.variations th,
.single-product table.variations td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left; }
.single-product table.variations th.label label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--dw-dark); margin: 0 0 6px; }
.single-product table.variations select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }
.single-product form.variations_form .single_variation_wrap { float: none !important; clear: both; width: 100% !important; }
.single-product .woocommerce-variation-add-to-cart .e-atc-qty-button-holder { width: 100% !important; max-width: none !important; }
.single-product .dw-swatches { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 6px !important; }
.single-product .dw-swatches .dw-swatch { flex: 0 0 auto !important; display: inline-flex !important; align-items: center; justify-content: center; min-width: 64px !important; max-width: none !important; width: auto !important; height: 36px !important; padding: 0 12px !important; margin: 0 !important; border: 1px solid var(--dw-line) !important; border-radius: 3px !important; background: #fff !important; color: var(--dw-dark) !important; font-family: inherit !important; font-size: 13px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; cursor: pointer; transition: border-color .15s, color .15s; }
.single-product .dw-swatches .dw-swatch:hover { border-color: var(--dw-dark) !important; }
.single-product .dw-swatches .dw-swatch:focus-visible { outline: 2px solid var(--dw-dark); outline-offset: 2px; }
.single-product .dw-swatches .dw-swatch.is-active { border-color: var(--dw-red) !important; box-shadow: inset 0 0 0 1px var(--dw-red) !important; color: var(--dw-red) !important; font-weight: 600 !important; }
.single-product .dw-swatches .dw-swatch:disabled { opacity: .35 !important; cursor: not-allowed; text-decoration: line-through; }
.single-product .reset_variations { display: inline-block; margin-top: 8px; font-size: 12px; color: #888 !important; }
.single-product .woocommerce-variation { margin: 0 0 14px; }
.single-product .woocommerce-variation-description p { margin: 0; font-size: 13px; color: #666; }

/* Tabs */
.single-product .woocommerce-tabs ul.tabs { padding: 0 !important; border-bottom: 2px solid var(--dw-dark) !important; margin-bottom: 24px !important; }
.single-product .woocommerce-tabs ul.tabs::before,
.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.single-product .woocommerce-tabs ul.tabs li { background: transparent !important; border: 0 !important; border-radius: var(--dw-r) var(--dw-r) 0 0 !important; margin: 0 4px 0 0 !important; }
.single-product .woocommerce-tabs ul.tabs li a { color: var(--dw-dark) !important; text-transform: uppercase; font-weight: 500; font-size: 14px; padding: 12px 20px !important; }
.single-product .woocommerce-tabs ul.tabs li.active { background: var(--dw-dark) !important; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: #fff !important; }
.single-product .woocommerce-Tabs-panel h2 { color: var(--dw-red); text-transform: uppercase; font-size: 24px; font-weight: 400; }
.single-product .woocommerce-Tabs-panel p { font-size: 15px; line-height: 1.6; }
.single-product .woocommerce-Tabs-panel ul { margin: 0 0 16px 20px; padding: 0; font-size: 15px; line-height: 1.6; }

/* =========================================================================
   KATALOG (Shop + Kategorien)
   ========================================================================= */

/* Container wie Header/Footer */
.post-type-archive-product .site-main,
.tax-product_cat .site-main,
.tax-product_tag .site-main { max-width: var(--container-max-width, 1200px) !important; margin: 0 auto; padding: 24px 20px 60px !important; box-sizing: border-box; }
@media (min-width: 1240px) {
  .post-type-archive-product .site-main,
  .tax-product_cat .site-main,
  .tax-product_tag .site-main { padding-left: 0 !important; padding-right: 0 !important; }
}
.post-type-archive-product .page-description,
.tax-product_cat .page-description { display: none; }
.woocommerce-breadcrumb { margin: 0 0 24px !important; font-size: 13px; color: #888; }

/* Raster: Sidebar + Ergebnisse */
.dw-catalog { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.dw-catalog__results { display: block !important; min-width: 0; }

/* Kopf + Toolbar */
.dw-catalog__results .woocommerce-products-header { margin: 0 0 4px; padding: 0; }
.dw-catalog__results .woocommerce-products-header__title { color: var(--dw-red); font-size: 30px !important; font-weight: 400; text-transform: uppercase; margin: 0 0 4px !important; line-height: 1.1; }
.dw-catalog__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 0 0 12px !important; margin-bottom: 20px !important; border-bottom: 1px solid var(--dw-line); }
.dw-catalog__toolbar .woocommerce-result-count { margin: 0 !important; font-size: 13px; color: #666; float: none !important; }
.dw-catalog__toolbar .woocommerce-ordering { margin: 0 !important; float: none !important; }
.dw-catalog__toolbar .woocommerce-ordering select { height: 36px; padding: 0 10px; border: 1px solid var(--dw-line); border-radius: var(--dw-r); font-size: 13px; background: #fff; }

/* Filter-Sidebar (WooCommerce-Widgets) */
.dw-catalog__filters { position: sticky; top: var(--dw-sticky-top, 170px); }
.dw-catalog__filters-title { display: none; }
.dw-filter { display: flow-root; margin: 0 !important; padding: 16px 0 !important; border-bottom: 1px solid var(--dw-line); }
.dw-filter:first-of-type { padding-top: 0 !important; }
.dw-filter__title { font-size: 13px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--dw-dark) !important; margin: 0 0 10px !important; line-height: 1.3 !important; }
.dw-filter ul { float: none !important; width: 100% !important; position: static !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.dw-filter li { display: flex !important; align-items: flex-start; justify-content: space-between; gap: 8px; margin: 0 0 7px !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 14px; line-height: 1.35; }
.dw-filter li:last-child { margin-bottom: 0 !important; }
.dw-filter li::before { display: none !important; }
.dw-filter li a { display: flex !important; align-items: flex-start !important; gap: 9px; flex: 1 1 auto; min-width: 0; color: var(--dw-dark) !important; text-decoration: none !important; }
.dw-filter li a::before { content: ""; flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; border: 1px solid #c4c4c4; border-radius: 3px; background: #fff; transition: border-color .15s, background-color .15s; }
.dw-filter li a:hover::before { border-color: var(--dw-red); }
.dw-filter li.chosen a::before,
.dw-filter li.current-cat > a::before { background: var(--dw-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--dw-red); }
.dw-filter .count { flex: 0 0 auto; margin: 0 !important; font-size: 12px; color: #999; }
.dw-filter .children { margin: 7px 0 0 25px !important; }

/* Aktive Filter als Chips */
.dw-filter.widget_layered_nav_filters ul { display: flex; flex-wrap: wrap; gap: 6px; }
.dw-filter.widget_layered_nav_filters li { margin: 0 !important; }
.dw-filter.widget_layered_nav_filters li a { gap: 6px; background: var(--dw-grey); border: 1px solid var(--dw-line); border-radius: 3px; padding: 3px 8px; font-size: 12px; }
.dw-filter.widget_layered_nav_filters li a::before { content: "×"; flex: none; width: auto; height: auto; margin: 0; border: 0; background: none; color: var(--dw-red); font-weight: 700; line-height: 1.2; }

/* Suche */
.dw-filter.widget_product_search .dw-filter__title { display: none; }
.dw-filter .woocommerce-product-search { position: relative !important; display: block !important; width: 100% !important; max-width: none !important; float: none !important; margin: 0 !important; transform: none !important; left: auto !important; right: auto !important; }
.dw-filter .woocommerce-product-search label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dw-filter .woocommerce-product-search input[type=search] { width: 100% !important; height: 42px; padding: 0 44px 0 12px !important; border: 1px solid var(--dw-line) !important; border-radius: 3px !important; font-size: 14px; background: #fff; box-sizing: border-box; opacity: 1 !important; visibility: visible !important; }
.dw-filter .woocommerce-product-search input[type=search]:focus { outline: 0; border-color: var(--dw-dark) !important; }
.dw-filter .woocommerce-product-search button { position: absolute !important; right: 4px; top: 4px; width: 34px; height: 34px; padding: 0 !important; font-size: 0 !important; border: 0 !important; border-radius: 3px !important; cursor: pointer; background: var(--dw-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center/16px no-repeat !important; }

/* Produktkarten */
.dw-catalog ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.dw-catalog ul.products::before,
.dw-catalog ul.products::after { display: none !important; }
.dw-catalog ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e6e6e6 !important; border-radius: var(--dw-r); text-align: left; transition: border-color .2s, box-shadow .2s; }
.dw-catalog ul.products li.product:hover { border-color: #ccc !important; box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.dw-catalog ul.products li.product > a:first-child { display: flex !important; flex-direction: column; flex: 1 1 auto; padding: 16px 16px 0 !important; text-decoration: none; }
.dw-catalog ul.products li.product a img { width: 100% !important; max-width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: contain; border: 0 !important; padding: 0 !important; margin: 0 0 14px !important; background: #fafafa !important; border-radius: 2px; }
.dw-catalog .woocommerce-loop-product__title { font-size: 15px !important; font-weight: 600 !important; color: var(--dw-dark) !important; text-transform: none !important; padding: 0 !important; margin: 0 0 6px !important; line-height: 1.3 !important; }
.dw-card__short { font-size: 13px; color: #6b6b6b; line-height: 1.45; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dw-catalog ul.products li.product .price { margin: auto 0 0 !important; padding: 12px 0 14px !important; border-top: 1px solid #eee; font-size: 13px !important; color: #6b6b6b !important; }
.dw-catalog ul.products li.product .price .amount { font-weight: 700; font-size: 18px; color: var(--dw-dark); }
.dw-card__btn { display: block; margin: 0 16px 16px; padding: 10px; text-align: center; background: var(--dw-coral); color: #fff !important; border-radius: var(--dw-r); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-decoration: none !important; transition: background .2s; }
.dw-card__btn:hover { background: var(--dw-red); }
.dw-card__btn:focus-visible { outline: 2px solid var(--dw-dark); outline-offset: 2px; }
.dw-catalog .woocommerce-pagination ul { border: 0 !important; }

/* Responsive */
@media (max-width: 1180px) {
  .dw-catalog ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .dw-catalog { grid-template-columns: 1fr; }
  .dw-catalog__filters { position: static; }
  .dw-catalog ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dw-catalog ul.products { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-catalog ul.products li.product,
  .dw-card__btn,
  .dw-filter li a::before,
  .single-product .dw-swatches .dw-swatch,
  .single-product .single_add_to_cart_button { transition: none; }
}


/* =========================================================================
   MIETANFRAGE (Warenkorb + Abschluss)
   ========================================================================= */

.woocommerce-cart,
.woocommerce-checkout {
  --dw-red: #d84c53;
  --dw-coral: #ef776e;
  --dw-dark: #231f20;
  --dw-grey: #f5f5f5;
  --dw-line: #e3e3e3;
  --dw-r: 3px;
}

/* Container wie Katalog */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main { max-width: var(--container-max-width, 1200px); margin: 0 auto; padding: 32px 20px 72px; box-sizing: border-box; }
@media (min-width: 1240px) {
  .woocommerce-cart .site-main,
  .woocommerce-checkout .site-main { padding-left: 0; padding-right: 0; }
}

/* Theme floatet Überschriften, Absätze und Tabellen -> hier neutralisieren */
.woocommerce-cart .site-main :is(h1, h2, h3, p, table),
.woocommerce-checkout .site-main :is(h1, h2, h3, p, table) { float: none !important; }
.woocommerce-cart .site-main :is(h1, h2, h3, p),
.woocommerce-checkout .site-main :is(h1, h2, h3, p) { width: auto !important; }
.woocommerce-cart .woocommerce,
.woocommerce-checkout form.checkout { clear: both; width: 100%; }

/* Kopf */
.dw-checkout-head { margin: 0 0 28px; padding-bottom: 16px; border-bottom: 1px solid var(--dw-line); grid-column: 1 / -1; }
.dw-checkout-head h1::before,
.dw-checkout-head h1::after { display: none !important; }
.dw-checkout-head h1 { margin: 0 0 6px !important; color: var(--dw-red); font-size: 30px; font-weight: 400; text-transform: uppercase; line-height: 1.15; }
.dw-checkout-head p { margin: 0 !important; color: #666; font-size: 15px; }

/* Buttons: Duwerag statt WooCommerce-Lila */
.woocommerce-cart .button,
.woocommerce-checkout .button,
.woocommerce-cart .checkout-button,
.woocommerce-checkout #place_order { font-family: inherit !important; border-radius: var(--dw-r) !important; text-transform: uppercase; letter-spacing: .03em; font-weight: 600 !important; }
.woocommerce-cart .button.alt,
.woocommerce-cart .checkout-button,
.woocommerce-checkout #place_order { background: var(--dw-coral) !important; color: #fff !important; border: 0 !important; padding: 15px 24px !important; font-size: 14px !important; width: 100%; display: block; text-align: center; transition: background .2s; }
.woocommerce-cart .button.alt:hover,
.woocommerce-cart .checkout-button:hover,
.woocommerce-checkout #place_order:hover { background: var(--dw-red) !important; }
.woocommerce-cart button[name="update_cart"] { background: #fff !important; color: var(--dw-dark) !important; border: 1px solid var(--dw-line) !important; padding: 8px 14px !important; font-size: 12px !important; }
.woocommerce-cart button[name="update_cart"]:disabled { opacity: .45; }

/* ----- Warenkorb (Mietanfrage) ----- */
.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 40px; align-items: start; }
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce > .dw-checkout-head,
.woocommerce-cart .woocommerce > .cart-empty,
.woocommerce-cart .woocommerce > .return-to-shop { grid-column: 1 / -1; }
.woocommerce-cart form.woocommerce-cart-form { grid-column: 1; }
.woocommerce-cart .cart-collaterals { grid-column: 2; width: auto !important; }
.woocommerce-cart .cart-collaterals .cart_totals { float: none !important; width: 100% !important; background: var(--dw-grey); border-radius: var(--dw-r); padding: 22px; box-sizing: border-box; position: sticky; top: var(--dw-sticky-top, 170px); }
.woocommerce-cart .cart_totals h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--dw-dark); }

.woocommerce-cart table.shop_table { border: 0 !important; border-collapse: collapse; width: 100%; margin: 0; }
.woocommerce-cart table.shop_table th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #888; border: 0 !important; border-bottom: 2px solid var(--dw-dark) !important; padding: 10px 8px !important; background: none !important; }
.woocommerce-cart table.shop_table td { border: 0 !important; border-bottom: 1px solid var(--dw-line) !important; padding: 16px 8px !important; vertical-align: top; font-size: 14px; background: none !important; }
.woocommerce-cart table.cart td.actions { border-bottom: 0 !important; text-align: right; padding-top: 12px !important; }
.woocommerce-cart table.cart img { width: 72px !important; height: 72px; object-fit: contain; background: #fafafa; border-radius: 2px; }
.woocommerce-cart table.cart .product-name a { color: var(--dw-dark) !important; font-weight: 600; text-decoration: none; font-size: 15px; }
.woocommerce-cart table.cart .product-name a:hover { color: var(--dw-red) !important; }
.woocommerce-cart table.cart dl.variation { margin: 6px 0 0; font-size: 13px; color: #666; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
.woocommerce-cart table.cart dl.variation dt,
.woocommerce-cart table.cart dl.variation dd { margin: 0; padding: 0; float: none; }
.woocommerce-cart table.cart dl.variation dd p { margin: 0; }
.woocommerce-cart table.cart a.remove { color: #aaa !important; font-size: 20px; line-height: 1; }
.woocommerce-cart table.cart a.remove:hover { background: none !important; color: var(--dw-red) !important; }
.woocommerce-cart table.cart .quantity .qty { width: 64px; height: 38px; border: 1px solid var(--dw-line); border-radius: var(--dw-r); text-align: center; }

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td { border: 0 !important; border-top: 1px solid #e6e6e6 !important; padding: 10px 0 !important; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--dw-dark); font-weight: 400; }
.woocommerce-cart .cart_totals tr.order-total th,
.woocommerce-cart .cart_totals tr.order-total td { font-weight: 700; font-size: 16px; border-top: 2px solid var(--dw-dark) !important; }
.woocommerce-cart .cart_totals .wc-proceed-to-checkout { padding: 16px 0 0; }
.woocommerce-cart .cart_totals table.shop_table { width: 100% !important; }
.woocommerce-cart .cart_totals table.shop_table td { text-align: right; }
.woocommerce-cart .checkout-button { height: auto !important; min-height: 0 !important; line-height: 1.2 !important; }

/* ----- Abschluss (Checkout) ----- */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 48px; align-items: start; }
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 !important; padding: 22px 22px 0; background: var(--dw-grey); border-radius: var(--dw-r) var(--dw-r) 0 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--dw-dark); }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; margin: 0 !important; background: var(--dw-grey); border-radius: 0 0 var(--dw-r) var(--dw-r); padding: 12px 22px 22px; position: sticky; top: var(--dw-sticky-top, 170px); }

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 { float: none !important; width: 100% !important; max-width: none; }
.woocommerce-checkout .col2-set .col-2 { margin-top: 28px; }
.woocommerce-checkout #customer_details h3 { margin: 0 0 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--dw-dark); }
.woocommerce-checkout #ship-to-different-address { font-size: 14px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important; }
.woocommerce-checkout #ship-to-different-address label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* Felder */
.woocommerce-checkout .form-row { margin: 0 0 14px !important; padding: 0 !important; }
.woocommerce-checkout .form-row label { display: block; margin: 0 0 4px; font-size: 13px; color: #555; }
.woocommerce-checkout .form-row .required { color: var(--dw-red); text-decoration: none; }
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .select2-container .select2-selection--single { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--dw-line) !important; border-radius: var(--dw-r) !important; background: #fff; font-size: 15px; box-sizing: border-box; }
.woocommerce-checkout .form-row textarea { min-height: 96px; padding: 10px 12px; }
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered { line-height: 40px; padding-left: 0; }
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow { height: 40px; }
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus { outline: 0; border-color: var(--dw-dark) !important; }
.woocommerce-checkout .form-row.woocommerce-invalid input.input-text { border-color: var(--dw-red) !important; }
.woocommerce-checkout input[type=checkbox],
.woocommerce-checkout input[type=radio] { accent-color: var(--dw-red); width: 16px; height: 16px; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row { grid-column: 1 / -1; width: auto !important; float: none !important; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row-first { grid-column: 1; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row-last { grid-column: 2; }
@media (max-width: 560px) {
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-first,
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row-last,
  .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row-first,
  .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row-last { grid-column: 1 / -1; }
}

/* Übersicht rechts */
.woocommerce-checkout table.woocommerce-checkout-review-order-table { border: 0 !important; margin: 0 0 12px; width: 100%; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td { border: 0 !important; border-top: 1px solid #e6e6e6 !important; padding: 10px 0 !important; background: none !important; font-size: 14px; vertical-align: top; color: var(--dw-dark); font-weight: 400; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th { border-top: 0 !important; font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .03em; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td { text-align: right; white-space: nowrap; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-name { font-weight: 600; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table dl.variation { margin: 4px 0 0; font-weight: 400; font-size: 12px; color: #666; display: grid; grid-template-columns: auto 1fr; gap: 1px 6px; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table dl.variation dt,
.woocommerce-checkout table.woocommerce-checkout-review-order-table dl.variation dd { margin: 0; padding: 0; float: none; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table dl.variation dd p { margin: 0; }
.woocommerce-checkout tr.order-total th,
.woocommerce-checkout tr.order-total td { font-weight: 700 !important; font-size: 16px !important; border-top: 2px solid var(--dw-dark) !important; }

/* Abholung / Lieferung als Auswahl-Kacheln */
.woocommerce-checkout tr.woocommerce-shipping-totals th { display: block; padding-bottom: 6px !important; }
.woocommerce-checkout tr.woocommerce-shipping-totals td { display: block; width: 100%; text-align: left !important; white-space: normal !important; border-top: 0 !important; padding-top: 0 !important; }
.woocommerce-checkout #shipping_method { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.woocommerce-checkout #shipping_method li { display: flex !important; align-items: center; gap: 10px; margin: 0; padding: 10px 12px !important; background: #fff; border: 1px solid var(--dw-line); border-radius: var(--dw-r); cursor: pointer; }
.woocommerce-checkout #shipping_method li:has(input:checked) { border-color: var(--dw-red); box-shadow: inset 0 0 0 1px var(--dw-red); }
.woocommerce-checkout #shipping_method li input { position: static !important; transform: none !important; margin: 0 !important; flex: 0 0 auto; }
.woocommerce-checkout #shipping_method li label { display: block !important; float: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; font-weight: 400 !important; font-size: 14px; line-height: 1.35; cursor: pointer; }

/* Zahlungsbereich (ohne Zahlart) + AGB + Button */
.woocommerce-checkout #payment { background: none !important; border-radius: 0; }
.woocommerce-checkout #payment .form-row.place-order { padding: 12px 0 0 !important; margin: 0 !important; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: #555; margin-bottom: 12px; }
.woocommerce-checkout .woocommerce-privacy-policy-text p { font-size: 12px; color: #888; margin: 0 0 10px; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--dw-dark); }
.dw-submit-note { margin: 10px 0 0; font-size: 12px; color: #777; line-height: 1.45; }

/* Responsive */
@media (max-width: 980px) {
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
  .woocommerce-cart .cart-collaterals,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review,
  .woocommerce-checkout #customer_details { grid-column: 1; grid-row: auto; }
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-checkout #order_review { position: static; }
  .woocommerce-checkout #order_review_heading { margin-top: 28px; }
}


/* =========================================================================
   UPSELLS (Produktseite) + CROSS-SELLS (Mietanfrage)
   ========================================================================= */
.dw-price-request { font-size: 13px !important; font-weight: 600 !important; color: #666 !important; }

/* Passend dazu mieten */
.single-product .dw-upsells { margin-top: 20px; border-top: 1px solid var(--dw-line); padding-top: 14px; }
.single-product .dw-upsells__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.single-product .dw-upsells__list li { margin: 0; padding: 0; }
.single-product .dw-upsell { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--dw-line); border-radius: var(--dw-r); background: #fff; color: var(--dw-dark) !important; text-decoration: none !important; transition: border-color .15s; }
.single-product .dw-upsell:hover { border-color: var(--dw-dark); }
.single-product .dw-upsell__img { width: 48px !important; height: 48px !important; object-fit: contain; background: #fafafa; border-radius: 2px; flex: 0 0 48px; margin: 0 !important; }
.single-product .dw-upsell__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.single-product .dw-upsell__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.single-product .dw-upsell__price,
.single-product .dw-upsell__price * { font-size: 13px !important; font-weight: 400 !important; color: #666 !important; }
.single-product .dw-upsell__go { font-size: 22px; color: #aaa; line-height: 1; }
.single-product .dw-upsell:hover .dw-upsell__go { color: var(--dw-red); }

/* Arbeitsschutz gleich mit anfragen (unter der Geräteliste) */
.woocommerce-cart .cross-sells { margin: 32px 0 0; width: auto !important; float: none !important; }
.woocommerce-cart .cross-sells > h2 { margin: 0 0 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--dw-dark); }
.woocommerce-cart .cross-sells ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 !important; padding: 0 !important; }
.woocommerce-cart .cross-sells ul.products::before,
.woocommerce-cart .cross-sells ul.products::after { display: none !important; }
.woocommerce-cart .cross-sells ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 12px !important; display: flex; flex-direction: column; border: 1px solid var(--dw-line); border-radius: var(--dw-r); background: #fff; text-align: left; }
.woocommerce-cart .cross-sells ul.products li.product a img { width: 100% !important; aspect-ratio: 1 / 1; object-fit: contain; background: #fafafa; margin: 0 0 10px !important; border-radius: 2px; }
.woocommerce-cart .cross-sells .woocommerce-loop-product__title { font-size: 14px !important; font-weight: 600 !important; color: var(--dw-dark) !important; padding: 0 !important; margin: 0 0 4px !important; text-transform: none !important; }
.woocommerce-cart .cross-sells .price { margin: 0 0 10px !important; }
.woocommerce-cart .cross-sells li.product .button { margin-top: auto !important; width: 100%; text-align: center; background: #fff !important; color: var(--dw-dark) !important; border: 1px solid var(--dw-dark) !important; padding: 8px 10px !important; font-size: 11px !important; }
.woocommerce-cart .cross-sells li.product .button:hover { background: var(--dw-dark) !important; color: #fff !important; }
@media (max-width: 980px) {
  .woocommerce-cart .cross-sells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* =========================================================================
   RICHTPREIS-HINWEISE
   ========================================================================= */
.dw-richtpreis-note { margin: 0 0 16px !important; font-size: 12px !important; line-height: 1.45; color: #777 !important; float: none !important; }
.dw-catalog .dw-richtpreis-note { margin: -8px 0 18px !important; }
.single-product .dw-richtpreis-note--product { order: 4; flex: 1 1 100%; margin: 2px 0 0 !important; }
.woocommerce-cart tr.dw-richtpreis-row td,
.woocommerce-checkout tr.dw-richtpreis-row td { border-top: 0 !important; padding: 4px 0 0 !important; text-align: left !important; }
.woocommerce-cart tr.dw-richtpreis-row .dw-richtpreis-note,
.woocommerce-checkout tr.dw-richtpreis-row .dw-richtpreis-note { margin: 0 !important; }

/* =========================================================================
   FOOTER: auf WooCommerce-Seiten gleich wie auf der übrigen Website
   Theme färbt nur ".content-area > .footer-width-fixer". WooCommerce schliesst
   .content-area früher, der Footer hängt dann direkt unter .site.
   ========================================================================= */
.site > .footer-width-fixer { background-color: var(--wbm-theme-bg-footer); color: var(--wbm-theme-font-colour-footer); }
.site > .footer-width-fixer * { color: var(--wbm-theme-font-colour-footer); }


/* =========================================================================
   BERATUNG (schwebend, unten rechts)
   ========================================================================= */
.dw-help { --dw-red: #d84c53; --dw-coral: #ef776e; --dw-dark: #231f20; position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-family: inherit; }
.dw-help__toggle { display: inline-flex !important; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px !important; border: 0 !important; border-radius: 23px !important; background: var(--dw-dark) !important; color: #fff !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: .02em; text-transform: none !important; box-shadow: 0 6px 18px rgba(0,0,0,.18) !important; cursor: pointer; transition: background .2s, transform .2s; }
.dw-help__toggle svg { width: 20px; height: 20px; fill: var(--dw-coral); flex: 0 0 auto; }
.dw-help__toggle:hover,
.dw-help[data-open="true"] .dw-help__toggle { background: var(--dw-red) !important; }
.dw-help__toggle:hover svg,
.dw-help[data-open="true"] .dw-help__toggle svg { fill: #fff; }
.dw-help__toggle:focus-visible { outline: 2px solid var(--dw-red); outline-offset: 3px; }

.dw-help__panel { width: 280px; padding: 18px 18px 14px; background: #fff; border-radius: 6px; border-top: 4px solid var(--dw-red); box-shadow: 0 12px 32px rgba(0,0,0,.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility 0s linear .18s; }
.dw-help[data-open="true"] .dw-help__panel,
.dw-help:focus-within .dw-help__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
@media (hover: hover) {
  .dw-help:hover .dw-help__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
}
.dw-help__title { margin: 0 0 4px !important; font-size: 16px !important; font-weight: 700 !important; color: var(--dw-dark) !important; float: none !important; }
.dw-help__text { margin: 0 0 12px !important; font-size: 13px !important; line-height: 1.45 !important; color: #666 !important; float: none !important; }
.dw-help__action { display: flex !important; align-items: center; gap: 10px; padding: 9px 10px; margin: 0 0 6px; border: 1px solid #e3e3e3; border-radius: 3px; color: var(--dw-dark) !important; text-decoration: none !important; font-size: 14px; transition: border-color .15s, color .15s; }
.dw-help__action svg { width: 18px; height: 18px; fill: var(--dw-red); flex: 0 0 auto; }
.dw-help__action:hover { border-color: var(--dw-red); color: var(--dw-red) !important; }
.dw-help__action--phone span { font-weight: 700; }

/* Mobile: runder Button, Panel über volle Breite */
@media (max-width: 640px) {
  .dw-help { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .dw-help__toggle { width: 52px; height: 52px; padding: 0 !important; justify-content: center; border-radius: 50% !important; }
  .dw-help__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dw-help__panel { width: calc(100vw - 24px); max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-help__panel, .dw-help__toggle { transition: none !important; }
}
@media print { .dw-help { display: none !important; } }

/* =========================================================================
   PRODUKTSEITE: Platz für das Untermenü (Mieten > Produkte | Mietablauf)
   Theme schiebt nur .content-area um die Untermenü-Höhe nach unten; die
   Elementor-Produktvorlage liegt ausserhalb -> Breadcrumb lag darunter verdeckt.
   ========================================================================= */
.single-product .elementor-location-single { padding-top: var(--wbm-theme-subnav-height, 0); }


/* =========================================================================
   ZUBEHÖR MIT STÜCKZAHL (im Bestellformular, vor dem Button)
   ========================================================================= */
.single-product .e-atc-qty-button-holder > .dw-acc { order: 1; flex: 1 1 100%; }
.single-product .dw-acc { margin: 14px 0 4px !important; padding: 0 !important; border: 0 !important; min-width: 0; }
.single-product .dw-acc__title { display: block; padding: 0 !important; margin: 0 0 8px !important; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--dw-dark); float: none !important; }
.single-product .dw-acc__list { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 6px; }
.single-product .dw-acc__item { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 8px 10px !important; border: 1px solid var(--dw-line); border-radius: var(--dw-r); background: #fff; transition: border-color .15s, box-shadow .15s; float: none !important; }
.single-product .dw-acc__item.is-selected { border-color: var(--dw-red); box-shadow: inset 0 0 0 1px var(--dw-red); }
.single-product .dw-acc__img { width: 44px !important; height: 44px !important; object-fit: contain; background: #fafafa; border-radius: 2px; flex: 0 0 44px; margin: 0 !important; }
.single-product .dw-acc__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.single-product .dw-acc__name { font-size: 14px; font-weight: 600; color: var(--dw-dark) !important; text-decoration: none !important; line-height: 1.3; }
.single-product .dw-acc__name:hover { color: var(--dw-red) !important; }
.single-product .dw-acc__price,
.single-product .dw-acc__price * { font-size: 12px !important; font-weight: 400 !important; color: #666 !important; }
.single-product .dw-acc__qty { display: inline-flex; align-items: stretch; border: 1px solid var(--dw-line); border-radius: var(--dw-r); overflow: hidden; flex: 0 0 auto; }
.single-product .dw-acc__qty input { width: 40px !important; height: 32px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; text-align: center; font-size: 14px; -moz-appearance: textfield; background: #fff; }
.single-product .dw-acc__qty input::-webkit-outer-spin-button,
.single-product .dw-acc__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.single-product .dw-acc__btn { width: 30px !important; height: 32px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: var(--dw-grey) !important; color: var(--dw-dark) !important; font-size: 16px !important; line-height: 1 !important; cursor: pointer; box-shadow: none !important; }
.single-product .dw-acc__btn:hover { background: #e9e9e9 !important; }
.single-product .dw-acc__btn:focus-visible,
.single-product .dw-acc__qty input:focus-visible { outline: 2px solid var(--dw-dark); outline-offset: -2px; }
.single-product .dw-acc__hint { margin: 6px 0 0 !important; font-size: 12px !important; color: #777 !important; float: none !important; }


/* =========================================================================
   UX-TEST: Mobile-Filter, Zurücksetzen
   ========================================================================= */
.dw-filter-toggle { display: none; }
.dw-filter-reset { display: inline-block; margin-top: 10px; font-size: 12px; color: #888 !important; text-decoration: underline !important; }
.dw-filter-reset:hover { color: var(--dw-red) !important; }
@media (max-width: 980px) {
  .dw-filter-toggle { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; margin: 0 0 12px !important; padding: 0 14px !important; border: 1px solid var(--dw-dark) !important; border-radius: var(--dw-r) !important; background: #fff !important; color: var(--dw-dark) !important; font-family: inherit !important; font-size: 14px !important; font-weight: 600 !important; text-transform: none !important; cursor: pointer; box-shadow: none !important; }
  .dw-filter-toggle::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; transition: transform .2s; }
  .dw-catalog__filters.is-open .dw-filter-toggle::after { transform: rotate(-135deg) translateY(-2px); }
  .dw-filter-toggle__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--dw-red); color: #fff; font-size: 12px; }
  .dw-filter-panel { display: none; padding-bottom: 8px; }
  .dw-catalog__filters.is-open .dw-filter-panel { display: block; }
}


/* =========================================================================
   SEITLICHER WARENKORB (Header) als "Mietanfrage"
   ========================================================================= */
/* Header-Button: "Mietanfrage" + Klemmbrett-Icon statt Betrag + Einkaufswagen */
.elementor-menu-cart__toggle .elementor-button-text { font-size: 0 !important; }
.elementor-menu-cart__toggle .elementor-button-text::before { content: "Mietanfrage"; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.elementor-menu-cart__toggle .elementor-button-icon svg { display: none !important; }
.elementor-menu-cart__toggle .elementor-button-icon::before { content: ""; display: inline-block; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6a2 2 0 0 1 2 2h1a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1a2 2 0 0 1 2-2zm0 2v2h6V4zM7 11h10v2H7zm0 4h7v2H7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6a2 2 0 0 1 2 2h1a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1a2 2 0 0 1 2-2zm0 2v2h6V4zM7 11h10v2H7zm0 4h7v2H7z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Panel */
.elementor-menu-cart__main { padding-top: 28px !important; }
.elementor-menu-cart__main::before { content: "Ihre Mietanfrage"; display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #231f20; padding: 0 40px 12px 0; margin-bottom: 8px; border-bottom: 2px solid #231f20; }
.elementor-menu-cart__product-name a { color: #231f20 !important; font-weight: 600; text-decoration: none !important; }
.elementor-menu-cart__product-name a:hover { color: #d84c53 !important; }
.elementor-menu-cart__product-price { color: #666 !important; font-size: 13px; }
.elementor-menu-cart__subtotal { text-align: left !important; font-size: 15px !important; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.elementor-menu-cart__subtotal::after { content: "Unverbindlicher Richtpreis exkl. MWST"; flex: 1 1 100%; font-size: 12px; font-weight: 400; color: #888; }
.elementor-menu-cart__footer-buttons a { border-radius: 3px !important; text-transform: uppercase; font-size: 12px !important; letter-spacing: .03em; font-weight: 600 !important; }
.elementor-menu-cart__footer-buttons a.elementor-button--checkout { background: #ef776e !important; color: #fff !important; border: 0 !important; }
.elementor-menu-cart__footer-buttons a.elementor-button--checkout:hover { background: #d84c53 !important; }
.elementor-menu-cart__footer-buttons a.elementor-button--view-cart { background: #fff !important; color: #231f20 !important; border: 1px solid #231f20 !important; }


/* =========================================================================
   AKTIVE FILTER: Chip-Leiste über den Ergebnissen
   ========================================================================= */
.dw-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; clear: both; width: 100%; }
.dw-active-filters__label { font-size: 12px; color: #888; }
.dw-active-filters ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 !important; padding: 0 !important; }
.dw-active-filters li { margin: 0 !important; padding: 0 !important; float: none !important; }
.dw-active-filters li a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--dw-grey); border: 1px solid var(--dw-line); border-radius: 14px; font-size: 12px; color: var(--dw-dark) !important; text-decoration: none !important; transition: border-color .15s; }
.dw-active-filters li a::after { content: "×"; font-size: 14px; line-height: 1; color: var(--dw-red); font-weight: 700; }
.dw-active-filters li a:hover { border-color: var(--dw-red); }
.dw-active-filters .dw-filter-reset { margin: 0; }


/* =========================================================================
   MIETANFRAGE AUFGERÄUMT
   ========================================================================= */
/* Stückpreis-Spalte ausblenden (bei Mietzeiträumen missverständlich), Total rechts und fett */
.woocommerce-cart table.cart .product-price { display: none; }
.woocommerce-cart table.cart th.product-subtotal,
.woocommerce-cart table.cart td.product-subtotal { text-align: right; }
.woocommerce-cart table.cart td.product-subtotal { font-weight: 700; }
.woocommerce-cart table.cart td { vertical-align: middle !important; }
.woocommerce-cart table.cart td.product-name dl.variation { display: block; margin: 4px 0 0; }
.woocommerce-cart table.cart td.product-name dl.variation dt { display: none; }
.woocommerce-cart table.cart td.product-name dl.variation dd { display: block; margin: 0; font-size: 13px; color: #666; }
.woocommerce-cart tr.woocommerce-shipping-totals,
.woocommerce-cart tr.shipping { display: none; }

/* Arbeitsschutz-Vorschläge: kompakte Zeilen statt grosser Karten mit Platzhalterbild */
.woocommerce-cart .cross-sells ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
.woocommerce-cart .cross-sells ul.products li.product { flex-direction: row !important; flex-wrap: nowrap; align-items: center; gap: 10px; padding: 10px 12px !important; }
.woocommerce-cart .cross-sells li.product img.woocommerce-placeholder { display: none !important; }
.woocommerce-cart .cross-sells li.product a img:not(.woocommerce-placeholder) { width: 40px !important; height: 40px; aspect-ratio: auto; margin: 0 !important; flex: 0 0 40px; }
.woocommerce-cart .cross-sells li.product > a:first-child { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; text-decoration: none; }
.woocommerce-cart .cross-sells .woocommerce-loop-product__title { margin: 0 !important; font-size: 14px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.woocommerce-cart .cross-sells li.product > a:first-child .price { display: none; }
.woocommerce-cart .cross-sells li.product .button { width: auto !important; margin: 0 !important; flex: 0 0 auto; padding: 7px 10px !important; font-size: 0 !important; }
.woocommerce-cart .cross-sells li.product .button::before { content: "+ Hinzufügen"; font-size: 11px; }
.woocommerce-cart .cross-sells > h2 + ul + p,
.woocommerce-cart .cross-sells .dw-cross-note { font-size: 12px; color: #777; }
@media (max-width: 980px) {
  .woocommerce-cart .cross-sells ul.products { grid-template-columns: 1fr !important; }
}


/* =========================================================================
   MIETZEITRAUM ÄNDERN
   ========================================================================= */
.woocommerce-cart .dw-edit-period { color: inherit !important; font-size: inherit; text-decoration: underline !important; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.woocommerce-cart .dw-edit-period:hover { color: var(--dw-red) !important; }
.single-product .dw-edit-notice { margin: 0 0 16px; padding: 12px 14px; background: #fff6f5; border-left: 3px solid var(--dw-red); font-size: 13px; line-height: 1.5; color: var(--dw-dark); }
.single-product .dw-edit-notice a { color: var(--dw-red) !important; margin-left: 4px; }


/* =========================================================================
   ABSCHLUSS: Übersicht rechts als Flex-Zeilen statt Tabelle
   (Tabelle wurde durch lange Hinweiszeile breiter als die Spalte)
   ========================================================================= */
.woocommerce-checkout table.woocommerce-checkout-review-order-table { display: block !important; table-layout: auto !important; width: 100% !important; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table :is(thead, tbody, tfoot) { display: block !important; width: 100% !important; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 12px; width: 100% !important; border-top: 1px solid #e6e6e6; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table thead tr { border-top: 0; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total { border-top: 2px solid var(--dw-dark); }
.woocommerce-checkout table.woocommerce-checkout-review-order-table :is(th, td) { display: block !important; width: auto !important; border: 0 !important; white-space: normal !important; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name { flex: 1 1 0; min-width: 0; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total { white-space: nowrap !important; }
.woocommerce-checkout tr.woocommerce-shipping-totals th,
.woocommerce-checkout tr.woocommerce-shipping-totals td,
.woocommerce-checkout tr.dw-richtpreis-row td { flex: 1 1 100%; }
.woocommerce-checkout #shipping_method { max-width: none !important; float: none !important; width: 100% !important; }
.dw-richtpreis-note { font-weight: 400 !important; }


/* =========================================================================
   MIETANFRAGE LEEREN + REFERENZ
   ========================================================================= */
.woocommerce-cart table.cart td.actions { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; }
.woocommerce-cart .dw-empty-cart { order: -1; font-size: 12px; color: #888 !important; text-decoration: underline !important; text-underline-offset: 2px; }
.woocommerce-cart .dw-empty-cart:hover { color: var(--dw-red) !important; }
.woocommerce-checkout #dw_customer_ref_field { margin-top: 4px !important; }
.dw-order-ref { margin: 12px 0 !important; font-size: 14px; }


/* =========================================================================
   BESTÄTIGUNGSSEITE (order-received)
   ========================================================================= */
.woocommerce-order-received .woocommerce-order { --dw-red: #d84c53; --dw-coral: #ef776e; --dw-dark: #231f20; --dw-grey: #f5f5f5; --dw-line: #e3e3e3; }
.woocommerce-order-received .site-main :is(h1, h2, h3, p, table, ul) { float: none !important; }

/* Kopf mit Häkchen */
.dw-thanks-head { display: flex; align-items: flex-start; gap: 16px; }
.dw-thanks-head__icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--dw-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 24px no-repeat; margin-top: 2px; }
.woocommerce-order-received .woocommerce-thankyou-order-received { display: none; }

/* Kennzahlen als Kacheln */
.woocommerce-order-received ul.woocommerce-order-overview { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 28px !important; padding: 0 !important; list-style: none; border: 0 !important; }
.woocommerce-order-received ul.woocommerce-order-overview::before,
.woocommerce-order-received ul.woocommerce-order-overview::after { display: none !important; }
.woocommerce-order-received ul.woocommerce-order-overview li { float: none !important; margin: 0 !important; padding: 12px 14px !important; border: 0 !important; background: var(--dw-grey); border-radius: 3px; font-size: 11px !important; text-transform: uppercase; letter-spacing: .04em; color: #888; line-height: 1.4; }
.woocommerce-order-received ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--dw-dark); word-break: break-word; }

/* Wie geht es weiter? */
.dw-next-steps { margin: 0 0 32px; padding: 20px 22px; border: 1px solid var(--dw-line); border-left: 3px solid var(--dw-red); border-radius: 3px; }
.dw-next-steps h2 { margin: 0 0 14px !important; font-size: 13px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .04em; color: var(--dw-dark) !important; }
.dw-next-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 14px !important; padding: 0 !important; list-style: none; counter-reset: dwstep; }
.dw-next-steps li { counter-increment: dwstep; display: flex; flex-direction: column; gap: 4px; margin: 0 !important; padding: 0 0 0 38px !important; position: relative; font-size: 13px; color: #555; line-height: 1.45; float: none !important; }
.dw-next-steps li::before { content: counter(dwstep); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--dw-dark); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dw-next-steps li strong { font-size: 14px; color: var(--dw-dark); }
.dw-next-steps__contact { margin: 0 !important; font-size: 13px !important; color: #666; }
.dw-next-steps__contact a { color: var(--dw-red) !important; }

/* Positionen */
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title,
.woocommerce-order-received .woocommerce-customer-details h2 { margin: 0 0 12px !important; font-size: 13px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .04em; color: var(--dw-dark) !important; }
.woocommerce-order-received table.woocommerce-table--order-details { border: 0 !important; border-collapse: collapse; width: 100%; margin: 0 0 8px; }
.woocommerce-order-received table.woocommerce-table--order-details :is(th, td) { border: 0 !important; border-bottom: 1px solid var(--dw-line) !important; padding: 12px 0 !important; background: none !important; font-size: 14px; vertical-align: top; font-weight: 400; }
.woocommerce-order-received table.woocommerce-table--order-details thead th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #888; border-bottom: 2px solid var(--dw-dark) !important; padding-top: 0 !important; }
.woocommerce-order-received table.woocommerce-table--order-details :is(th, td):last-child { text-align: right; white-space: nowrap; }
.woocommerce-order-received table.woocommerce-table--order-details td.product-name a { color: var(--dw-dark) !important; font-weight: 600; text-decoration: none !important; }
.woocommerce-order-received table.woocommerce-table--order-details td.product-name a:hover { color: var(--dw-red) !important; }
.woocommerce-order-received table.woocommerce-table--order-details .product-quantity { font-weight: 600; color: #666; }
.woocommerce-order-received table.woocommerce-table--order-details ul.wc-item-meta { margin: 4px 0 0 !important; padding: 0 !important; list-style: none; font-size: 13px; color: #666; }
.woocommerce-order-received table.woocommerce-table--order-details ul.wc-item-meta li { margin: 0 !important; display: flex; gap: 6px; }
.woocommerce-order-received table.woocommerce-table--order-details ul.wc-item-meta li strong { font-weight: 400; }
.woocommerce-order-received table.woocommerce-table--order-details ul.wc-item-meta li p { margin: 0 !important; display: inline; }
.woocommerce-order-received table.woocommerce-table--order-details tfoot th { font-weight: 600; }
.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child :is(th, td) { border-top: 2px solid var(--dw-dark) !important; border-bottom: 0 !important; font-weight: 700; font-size: 16px; }

/* Adresse + Referenz */
.woocommerce-order-received .woocommerce-customer-details { margin-top: 28px; }
.woocommerce-order-received .woocommerce-customer-details address { border: 0 !important; padding: 16px 18px !important; background: var(--dw-grey); border-radius: 3px; font-style: normal; font-size: 14px; line-height: 1.6; }
.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.woocommerce-order-received .woocommerce-customer-details .woocommerce-column { width: auto !important; float: none !important; }
.woocommerce-order-received .dw-order-ref { padding: 10px 14px; background: var(--dw-grey); border-radius: 3px; display: inline-block; }

/* Abschluss-Button */
.dw-thanks-actions { margin: 28px 0 0 !important; }
.dw-btn-secondary { display: inline-block; padding: 12px 20px; border: 1px solid var(--dw-dark); border-radius: 3px; color: var(--dw-dark) !important; text-decoration: none !important; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; transition: background .15s, color .15s; }
.dw-btn-secondary:hover { background: var(--dw-dark); color: #fff !important; }

@media (max-width: 780px) {
  .woocommerce-order-received ul.woocommerce-order-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-next-steps ol,
  .woocommerce-order-received .woocommerce-customer-details .woocommerce-columns { grid-template-columns: 1fr; }
}


/* =========================================================================
   LEERE MIETANFRAGE + HINWEISE (Notices) im Shop-Stil
   ========================================================================= */
.woocommerce-cart .woocommerce > .dw-empty { grid-column: 1 / -1; }
.woocommerce-cart .return-to-shop { display: none !important; }
.dw-empty { max-width: 560px; margin: 8px auto 24px; padding: 40px 32px; text-align: center; background: var(--dw-grey); border-radius: 3px; }
.dw-empty__icon { display: block; width: 56px; height: 56px; margin: 0 auto 16px; background: var(--dw-red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6a2 2 0 0 1 2 2h1a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1a2 2 0 0 1 2-2zm0 2v2h6V4zM7 11h10v2H7zm0 4h7v2H7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6a2 2 0 0 1 2 2h1a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1a2 2 0 0 1 2-2zm0 2v2h6V4zM7 11h10v2H7zm0 4h7v2H7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.dw-empty__title { margin: 0 0 8px !important; font-size: 20px !important; font-weight: 600 !important; text-transform: none !important; color: var(--dw-dark) !important; }
.dw-empty__text { margin: 0 auto 22px !important; max-width: 420px; font-size: 15px !important; line-height: 1.55; color: #666 !important; }
.dw-empty__btn { display: inline-block; padding: 14px 28px; background: var(--dw-coral); color: #fff !important; border-radius: 3px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; text-decoration: none !important; transition: background .2s; }
.dw-empty__btn:hover { background: var(--dw-red); }
.dw-empty__help { margin: 20px 0 0 !important; font-size: 13px !important; color: #777 !important; }
.dw-empty__help a { color: var(--dw-red) !important; }

/* Hinweise (z. B. "Mietanfrage geleert", "Mietzeitraum angepasst", Fehler) */
.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-notices-wrapper,
.single-product .woocommerce-notices-wrapper { grid-column: 1 / -1; }
:is(.woocommerce-cart, .woocommerce-checkout, .single-product, .post-type-archive-product, .tax-product_cat) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(.wcrp-rental-products-notice) {
  margin: 0 0 20px !important; padding: 12px 16px 12px 44px !important; position: relative; list-style: none;
  background: var(--dw-grey) !important; color: var(--dw-dark) !important; border: 0 !important; border-left: 3px solid var(--dw-dark) !important; border-radius: 0 3px 3px 0; font-size: 14px; line-height: 1.5; }
:is(.woocommerce-cart, .woocommerce-checkout, .single-product, .post-type-archive-product, .tax-product_cat) .woocommerce-message { border-left-color: #3a9d5d !important; }
:is(.woocommerce-cart, .woocommerce-checkout, .single-product, .post-type-archive-product, .tax-product_cat) .woocommerce-error { border-left-color: var(--dw-red) !important; background: #fff6f5 !important; }
:is(.woocommerce-cart, .woocommerce-checkout, .single-product, .post-type-archive-product, .tax-product_cat) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(.wcrp-rental-products-notice)::before { top: 12px !important; left: 16px !important; color: inherit; }
:is(.woocommerce-cart, .woocommerce-checkout, .single-product, .post-type-archive-product, .tax-product_cat) .woocommerce-message::before { color: #3a9d5d !important; }
:is(.woocommerce-cart, .woocommerce-checkout, .single-product, .post-type-archive-product, .tax-product_cat) .woocommerce-error::before { color: var(--dw-red) !important; }
:is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button { float: right; margin: -4px 0 0 12px !important; padding: 6px 12px !important; background: #fff !important; color: var(--dw-dark) !important; border: 1px solid var(--dw-dark) !important; border-radius: 3px !important; font-size: 11px !important; text-transform: uppercase; }


/* =========================================================================
   KATALOG: SEITENNAVIGATION (Pagination)
   ========================================================================= */
.dw-catalog .woocommerce-pagination { clear: both; margin: 0 !important; padding: 44px 0 8px !important; border: 0 !important; text-align: center; }
.dw-catalog .woocommerce-pagination ul.page-numbers { display: flex !important; flex-direction: row !important; flex-wrap: wrap; width: 100% !important; justify-content: center; gap: 6px; margin: 0 !important; padding: 0 !important; border: 0 !important; list-style: none; white-space: normal; }
.dw-catalog .woocommerce-pagination ul.page-numbers li { display: block !important; float: none !important; width: auto !important; flex: 0 0 auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; overflow: visible; }
.dw-catalog .woocommerce-pagination .page-numbers :is(a, span) { display: flex !important; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px !important; border: 1px solid var(--dw-line) !important; border-radius: 3px; background: #fff !important; color: var(--dw-dark) !important; font-size: 14px !important; font-weight: 600; line-height: 1 !important; text-decoration: none !important; transition: border-color .15s, color .15s, background .15s; }
.dw-catalog .woocommerce-pagination .page-numbers a:hover,
.dw-catalog .woocommerce-pagination .page-numbers a:focus-visible { border-color: var(--dw-coral) !important; color: var(--dw-coral) !important; }
.dw-catalog .woocommerce-pagination .page-numbers span.current { background: var(--dw-coral) !important; border-color: var(--dw-coral) !important; color: #fff !important; }
.dw-catalog .woocommerce-pagination .page-numbers span.dots { min-width: 24px; padding: 0 !important; border: 0 !important; background: none !important; color: #999 !important; }
.dw-catalog .woocommerce-pagination .page-numbers :is(a.prev, a.next) { font-size: 16px !important; }


/* =========================================================================
   TREFFER PRO SEITE
   ========================================================================= */
.dw-catalog__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dw-catalog__toolbar .woocommerce-result-count { margin: 0 auto 0 0 !important; float: none !important; }
.dw-catalog__toolbar .woocommerce-ordering { margin: 0 !important; float: none !important; }
.dw-perpage { display: flex; align-items: center; gap: 8px; margin: 0; }
.dw-perpage label { margin: 0; font-size: 12px; color: #777; }
.dw-perpage select { height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--dw-line); border-radius: var(--dw-r); background-color: #fff; font-size: 13px; color: var(--dw-dark); cursor: pointer; }
.dw-perpage select:focus-visible { outline: 2px solid var(--dw-dark); outline-offset: 1px; }


/* =========================================================================
   KATALOG: Filterleiste mit eigenem Scrollbereich
   Höher als der Bildschirm -> eigene Scrollbar statt "festkleben".
   --dw-sticky-top = Unterkante Header + Untermenü (per JS gemessen).
   ========================================================================= */
@media (min-width: 981px) {
  .dw-catalog__filters {
    align-self: start;
    max-height: calc(100vh - var(--dw-sticky-top, 170px) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #cfcfcf transparent;
    scrollbar-gutter: stable;
  }
  .dw-catalog__filters::-webkit-scrollbar { width: 6px; }
  .dw-catalog__filters::-webkit-scrollbar-track { background: transparent; }
  .dw-catalog__filters::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 3px; }
  .dw-catalog__filters:hover::-webkit-scrollbar-thumb { background: #aaa; }
}
@media (max-width: 980px) {
  .dw-catalog__filters { position: static; max-height: none; overflow: visible; }
}

/* =========================================================================
   FILTER: gewählter Attributwert (z. B. Branche) wie die Kategorie-Checkbox
   WooCommerce setzt bei gewählten Layered-Nav-Werten ein "×"-Icon aus der
   WooCommerce-Schrift samt Abstand und Farbe -> zurücksetzen.
   ========================================================================= */
.woocommerce .dw-filter .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item--chosen a::before {
  content: "" !important;
  font-family: inherit !important;
  margin-right: 0 !important;
  color: inherit !important;
  line-height: inherit !important;
}


/* =========================================================================
   KATALOG: Schalter "Zubehör anzeigen"
   ========================================================================= */
.dw-acc-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #555 !important; text-decoration: none !important; white-space: nowrap; }
.dw-acc-toggle__switch { position: relative; width: 32px; height: 18px; border-radius: 9px; background: #cfcfcf; transition: background .2s; flex: 0 0 32px; }
.dw-acc-toggle__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.dw-acc-toggle.is-on .dw-acc-toggle__switch { background: var(--dw-coral); }
.dw-acc-toggle.is-on .dw-acc-toggle__switch::after { transform: translateX(14px); }
.dw-acc-toggle__count { color: #999; font-size: 11px; }
.dw-acc-toggle:hover { color: var(--dw-dark) !important; }
.dw-acc-toggle:focus-visible { outline: 2px solid var(--dw-dark); outline-offset: 3px; border-radius: 3px; }
