/*
 * Woo Loop Filters – עיצוב.
 * צבעים וגופנים נלקחים כברירת מחדל מההגדרות הגלובליות של Elementor באתר (Site Settings),
 * כך שהפילטרים נראים כמו שאר האתר. אפשר לשנות הכל בלשונית "עיצוב" של הווידג׳ט.
 * מאפיינים לוגיים (inline-start/end) – עובד ב-RTL וב-LTR.
 */

/* ---- משתנים (ספציפיות 0 כדי שהגדרות Elementor תמיד יגברו) ---- */
:where(.elementor-widget-wlf-filter, .wlf-drawer) {
	--wlf-accent: #e0181f;
	--wlf-accent-contrast: #fff;
	--wlf-text: inherit;
	--wlf-muted: #6b7280;
	--wlf-border: #e5e7eb;
	--wlf-surface: #fff;
	--wlf-hover: #f4f5f7;
	--wlf-radius: 14px;
	--wlf-gap: 4px;
	--wlf-group-gap: 14px;
	--wlf-pad: 18px;
	--wlf-check: 18px;
	--wlf-swatch-size: 48px;
	--wlf-swatch-ratio: 2;
	--wlf-swatch-radius: 10px;
	--wlf-swatch-fit: contain;
	--wlf-swatch-bg: #fff;
	--wlf-font: inherit;
	--wlf-title-font: inherit;
	--wlf-ease: cubic-bezier(.2, .7, .2, 1);
}

.wlf-filter {
	display: flex;
	flex-direction: column;
	gap: var(--wlf-group-gap);
	color: var(--wlf-text);
	font-family: var(--wlf-font);
	font-size: 15px;
	line-height: 1.4;
}

.wlf-filter *,
.wlf-filter *::before,
.wlf-filter *::after {
	box-sizing: border-box;
}

/* מצב מובייל מובנה: סרגל עם כפתור "סינון" (מוצג רק מתחת לנקודת השבירה, ע"י JS) */
.wlf-panel {
	display: flex;
	flex-direction: column;
	gap: var(--wlf-group-gap);
}

.wlf-mobile-bar {
	display: none;
}

.wlf-mobile-bar.is-active {
	display: block;
}

.wlf-mobile-bar .wlf-drawer-toggle {
	width: 100%;
}

/* כשהפאנל לא מגירה – לא צריך את הכותרת/תחתית של המגירה */
.wlf-panel:not(.wlf-drawer) > .wlf-drawer__head,
.wlf-panel:not(.wlf-drawer) > .wlf-drawer__foot {
	display: none;
}

.wlf-filter--busy .wlf-group__body {
	opacity: .65;
	transition: opacity .15s;
}

.wlf-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---- קבוצה ---- */
.wlf-group {
	background: var(--wlf-surface);
	border: 1px solid var(--wlf-border);
	border-radius: var(--wlf-radius);
	padding: var(--wlf-pad);
}

.wlf-skin-divided .wlf-filter {
	gap: 0;
}

.wlf-skin-divided .wlf-group {
	background: none;
	border: 0;
	border-bottom: 1px solid var(--wlf-border);
	border-radius: 0;
	padding: 18px 0;
}

.wlf-skin-divided .wlf-group:first-child {
	padding-top: 0;
}

.wlf-skin-divided .wlf-group:last-of-type {
	border-bottom: 0;
}

.wlf-skin-plain .wlf-group {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
}

/* מיון – בלי כרטיס */
.wlf-filter--sort .wlf-group {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.wlf-group__head {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin-bottom: 12px;
	color: var(--wlf-text);
	font-family: var(--wlf-title-font);
	font-size: 1em;
	font-weight: 600;
	line-height: 1.3;
	text-align: start;
}

button.wlf-group__head {
	cursor: pointer;
}

button.wlf-group__head:focus-visible {
	outline: 2px solid var(--wlf-accent);
	outline-offset: 4px;
	border-radius: 4px;
}

.wlf-group__title {
	flex: 1;
}

.wlf-group__badge {
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--wlf-accent);
	color: var(--wlf-accent-contrast);
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.wlf-group__badge[hidden] {
	display: none;
}

.wlf-group__chevron {
	flex: none;
	color: var(--wlf-muted);
	transition: transform .2s var(--wlf-ease);
}

.wlf-group.is-collapsed .wlf-group__chevron {
	transform: rotate(-90deg);
}

[dir="rtl"] .wlf-group.is-collapsed .wlf-group__chevron,
.rtl .wlf-group.is-collapsed .wlf-group__chevron {
	transform: rotate(90deg);
}

.wlf-group.is-collapsed .wlf-group__head {
	margin-bottom: 0;
}

.wlf-group.is-collapsed .wlf-group__body {
	display: none;
}

/* ---- רשימות ---- */
.wlf-list,
.wlf-list__children {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wlf-gap);
}

.wlf-list__children {
	margin-top: var(--wlf-gap);
	margin-inline-start: 13px;
	padding-inline-start: 10px;
	border-inline-start: 1px solid var(--wlf-border);
}

.wlf-list li[hidden],
.wlf-list .wlf-no-match,
.wlf-list.is-limited:not(.is-searching) > .wlf-is-extra {
	display: none !important;
}

.wlf-option {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 7px 8px;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color .15s;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.wlf-list--checkboxes .wlf-option:hover,
.wlf-list--radio .wlf-option:hover {
	background: var(--wlf-hover);
}

.wlf-option__label {
	flex: 1;
	min-width: 0;
}

.wlf-option__count {
	flex: none;
	min-width: 24px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--wlf-hover);
	color: var(--wlf-muted);
	font-size: 12px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.wlf-option--empty > .wlf-option {
	opacity: .4;
}

.wlf-option:has(input:disabled) {
	cursor: not-allowed;
}

/* תיבת סימון ורדיו מעוצבים */
.wlf-option input[type="checkbox"],
.wlf-option input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: var(--wlf-check);
	height: var(--wlf-check);
	margin: 0;
	border: 1.5px solid #c7ccd4;
	border-radius: 5px;
	background: #fff center / 70% no-repeat;
	cursor: inherit;
	transition: background-color .15s, border-color .15s, box-shadow .15s;
}

.wlf-option input[type="radio"] {
	border-radius: 50%;
}

.wlf-option:hover input:not(:checked):not(:disabled) {
	border-color: var(--wlf-accent);
}

.wlf-option input[type="checkbox"]:checked {
	background-color: var(--wlf-accent);
	border-color: var(--wlf-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.wlf-option input[type="radio"]:checked {
	border-color: var(--wlf-accent);
	box-shadow: inset 0 0 0 4px #fff;
	background-color: var(--wlf-accent);
}

.wlf-option input:focus-visible {
	outline: 2px solid var(--wlf-accent);
	outline-offset: 2px;
}

/* ---- תצוגת כפתורים ---- */
.wlf-list--buttons {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

.wlf-list--buttons .wlf-list__children {
	display: contents;
}

.wlf-list--buttons .wlf-option {
	position: relative;
	padding: 7px 14px;
	border: 1px solid var(--wlf-border);
	border-radius: 999px;
	background: var(--wlf-surface);
	font-size: .93em;
	transition: border-color .15s, background-color .15s, color .15s;
}

.wlf-list--buttons .wlf-option:hover {
	border-color: var(--wlf-accent);
}

.wlf-list--buttons .wlf-option input,
.wlf-list--swatches .wlf-option input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}

.wlf-list--buttons .wlf-option:has(input:checked) {
	background: var(--wlf-accent);
	border-color: var(--wlf-accent);
	color: var(--wlf-accent-contrast);
}

.wlf-list--buttons .wlf-option:has(input:checked) .wlf-option__count {
	background: rgba(255, 255, 255, .2);
	color: inherit;
}

.wlf-list--buttons .wlf-option:has(input:focus-visible),
.wlf-list--swatches .wlf-option:has(input:focus-visible) .wlf-swatch__media {
	outline: 2px solid var(--wlf-accent);
	outline-offset: 2px;
}

.wlf-list--buttons .wlf-option__count {
	min-width: 0;
	padding: 0 6px;
}

/* ---- סימון ויזואלי (תמונה / צבע) ---- */
.wlf-list--swatches {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 12px 10px;
}

.wlf-list--swatches > li {
	--wlf-sw-w: var(--wlf-swatch-size);
}

/* תמונות (לוגואים) – ביחס רוחב:גובה שנבחר (ברירת מחדל 2:1). צבעים נשארים ריבועיים/עגולים. */
.wlf-list--swatches > li.wlf-swatch-item--image {
	--wlf-sw-w: calc(var(--wlf-swatch-size) * var(--wlf-swatch-ratio));
}

.wlf-swatch {
	position: relative;
	flex-direction: column;
	gap: 6px;
	padding: 0;
	text-align: center;
}

.wlf-swatch__media {
	position: relative;
	display: grid;
	place-items: center;
	width: var(--wlf-sw-w, var(--wlf-swatch-size));
	height: var(--wlf-swatch-size);
	border: 1px solid var(--wlf-border);
	border-radius: var(--wlf-swatch-radius);
	background: var(--wlf-swatch-bg);
	overflow: hidden;
	transition: border-color .15s, box-shadow .15s, transform .15s var(--wlf-ease);
}

/* חזק במיוחד – תבניות ו-Elementor מגדירים img { height: auto; max-width: 100% } שדורס את ההתאמה */
.wlf-filter .wlf-swatch__media img,
.elementor .wlf-filter .wlf-swatch__media img {
	position: absolute;
	inset: 4px;
	display: block;
	width: calc(100% - 8px) !important;
	height: calc(100% - 8px) !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	object-fit: var(--wlf-swatch-fit) !important;
	object-position: center !important;
}

.wlf-swatch__media--color {
	background: var(--wlf-swatch);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.wlf-swatch__media--text {
	color: var(--wlf-muted);
	font-weight: 600;
	font-size: calc(var(--wlf-swatch-size) * .38);
}

.wlf-swatch:hover .wlf-swatch__media {
	border-color: var(--wlf-accent);
	transform: translateY(-1px);
}

.wlf-swatch:has(input:checked) .wlf-swatch__media {
	border-color: var(--wlf-accent);
	box-shadow: 0 0 0 2px var(--wlf-accent);
}

/* סימן ✓ בפינה של פריט שנבחר */
.wlf-swatch:has(input:checked)::after {
	content: "";
	position: absolute;
	top: -5px;
	inset-inline-end: calc(50% - var(--wlf-sw-w, var(--wlf-swatch-size)) / 2 - 5px);
	width: 18px;
	height: 18px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--wlf-accent) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	pointer-events: none;
}

.wlf-swatch .wlf-option__label {
	font-size: .82em;
	line-height: 1.25;
	color: var(--wlf-text);
	max-width: calc(var(--wlf-sw-w, var(--wlf-swatch-size)) + 16px);
	overflow-wrap: anywhere;
}

.wlf-swatch .wlf-option__count {
	position: absolute;
	top: calc(var(--wlf-swatch-size) - 14px);
	inset-inline-start: calc(50% - var(--wlf-sw-w, var(--wlf-swatch-size)) / 2 - 4px);
	min-width: 18px;
	padding: 0 5px;
	background: var(--wlf-surface);
	border: 1px solid var(--wlf-border);
	font-size: 10px;
}

.wlf-option--empty > .wlf-swatch {
	opacity: .35;
}

/* ---- רשימה נפתחת ---- */
.wlf-select-wrap {
	position: relative;
}

.wlf-select {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 44px;
	padding-block: 0;
	padding-inline: 14px 38px;
	border: 1px solid var(--wlf-border);
	border-radius: calc(var(--wlf-radius) * .7);
	background: var(--wlf-surface);
	color: var(--wlf-text);
	font: inherit;
	cursor: pointer;
}

.wlf-select-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-end: 14px;
	width: 10px;
	height: 10px;
	margin-top: -7px;
	border: solid var(--wlf-muted);
	border-width: 0 1.6px 1.6px 0;
	transform: rotate(45deg);
	pointer-events: none;
}

.wlf-select:focus-visible {
	outline: 2px solid var(--wlf-accent);
	outline-offset: 1px;
}

/* ---- חיפוש ---- */
.wlf-search {
	position: relative;
	margin-bottom: 10px;
}

.wlf-search__input {
	width: 100%;
	height: 38px;
	padding-block: 0;
	padding-inline: 36px 12px;
	border: 1px solid var(--wlf-border);
	border-radius: 999px;
	background: var(--wlf-hover) no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='9' cy='9' r='6' fill='none' stroke='%236b7280' stroke-width='1.8'/%3E%3Cpath d='M14 14l4 4' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-size: 16px;
	background-position: 12px center;
	color: var(--wlf-text);
	font: inherit;
	font-size: .93em;
}

[dir="rtl"] .wlf-search__input,
.rtl .wlf-search__input {
	background-position: calc(100% - 12px) center;
}

.wlf-search__input:focus {
	outline: none;
	border-color: var(--wlf-accent);
	background-color: var(--wlf-surface);
}

/* ---- הצג עוד ---- */
.wlf-more {
	all: unset;
	display: inline-block;
	margin-top: 10px;
	padding: 2px 8px;
	border-radius: 6px;
	color: var(--wlf-accent);
	font-size: .9em;
	font-weight: 600;
	cursor: pointer;
}

.wlf-more[hidden] {
	display: none;
}

.wlf-more:hover {
	background: var(--wlf-hover);
}

.wlf-more:focus-visible {
	outline: 2px solid var(--wlf-accent);
}

/* ---- מתג (במלאי / במבצע) ---- */
.wlf-switch {
	position: relative;
	padding-inline: 0;
}

.wlf-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.wlf-switch__track {
	position: relative;
	flex: none;
	width: 38px;
	height: 22px;
	border-radius: 999px;
	background: #d1d5db;
	transition: background-color .2s;
}

.wlf-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: inset-inline-start .2s var(--wlf-ease);
}

.wlf-switch input:checked + .wlf-switch__track {
	background: var(--wlf-accent);
}

.wlf-switch input:checked + .wlf-switch__track::after {
	inset-inline-start: 19px;
}

.wlf-switch input:focus-visible + .wlf-switch__track {
	outline: 2px solid var(--wlf-accent);
	outline-offset: 2px;
}

/* ---- טווח ---- */
.wlf-range {
	--wlf-from: 0%;
	--wlf-to: 100%;
	padding-top: 4px;
}

.wlf-range__sliders {
	position: relative;
	height: 24px;
	margin: 0 9px 14px;
}

.wlf-range__track {
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 4px;
	transform: translateY(-50%);
	border-radius: 4px;
	background: var(--wlf-border);
}

.wlf-range__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: var(--wlf-from);
	inset-inline-end: calc(100% - var(--wlf-to));
	background: var(--wlf-accent);
	border-radius: inherit;
}

.wlf-range input[type="range"] {
	position: absolute;
	inset: 0 -9px;
	width: calc(100% + 18px);
	height: 100%;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.wlf-range input[type="range"]::-webkit-slider-runnable-track {
	background: none;
}

.wlf-range input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--wlf-accent);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
	cursor: grab;
	position: relative;
	z-index: 2;
}

.wlf-range input[type="range"]::-moz-range-track {
	background: none;
}

.wlf-range input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--wlf-accent);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
	cursor: grab;
}

.wlf-range input[type="range"]:focus-visible::-webkit-slider-thumb {
	outline: 3px solid color-mix(in srgb, var(--wlf-accent) 35%, transparent);
}

.wlf-range__inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wlf-range__sep {
	color: var(--wlf-muted);
}

.wlf-range__field {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid var(--wlf-border);
	border-radius: calc(var(--wlf-radius) * .6);
	background: var(--wlf-surface);
	transition: border-color .15s;
}

.wlf-range__field:focus-within {
	border-color: var(--wlf-accent);
}

.wlf-range__suffix {
	color: var(--wlf-muted);
	font-size: .9em;
}

.wlf-range__field input {
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wlf-text);
	font: inherit;
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
}

.wlf-range__field input:focus {
	outline: none;
}

.wlf-range__field input::-webkit-outer-spin-button,
.wlf-range__field input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---- כפתורים ---- */
.wlf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: calc(var(--wlf-radius) * .7);
	background: var(--wlf-accent);
	color: var(--wlf-accent-contrast);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: filter .15s, transform .1s;
}

.wlf-button:hover {
	filter: brightness(1.1);
}

.wlf-button:active {
	transform: translateY(1px);
}

.wlf-apply {
	width: 100%;
}

.wlf-reset {
	background: transparent;
	color: var(--wlf-text);
	box-shadow: inset 0 0 0 1px var(--wlf-border);
}

/* ---- מצב טעינה של ה-Loop Grid ---- */
.wlf-loading {
	position: relative;
	pointer-events: none;
}

.wlf-loading > * {
	opacity: .4;
	transition: opacity .2s;
}

.wlf-loading::after {
	content: "";
	position: absolute;
	top: 80px;
	left: 50%;
	width: 34px;
	height: 34px;
	margin-left: -17px;
	border: 3px solid var(--wlf-border, #e5e7eb);
	border-top-color: var(--wlf-accent, #111);
	border-radius: 50%;
	animation: wlf-spin .7s linear infinite;
	z-index: 5;
}

@keyframes wlf-spin {
	to {
		transform: rotate(360deg);
	}
}

.wlf-empty {
	padding: 48px 16px;
	text-align: center;
	color: var(--wlf-muted, #6b7280);
	font-size: 1.05em;
}

.wlf-notice {
	padding: 1em;
	border: 1px dashed currentColor;
	border-radius: 8px;
	opacity: .7;
	font-size: .9em;
}

/* ---- תגיות פילטרים פעילים ---- */
.wlf-filter--active {
	gap: 10px;
}

.wlf-filter--active.is-empty {
	display: none;
}

.elementor-editor-active .wlf-filter--active.is-empty {
	display: flex;
}

.wlf-filter__title {
	font-family: var(--wlf-title-font);
	font-weight: 600;
}

.wlf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wlf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px 6px 12px;
	border: 1px solid var(--wlf-border);
	border-radius: 999px;
	background: var(--wlf-surface);
	color: var(--wlf-text);
	font: inherit;
	font-size: .88em;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}

[dir="rtl"] .wlf-chip,
.rtl .wlf-chip {
	padding: 6px 12px 6px 8px;
}

.wlf-chip:hover {
	border-color: var(--wlf-accent);
}

.wlf-chip__x {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--wlf-hover);
	font-size: 14px;
	line-height: 1;
}

.wlf-chip:hover .wlf-chip__x {
	background: var(--wlf-accent);
	color: var(--wlf-accent-contrast);
}

.wlf-chip--clear {
	border-color: transparent;
	background: none;
	color: var(--wlf-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.wlf-filter *,
	.wlf-loading::after {
		transition: none !important;
		animation-duration: 2s;
	}
}

/* כפתור המגירה */
.elementor-widget-wlf-filter.wlf-hidden {
	display: none;
}

.wlf-drawer-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin-top: 0;
}

.wlf-drawer-toggle__count {
	min-width: 1.5em;
	height: 1.5em;
	padding: 0 0.35em;
	border-radius: 999px;
	background: var(--wlf-accent, #111);
	color: #fff;
	font-size: 0.75em;
	line-height: 1.5em;
	text-align: center;
}

.wlf-drawer-toggle__count[hidden] {
	display: none;
}

/* המגירה עצמה – מופעלת ע"י JS (class wlf-drawer) רק מתחת לנקודת השבירה */
.wlf-drawer__head,
.wlf-drawer__foot {
	display: none;
}

.wlf-drawer {
	position: fixed !important;
	top: 0 !important;
	bottom: 0 !important;
	inset-inline-end: 0 !important;
	inset-inline-start: auto !important;
	z-index: 100000 !important;
	width: min(var(--wlf-drawer-width, 360px), 90vw) !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 16px 16px !important;
	overflow-y: auto;
	overscroll-behavior: contain;
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	gap: 16px;
	background: var(--wlf-drawer-bg, #fff) !important;
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
	transform: translateX(100%);
	visibility: hidden;
}

/* האנימציה מופעלת רק אחרי הטעינה, כדי שהמגירה לא "תהבהב" בפתיחת העמוד */
.wlf-drawer.wlf-drawer--animate {
	transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

[dir="rtl"] .wlf-drawer,
.rtl .wlf-drawer {
	transform: translateX(-100%);
}

.wlf-drawer.is-open {
	transform: none !important;
	visibility: visible;
}

.wlf-drawer.wlf-drawer--animate.is-open {
	transition: transform 0.25s ease, visibility 0s;
}

.wlf-drawer > .wlf-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	position: sticky;
	top: 0;
	z-index: 2;
	margin: 0 -16px;
	padding: 14px 16px;
	background: inherit;
	border-bottom: 1px solid rgba(127, 127, 127, 0.25);
}

.wlf-drawer__title {
	font-weight: 600;
	font-size: 1.1em;
}

.wlf-drawer__close {
	background: none;
	border: 0;
	padding: 0 4px;
	font-size: 28px;
	line-height: 1;
	color: inherit;
	cursor: pointer;
}

.wlf-drawer > .wlf-drawer__foot {
	display: block;
	position: sticky;
	bottom: -16px;
	margin: auto -16px -16px;
	padding: 12px 16px;
	background: inherit;
	border-top: 1px solid rgba(127, 127, 127, 0.25);
}

.wlf-drawer__done {
	width: 100%;
	margin-top: 0;
}

.wlf-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s;
}

.wlf-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

html.wlf-drawer-open,
html.wlf-drawer-open body {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.wlf-drawer.wlf-drawer--animate,
	.wlf-drawer.wlf-drawer--animate.is-open,
	.wlf-overlay {
		transition: none;
	}
}

/* מונה על כפתור צבעוני – לבן עם טקסט בצבע הראשי, כדי שיבלוט */
.wlf-drawer-toggle .wlf-drawer-toggle__count {
	background: #fff;
	color: var(--wlf-accent, #111);
	font-weight: 700;
}

/* "הצג עוד" פתוח – גובה קבוע וגלילה בתוך הרשימה */
.wlf-list.is-expanded,
.wlf-list.is-searching {
	max-height: var(--wlf-scroll-height, 280px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-top: 6px; /* מקום לסימן ✓ של סימון ויזואלי */
	padding-inline-end: 6px;
	scrollbar-width: thin;
	scrollbar-color: var(--wlf-border) transparent;
}

.wlf-list.is-expanded::-webkit-scrollbar,
.wlf-list.is-searching::-webkit-scrollbar {
	width: 6px;
}

.wlf-list.is-expanded::-webkit-scrollbar-thumb,
.wlf-list.is-searching::-webkit-scrollbar-thumb {
	background: var(--wlf-border);
	border-radius: 6px;
}

/* "נמצאו X מוצרים" */
.wlf-filter--count {
	display: block;
	color: var(--wlf-muted);
	font-size: .95em;
	transition: opacity .15s;
}

.wlf-filter--count .wlf-count__num {
	color: var(--wlf-text);
	font-weight: 700;
}

.wlf-filter--count.wlf-filter--busy {
	opacity: .45;
}

.wlf-drawer__done .wlf-count__num {
	font-weight: 700;
}
