/* Farbige RDKS-Ventile und Auswuchtgewichte (modules/farb-extras).
   Farben ueber die Shop-Variablen → Hell/Dunkel ohne eigene Regeln. */
.wlf-fx { min-width: 0; margin: 10px 0 0; border: 1px solid var(--ff-line); border-radius: 12px; background: var(--ff-card); color: var(--ff-ink); }
.wlf-fx.is-gewaehlt { border-color: var(--ff-accent); }
/* Hinweis (Konfigurator, Inseratsseite): bewusst leise, keine Auswahl */
.wlf-fx--hinweis { margin: 0 0 14px; border-color: transparent; background: none; }
.wlf-fx--hinweis[open] { border-color: var(--ff-line); }
.wlf-fx.wlf-fx--hinweis summary { gap: 8px; padding: 6px 8px; color: var(--ff-gray); }
.wlf-fx.wlf-fx--hinweis summary > .material-symbols-rounded { font-size: 18px; color: inherit; }
.wlf-fx--hinweis .wlf-fx__titel { flex: 0 1 auto; font-size: 13px; line-height: 1.35; }
.wlf-fx__pfeil { flex: none; width: 7px; height: 7px; margin: -3px 4px 0; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.wlf-fx[open] .wlf-fx__pfeil { margin-top: 4px; transform: rotate(-135deg); }
.wlf-fx__zeile { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12px; line-height: 1.4; color: var(--ff-gray); }
.wlf-fx__zeile img { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.wlf-fx__zeile b { display: block; font-size: 13px; font-weight: 600; color: var(--ff-ink); }
.wlf-fx__text { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--ff-ink); }

.wlf-fx summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; border-radius: inherit; cursor: pointer; list-style: none; }
.wlf-fx summary::-webkit-details-marker { display: none; }
.wlf-fx summary > .material-symbols-rounded { flex: none; font-size: 20px; color: var(--ff-accent); }
.wlf-fx__titel { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 1px; }
.wlf-fx__titel b { font-size: 13px; font-weight: 600; line-height: 1.35; }
.wlf-fx__titel small { font-size: 12px; line-height: 1.35; color: var(--ff-gray); }
.wlf-fx__mehr { flex: none; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.wlf-fx[open] .wlf-fx__mehr { visibility: hidden; }
.wlf-fx__inhalt { padding: 2px 12px 10px; }

.wlf-fx__reihe { display: flex; align-items: flex-start; gap: 12px; min-width: 0; margin: 0; padding: 10px 0; border: 0; }
.wlf-fx__reihe[hidden] { display: none; }
.wlf-fx__reihe + .wlf-fx__reihe { border-top: 1px solid var(--ff-line); }
.wlf-fx__bild { flex: none; width: 64px; height: 64px; padding: 0; overflow: hidden; border: 1px solid var(--ff-line); border-radius: 10px; background: #fff; cursor: zoom-in; }
.wlf-fx__bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wlf-fx__info { flex: 1; min-width: 0; }
.wlf-fx__kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 10px; margin-bottom: 6px; font-size: 13px; line-height: 1.35; }
.wlf-fx__kopf b { font-weight: 600; }
.wlf-fx__wert { font-size: 12px; color: var(--ff-gray); font-variant-numeric: tabular-nums; }

.wlf-fx__farben { display: flex; flex-wrap: wrap; gap: 6px; }
.wlf-fx__farbe { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; margin: 0; padding: 0 11px 0 8px; border: 1px solid var(--ff-line); border-radius: 17px; background: var(--ff-card); font-size: 12px; font-weight: 500; line-height: 1; cursor: pointer; }
/* Die Kasse gestaltet jedes label (.woocommerce-checkout .woocommerce label): hier
   nur die davon betroffenen Werte, mit drei Klassen spezifischer */
.wlf-fx .wlf-fx__farben .wlf-fx__farbe { display: inline-flex; margin: 0; color: var(--ff-ink); font-size: 12px; font-weight: 500; letter-spacing: normal; text-transform: none; }
.wlf-fx .wlf-fx__farben .wlf-fx__farbe:has(input:checked) { font-weight: 600; }
.wlf-fx .wlf-fx__farben .wlf-fx__farbe input { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; }
.wlf-fx__farbe:hover { border-color: var(--ff-gray); }
.wlf-fx__farbe input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.wlf-fx__farbe:has(input:checked) { border-color: var(--ff-ink); box-shadow: inset 0 0 0 1px var(--ff-ink); font-weight: 600; }
.wlf-fx__farbe:has(input:focus-visible) { outline: 2px solid var(--ff-accent); outline-offset: 2px; }
.wlf-fx__punkt { flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .55); }
.wlf-fx__farbe--standard .wlf-fx__punkt { background: linear-gradient(135deg, transparent 46%, var(--ff-gray) 46% 54%, transparent 54%); }
.wlf-fx__farbe--schwarz .wlf-fx__punkt { background: #141414; }
.wlf-fx__farbe--silber .wlf-fx__punkt { background: linear-gradient(135deg, #f3f3f3, #a9acb0); }
.wlf-fx__farbe--bronze .wlf-fx__punkt { background: #8d7259; }
.wlf-fx__farbe--grau .wlf-fx__punkt { background: #55575a; }
/* Passt zur Felge: kleiner Punkt, keine Vorauswahl */
.wlf-fx__farbe.is-passend::after { content: ""; position: absolute; top: -2px; right: 6px; width: 8px; height: 8px; border: 2px solid var(--ff-card); border-radius: 50%; background: var(--ff-accent); }

/* Legende nur, wenn eine Farbe zur Felge passt */
.wlf-fx__legende { display: none; }
.wlf-fx:has(.wlf-fx__reihe:not([hidden]) .is-passend) .wlf-fx__legende { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; }
.wlf-fx__legende::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ff-accent); }
.wlf-fx .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wlf-fx__fuss, .wlf-fx__status { margin: 4px 0 0; font-size: 11px; line-height: 1.45; color: var(--ff-gray); }
.wlf-fx__status:empty { display: none; }
.wlf-fx.is-laden .wlf-fx__reihe { opacity: .55; }
.wlf-fx summary:focus-visible, .wlf-fx__bild:focus-visible { outline: 2px solid var(--ff-accent); outline-offset: 2px; }

@media (max-width: 480px) {
  .wlf-fx__farbe { min-height: 40px; border-radius: 20px; }
  /* Farben ueber die ganze Breite unter Bild und Titel */
  .wlf-fx__reihe { flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .wlf-fx__info { display: contents; }
  .wlf-fx__kopf { flex: 1; flex-direction: column; margin: 0; }
  .wlf-fx__farben { width: 100%; }
  .wlf-fx__farbe { padding: 0 10px 0 7px; }
}
/* Kasse: schmale Spalte → gleiche Anordnung wie auf dem Handy */
.wlf-fx--kasse .wlf-fx__reihe { flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wlf-fx--kasse .wlf-fx__info { display: contents; }
.wlf-fx--kasse .wlf-fx__kopf { flex: 1; flex-direction: column; margin: 0; }
.wlf-fx--kasse .wlf-fx__farben { width: 100%; }
.wlf-fx__neu { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

.wlf-fx-dlg { position: fixed; inset: 0; width: min(92vw, 640px); max-height: 92vh; margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 16px; background: var(--ff-card, #fff); color: var(--ff-ink, #111); }
.wlf-fx-dlg::backdrop { background: rgba(0, 0, 0, .6); }
.wlf-fx-dlg img { display: block; width: 100%; height: auto; }
.wlf-fx-dlg p { margin: 0; padding: 10px 16px 14px; font-size: 12px; color: var(--ff-gray, #666); }
.wlf-fx-dlg button { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; }
