/* Lenspilot Control Center – Produktfilter (ab 0.59.0) */
.lpf { width: 100%; font-size: 14px; color: #1f2933; }
.lpf-panel { outline: none; }
.lpf-head { display: none; }
.lpf-form { margin: 0; }
.lpf-note { margin: 0 0 12px; padding: 6px 10px; border-radius: 8px; background: #fff7ed; color: #9a3412; font-size: 12px; }
.lpf-facet { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.lpf-legend { display: block; margin: 0 0 8px; padding: 0; color: #171a1d; font-size: 14px; font-weight: 750; line-height: 1.3; }
.lpf-options { display: flex; flex-direction: column; gap: 2px; }
.lpf-opt { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 0; font-size: 14px; font-weight: 400; line-height: 1.3; cursor: pointer; }
.lpf-opt input { width: 17px; height: 17px; margin: 0; flex: 0 0 17px; accent-color: #008ca8; cursor: pointer; }
.lpf-opt-count { color: #6b7280; font-size: 12px; }
.lpf-opt.is-empty { opacity: .55; }
.lpf-pm { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lpf-sublabel { display: block; margin: 0 0 4px; color: #59616a; font-size: 12.5px; font-weight: 650; }
.lpf select { width: 100%; min-height: 40px; padding: 6px 28px 6px 10px; border: 1px solid #d9dde2; border-radius: 10px; background-color: #fff; color: #1f2933; font-size: 14px; cursor: pointer; }
.lpf select:focus-visible, .lpf-opt input:focus-visible, .lpf-apply:focus-visible, .lpf-reset:focus-visible, .lpf-toggle:focus-visible, .lpf-chip:focus-visible, .lpf-close:focus-visible { outline: 2px solid #008ca8; outline-offset: 2px; }
.lpf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.lpf-apply { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 0; border-radius: 10px; background: #008ca8; color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.lpf-apply:hover { background: #006f86; }
.lpf-reset { color: #c2410c; font-weight: 700; text-decoration: none; }
.lpf-reset:hover { color: #9a3412; text-decoration: underline; }
.lpf-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lpf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.lpf-bar > * { margin-bottom: 12px !important; }
.lpf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lpf-chips li { margin: 0; padding: 0; list-style: none; }
.lpf-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border: 1px solid #b9dfe8; border-radius: 999px; background: #eef9fb; color: #06566a; font-size: 12.5px; font-weight: 650; line-height: 1.1; text-decoration: none; }
.lpf-chip:hover { border-color: #008ca8; color: #043f4e; }
.lpf-chip span { font-size: 15px; line-height: 1; }
.lpf-chip--all { border-color: #e5e7eb; background: #fff; color: #c2410c; }
.lpf-toggle { display: none; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid #d6e2e8; border-radius: 10px; background: #fff; color: #062d4c; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.lpf-toggle[hidden] { display: none !important; }

/* Der Raster-eigene Link «Filter zurücksetzen» wäre doppelt (Chips «Alle Filter zurücksetzen»). */
.lpg-grid-wrap .lpg-reset { display: none !important; }

.lpf-loading .lpg-grid-wrap, .lpf-loading .lpf-form { opacity: .55; transition: opacity .15s ease; pointer-events: none; }

@media (max-width: 767px) {
    .lpf-js .lpf-toggle { display: inline-flex; }
    .lpf-js .lpf-panel { display: none; }
    .lpf-js .lpf-panel.is-open { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 100002; background: #fff; box-shadow: 0 0 40px rgba(0,0,0,.25); }
    .lpf-js .lpf-panel.is-open .lpf-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; }
    .lpf-title { font-size: 17px; font-weight: 800; }
    .lpf-close { width: 38px; height: 38px; border: 0; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: 22px; line-height: 1; cursor: pointer; }
    .lpf-js .lpf-panel.is-open .lpf-form { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px 0; }
    .lpf-js .lpf-panel.is-open .lpf-actions { position: sticky; bottom: 0; margin: 0 -16px; padding: 12px 16px; border-top: 1px solid #e5e7eb; background: #fff; }
    .lpf-js .lpf-panel.is-open .lpf-apply { flex: 1 1 auto; }
    .lpf-open, .lpf-open body { overflow: hidden; }
}
