/* Meghnaj Store Tools: shop filter bar */
.mst-fb {
	--mst-fb-ink: #111;
	--mst-fb-muted: #777;
	--mst-fb-line: #e6e6e6;
	--mst-fb-bg: #fff;
	--mst-fb-accent: var(--mst-fb-ink);
	position: relative;
	z-index: 20;
	width: 100%;
	color: var(--mst-fb-ink);
	font-size: 14px;
	line-height: 1.4;
}

.mst-fb button {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	min-height: 0;
	cursor: pointer;
}

/* Class-level reset so site-wide button styles (Elementor Site Settings > Buttons, theme buttons) don't paint the bar. */
.mst-fb .mst-fb-toggle,
.mst-fb .mst-fb-close,
.mst-fb .mst-fb-clear,
.mst-fb .mst-fb-sort,
.mst-fb .mst-fb-view,
.mst-fb .mst-fb-chip,
.mst-fb .mst-fb-clear-all {
	background-color: transparent;
	background-image: none;
	color: var(--mst-fb-ink);
	box-shadow: none;
	text-shadow: none;
}

.mst-fb button:focus-visible,
.mst-fb input:focus-visible + .mst-fb-check {
	outline: 2px solid var(--mst-fb-ink);
	outline-offset: 2px;
}

/* ---- Bar ---- */
.mst-fb-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 56px;
}

.mst-fb-filters,
.mst-fb-tools {
	display: flex;
	align-items: center;
	gap: 8px 36px;
}

.mst-fb-filters {
	flex-wrap: wrap;
	min-width: 0;
}

.mst-fb-tools {
	flex-shrink: 0;
	gap: 8px 28px;
}

.mst-fb-item {
	position: relative;
}

.mst-fb .mst-fb-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	white-space: nowrap;
	font-size: 15px;
	color: var(--mst-fb-ink);
	transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.mst-fb .mst-fb-toggle svg {
	stroke: currentColor;
}

.mst-fb-count {
	margin-inline-start: -4px;
	color: var(--mst-fb-muted);
}

.mst-fb-chevron {
	width: 12px;
	height: 12px;
	transition: transform .2s ease;
}

.mst-fb-item.is-open .mst-fb-chevron {
	transform: rotate(180deg);
}

.mst-fb-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* ---- Panels ---- */
.mst-fb-panel {
	--mst-fb-shift: 0px;
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-start: 0;
	z-index: 50;
	min-width: 260px;
	max-width: min(360px, calc(100vw - 24px));
	padding: 18px;
	border: 1px solid var(--mst-fb-line);
	background: var(--mst-fb-bg);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
	transform: translateX(var(--mst-fb-shift));
}

.mst-fb-panel[hidden] {
	display: none;
}

.mst-fb-align-end .mst-fb-panel {
	inset-inline-start: auto;
	inset-inline-end: 0;
	min-width: 230px;
}

.mst-fb-panel-head,
.mst-fb-backdrop {
	display: none;
}

.mst-fb-panel-body {
	max-height: 320px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mst-fb-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--mst-fb-line);
}

.mst-fb .mst-fb-actions button {
	flex: 1;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--mst-fb-ink);
	font-size: 13px;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.mst-fb .mst-fb-actions .mst-fb-apply {
	background: var(--mst-fb-accent);
	border-color: var(--mst-fb-accent);
	color: #fff;
}

/* ---- Options ---- */
.mst-fb-options--list {
	display: grid;
	gap: 2px;
}

.mst-fb-opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 7px 0;
	cursor: pointer;
	font-size: 14px;
	color: var(--mst-fb-ink);
	user-select: none;
}

.mst-fb-opt input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.mst-fb-check {
	position: relative;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border: 1px solid #bdbdbd;
	background: #fff;
	transition: background-color .15s ease, border-color .15s ease;
}

.mst-fb-opt input:checked + .mst-fb-check {
	border-color: var(--mst-fb-ink);
	background: var(--mst-fb-ink);
}

.mst-fb-opt input:checked + .mst-fb-check::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.mst-fb-opt--depth-1 { padding-inline-start: 18px; }
.mst-fb-opt--depth-2 { padding-inline-start: 36px; }
.mst-fb-opt--depth-3 { padding-inline-start: 54px; }

/* Color dots */
.mst-fb-dot {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
}

.mst-fb-dot.is-light {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}

.mst-fb-dot.is-unknown {
	background: repeating-linear-gradient(45deg, #eee 0 3px, #ddd 3px 6px);
}

/* Size boxes */
.mst-fb-options--boxes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
	gap: 8px;
}

.mst-fb-opt--box {
	justify-content: center;
	min-height: 40px;
	padding: 6px 8px;
	border: 1px solid var(--mst-fb-line);
	text-align: center;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.mst-fb-opt--box .mst-fb-check {
	display: none;
}

.mst-fb-opt--box:hover {
	border-color: var(--mst-fb-ink);
}

.mst-fb-opt--box:has(input:checked) {
	border-color: var(--mst-fb-ink);
	background: var(--mst-fb-ink);
	color: #fff;
}

.mst-fb-opt--box:has(input:focus-visible) {
	outline: 2px solid var(--mst-fb-ink);
	outline-offset: 2px;
}

/* Menu (order by) */
.mst-fb-options--menu {
	display: grid;
}

.mst-fb .mst-fb-sort {
	display: block;
	width: 100%;
	padding: 9px 0;
	text-align: start;
	font-size: 14px;
	color: var(--mst-fb-muted);
	white-space: nowrap;
}

.mst-fb .mst-fb-sort:hover,
.mst-fb .mst-fb-sort.is-current {
	color: var(--mst-fb-ink);
}

.mst-fb .mst-fb-sort.is-current {
	font-weight: 600;
}

/* View */
.mst-fb-options--views .mst-fb-views {
	display: flex;
	gap: 8px;
}

.mst-fb-options--views .mst-fb-views--mobile {
	display: none;
}

.mst-fb .mst-fb-view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 40px;
	border: 1px solid var(--mst-fb-line);
	color: var(--mst-fb-muted);
}

.mst-fb .mst-fb-view:hover,
.mst-fb .mst-fb-view.is-current {
	border-color: var(--mst-fb-ink);
	color: var(--mst-fb-ink);
}

.mst-fb-item--view .mst-fb-panel {
	min-width: 0;
	padding: 12px;
}

/* Price */
.mst-fb-price {
	padding: 6px 2px 2px;
}

.mst-fb-range {
	position: relative;
	height: 24px;
}

.mst-fb-range-track {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: 2px;
	margin-top: -1px;
	background: var(--mst-fb-line);
}

.mst-fb-range-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	background: var(--mst-fb-ink);
}

.mst-fb-range input[type="range"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.mst-fb-range input[type="range"]::-webkit-slider-runnable-track {
	height: 24px;
	background: none;
}

.mst-fb-range input[type="range"]::-moz-range-track {
	height: 24px;
	background: none;
}

.mst-fb-range input[type="range"]::-webkit-slider-thumb {
	width: 16px;
	height: 16px;
	margin-top: 4px;
	border: 2px solid var(--mst-fb-ink);
	border-radius: 50%;
	background: #fff;
	cursor: grab;
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
}

.mst-fb-range input[type="range"]::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 2px solid var(--mst-fb-ink);
	border-radius: 50%;
	background: #fff;
	cursor: grab;
	pointer-events: auto;
}

.mst-fb-price-inputs {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	margin-top: 14px;
}

.mst-fb-price-inputs label {
	flex: 1;
	margin: 0;
	font-size: 12px;
	color: var(--mst-fb-muted);
}

.mst-fb-price-inputs label span {
	display: block;
	margin-bottom: 4px;
}

.mst-fb .mst-fb-price-inputs input {
	width: 100%;
	height: 38px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid var(--mst-fb-line);
	border-radius: 0;
	background: #fff;
	color: var(--mst-fb-ink);
	font: inherit;
	font-size: 14px;
	box-shadow: none;
	-moz-appearance: textfield;
}

.mst-fb-price-inputs input::-webkit-outer-spin-button,
.mst-fb-price-inputs input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.mst-fb-price-sep {
	padding-bottom: 9px;
	color: var(--mst-fb-muted);
}

/* ---- Share toast ---- */
.mst-fb-item--share {
	position: relative;
}

.mst-fb-toast {
	position: absolute;
	top: calc(100% + 4px);
	inset-inline-end: 0;
	padding: 6px 10px;
	background: var(--mst-fb-ink);
	color: #fff;
	font-size: 12px;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s ease, visibility .15s;
	pointer-events: none;
}

.mst-fb-toast.is-visible {
	opacity: 1;
	visibility: visible;
}

/* ---- Active filters ---- */
.mst-fb-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 4px 0 14px;
}

.mst-fb .mst-fb-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid var(--mst-fb-line);
	font-size: 13px;
}

.mst-fb .mst-fb-chip:hover {
	border-color: var(--mst-fb-ink);
}

.mst-fb-chip img {
	display: inline-block;
	height: .85em;
	width: auto;
}

.mst-fb-chip-x {
	font-size: 16px;
	line-height: 1;
	color: var(--mst-fb-muted);
}

.mst-fb .mst-fb-clear-all {
	padding: 0 4px;
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---- Product grid columns (XStore product grid) ---- */
@media (min-width: 768px) {
	html.mst-cols-2 .etheme-product-grid { --cols: 2 !important; }
	html.mst-cols-3 .etheme-product-grid { --cols: 3 !important; }
	html.mst-cols-4 .etheme-product-grid { --cols: 4 !important; }
}

@media (max-width: 767px) {
	html.mst-cols-m1 .etheme-product-grid { --cols: 1 !important; }
	html.mst-cols-m2 .etheme-product-grid { --cols: 2 !important; }
}

/* ---- Tablet: tighter spacing ---- */
@media (max-width: 1024px) {
	.mst-fb-bar {
		gap: 20px;
	}

	.mst-fb-filters {
		gap: 8px 24px;
	}

	.mst-fb-tools {
		gap: 8px 20px;
	}
}

/* ---- Phone toolbar and sheet parts: hidden on desktop ---- */
.mst-fb-mbar,
.mst-fb-sheet-head,
.mst-fb-sheet-foot {
	display: none;
}

/* On desktop the sheet body wrapper is invisible to layout, so the dropdowns stay in one flex row. */
.mst-fb-sheet-body {
	display: contents;
}

/* ================================================================== */
/* Phones: Filter / Sort toolbar + bottom sheets                       */
/* ================================================================== */
@media (max-width: 767px) {
	/* ---- Toolbar ---- */
	.mst-fb .mst-fb-mbar {
		position: relative;
		display: flex;
		align-items: stretch;
		gap: 8px;
		padding: 4px 0 10px;
	}

	.mst-fb .mst-fb-mbtn {
		flex: 1 1 0;
		min-width: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		height: 44px;
		padding: 0 12px;
		border: 1px solid var(--mst-fb-line);
		border-radius: 0;
		background-color: var(--mst-fb-bg);
		color: var(--mst-fb-ink);
		font-size: 14px;
		white-space: nowrap;
	}

	.mst-fb .mst-fb-mbtn > span:not(.mst-fb-mcount) {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.mst-fb .mst-fb-micon {
		flex: 0 0 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid var(--mst-fb-line);
		border-radius: 0;
		background-color: var(--mst-fb-bg);
		color: var(--mst-fb-muted);
	}

	.mst-fb .mst-fb-mviews {
		display: flex;
	}

	.mst-fb .mst-fb-mviews .mst-fb-micon + .mst-fb-micon {
		margin-inline-start: -1px;
	}

	.mst-fb .mst-fb-mviews .mst-fb-view.is-current {
		position: relative;
		z-index: 1;
		border-color: var(--mst-fb-ink);
		color: var(--mst-fb-ink);
	}

	.mst-fb-mcount {
		min-width: 20px;
		height: 20px;
		padding: 0 6px;
		border-radius: 10px;
		background: var(--mst-fb-accent);
		color: #fff;
		font-size: 12px;
		line-height: 20px;
		text-align: center;
	}

	.mst-fb .mst-fb-mbar .mst-fb-icon {
		width: 18px;
		height: 18px;
	}

	/* ---- Desktop bar: toggles replaced by the toolbar, panels become sheets ---- */
	.mst-fb .mst-fb-bar {
		display: block;
		min-height: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
	}

	.mst-fb .mst-fb-tools {
		display: block;
	}

	.mst-fb .mst-fb-tools > .mst-fb-item > .mst-fb-toggle,
	.mst-fb .mst-fb-tools > .mst-fb-item--share,
	.mst-fb .mst-fb-tools > .mst-fb-item--view {
		display: none !important;
	}

	/* ---- Filter sheet ---- */
	.mst-fb .mst-fb-filters {
		display: none;
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 100001;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 0 !important;
		height: min(88vh, 760px);
		height: min(88dvh, 760px);
		background: var(--mst-fb-bg);
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -10px 40px rgba(0, 0, 0, .16);
	}

	.mst-fb.is-sheet-open .mst-fb-filters {
		display: flex;
		animation: mst-fb-sheet-up .28s cubic-bezier(.2, .8, .2, 1);
	}

	.mst-fb .mst-fb-sheet-head,
	.mst-fb .mst-fb-tools .mst-fb-panel-head {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-shrink: 0;
		min-height: 60px;
		font-size: 17px;
		font-weight: 600;
	}

	.mst-fb .mst-fb-sheet-head {
		padding: 6px 8px 0 20px;
		border-bottom: 1px solid var(--mst-fb-line);
	}

	/* Grab handle */
	.mst-fb .mst-fb-sheet-head::before,
	.mst-fb .mst-fb-tools .mst-fb-panel-head::before {
		content: "";
		position: absolute;
		top: 7px;
		left: 50%;
		width: 36px;
		height: 4px;
		margin-left: -18px;
		border-radius: 2px;
		background: var(--mst-fb-line);
	}

	.mst-fb .mst-fb-sheet-close,
	.mst-fb .mst-fb-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		font-size: 28px;
		line-height: 1;
	}

	.mst-fb .mst-fb-sheet-close {
		background-color: transparent;
		color: var(--mst-fb-ink);
	}

	.mst-fb .mst-fb-sheet-body {
		display: block;
		flex: 1 1 auto;
		min-height: 0;
		padding: 0 20px;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.mst-fb .mst-fb-sheet-foot {
		display: flex;
		flex-shrink: 0;
		gap: 10px;
		padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--mst-fb-line);
		background: var(--mst-fb-bg);
	}

	.mst-fb .mst-fb-sheet-foot button {
		flex: 1;
		height: 48px;
		padding: 0 12px;
		border: 1px solid var(--mst-fb-ink);
		border-radius: 0;
		font-size: 14px;
		letter-spacing: .03em;
		text-transform: uppercase;
	}

	.mst-fb .mst-fb-sheet-foot .mst-fb-sheet-clear {
		background-color: transparent;
		color: var(--mst-fb-ink);
	}

	.mst-fb .mst-fb-sheet-foot .mst-fb-sheet-apply {
		flex: 1.4;
		border-color: var(--mst-fb-accent);
		background-color: var(--mst-fb-accent);
		color: #fff;
	}

	/* Sections (accordion) */
	.mst-fb .mst-fb-filters .mst-fb-item {
		position: static;
		border-bottom: 1px solid var(--mst-fb-line);
	}

	.mst-fb .mst-fb-filters .mst-fb-item:last-child {
		border-bottom: 0;
	}

	.mst-fb .mst-fb-filters .mst-fb-toggle {
		display: flex !important;
		width: 100%;
		justify-content: flex-start;
		min-height: 56px;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		background-color: transparent !important;
		color: var(--mst-fb-ink) !important;
		font-size: 15px;
		font-weight: 500;
	}

	.mst-fb .mst-fb-filters .mst-fb-count {
		margin-inline-start: 2px;
		color: var(--mst-fb-muted);
	}

	.mst-fb .mst-fb-filters .mst-fb-chevron {
		width: 14px;
		height: 14px;
		margin-inline-start: auto;
	}

	.mst-fb .mst-fb-filters .mst-fb-panel {
		position: static;
		min-width: 0;
		max-width: none;
		padding: 0 0 20px;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		transform: none;
		animation: mst-fb-fade .2s ease;
	}

	.mst-fb .mst-fb-filters .mst-fb-panel[hidden] {
		display: none;
	}

	.mst-fb .mst-fb-filters .mst-fb-panel-head,
	.mst-fb .mst-fb-filters .mst-fb-actions {
		display: none;
	}

	.mst-fb .mst-fb-filters .mst-fb-panel-body {
		max-height: none;
		overflow: visible;
	}

	.mst-fb .mst-fb-filters .mst-fb-opt {
		min-height: 44px;
		padding-top: 4px;
		padding-bottom: 4px;
		font-size: 15px;
	}

	.mst-fb .mst-fb-filters .mst-fb-check {
		width: 20px;
		height: 20px;
	}

	.mst-fb .mst-fb-filters .mst-fb-opt input:checked + .mst-fb-check::after {
		top: 3px;
		left: 6px;
		width: 5px;
		height: 10px;
	}

	.mst-fb .mst-fb-filters .mst-fb-dot {
		width: 22px;
		height: 22px;
	}

	.mst-fb .mst-fb-filters .mst-fb-options--boxes {
		grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
		gap: 10px;
	}

	.mst-fb .mst-fb-filters .mst-fb-opt--box {
		min-height: 48px;
	}

	.mst-fb .mst-fb-price {
		padding: 8px 4px 0;
	}

	.mst-fb .mst-fb-range,
	.mst-fb .mst-fb-range input[type="range"] {
		height: 32px;
	}

	.mst-fb .mst-fb-range input[type="range"]::-webkit-slider-runnable-track {
		height: 32px;
	}

	.mst-fb .mst-fb-range input[type="range"]::-webkit-slider-thumb {
		width: 24px;
		height: 24px;
		margin-top: 4px;
	}

	.mst-fb .mst-fb-range input[type="range"]::-moz-range-thumb {
		width: 20px;
		height: 20px;
	}

	.mst-fb .mst-fb-price-inputs input {
		height: 46px;
		font-size: 16px; /* 16px stops iOS from zooming in on focus */
	}

	/* ---- Sort sheet ---- */
	.mst-fb .mst-fb-tools .mst-fb-panel {
		position: fixed;
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 100001;
		display: flex;
		flex-direction: column;
		min-width: 0;
		max-width: none;
		max-height: 80vh;
		padding: 0 20px calc(12px + env(safe-area-inset-bottom));
		border: 0;
		border-radius: 16px 16px 0 0;
		background: var(--mst-fb-bg);
		box-shadow: 0 -10px 40px rgba(0, 0, 0, .16);
		transform: none;
		animation: mst-fb-sheet-up .28s cubic-bezier(.2, .8, .2, 1);
	}

	.mst-fb .mst-fb-tools .mst-fb-panel[hidden] {
		display: none;
	}

	.mst-fb .mst-fb-tools .mst-fb-panel-head {
		margin-inline-end: -12px;
		padding-top: 6px;
	}

	.mst-fb .mst-fb-tools .mst-fb-panel-body {
		flex: 1;
		max-height: none;
	}

	.mst-fb .mst-fb-sort {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 52px;
		padding: 0;
		border-bottom: 1px solid var(--mst-fb-line);
		font-size: 15px;
	}

	.mst-fb .mst-fb-sort:last-child {
		border-bottom: 0;
	}

	.mst-fb .mst-fb-sort.is-current::after {
		content: "";
		width: 6px;
		height: 12px;
		margin-inline-end: 6px;
		border: solid currentColor;
		border-width: 0 2px 2px 0;
		transform: rotate(45deg) translateY(-2px);
	}

	/* ---- Overlay ---- */
	html.mst-fb-sheet-open,
	html.mst-fb-sheet-open body {
		overflow: hidden;
	}

	.mst-fb.has-overlay {
		z-index: 100000;
	}

	.mst-fb.has-overlay .mst-fb-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 100000;
		background: rgba(0, 0, 0, .4);
		animation: mst-fb-fade .2s ease;
	}

	/* ---- Toast under the toolbar ---- */
	.mst-fb .mst-fb-mbar .mst-fb-toast {
		top: calc(100% - 4px);
	}

	/* ---- Active filter chips: one swipeable row ---- */
	.mst-fb-active {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-top: 0;
		scrollbar-width: none;
	}

	.mst-fb-active::-webkit-scrollbar {
		display: none;
	}

	.mst-fb .mst-fb-chip,
	.mst-fb .mst-fb-clear-all {
		flex-shrink: 0;
	}
}

@keyframes mst-fb-sheet-up {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

@keyframes mst-fb-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.mst-fb .mst-fb-filters,
	.mst-fb .mst-fb-panel,
	.mst-fb .mst-fb-backdrop {
		animation: none !important;
	}
}

/* Desktop: invisible bridge over the gap between a label and its dropdown, so hover doesn't drop while moving down. */
@media (min-width: 768px) {
	.mst-fb .mst-fb-bar .mst-fb-panel::before {
		content: "";
		position: absolute;
		right: 0;
		bottom: 100%;
		left: 0;
		height: 10px;
	}
}

/* ---- Rating ---- */
.mst-fb-stars {
	--mst-fb-rating: 5;
	flex-shrink: 0;
	width: 90px;
	height: 16px;
	background: linear-gradient(90deg, var(--mst-fb-star, #dc6c53) calc(var(--mst-fb-rating) * 20%), var(--mst-fb-star-empty, #e1e1e1) 0);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M8 .8l2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5L.8 6.1l5-.7z'/%3E%3C/svg%3E") left center / 18px 16px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath d='M8 .8l2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5L.8 6.1l5-.7z'/%3E%3C/svg%3E") left center / 18px 16px repeat-x;
}

.mst-fb-opt--rating .mst-fb-opt-text {
	color: var(--mst-fb-muted);
	font-size: 13px;
}

[dir="rtl"] .mst-fb-stars,
.rtl .mst-fb-stars {
	background: linear-gradient(-90deg, var(--mst-fb-star, #dc6c53) calc(var(--mst-fb-rating) * 20%), var(--mst-fb-star-empty, #e1e1e1) 0);
	-webkit-mask-position: right center;
	mask-position: right center;
}
