/* Filter. */
/*add scroll filter */
.filter_wrapper {
	overflow: auto;
	position: sticky;
	height: calc(100vh - 30px);
	top: 20px;
}

.filter_wrapper_scroll {
	overflow-y: scroll;
	height: 100%;
}

.filter_block {
	padding-right: 20px;
}

.filter_block_item:not(:first-child) {
	margin-top: 1.5rem;
}

.filter .submenu_title {
	margin-bottom: 1rem;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.filter .submenu_chevron {
	display: inline-block;
	border: solid black;
	border-width: 0 2px 2px 0;
	padding: 3px;
	margin: 3px 10px;
	transform: rotate(45deg);
	position: relative;
	top: 1px;
}

.filter_block_item.open .submenu_chevron {
	transform: rotate(225deg);
	margin: 0 10px;
}

.filter .submenu_title span {
	color: #808080;
}

.filter .submenu_children {
	display: grid;
	grid-gap: 8px;
}

@media only screen and (max-width: 900px){
	.filter .submenu_children {
		display: grid;
		grid-gap: 12px;
	}
}

.filter .submenu_children a {
	position: relative;
	padding-left: 28px;
}

.filter .submenu_children a:before {
	--size: 16px;
	content: '';
	position: absolute;
	top: calc(.6em - var(--size) / 2);
	left: 0;

	width: var(--size);
	height: var(--size);
	margin-top: -2px;
	border: 2px solid #EBEBEB;
	border-radius: 6px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 9px;

	transition: border-color .43s, background-color .43s;
}

.filter_block [data-selected='1'] a:before {
	background-color: #F7FCFE;
	background-image: url("data:image/svg+xml,%3Csvg width='11' height='10' viewBox='0 0 11 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L4.85714 8L10 1' stroke='%230093CD' stroke-width='2'/%3E%3C/svg%3E%0A");
	border-color: #94D2EA;
}

.filter_block .count {
	margin-left: 4px;
	color: var(--gray);
	font-size: 10px;
}

.filter_block__price {
	display: flex;
	align-items: flex-end;
}

.filter_block__price_input {
	width: 5.25rem;
	margin-right: 0.75rem;
}

.filter_block__price_input input {
	border: 1px solid var(--gray-200);
	padding: 0.45rem 0.65rem;
	border-radius: 1rem;
	width: 100%;
}

.filter_block__price_input input:focus {
	border-color: var(--primary);
}

.filter_block_item.price .ui-slider {
	position: relative;
	width: 90%;
	cursor: pointer;
}

.ui-slider:hover::before {
	opacity: 0.75;
}

.filter_block_item.price .ui-slider::before {
	content: '';
	position: absolute;
	width: 100%;
	height: var(--line__height);
	background-color: var(--gray);
	left: 0;
	top: 50%;
	transform: translateY(-50%);
}

.ui-slider {
	--line__height: 2px;
	position: relative;
	width: 94%;
	margin-top: 2rem;
	margin-left: auto;
	margin-right: auto;
}

.ui-slider .ui-slider-handle {
	--dots__size: 24px;
	position: absolute;
	top: 50%;
	width: var(--dots__size);
	height: var(--dots__size);
	background-color: var(--gray-100);
	border: 2px solid var(--primary);
	border-radius: 50%;
	outline: 0 none !important;
	cursor: pointer;
	z-index: 2;
	transform: translate3d(-50%, -50%, 0px);
}

.ui-slider .ui-slider-range {
	overflow: hidden;
	display: block;
	position: absolute;
	font-size: 0;
	border: 0;
	z-index: 1;
}

.ui-slider-horizontal {
	height: 8px;
}

.ui-widget-header { 
	height: var(--line__height);
	background-color: var(--primary);
	top: 50%;
	transform: translateY(-50%);
}

.filter_block_accepted {
	margin-right: 20px;
	margin-bottom: 20px;
	padding: 16px 24px;
	border: 2px solid var(--primary);
	border-radius: 16px;
}

.filter_block_accepted .top_line {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.accepted_title {
	margin-top: 4px;
	font-size: 16px;
	font-weight: 700;
}

.accepted_container {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	grid-gap: 4px 8px;
}
.remove_all a {
	margin: 0px 2px 0px 0px;
	border: 1px solid var(--gray-200);
	padding: 0.45rem 0.65rem;
	border-radius: 1rem;
 	font-size: 12px;
}

.accepted_container a {
	padding: 0.1rem 0.0rem;
	padding-right: 1.75rem;

	color: #cd968f;
	border: 1px solid;
	border-radius: 2rem;
	cursor: pointer;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	position: relative;
}

.accepted_container .s-icon {
	position: absolute;
	width: 20px;
	height: 15px;
	top: 50%;
	transform: translateY(-50%);
	right: .35rem;
	border: 1px solid;
	border-radius: 45%;
	padding: .1rem;
}

.accepted_container a:hover .s-icon {
	color: var(--gray);
}

.filter_top {
	display: none;
}

.filter_btn {
	display: none;
	z-index: 9;
	position: fixed;
	left: 15px;
	bottom: 15px;
	margin-top: 40px;
	box-shadow: var(--box-shadow-xl);
	border: 2px solid var(--primary);
	transition: background-color 0.3s, color 0.3s;
}

.filter_btn:hover {
	background-color: #fff;
	color: var(--primary);
	opacity: 1;
}

/* Filter. */
@media only screen and (max-width: 1800px) and (min-width: 1031px) {
	.filter_block {
		font-size: 12px;
	}
}
@media only screen and (min-width: 1031px) {
	.filter_block_accepted {
		margin-right: 4px;
		max-height: 152px;
		overflow: auto;
		margin-bottom: 0px;
		padding: 0px 0px;
		border: none;
		border-radius: 0px;
		border-bottom: 1px solid var(--gray-200);
	}

	.filter_block_accepted::-webkit-scrollbar {
		width: 12px;
	}

	.filter_block_accepted::-webkit-scrollbar-track {
		background: #f8f9fa;
	}

	.filter_block_accepted::-webkit-scrollbar-thumb {
		background-color: #c0c0c0;
		border-radius: 10px;     /* заокруглення країв */
		border: 2px solid #f2f2f2; /* візуально відокремлює thumb від треку */
	}

	/* Стилізація стрілок скролу */
	.filter_block_accepted::-webkit-scrollbar-button {
		background-color: #c0c0c0;
		border-radius: 6px;
		border: 1px solid #f2f2f2;
	}

	/* Верхня стрілка */
	.filter_block_accepted::-webkit-scrollbar-button:single-button:decrement {
		background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path d="M5 0L0 5h10z" fill="%23c0c0c0"/></svg>') no-repeat center;
		background-size: 8px 8px;
	}

	/* Нижня стрілка */
	.filter_block_accepted::-webkit-scrollbar-button:single-button:increment {
		background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path d="M5 10L0 5h10z" fill="%23c0c0c0"/></svg>') no-repeat center;
		background-size: 8px 8px;
	}

	/* При наведенні на кнопки */
	.filter_block_accepted::-webkit-scrollbar-button:hover {
		background-color: #a0a0a0;
	}

	.accepted_container a{

		border: none;
		color: var(--primary-200);
	}

}
@media only screen and (max-width: 1030px) {
	.filter_wrapper {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		padding: 26px 30px 0;
		background-color: var(--bg);
		z-index: 999999;
		min-height: 100%;
		box-shadow: var(--box-shadow-sm);
		overflow-y: hidden;
		padding-bottom: 75px;
	}

	.filter_wrapper_scroll {
		height: 90%;
		overflow: auto;
	}

	.filter_block_accepted {
		margin-right: 0;
	}

	.filter_block {
		padding-right: 0;
	}

	.filter_top {
		display: flex;

		padding-bottom: 24px;
		font-size: 24px;
		font-weight: 700;
	}

	.filter_top img {
		--size: 15px;
		width: var(--size);
		height: var(--size);
		object-fit: contain;
		object-position: center;
	}

	.filter_block_item.price .submenu_title {
		font-size: 19px;
	}

	.filter_btn {
		display: flex;
		align-items: center;
		justify-content: center;
	}
}
