/* Passform je Warenkorbzeile + Vertrauensleiste + Handy-Leiste (17.11.26).
   Farben nur aus den Shop-Tokens (--ff-fit-*, --ff-*), Schild wie .ff-fit-badge der Felgenuebersicht. */
.wlf-passform { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ff-bg, #f6f6f4); display: grid; gap: 8px; font-size: 12.5px; line-height: 1.45; color: var(--ff-gray, #6b7280); max-width: 560px; }
.wlf-passform--ok { background: color-mix(in srgb, var(--ff-fit-ok, #166534) 6%, transparent); }
.wlf-passform--eintr { background: color-mix(in srgb, var(--ff-fit-eintr, #92400e) 7%, transparent); }
.wlf-passform__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.wlf-passform .ff-fit-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.wlf-passform .ff-fit-badge__icon { font-size: 14px; line-height: 1; }
.wlf-passform .ff-fit-badge.is-frei { background: var(--ff-fit-ok-bg, rgba(22,163,74,.13)); color: var(--ff-fit-ok, #166534); }
.wlf-passform .ff-fit-badge.is-eintragung { background: var(--ff-fit-eintr-bg, rgba(217,119,6,.15)); color: var(--ff-fit-eintr, #92400e); }
.wlf-passform .ff-fit-badge.is-nein { background: var(--ff-fit-neutral-bg, rgba(0,0,0,.06)); color: var(--ff-fit-neutral, #3f3f46); }
.wlf-passform__text { flex: 1 1 200px; min-width: 0; color: var(--ff-ink, #111); opacity: .8; }
.wlf-passform__info { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.wlf-passform__info li { display: inline-flex; align-items: center; gap: 6px; }
.wlf-passform__info svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wlf-passform__info a { color: var(--ff-ink, #111); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.wlf-passform--kasse { margin-top: 6px; padding: 8px 10px; font-size: 12px; }

/* Vertrauensleiste unter den Artikeln (links, im Blick) */
.wlf-vertrauen { list-style: none; margin: 14px 0 0; padding: 14px 18px; border-radius: var(--ff-card-radius, 16px); background: var(--ff-card, #fff); border: 1px solid var(--ff-line, rgba(0,0,0,.08)); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 20px; font-size: 13px; color: var(--ff-ink, #111); }
.wlf-vertrauen li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.35; }
.wlf-vertrauen svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: var(--ff-fit-ok, #166534); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wlf-vertrauen strong { display: block; font-weight: 600; }
.wlf-vertrauen small { display: block; color: var(--ff-gray, #6b7280); font-size: 12px; margin-top: 1px; }

/* Handy: feste Leiste mit Summe + Weiter, solange der echte Knopf nicht im Bild ist */
.wlf-kassenleiste { display: none; }
@media (max-width: 767px) {
  .wlf-vertrauen { padding: 12px 14px; grid-template-columns: 1fr; gap: 10px; }
  .wlf-kassenleiste { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ff-card, #fff); border-top: 1px solid var(--ff-line, rgba(0,0,0,.1)); box-shadow: 0 -6px 20px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .22s ease; }
  .wlf-kassenleiste.is-an { transform: none; }
  .wlf-kassenleiste__summe { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
  .wlf-kassenleiste__summe small { font-size: 11px; color: var(--ff-gray, #6b7280); }
  .wlf-kassenleiste__summe strong { font-size: 17px; font-variant-numeric: tabular-nums; color: var(--ff-ink, #111); }
  .wlf-kassenleiste__knopf { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--ff-btn-radius, 12px); background: var(--ff-ink, #111); color: var(--ff-card, #fff) !important; font-weight: 700; font-size: 15px; text-decoration: none; }
  body.wlf-mit-kassenleiste { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .wlf-kassenleiste { transition: none; } }


/* Schloss an "Weiter zur Kasse" (Warenkorb, Handy-Leiste) und "Zahlungspflichtig bestellen" */
.wc-proceed-to-checkout a.checkout-button, .wlf-kassenleiste__knopf, #place_order { display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; }
#place_order::before {
  content: ""; width: 17px; height: 17px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%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' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* AGB-Hinweis (Germanized) klein und mittig UNTER dem Bestellknopf, Newsletter-Box
   bleibt direkt ueber dem Knopf (Alex 17.11.26). */
.woocommerce-checkout #order_review:has(> .wc-gzd-order-submit) > .wc-gzd-order-submit { order: 5 !important; }
.woocommerce-checkout #order_review:has(> .wc-gzd-order-submit) > .wc-gzd-checkbox-placeholder-legal { order: 6 !important; margin: 10px 0 0 !important; }
.woocommerce-checkout #order_review:has(> .wc-gzd-order-submit) > div[id^="ppc-button"] { order: 7 !important; }
.woocommerce-checkout #order_review .wc-gzd-checkbox-placeholder-legal,
.woocommerce-checkout #order_review .wc-gzd-checkbox-placeholder-legal p.legal,
.woocommerce-checkout #order_review .wc-gzd-checkbox-placeholder-legal label { display: block !important; text-align: center; font-size: 11.5px !important; line-height: 1.5; color: var(--ff-gray, var(--text2, #6b7280)) !important; }
.woocommerce-checkout #order_review .wc-gzd-checkbox-placeholder-legal a { font-weight: 500 !important; color: inherit !important; }

/* Kasse am Desktop: rechte Spalte (Zahlung + Uebersicht) mitwachsen lassen statt fest 380px –
   etwa ein Drittel der Breite, nie schmaler als bisher (Alex 17.11.26). Warenkorb unveraendert. */
@media (min-width: 1100px) {
  .woocommerce-checkout .ff-checkout-grid { grid-template-columns: minmax(0, 2fr) minmax(380px, 1fr); gap: 28px; }
}

/* Weiter zur Kasse (Warenkorb, Handy-Leiste): Pfeil rechts statt Schloss (Alex 17.11.26) */
.wc-proceed-to-checkout a.checkout-button::after, .wlf-kassenleiste__knopf::after {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%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' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Auch wenn ein Theme den Knopf auf display:block zwingt (Felgenforum): Pfeil als Inline-Block */
.wc-proceed-to-checkout a.checkout-button::after { display: inline-block; vertical-align: -3px; margin-left: 10px; }
