/* T1 filters. Colors come from the theme through --eikst-f-* variables, with neutral fallbacks. */
.eikst-f {
	margin: 0 0 20px;
}
.eikst-f-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px 16px;
}
.eikst-f-panel {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}
.eikst-f-head,
.eikst-f-open {
	display: none;
}
.eikst-f-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.eikst-f-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}
.eikst-f.js .eikst-f-foot {
	display: none;
}

/* Pills and dropdowns */
.eikst-f-facet {
	position: relative;
}
.eikst-f-pill,
.eikst-f-toggle,
.eikst-f-open,
.eikst-f-sort select {
	box-sizing: border-box;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--eikst-f-line, rgba(0, 0, 0, .18));
	border-radius: 999px;
	background: var(--eikst-f-bg, #fff);
	color: var(--eikst-f-ink, inherit);
	font: inherit;
	font-size: .95em;
	line-height: 1.2;
	cursor: pointer;
}
/* The two buttons with a look of their own (open, close): three classes and the element (0,3,1), the same in every
   state, so a theme's generic button rule ("button", "[type=button]", with :hover or :focus) can't restyle them. */
.eikst-f .eikst-f-top button.eikst-f-open {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--eikst-f-line, rgba(0, 0, 0, .18));
	border-radius: 999px;
	background: var(--eikst-f-bg, #fff);
	box-shadow: none;
	color: var(--eikst-f-ink, inherit);
	font: inherit;
	font-size: .95em;
	line-height: 1.2;
	letter-spacing: inherit;
	text-transform: none;
	text-shadow: none;
	cursor: pointer;
}
.eikst-f-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	user-select: none;
}
.eikst-f-pill::-webkit-details-marker {
	display: none;
}
.eikst-f-pill::after {
	content: "";
	width: 6px;
	height: 6px;
	margin-inline-start: 4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .15s;
}
.eikst-f-facet[open] > .eikst-f-pill::after {
	transform: translateY(1px) rotate(-135deg);
}
.eikst-f-pill:hover,
.eikst-f-facet[open] > .eikst-f-pill,
.eikst-f-facet.is-on > .eikst-f-pill,
.eikst-f-toggle:hover {
	border-color: var(--eikst-f-accent, currentColor);
}
.eikst-f-facet.is-on > .eikst-f-pill {
	box-shadow: inset 0 0 0 1px var(--eikst-f-accent, currentColor);
}
.eikst-f-pop {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-start: 0;
	z-index: 60;
	box-sizing: border-box;
	min-width: 230px;
	max-width: min(320px, 90vw);
	max-height: 340px;
	overflow: auto;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--eikst-f-line, rgba(0, 0, 0, .15));
	border-radius: 12px;
	background: var(--eikst-f-bg, #fff);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
	min-inline-size: 0;
}
.eikst-f-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 4px 8px;
	border-radius: 8px;
	cursor: pointer;
	line-height: 1.3;
}
.eikst-f-opt:hover {
	background: var(--eikst-f-soft, rgba(0, 0, 0, .05));
}
.eikst-f-opt input,
.eikst-f-toggle input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--eikst-f-accent, auto);
}
.eikst-f-sw {
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22);
}
.eikst-f-c {
	margin-inline-start: auto;
	padding-inline-start: 8px;
	font-size: .85em;
	opacity: .6;
}
.eikst-f-opt.is-zero {
	opacity: .45;
}
.eikst-f-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Sort */
.eikst-f-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}
.eikst-f-sort select {
	padding-inline-end: 32px;
	max-width: 100%;
}

/* Chips and count */
.eikst-f-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.eikst-f-chips li {
	margin: 0;
	padding: 0;
}
.eikst-f-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--eikst-f-soft, rgba(0, 0, 0, .06));
	color: var(--eikst-f-ink, inherit);
	text-decoration: none;
}
.eikst-f-chip:hover {
	background: var(--eikst-f-line, rgba(0, 0, 0, .12));
}
.eikst-f-clearall {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--eikst-f-ink, inherit);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.eikst-f-count {
	margin: 10px 0 0;
	font-size: .9em;
	opacity: .75;
}
.eikst-f-count:focus {
	outline: none;
}
.eikst-f-count:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.eikst-f-pill:focus-visible,
.eikst-f-chip:focus-visible,
.eikst-f-open:focus-visible,
.eikst-f-close:focus-visible {
	outline: 2px solid var(--eikst-f-accent, currentColor);
	outline-offset: 2px;
}

/* While the next page loads */
.eikst-f-loading ul.products,
.eikst-f-loading .products {
	opacity: .5;
	transition: opacity .15s;
}

#eikst-f-live {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Mobile: sticky "סינון / מיון" bar; the form opens as a bottom sheet (moved to body by the script). */
@media (max-width: 767.98px) {
	.eikst-f.js .eikst-f-top {
		position: sticky;
		top: var(--eikst-f-top, 0px);
		z-index: 40;
		flex-wrap: nowrap;
		gap: 8px;
		padding: 8px 0;
		background: var(--eikst-f-bg, #fff);
	}
	.eikst-f.js .eikst-f-panel {
		display: none;
	}
	.eikst-f.js .eikst-f-open {
		display: inline-flex;
		flex: 1 1 50%;
		align-items: center;
		justify-content: center;
		gap: 4px;
		min-height: 44px;
	}
	.eikst-f.js .eikst-f-sort {
		flex: 1 1 50%;
		min-width: 0;
	}
	.eikst-f.js .eikst-f-sort > span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		white-space: nowrap;
	}
	.eikst-f.js .eikst-f-sort select {
		width: 100%;
		min-height: 44px;
	}
	/* 16px keeps phones from zooming into the field. */
	.eikst-f select,
	.eikst-f-panel select,
	.eikst-f input[type="text"],
	.eikst-f input[type="number"] {
		font-size: 16px;
	}
	/* Without the script the bar stays a plain stacked form. */
	.eikst-f:not(.js) .eikst-f-pop {
		position: static;
		box-shadow: none;
		max-width: none;
	}
}

html.eikst-f-lock,
html.eikst-f-lock body {
	overflow: hidden;
}
.eikst-f-scrim {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, .45);
}
.eikst-f-panel.is-sheet {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	max-height: 88vh;
	max-height: 88dvh;
	border-radius: 16px 16px 0 0;
	background: var(--eikst-f-bg, #fff);
	color: var(--eikst-f-ink, inherit);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, .2);
	animation: eikst-f-up .2s ease-out;
}
@keyframes eikst-f-up {
	from {
		transform: translateY(24px);
		opacity: 0;
	}
}
.eikst-f-panel.is-sheet .eikst-f-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 16px;
	border-bottom: 1px solid var(--eikst-f-line, rgba(0, 0, 0, .12));
}
.eikst-f-title {
	margin: 0;
	font-size: 1.15em;
}
.eikst-f-panel .eikst-f-head button.eikst-f-close {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-family: inherit;
	font-size: 28px;
	font-weight: inherit;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	cursor: pointer;
}
.eikst-f-panel.is-sheet .eikst-f-bar {
	flex: 1 1 auto;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0;
	overflow: auto;
	padding: 4px 16px 12px;
	overscroll-behavior: contain;
}
.eikst-f-panel.is-sheet .eikst-f-facet {
	border-bottom: 1px solid var(--eikst-f-line, rgba(0, 0, 0, .12));
}
.eikst-f-panel.is-sheet .eikst-f-pill {
	justify-content: space-between;
	width: 100%;
	min-height: 52px;
	padding: 0 2px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
	font-size: 1em;
}
.eikst-f-panel.is-sheet .eikst-f-pill::after {
	margin-inline-start: auto;
}
.eikst-f-panel.is-sheet .eikst-f-pop {
	position: static;
	min-width: 0;
	max-width: none;
	max-height: none;
	padding: 0 0 10px;
	border: 0;
	box-shadow: none;
	background: none;
}
.eikst-f-panel.is-sheet .eikst-f-opt {
	min-height: 44px;
}
.eikst-f-panel.is-sheet .eikst-f-toggle {
	justify-content: space-between;
	min-height: 52px;
	margin-top: 12px;
	border-radius: 12px;
}
.eikst-f-panel.is-sheet .eikst-f-foot {
	display: flex;
	flex-wrap: nowrap;
	margin: 0;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--eikst-f-line, rgba(0, 0, 0, .12));
}
.eikst-f-panel.is-sheet .eikst-f-apply {
	flex: 1 1 auto;
	min-height: 48px;
}

@media (prefers-reduced-motion: reduce) {
	.eikst-f-panel.is-sheet {
		animation: none;
	}
	.eikst-f-pill::after,
	.eikst-f-loading ul.products,
	.eikst-f-loading .products {
		transition: none;
	}
}
