.csfb,
.csfb * {
	box-sizing: border-box;
}

.csfb {
	--csfb-text: #030303;
	--csfb-border: #c7c7c7;
	--csfb-strong-border: #111;
	--csfb-bg: #fff;
	color: var(--csfb-text);
	font-family: inherit;
	margin: 0 0 22px;
	position: relative;
	width: 100%;
}

.csfb__title {
	color: var(--csfb-text);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0 0 16px;
	padding: 0;
}

.csfb__form {
	margin: 0;
}

.csfb__bar {
	align-items: flex-start;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	position: relative;
	width: 100%;
}

.csfb__groups {
	align-items: flex-start;
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.csfb__group {
	line-height: 1;
	position: relative;
}

.csfb button.csfb__toggle,
.csfb button.csfb__apply {
	appearance: none;
	background: var(--csfb-bg);
	border-radius: 0;
	box-shadow: none;
	color: var(--csfb-text);
	cursor: pointer;
	font-family: inherit;
	text-transform: none;
}

.csfb button.csfb__toggle {
	align-items: center;
	border: 1px solid var(--csfb-border);
	display: inline-flex;
	font-size: 12px;
	font-weight: 500;
	gap: 8px;
	height: 28px;
	justify-content: center;
	line-height: 1;
	min-width: 0;
	padding: 0 9px;
	white-space: nowrap;
}

.csfb button.csfb__toggle:hover,
.csfb .is-open > button.csfb__toggle {
	border-color: var(--csfb-strong-border);
	color: var(--csfb-text);
}

.csfb__chevron {
	border-bottom: 1px solid currentColor;
	border-right: 1px solid currentColor;
	display: inline-block;
	height: 7px;
	margin-top: -4px;
	transform: rotate(45deg);
	transition: transform 0.15s ease, margin 0.15s ease;
	width: 7px;
}

.csfb .is-open .csfb__chevron {
	margin-top: 3px;
	transform: rotate(-135deg);
}

.csfb__count {
	align-items: center;
	background: #111;
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 10px;
	height: 16px;
	justify-content: center;
	line-height: 1;
	min-width: 16px;
	padding: 0 4px;
}

.csfb__panel {
	background: var(--csfb-bg);
	border: 1px solid var(--csfb-strong-border);
	box-shadow: none;
	display: none;
	left: 0;
	margin: 0;
	padding: 10px 14px 14px;
	position: absolute;
	top: calc(100% + 7px);
	width: min(484px, calc(100vw - 32px));
	z-index: 999;
}

.csfb .is-open > .csfb__panel {
	display: block;
}

.csfb__options {
	align-items: start;
	column-gap: 30px;
	display: grid;
	grid-template-columns: repeat(var(--csfb-cols, 3), minmax(122px, 1fr));
	row-gap: 9px;
}

.csfb__option {
	align-items: center;
	color: var(--csfb-text);
	cursor: pointer;
	display: flex;
	font-size: 12px;
	font-weight: 400;
	gap: 6px;
	letter-spacing: 0;
	line-height: 1.25;
	min-height: 16px;
	position: relative;
	white-space: nowrap;
}

.csfb__option input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.csfb__box {
	background: #fff;
	border: 1px solid #414141;
	display: inline-block;
	flex: 0 0 14px;
	height: 14px;
	position: relative;
	width: 14px;
}

.csfb__option input:checked + .csfb__box::after {
	border-bottom: 2px solid #111;
	border-right: 2px solid #111;
	content: "";
	height: 8px;
	left: 4px;
	position: absolute;
	top: 1px;
	transform: rotate(45deg);
	width: 5px;
}

.csfb__option input:focus-visible + .csfb__box {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.csfb__option-text {
	overflow: hidden;
	text-overflow: ellipsis;
}

.csfb__term-count {
	color: #111;
}

.csfb__option.is-extra {
	display: none;
}

.csfb__panel.is-expanded .csfb__option.is-extra {
	display: flex;
}

.csfb button.csfb__see-more {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--csfb-text);
	cursor: pointer;
	font-family: inherit;
	font-size: 10px;
	font-weight: 700;
	grid-column: 1 / -1;
	justify-self: start;
	letter-spacing: 0;
	line-height: 1;
	margin: 6px 0 0;
	padding: 0;
	text-decoration: underline;
	text-transform: uppercase;
}

.csfb__panel.is-expanded .csfb__see-more {
	display: none;
}

.csfb__sliders {
	display: inline-block;
	height: 15px;
	position: relative;
	width: 15px;
}

.csfb__sliders::before {
	background:
		linear-gradient(#111, #111) 2px 1px / 1px 13px no-repeat,
		linear-gradient(#111, #111) 7px 1px / 1px 13px no-repeat,
		linear-gradient(#111, #111) 12px 1px / 1px 13px no-repeat;
	content: "";
	inset: 0;
	position: absolute;
}

.csfb__sliders::after {
	background:
		linear-gradient(#fff, #fff) 1px 4px / 3px 3px no-repeat,
		linear-gradient(#fff, #fff) 6px 9px / 3px 3px no-repeat,
		linear-gradient(#fff, #fff) 11px 3px / 3px 3px no-repeat;
	border:
		1px solid transparent;
	content: "";
	inset: 0;
	position: absolute;
}

.csfb__panel--all {
	width: min(720px, calc(100vw - 32px));
}

.csfb__panel--price {
	width: min(230px, calc(100vw - 32px));
}

.csfb__all-section + .csfb__all-section {
	border-top: 1px solid #eee;
	margin-top: 14px;
	padding-top: 14px;
}

.csfb__all-title {
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	margin: 0 0 10px;
}

.csfb__sort {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 6px;
	margin-left: auto;
}

.csfb__sort-label {
	color: var(--csfb-text);
	font-size: 12px;
	font-weight: 400;
	line-height: 28px;
	margin: 0;
}

.csfb select.csfb__sort-select {
	appearance: none;
	background:
		linear-gradient(45deg, transparent 50%, #111 50%) calc(100% - 14px) 12px / 5px 5px no-repeat,
		linear-gradient(135deg, #111 50%, transparent 50%) calc(100% - 10px) 12px / 5px 5px no-repeat,
		#fff;
	border: 1px solid var(--csfb-border);
	border-radius: 0;
	box-shadow: none;
	color: var(--csfb-text);
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	height: 28px;
	line-height: 1;
	min-width: 114px;
	padding: 0 26px 0 8px;
}

.csfb__actions {
	margin-top: 10px;
}

.csfb button.csfb__apply {
	border: 1px solid #111;
	font-size: 12px;
	font-weight: 600;
	height: 30px;
	line-height: 1;
	padding: 0 14px;
}

@media (max-width: 1024px) {
	.csfb__bar {
		flex-direction: column;
		gap: 12px;
	}

	.csfb__sort {
		margin-left: 0;
	}
}

@media (max-width: 767px) {
	.csfb {
		margin-bottom: 18px;
	}

	.csfb__title {
		font-size: 19px;
		margin-bottom: 12px;
	}

	.csfb__bar {
		position: relative;
	}

	.csfb__groups {
		gap: 7px;
		width: 100%;
	}

	.csfb__group {
		position: static;
	}

	.csfb button.csfb__toggle {
		height: 34px;
	}

	.csfb__panel,
	.csfb__panel--all {
		left: 0;
		max-height: 62vh;
		overflow: auto;
		top: calc(100% + 8px);
		width: 100%;
	}

	.csfb__options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.csfb__option {
		white-space: normal;
	}
}

@media (max-width: 480px) {
	.csfb__options {
		grid-template-columns: 1fr;
	}

	.csfb__sort {
		justify-content: space-between;
		width: 100%;
	}

	.csfb select.csfb__sort-select {
		flex: 1 1 auto;
	}
}
