/* Shop-Redesign 2026-12 - Produktseite, Variationsauswahl (Phase 5-4). Nur bei variablen Produkten und der Gutscheinkarte geladen. Jede Regel haengt an .wkr-product.
   Entwurf .color/.sw: Zeile "Farbe: Schwarz", umrandete Knoepfe, gewaehlt = kraeftiger dunkler Rahmen, darunter Menge + Kaufknopf. Das Markup (table.variations, select,
   Swatch-Buttons von Woo Variation Swatches) bleibt WooCommerces; Rahmen laufen bei WVS ueber box-shadow-Variablen, daher hier per Variable statt Regelkrieg. */
.wkr-product{--wvs-item-box-shadow:0 0 0 1px var(--wkr-line-l-ui);--wvs-hover-item-box-shadow:0 0 0 1px var(--wkr-ink);--wvs-selected-item-box-shadow:0 0 0 2px var(--wkr-ink);--wvs-selected-item-background-color:var(--wkr-white);--wvs-item-text-color:var(--wkr-ink);--wvs-hover-item-text-color:var(--wkr-ink);--wvs-selected-item-text-color:var(--wkr-ink)}
.wkr-product table.variations{width:100%;margin:0;border:0;border-collapse:collapse}
.wkr-product table.variations tbody,.wkr-product table.variations tr,.wkr-product table.variations th,.wkr-product table.variations td{display:block;padding:0;border:0;text-align:left}
.wkr-product table.variations td.value{padding-inline:0!important}
.wkr-product table.variations tr{position:relative;margin:0 0 16px}
.wkr-product table.variations tr:last-child{margin-bottom:0}
.wkr-product table.variations th.label,.wkr-product table.variations th.label label{margin:0 0 8px;font:700 .9375rem/1.3 var(--wkr-f-body)!important;color:var(--wkr-ink)!important;text-transform:none}
.wkr-product table.variations th.label label{margin:0!important}
/* "Farbe: Schwarz": WVS-/Theme-Regeln blenden das Wert-Element teils aus oder setzen Grau; sichtbar, sobald es Text hat */
.wkr-product table.variations th.label .woo-selected-variation-item-name:not(:empty){display:inline!important;margin:0!important;font:inherit!important;color:inherit!important}
.wkr-product table.variations th.label .woo-selected-variation-item-name:not(:empty)::before{content:": "}
.wkr-product .variable-items-wrapper{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.wkr-product ul.variable-items-wrapper li.variable-item.variable-item.button-variable-item{min-width:44px;min-height:52px;height:auto;margin:0;padding:6px 14px;border-radius:var(--wkr-r-btn);font:400 .9375rem/1.2 var(--wkr-f-body)}
.wkr-product ul.variable-items-wrapper li.variable-item.variable-item.button-variable-item .variable-item-span{padding:0;font:inherit}
.wkr-product ul.variable-items-wrapper li.variable-item.variable-item:not(.button-variable-item){margin:0;border-radius:var(--wkr-r-btn)}
.wkr-product ul.variable-items-wrapper li.variable-item.selected .variable-item-span-button{font-weight:700}
.wkr-product ul.variable-items-wrapper li.variable-item.disabled{opacity:.45}
.wkr-product .button-variable-item[data-wvstooltip]::before,.wkr-product .button-variable-item[data-wvstooltip]::after{display:none!important}
.wkr-product ul.variable-items-wrapper li.variable-item:focus-visible{outline:3px solid var(--wkr-focus);outline-offset:2px}
/* "Zurücksetzen" nimmt keinen Platz in der Spalte ein (sonst Leerraum zwischen Auswahl und Kaufzeile): rechts in der Zeile des Labels, 44 px hoch */
.wkr-product table.variations .reset_variations{position:absolute;top:-10px;right:0;padding-block:10px;color:var(--wkr-ink);font:400 .875rem/1.3 var(--wkr-f-body);text-underline-offset:3px}
.wkr-product .single_variation_wrap{margin-top:16px}
.wkr-product .woocommerce-variation.single_variation:empty{display:none}
.wkr-product .woocommerce-variation.single_variation{margin:0 0 12px}
.wkr-product .woocommerce-variation-add-to-cart{margin:0}
/* leere FPF-Container (nur hidden-Inputs) erzeugen sonst eine Zeile samt 12 px Abstand */
.wkr-product .woocommerce-variation-add-to-cart>.fpf-fields:not(:has(.fpf-field>:not(input[type=hidden]))){display:none}
/* PW Gift Cards (Gutscheinkarte): Felder An/Von/Nachricht in voller Breite; das Plugin blendet den Container selbst ein, sobald ein Betrag gewaehlt ist */
.wkr-product .pwgc-input-text,.wkr-product #pwgc-message{box-sizing:border-box;display:block;width:100%;max-width:100%;margin:0;border:1px solid var(--wkr-line-l-ui);border-radius:var(--wkr-r-btn);background:var(--wkr-white);color:var(--wkr-ink);font:400 .9375rem/1.4 var(--wkr-f-body);box-shadow:none}
.wkr-product .pwgc-input-text{height:52px;padding:0 12px}
.wkr-product #pwgc-message{height:auto;min-height:120px;padding:12px;resize:vertical}
.wkr-product .pwgc-input-text:focus-visible,.wkr-product #pwgc-message:focus-visible{outline:3px solid var(--wkr-focus);outline-offset:2px}
.wkr-product .pwgc-label{margin-bottom:4px;font:700 .9375rem/1.3 var(--wkr-f-body)}
.wkr-product .wkr-sbar__variant{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:400 .75rem/1.3 var(--wkr-f-body);color:var(--wkr-muted)}
.wkr-product .wkr-sbar__variant:empty{display:none}
/* Ohne JS (WooCommerce entfernt woocommerce-no-js beim Laden): WVS versteckt die Selects serverseitig; dann die Roh-Selects zeigen, die Knoepfe verbergen */
.woocommerce-no-js .wkr-product table.variations select{display:block!important;box-sizing:border-box;width:100%;min-height:44px;padding:0 12px;border:1px solid var(--wkr-line-l-ui);border-radius:var(--wkr-r-btn);background:var(--wkr-white);color:var(--wkr-ink);font:400 .9375rem/1.2 var(--wkr-f-body)}
.woocommerce-no-js .wkr-product .variable-items-wrapper{display:none}
