.filter-form {
	width: 300px;
	margin: 0 auto;
	padding: 20px;
	border: 1px solid #ccc;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.filter-section {
	margin-bottom: 20px;
}

.filter-section h2 {
	font-size: 18px;
	margin-bottom: 10px;
}

.filter-section label {
	display: block;
	margin-bottom: 5px;
	font-size: 16px;
}

.price-slider {
	width: 100%;
	margin-top: 10px;
}

.block__filters {
	display: flex;
	flex-flow: column;
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
	height: 100%;
	position: relative;
	padding: 10px;
	background: #fff;
}

.block__filters .block__filter-actions .button--resetall {
	display: none;
}

.block__filters:has(#selected-filters-list .selected-filter-title) .block__filter-actions .button--resetall {
	display: inline-block;
}

@media(min-width: 1024px) {
	.block__filters {
		position: relative;
	}
}

.block__filter {
	display: block;
	position: relative;
	width: 100%;
	border: none;
	border-radius: 6px;
}

.filters {
	/* border-top: var(--cart-img-border); */
}

@media(max-width: 1024px) {
	.filters {
		padding-top: 20px;
	}
}

.block__filter-title {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	border-bottom: var(--cart-img-border);
}

.block__filter-content {
	max-height: 0;
	padding: 0 5px;
	overflow: hidden;
	transition: max-height 0.2s ease-out, padding 0.2s ease-out;
	position: relative;
	top: auto;
	left: auto;
	min-width: 100%;
	width: 100%;
	height: auto;
	z-index: 1;
	background: #fff;
	border-radius: 0 0 8px 8px;
}

@media(min-width: 1024px) {
	.block__filter.filter-section .block__filter-content {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 200px;
		width: 100%;
		height: auto;
		z-index: 1;
		background: #fff;
		border-radius: 0 0 8px 8px;
	}
	
	/* .block__filter.filter-section.active {
		box-shadow: 0 0 6px -5px #000;
	}*/
	
	.block__filter.filter-section.active .block__filter-content {
		height: 0;
		overflow: hidden;
	} 
}

.block__filter-title {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.block__filter.active .block__filter-title svg {
	transform: rotate(0deg);
}

.block__filter-title svg {
	margin-right: 15px;
	transition: transform 0.3s ease-out;
	transform: rotate(180deg);
}

@media(max-width: 1024px) {
	.block__filter-title svg {
		transform: rotate(0deg);
	}

	.block__filter.active .block__filter-title svg {
		transform: rotate(180deg);
	}
}

.block__filter-title span {
	font-size: 1rem;
	text-transform: uppercase;
}

.block__filter .filter-header {
	margin: 15px 0 5px;
	padding: 0 5px;
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: flex-start;
}

.block__filter .filter-footer {
	margin: 5px 0;
	display: flex;
	flex-flow: row nowrap;
	justify-content: flex-end;
	align-items: flex-start;
}

.selected-count {
	margin-right: 5px;
}

.button__reset {
	font-size: 1rem;
	color: var(--color-bg-button);
	background: transparent;
	border: none;
}

.filter-options {
	display: flex;
	flex-flow: column;
	gap: 8px;
	padding: 0 5px;
	margin: 10px 0;
}

.filter-options label {
	display: flex;
	flex-flow: row nowrap;
	gap: 8px;
	align-content: flex-start;
	justify-content: flex-start;
	align-items: flex-start;
	cursor: pointer;
}

.filter-options.input-text label {
	display: grid;
	grid-template-columns: 150px auto 30px;
	align-items: center;
}

.filter-options input[type="checkbox"] {
	width: 15px;
	height: 15px;
	margin: 3px 0 0;
}

.filter-options input[type="text"] {
	width: 100%;
	height: auto;
	margin: 3px 0;
	padding: 10px 8px;
	border-radius: 6px;
	border: 1px solid var(--color-table-border);
	background: #fff;
}

.filter-footer {
	height: 0;
	opacity: 0;
	transition: opacity 0.1s, height 0.3s;
}

.filter-footer:has(.button__secondary.active) {
	height: auto;
	opacity: 1;
}

.block__filter-content:has(.slider-container) .filter-footer {
	height: auto;
	opacity: 1;
}

.block__filter.filter-section .block__filter-content {
	position: relative;
	top: auto;
	left: auto;
	min-width: 100%;
	width: 100%;
	height: auto;
	max-height: 100%;
	z-index: 1;
	background: #fff;
	border-radius: 0 0 8px 8px;
}

@media(max-width: 1024px) {
	.block__filter.filter-section .block__filter-content {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 200px;
		width: 100%;
		height: 0;
		z-index: 10;
		background: #fff;
		border-radius: 0 0 8px 8px;
	}

	.block__filter.filter-section.active .block__filter-content {
		height: auto;
		border: 1px solid var(--color-table-border);
		box-shadow: 0 4px 6px -4px #000;
	}
}

.block__filter-actions {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	gap: 10px;
	position: sticky;
    z-index: 20;
    top: 0;
    background: #fff;
    width: 100%;
    padding: 25px 0;
}

.block__filter-actions .button {
	padding: 10px 20px;
}


/* priceslider */
.slider-container {
	width: 260px;
	margin: 10px auto;
	max-width: 100%;
}

@media(min-width: 1024px) {
	.slider-container {
		width: 300px;
		margin: 10px auto;
	}
}

.slider {
	width: 100%;
	margin: 15px 0;
}

.values {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 30px;
}

.value-input {
	width: 80px;
	text-align: center;
	border: 1px solid #ccc;
	padding: 10px 5px;
	border-radius: 4px;
	background: #fff;
}

.slider-track {
	height: 6px;
	background: #000;
	position: relative;
}

.slider-thumb {
	width: 16px;
	height: 16px;
	background: #003049;
	border-radius: 50%;
	position: absolute;
	top: -5px;
	cursor: pointer;
	touch-action: none;
	box-shadow: 0 0 2px 1px #fff;
}

.slider-thumb.minthumb {
    z-index: 9;
}

.slider-thumb.maxthumb {
    z-index: 8;
}
/* end priceslider */

.selected-filters-display {
	display: block;
	width: 100%;
}

#selected-filters-list {
    display: flex;
    flex-flow: column;
    margin: 0;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    width: 100%;
    padding-right: 0;
}

#selected-filters-list .selected-filter-title {
	display: block;
	position: relative;
	padding-left: 30px;
}

.selected-filters-display .remove-button {
    position: absolute;
    top: 0;
    left: 5px;
    width: 18px;
    height: 18px;
    display: flex;
    border: 1px solid var(--color-bg-button);
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    color: var(--color-bg-button);
	cursor: pointer;
}

.selected-filters-display .remove-button:hover {
    background: var(--color-bg-button-light);
}

.selected-filter-values {
    margin: 5px 0 10px 30px;
    font-size: 0.8rem;
}

.selected-filter-values:has(.price) {
	display: flex;
	flex-flow: row nowrap;
}

.selected-filter-values:has(.price) > li:first-child {
	display: flex;
	flex-flow: row nowrap;
}

.selected-filter-values:has(.price) > li:first-child::after {
	display: block;
	content: '-';
	font-size: inherit;
	line-height: inherit;
	padding: 0 3px;
	text-align: center;
}