/* Scoped to this directory and this plugin. No theme-wide form overrides. */
.isf-shell { --isf-ink:#202a35; --isf-muted:#647180; --isf-border:#e3e7eb; --isf-surface:#f7f9fa; margin:0 0 24px; border:1px solid var(--isf-border); border-radius:16px; background:#fff; color:var(--isf-ink); width:100%; box-sizing:border-box; scroll-margin-top:110px; }
.isf-shell *, .isf-shell *::before, .isf-shell *::after { box-sizing:border-box; }
.isf-shell [hidden] { display:none !important; }
.isf-shell summary { list-style:none; cursor:pointer; }
.isf-shell summary::-webkit-details-marker { display:none; }
.isf-shell .isf-heading { display:flex; align-items:center; justify-content:space-between; padding:19px 22px; min-height:62px; font-weight:650; font-size:17px; line-height:1.4; }
.isf-heading-label,.isf-heading-right { display:flex; align-items:center; gap:10px; }
.isf-heading svg { flex-shrink:0; }
.isf-filter-count { background:var(--isf-accent); color:#1d2904; border-radius:20px; padding:2px 8px; font-size:12px; line-height:18px; }
.isf-mobile-hint { color:var(--isf-muted); font-size:12px; font-weight:400; }
.isf-chevron { display:inline-block; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin:0 4px 4px 10px; flex-shrink:0; transition:transform .15s; }
.isf-shell[open]>.isf-heading .isf-chevron,.isf-choice[open]>summary .isf-chevron { transform:rotate(225deg); margin-top:6px; }
.isf-form { margin:0 !important; padding:0 22px 20px; }
.isf-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px 14px; }
.isf-field { min-width:0; }
.isf-shell .isf-field>label,.isf-shell .isf-label { display:block; color:var(--isf-ink); margin:0 0 7px; font-size:12px; font-weight:600; line-height:1.4; }
.isf-shell .isf-field>input,.isf-shell .isf-field>select,.isf-shell .isf-choice>summary { border:1px solid var(--isf-border); border-radius:8px; background:var(--isf-surface); color:var(--isf-ink); width:100%; height:44px; min-height:44px; padding:0 12px; font-family:inherit; font-size:13px; font-weight:400; line-height:42px; margin:0; box-shadow:none; }
.isf-shell .isf-field>select { appearance:auto; -webkit-appearance:menulist; background-image:none; padding-right:8px; line-height:normal; text-overflow:ellipsis; }
.isf-shell input::placeholder { color:#88919a; opacity:1; }
.isf-shell input:focus-visible,.isf-shell select:focus-visible,.isf-shell summary:focus-visible,.isf-shell a:focus-visible,.isf-shell button:focus-visible { outline:2px solid #536607; outline-offset:3px; }
.isf-choice { position:relative; margin:0; }
.isf-shell .isf-choice>summary { display:flex; align-items:center; justify-content:space-between; }
.isf-choice>summary>span:first-child { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.isf-choice[open] { z-index:12; }
.isf-shell .isf-choice[open]>summary { border-color:var(--isf-accent); background:#fff; }
.isf-choice-panel { position:absolute; z-index:20; top:calc(100% + 7px); left:0; width:285px; max-width:min(285px,85vw); background:#fff; border:1px solid var(--isf-border); border-radius:10px; box-shadow:0 10px 28px #16213918; padding:10px; }
.isf-grid>.isf-field:nth-child(5n) .isf-choice-panel { left:auto; right:0; }
.isf-shell .isf-option-search { width:100%; height:38px; padding:8px 10px; margin:0 0 6px; border:1px solid var(--isf-border); border-radius:6px; font-family:inherit; font-size:13px; background:var(--isf-surface); }
.isf-choice-options { max-height:224px; overflow-y:auto; overscroll-behavior:contain; }
.isf-shell .isf-choice-option { display:flex; align-items:center; gap:10px; min-height:38px; padding:8px; margin:0; cursor:pointer; font-size:13px; font-weight:400; line-height:1.4; border-radius:5px; }
.isf-choice-option:hover { background:var(--isf-surface); }
.isf-shell input[type=checkbox] { position:static; appearance:auto; -webkit-appearance:checkbox; width:17px; height:17px; opacity:1; flex-shrink:0; margin:0; accent-color:#6b820b; clip:auto; }
.isf-shell .isf-clear-choice { appearance:none; display:block; margin:8px 0 0; padding:8px; width:100%; color:var(--isf-muted); background:transparent; border:0; border-top:1px solid var(--isf-border); border-radius:0; font:inherit; font-size:12px; cursor:pointer; min-height:36px; }
.isf-ranges { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:22px; }
.isf-shell .isf-range { position:relative; min-width:0; margin:0; padding:14px 16px 12px; border:1px solid var(--isf-border); border-radius:10px; background:#fff; }
.isf-range legend { width:auto; padding:0 5px; margin:0 0 0 -5px; color:var(--isf-ink); font-size:12px; font-weight:600; line-height:1.4; float:none; }
.isf-range legend span { color:var(--isf-muted); font-weight:400; }
.isf-range-output { display:block; text-align:right; color:#455316; font-weight:600; font-size:13px; line-height:1.4; min-height:19px; }
.isf-slider { position:relative; height:34px; margin:3px 11px 6px; }
.isf-slider-track,.isf-slider-fill { position:absolute; top:15px; height:5px; border-radius:8px; pointer-events:none; }
.isf-slider-track { left:0; right:0; background:#e9ecef; }
.isf-slider-fill { left:var(--isf-low,0%); right:calc(100% - var(--isf-high,100%)); background:var(--isf-accent); }
.isf-shell .isf-slider input[type=range] { appearance:none; -webkit-appearance:none; position:absolute; inset:0; width:100%; height:34px; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; pointer-events:none; outline:none; cursor:pointer; min-height:0; }
.isf-slider input[type=range]::-webkit-slider-runnable-track { height:5px; background:transparent; border:0; }
.isf-slider input[type=range]::-moz-range-track { height:5px; background:transparent; border:0; }
.isf-slider input[type=range]::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:23px; height:23px; margin-top:-9px; border:3px solid var(--isf-accent); border-radius:50%; background:#fff; box-shadow:0 1px 4px #18201a18; pointer-events:auto; cursor:grab; }
.isf-slider input[type=range]::-moz-range-thumb { width:18px; height:18px; border:3px solid var(--isf-accent); border-radius:50%; background:#fff; box-shadow:0 1px 4px #18201a18; pointer-events:auto; cursor:grab; }
.isf-slider input[type=range]:focus-visible::-webkit-slider-thumb { outline:2px solid #536607; outline-offset:4px; }
.isf-slider input[type=range]:focus-visible::-moz-range-thumb { outline:2px solid #536607; outline-offset:4px; }
.isf-slider input[type=range]:active::-webkit-slider-thumb { cursor:grabbing; }
.isf-range-inputs { display:flex; align-items:center; gap:10px; color:var(--isf-muted); }
.isf-range-inputs>label { display:flex; align-items:center; gap:8px; flex:1; min-width:0; border:1px solid var(--isf-border); background:var(--isf-surface); border-radius:6px; padding:0 10px; margin:0 !important; }
.isf-range-inputs label>span { font-size:11px; font-weight:500; }
.isf-shell .isf-range-inputs input { width:100%; min-width:0; height:34px; min-height:34px; margin:0; padding:0; border:0; background:transparent; color:var(--isf-ink); border-radius:0; font:inherit; font-size:12px; box-shadow:none; -moz-appearance:textfield; }
.isf-range-inputs input::-webkit-inner-spin-button { appearance:none; }
.isf-actions { display:flex; justify-content:space-between; align-items:center; gap:16px; border-top:1px solid var(--isf-border); margin-top:20px; padding-top:16px; }
.isf-results { color:var(--isf-muted); font-size:12px; line-height:1.5; }
.isf-buttons { display:flex; align-items:center; gap:20px; flex-shrink:0; }
.isf-shell .isf-reset { color:var(--isf-muted); font-size:12px; text-decoration:none; min-height:44px; display:flex; align-items:center; }
.isf-shell .isf-reset:hover { text-decoration:underline; }
.isf-shell .isf-apply { display:flex; justify-content:center; align-items:center; gap:20px; min-height:44px; height:auto; margin:0; padding:11px 20px; border:1px solid var(--isf-accent); border-radius:8px; background:var(--isf-accent); color:#1c2904; font-family:inherit; font-size:13px; font-weight:650; line-height:1.4; cursor:pointer; box-shadow:none; }
.isf-shell .isf-apply:hover { filter:brightness(.96); }
.isf-shell .isf-apply[disabled] { opacity:.65; cursor:wait; }
body.isf-hide-old #bp-profile-search-form-outer,body.isf-hide-old #buddypress .bps-form,body.isf-hide-old #buddypress #member-type-select,body.isf-hide-old #buddypress #members-order-select,body.isf-hide-old #buddypress .members-search,body.isf-hide-old #members-dir-search { display:none !important; }
body.isf-no-sidebar #primary { width:100% !important; max-width:100% !important; flex:1 1 100% !important; border-right:0 !important; padding-right:0 !important; }
body.isf-directory .members-directory-container { min-width:0; }
@media (max-width:1100px) and (min-width:761px) { .isf-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .isf-grid>.isf-field:nth-child(3n) .isf-choice-panel { left:auto; right:0; } }
@media (max-width:760px) {
	.isf-shell { border-radius:12px; margin-bottom:18px; scroll-margin-top:90px; }
	.isf-shell .isf-heading { padding:16px; min-height:58px; font-size:16px; }
	.isf-shell[open]>.isf-heading { border-bottom:1px solid var(--isf-border); margin-bottom:16px; }
	.isf-form { padding:0 16px 16px; }
	.isf-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; }
	.isf-shell .isf-field>input,.isf-shell .isf-field>select,.isf-shell .isf-choice>summary { font-size:16px; height:46px; line-height:44px; }
	.isf-shell .isf-field>select { line-height:normal; }
	.isf-choice-panel { position:relative; top:auto; left:auto !important; right:auto !important; width:100%; max-width:100%; margin-top:6px; box-shadow:none; padding:7px; }
	.isf-grid>.isf-field:has(.isf-choice[open]) { grid-column:1/-1; }
	.isf-shell .isf-option-search { font-size:16px; }
	.isf-choice-options { max-height:220px; }
	.isf-shell .isf-choice-option { min-height:44px; font-size:14px; }
	.isf-ranges { grid-template-columns:minmax(0,1fr); gap:18px; }
	.isf-shell .isf-range { padding:12px 13px; }
	.isf-shell .isf-range-inputs input { font-size:16px; height:38px; min-height:38px; }
	.isf-slider { height:42px; margin-top:7px; margin-bottom:8px; }
	.isf-slider-track,.isf-slider-fill { top:19px; }
	.isf-shell .isf-slider input[type=range] { height:42px; }
	.isf-slider input[type=range]::-webkit-slider-thumb { width:28px; height:28px; margin-top:-12px; }
	.isf-slider input[type=range]::-moz-range-thumb { width:23px; height:23px; }
	.isf-actions { flex-direction:column; align-items:stretch; gap:10px; margin-top:18px; }
	.isf-buttons { justify-content:space-between; gap:12px; }
	.isf-shell .isf-apply { flex:1; max-width:230px; min-height:48px; font-size:14px; }
	.isf-results { font-size:12px; }
}
@media (max-width:360px) { .isf-grid { grid-template-columns:minmax(0,1fr); } .isf-mobile-hint { display:none; } }
@media (prefers-reduced-motion:reduce) { .isf-shell * { transition:none !important; scroll-behavior:auto !important; } }
