/* moebelando SmartFilter PRO v1.0.12 */
.mbe-sf-root:empty { display: none !important; }
/* moebelando SmartFilter PRO — namespace isolated to prevent conflicts */
.mbe-sf-root { margin: 0 0 22px; --sf-lime: #a7e752; --sf-dark: #17201b; --sf-line: #e2e8db; font-size: 15px; }
.mbe-sf-root * { box-sizing: border-box; }
.mbe-sf-root button, .mbe-sf-root input, .mbe-sf-root select { font: inherit; }
.mbe-sf-root button { cursor: pointer; }
.mbe-sf-box { padding: 20px 22px; border: 1px solid var(--sf-line); border-radius: 16px; background: linear-gradient(120deg, #f7faef, #ffffff 65%); color: var(--sf-dark); box-shadow: 0 4px 18px rgba(30,54,15,.045); }
.mbe-sf-top { display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.mbe-sf-eyebrow { display: block; font-size: 11px; font-weight: 800; letter-spacing: .11em; color: #557c23; }
.mbe-sf-title { font-size: 23px; line-height: 1.2; margin: 3px 0 4px; font-weight: 750; color: #19251b; }
.mbe-sf-description { font-size: 14px; color: #586257; margin: 0; }
.mbe-sf-mainbutton,.mbe-sf-primary { border: 1px solid #89c73b; border-radius: 10px; background: var(--sf-lime); color: #182617; font-weight: 750; min-height: 45px; padding: 11px 18px; white-space: nowrap; transition: filter .15s, transform .15s; }
.mbe-sf-mainbutton:hover,.mbe-sf-primary:hover { filter: brightness(.96); transform: translateY(-1px); }
.mbe-sf-root button:focus-visible,.mbe-sf-root input:focus-visible,.mbe-sf-root select:focus-visible, .mbe-sf-group summary:focus-visible { outline: 3px solid #407bc0; outline-offset: 2px; }
.mbe-sf-fast { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; }
.mbe-sf-fast-label { font-size: 13px; font-weight: 700; color: #555; margin-right: 3px; }
.mbe-sf-fast-button { padding: 8px 12px; border: 1px solid #d6e3cb; border-radius: 100px; background: #fff; font-weight: 650; font-size: 13px; color: #27352b; }
.mbe-sf-fast-button:hover,.mbe-sf-fast-button.is-active { background: #e6f8ca; border-color: #95cc52; }
.mbe-sf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.mbe-sf-chips:empty { display: none; }
.mbe-sf-chip { padding: 6px 10px; border: 1px solid #b2d883; border-radius: 7px; color: #203e18; background: #eaf8db; font-size: 12px; font-weight: 650; }
.mbe-sf-clear { border: 0; background: none; text-decoration: underline; color: #4f5d52; font-size: 12px; }
.mbe-sf-backdrop { display: none; position: fixed; z-index: 8998; inset: 0; background: rgba(18, 26, 18, .55); }
.mbe-sf-root.is-open .mbe-sf-backdrop { display: block; }
body.mbe-sf-lock { overflow: hidden; }
.mbe-sf-dialog { background: #fff; color: #17201b; box-shadow: 0 20px 60px rgba(0,0,0,.2); position: fixed; z-index: 8999; top: 0; right: 0; bottom: 0; width: min(440px, 96vw); display: flex; flex-direction: column; }
.mbe-sf-dialog[hidden] { display: none !important; }
.mbe-sf-dialog-top { min-height: 64px; padding: 15px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e8ebe6; background: #fbfcf8; font-size: 18px; }
.mbe-sf-close { width: 34px; height: 34px; border: 1px solid #e0e6d7; border-radius: 7px; background: #fff; }
.mbe-sf-form { display: flex; flex-direction: column; flex: 1; overflow: auto; overscroll-behavior: contain; padding: 12px 20px 0; }
.mbe-sf-search { display: flex; gap: 8px; flex-direction: column; font-weight: 750; margin: 8px 0 18px; }
.mbe-sf-search input,.mbe-sf-number input,.mbe-sf-select { width: 100%; min-height: 43px; background: #fff; border: 1px solid #cbd5c6; border-radius: 9px; color: #203021; padding: 8px 12px; }
.mbe-sf-search input::placeholder { color: #7f877c; font-weight: 400; }
.mbe-sf-group { border-top: 1px solid #e8ebe7; padding: 2px 0 12px; }
.mbe-sf-group summary { padding: 15px 0; font-size: 15px; font-weight: 750; cursor: pointer; }
.mbe-sf-group summary:hover { color: #4b7c21; }
.mbe-sf-option { display: flex; align-items: center; gap: 10px; padding: 7px 2px; color: #324332; cursor: pointer; }
.mbe-sf-option input { appearance: auto; width: 19px; height: 19px; accent-color: #659b2d; flex-shrink: 0; }
.mbe-sf-color-holder { display: flex; align-items: center; }
.mbe-sf-color-holder .mbe-sf-option { flex: 1; }
.mbe-sf-swatch { width: 19px; height: 19px; border: 1px solid #bbc4b4; border-radius: 50%; flex-shrink: 0; margin: 0 8px; order: -1; }
.mbe-sf-swatch-weiss{background:#fff}.mbe-sf-swatch-schwarz{background:#111}.mbe-sf-swatch-grau{background:#898989}
.mbe-sf-swatch-gruen{background:#5b9b57}.mbe-sf-swatch-blau{background:#4b79bd}.mbe-sf-swatch-rot{background:#c34e53}
.mbe-sf-swatch-braun{background:#835f4d}.mbe-sf-swatch-beige{background:#e7d4b5}.mbe-sf-swatch-natur{background:#cda56a}
.mbe-sf-swatch-gelb{background:#ecc94e}.mbe-sf-swatch-rosa{background:#e6a0ba}.mbe-sf-swatch-orange{background:#e9954b}
.mbe-sf-swatch-lila{background:#9377af}.mbe-sf-swatch-gold{background:#d6b54b}.mbe-sf-swatch-silber{background:#b9c5c9}
.mbe-sf-number { display: block; font-size: 13px; font-weight: 650; margin: 0 0 12px; }
.mbe-sf-number span { display: block; margin-bottom: 7px; }
.mbe-sf-select { margin-bottom: 12px; }
.mbe-sf-actions { position: sticky; bottom: 0; z-index: 1; display: flex; gap: 10px; padding: 15px 0 20px; margin-top: auto; border-top: 1px solid #e5eae0; background: #fff; }
.mbe-sf-actions button { flex: 1; min-height: 44px; }
.mbe-sf-secondary { color: #30402f; background: #fff; border: 1px solid #ccd7c5; border-radius: 9px; padding: 10px 12px; font-weight: 650; }
.mbe-sf-secondary:hover { background: #f4f7f0; }
@media(max-width:768px) {
 .mbe-sf-root { margin: 0 0 15px; }
 .mbe-sf-box { padding: 14px; border-radius: 12px; }
 .mbe-sf-title { font-size: 19px; }
 .mbe-sf-eyebrow { font-size: 9px; }
 .mbe-sf-top { align-items: flex-start; flex-direction: column; gap: 12px; }
 .mbe-sf-mainbutton { width: 100%; }
 .mbe-sf-description { font-size: 13px; }
 .mbe-sf-fast { gap: 7px; margin-top: 12px; }
 .mbe-sf-fast-button { font-size: 12px; padding: 7px 11px; }
 .mbe-sf-fast-label { flex-basis: 100%; }
 .mbe-sf-dialog { width: 100vw; }
 .mbe-sf-form { padding: 12px 16px 0; }
}
@media(prefers-reduced-motion:reduce) {
 .mbe-sf-root *, .mbe-sf-root *::before, .mbe-sf-root *::after { transition: none !important; scroll-behavior: auto !important; }
}

.mbe-sf-hint { display:block; color:#687369; line-height:1.45; margin-bottom:9px; font-size:12px; }

/* v1.0.11 – responsive from/to dimensions, brands, ratings and native JTL sorting. */
.mbe-sf-top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mbe-sf-quick-sort { min-height: 45px; max-width: 255px; padding: 10px 30px 10px 11px; background: #fff; color: #283728; border: 1px solid #cbd5c5; border-radius: 10px; cursor: pointer; }
.mbe-sf-brand-search { width: 100%; border: 1px solid #cbd5c6; border-radius: 9px; min-height: 43px; padding: 8px 11px; margin: 2px 0 9px; color: #223021; }
.mbe-sf-brand-list { max-height: 245px; overflow-y: auto; padding-right: 3px; margin-bottom: 12px; }
.mbe-sf-brand-item[hidden] { display: none !important; }
.mbe-sf-brand-item { border-bottom: 1px solid #f0f2ed; }
.mbe-sf-stars { font-size: 18px; letter-spacing: 1px; color: #edaa18; white-space: nowrap; line-height: 1; }
.mbe-sf-rating-option { gap: 8px; }
.mbe-sf-rating-option:has(input:disabled) { opacity: .48; cursor: not-allowed; }
.mbe-sf-shuffle-again { padding: 6px 10px; border: 1px solid #cbd5c6; border-radius: 8px; background: #f7faf3; color: #30402f; margin: 0 0 10px; }
.mbe-sf-shuffle-again[hidden] { display: none !important; }
.mbe-sf-dimension { margin: 4px 0 19px; }
.mbe-sf-dimension-title { font-size: 14px; color: #454e47; margin: 0 0 8px; font-weight: 700; }
.mbe-sf-range-fields { display: flex; align-items: flex-end; gap: 10px; }
.mbe-sf-range-field { flex: 1; min-width: 0; }
.mbe-sf-range-caption { display: block; font-size: 12px; color: #687369; margin-bottom: 5px; }
.mbe-sf-range-control { display: flex; align-items: center; border: 1px solid #cbd5c6; background: #fff; border-radius: 8px; min-height: 42px; padding: 0 9px; gap: 5px; }
.mbe-sf-range-control:focus-within { outline: 2px solid #407bc0; outline-offset: 1px; }
.mbe-sf-range-control input { width: 100%; min-width: 0; color: #203021; text-align: center; border: 0; background: transparent; padding: 7px 0; min-height: 38px; font-size: 15px; outline: none; }
.mbe-sf-range-control span { color: #647063; font-size: 12px; white-space: nowrap; }
.mbe-sf-range-separator { padding-bottom: 12px; color: #667064; flex: none; font-size: 13px; }
.mbe-sf-double-range { height: 31px; position: relative; margin: 10px 10px 0; }
.mbe-sf-range-track { position: absolute; top: 14px; height: 4px; left: 0; right: 0; border-radius: 5px; background: linear-gradient(to right, #d5dfd0 0%, #d5dfd0 var(--low,0%), var(--sf-lime) var(--low,0%), var(--sf-lime) var(--high,100%), #d5dfd0 var(--high,100%), #d5dfd0 100%); pointer-events: none; }
.mbe-sf-range-input { position: absolute; inset: 0; top: 0; width: 100%; height: 31px; margin: 0; border: none; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; pointer-events: none; }
.mbe-sf-range-input::-webkit-slider-runnable-track { appearance: none; -webkit-appearance: none; background: transparent; height: 4px; }
.mbe-sf-range-input::-moz-range-track { background: transparent; height: 4px; }
.mbe-sf-range-input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 19px; height: 19px; margin-top: -8px; border: 2px solid #fff; background: var(--sf-lime); border-radius: 50%; box-shadow: 0 0 0 1px #649d24; cursor: grab; pointer-events: auto; }
.mbe-sf-range-input::-moz-range-thumb { width: 17px; height: 17px; border: 2px solid #fff; background: var(--sf-lime); border-radius: 50%; box-shadow: 0 0 0 1px #649d24; cursor: grab; pointer-events: auto; }
.mbe-sf-range-input:focus-visible::-webkit-slider-thumb { outline: 3px solid #407bc0; outline-offset: 3px; }
.mbe-sf-range-input:focus-visible::-moz-range-thumb { outline: 3px solid #407bc0; outline-offset: 3px; }
.mbe-sf-slider-min { z-index: 2; }
.mbe-sf-slider-max { z-index: 3; }
.mbe-sf-slider-min:focus, .mbe-sf-slider-min:hover { z-index: 4; }
.mbe-sf-slider-max:focus, .mbe-sf-slider-max:hover { z-index: 4; }
@media (max-width: 768px) {
  .mbe-sf-top-actions { width: 100%; gap: 9px; }
  .mbe-sf-quick-sort { flex: 1; max-width: none; width: 48%; min-width: 0; font-size: 13px; }
  .mbe-sf-top-actions .mbe-sf-mainbutton { flex: 1; min-width: 0; width: 48%; font-size: 13px; }
  .mbe-sf-range-fields { gap: 6px; }
  .mbe-sf-range-control { padding: 0 6px; }
}

/* Hide ONLY JTL’s duplicate sort dropdown when our working sort control is mounted. */
body.mbe-sf-sort-integrated #result-wrapper .filter-type-FilterItemSort { display: none !important; }

/* v1.0.11 – ensure range inputs retain moebelando green on touch devices. */
.mbe-sf-double-range { accent-color: var(--sf-lime); }
.mbe-sf-range-input::-webkit-slider-thumb:hover { box-shadow: 0 0 0 2px #649d24; }
.mbe-sf-range-input::-moz-range-thumb:hover { box-shadow: 0 0 0 2px #649d24; }

/* Price and dimensions use the same lime-green dual slider and linked fields. */
.mbe-sf-price-range { margin-bottom: 17px; }
.mbe-sf-price-range .mbe-sf-range-control { color: #203021; }
.mbe-sf-price-range .mbe-sf-range-control > span { font-weight: 650; }

/* v1.0.13: persistent facets across the native JTL pagination. */
