/*
	блоки фильтров, их общие размеры и расположение содержимого внутри
	TODO: возможно перенести в компоненты или в блоки
*/
.filter_block {
	--text-c: #2A3143;
	--border-c: #2A3143;
}
.bc_dark .filter_block {
	--text-c: white;
	--border-c: white;
}


.select_filter_wrapper,
.date_filter_wrapper,
.text_filter_wrapper {
	border-bottom: 2px solid #d4d6d9;
	position: relative;
}
.select_filter_wrapper:hover,
.date_filter_wrapper:hover,
.text_filter_wrapper:hover {
	border-color: var(--border-c);
}
.date_filter_wrapper .input_placeholder,
.select_filter_wrapper .input_placeholder {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding: 11px 0;
}
.date_filter_wrapper .input_placeholder .value,
.select_filter_wrapper .input_placeholder .value,
.select_filter_wrapper .select2-selection__rendered {
	font-style: normal;
	font-weight: bold;
	font-size: 16px;
	line-height: 22px;
	color: var(--text-c);
	width: 100%;
	text-transform:lowercase;
}
.date_filter_wrapper .input_placeholder .value:first-letter,
.select_filter_wrapper .input_placeholder .value:first-letter,
.select_filter_wrapper .select2-selection__rendered::first-letter {
	text-transform:uppercase;
}
.select_filter_wrapper .input_placeholder .value .count {
    color: #7f838e;
}
.date_filter_wrapper .input_placeholder .btn_expand,
.select_filter_wrapper .input_placeholder .btn_expand {
	background-size: 100%;
	background-repeat: no-repeat;
	height: 22px;
	width: 22px;
	content:'';
}

.text_filter_wrapper input {
	width: 100%;
	padding: 11px;
	font-size: 16px;
	line-height:22px;
	border: none;
	color: var(--text-c);
}
.text_filter_wrapper .input_placeholder {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-content: center;
}
.text_filter_wrapper input::placeholder {
	color: #7F838E;
}
.text_filter_wrapper button[type="submit"] {
	background-image: url(/common/core/img/icons/search.svg#dark);
	background-position: left center;
	background-repeat: no-repeat;
	background-size: 17px;
	width: 28px;
	flex-shrink: 0;
}
.text_filter_wrapper .input_placeholder .loading_icon {
	width: 0;
	background-image: url(/common/core/img/icons/loader.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px;
	flex-shrink: 0;
	opacity: 0;
}
.loading .text_filter_wrapper .input_placeholder .loading_icon {
	opacity: 1;
	width: 26px;
}

.text_filter_wrapper .input_placeholder .clear_btn {
	opacity: 0;
	width: 0;
	display: block;
	background: url(/common/core/img/icons/cancel.svg) no-repeat center;
	background-size: contain;
	flex-shrink: 0;
}
.text_filter_wrapper.has_value .input_placeholder .clear_btn {
	opacity: 1;
	width: 1.5em;
}

.date_filter_wrapper .input_placeholder .btn_expand {
	background-image: url(/common/core/img/icons/calendar.svg#dark);
}
.date_filter_wrapper .input_placeholder {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding: 11px 0;
}
.date_filter_wrapper .input_placeholder .value {
	font-style: normal;
	font-weight: bold;
	font-size: 16px;
	line-height: 22px;
	color: #2A3143;
}
.date_filter_wrapper .calendar_wrapper {
	max-height: 0;
	z-index: 9999;
	position: absolute;
	margin-top: 2px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.date_filter_wrapper.expanded .calendar_wrapper {
	max-height: 500px;
}

.date_filter_wrapper input {
   position: absolute;
    z-index: -1;
    opacity: 0;
    margin: 0;
    padding: 0;
    height: 0;
    width: 0;
}


.calendar_wrapper {
	display: block;
	width: 350px;
	overflow: hidden;
	background-color: white;
}
.calendar_wrapper .calendar_header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
.calendar_wrapper .calendar_header p {
	padding: 17px 20px 17px 21px;
	font-weight: bold;
	font-size: 16px;
	line-height: 24px;
	color: #2A3143;
}
.calendar_wrapper .calendar_header .calendar_navigation {
	display: flex;
	flex-direction: row;		
	gap: 10px;
	padding: 17px 20px;
}
.calendar_wrapper .calendar_header .calendar_navigation > * {
	height: 24px;
	width: 24px;
	display: block;
	background-position: center;
	cursor: pointer;
}
.calendar_wrapper .calendar_header .calendar_navigation .btn_left {
	background-image: url(/common/core/img/icons/arrow_nav.svg#left_dark);
	background-size: 29px; 
}
.calendar_wrapper .calendar_header .calendar_navigation .btn_left:hover {
}
.calendar_wrapper .calendar_header .calendar_navigation .btn_left[disabled] {
	background-image: url(/common/core/img/icons/arrow_nav.svg#left_gray);
}
.calendar_wrapper .calendar_header .calendar_navigation .btn_right {
	background-image: url(/common/core/img/icons/arrow_nav.svg#right_dark);
	background-size: 29px;
}
.calendar_wrapper .calendar_header .calendar_navigation .btn_right:hover {
}
.calendar_wrapper .calendar_header .calendar_navigation .btn_right[disabled] {
	background-image: url(/common/core/img/icons/arrow_nav.svg#right_gray);
}
.calendar_wrapper .calendar_content {
	max-height: 300px;
}
.calendar_wrapper .calendar_content .calendar_weekdays {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	border-top: 1px solid #D4D6D9;
	border-bottom: 1px solid #D4D6D9;
	padding: 11px 20px 13px 21px;
	font-size: 12px;
	line-height: 17px;
	text-align: center;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #7F838E;
}
.calendar_wrapper .calendar_content .calendar_days {
	padding: 12px 14px 0 15px;
	display: flex;
	flex-direction: row;
	gap: 6px 14px;
	flex-wrap: wrap;
	justify-content: space-between;
}
.calendar_wrapper .calendar_content .calendar_days > li {
	font-size: 14px;
	line-height: 28px;
	width: 28px;
	height: 28px;
	text-align: center;
	color: #2A3143;
	cursor: pointer;
}
.calendar_wrapper .calendar_content .calendar_days .prev_month {

}
.calendar_wrapper .calendar_content .calendar_days .next_month {

}
.calendar_wrapper .calendar_content .calendar_days .range_day {
	background-color: #BFDFD8;
}

.calendar_wrapper .calendar_content .calendar_days li.range_day:not(.start_point):first-child:before,
.calendar_wrapper .calendar_content .calendar_days li.range_day + li.range_day:not(:nth-child(7n+1)):not(:first-child):before {
	content: ' ';
	position: absolute;
	width: 21px;
	height: 28px;
	display: block;
	background: #Bfdfdb;
	margin-left: -21px;
}
.calendar_wrapper .calendar_content .calendar_days li.range_day:not(.start_point):first-child:before{
    background: linear-gradient(270deg, #BFDFD8 10%, #fff 100%);
    width: 14px;
    margin-left: -14px;
}
.calendar_wrapper .calendar_content .calendar_days li.range_day:last-of-type:after {
	height: 28px;
    width: 14px;
    position: absolute;
    content: ' ';
    display: block;
    background: linear-gradient(90deg, #BFDFD8 10%, #fff 100%);
    margin-top: -28px;
    margin-left: 28px;
}

.calendar_wrapper .calendar_content .calendar_days  .selected_day {
	background-color: #03A678;
	color: white;
}

.calendar_wrapper .calendar_content .btn_container {
    padding: 11px 19px;
    display: flex;
	gap: 0;
    align-items: stretch;
    justify-content: space-between;
}
.calendar_wrapper .calendar_content .btn_container a {
	border: 1.5px solid #D4D6D9;
	border-radius: 34px;
	padding: 0 8px 4px 8px;
	font-size: 14px;
	line-height: 22px;
	text-transform: lowercase;
	text-align:center;
}
.calendar_wrapper .calendar_content .btn_container a:hover {
	border-color: #2A3143;
	color: #2A3143;
}	
.calendar_wrapper .calendar_footer {
}
.calendar_wrapper .calendar_footer .btn_container {
	padding: 10px 20px;
	margin-top: 3px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-items: stretch;
}
.calendar_wrapper .btn_container .l_apply,
.calendar_wrapper .btn_container .l_cancel {
	text-align: center;
}

.calendar_header .caption {
	position: relative;
	cursor: pointer;
}

.calendar_header .caption:after {
	position: absolute;
	top: 50%;
	right: 5px;
	display: block;
	width: 5px;
	height: 5px;
	margin: -4px 0 0;
	border: 0 solid #2A3143;
	border-width: 0 0 1px 1px;
	-moz-transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	transform: rotate(-45deg);
	transition: all .35s ease;
	content: "";
}

.calendar_wrapper.yearsopen .calendar_header .caption:after {
	margin: -1px 0 0;
	-moz-transform: rotate(-225deg);
	-webkit-transform: rotate(-225deg);
	-o-transform: rotate(-225deg);
	-ms-transform: rotate(-225deg);
	transform: rotate(-225deg);
}

.calendar_wrapper .year_content {
	width: 100%;
	background: #fff;
	overflow: hidden;
	border-top: 1.5px solid #D4D6D9;
	border-bottom: 1.5px solid #D4D6D9;
	max-height: 0;
	opacity: 0;
}
.calendar_wrapper.yearsopen .calendar_header .calendar_navigation {
	opacity: 0;
	pointer-events: none;
}

.calendar_wrapper.yearsopen .year_content {
	max-height: 267px;
	opacity: 1;
}
.calendar_wrapper.yearsopen .month_content {
	max-height: 0;
	opacity: 0;
}


.calendar_wrapper .year_content .main {
	position: relative;
	margin: 15px 0;
	max-height: 234px;
	overflow: hidden;
}

.calendar_wrapper .year_content .main .scrollbar.ps {
	position: initial;
	max-height: 234px;
	overflow: hidden;
}

		.calendar_wrapper .year_content .main ul {
			display: flex;
			flex-flow: row wrap;
			justify-content: space-between;
			padding: 0 52px;
			row-gap: 10px;
		}

			.calendar_wrapper .year_content .main ul li {
				max-width: 62px;
				min-width: 62px;
				height: 30px;
			}

				.calendar_wrapper .year_content .main ul li a {
					display: flex;
					justify-content: center;
					align-items: center;
					width: 100%;
					height: 100%;
					padding: 0;
					margin: 0;
					border: 0;
					border-radius: 15px;
					background: #fff;
					font-size: 14px;
					line-height: 14px;
					color: #2A3143;
					cursor: pointer;
				}

					.calendar_wrapper .year_content .main ul li a:hover {
						background: #F8F8F8;
					}

					.calendar_wrapper .year_content .main ul li a.active {
						background: #03A678;
						color: #fff;
					}

		.calendar_wrapper .year_content .scrollbar .ps__rail-x {
			display: none;
		}

		.calendar_wrapper .year_content .scrollbar .ps__rail-y {
			position: absolute;
			top: 0 !important;
			right: 6px !important;
			width: 2px;
			opacity: 1 !important;
		}

			.calendar_wrapper .year_content .scrollbar .ps__rail-y .ps__thumb-y {
				position: absolute;
				width: 100%;
				border-radius: 2px;
				background: #2A3143;
				transition: none !important;
				opacity: .3;
				cursor: pointer;
			}








.select_filter_wrapper .input_placeholder .btn_expand {
	background-image: url(/common/core/img/icons/plus-expand.svg);
	background-position: center;
	background-size: 100%;
}
.select_filter_wrapper.expanded .input_placeholder .btn_expand {
	background-image: url(/common/core/img/icons/plus-expand.svg#expanded);
}
.bc_dark .select_filter_wrapper .input_placeholder .btn_expand {
	background-image: url(/common/core/img/icons/plus-expand.svg#white);
}
.bc_dark .select_filter_wrapper.expanded .input_placeholder .btn_expand {
    background-image: url(/common/core/img/icons/plus-expand.svg#white_expanded);
}
.select_filter_wrapper .value_list_container {
	max-height: 0;
	width:100%;
	position: absolute;
	left: 0;
	background-color: #2A3143;
	color: white;
	overflow: hidden;
	z-index: 9999;
}
.select_filter_wrapper.expanded .input_placeholder + .value_list_container  {
	max-height: 250px;
}
.select_filter_wrapper .value_list_container .value_list {	
	padding: 18px 20px;
}
.select_filter_wrapper .value_list_container .value_list .value_list {
    display: none;
    padding-right: 0; 
    padding-bottom: 0; 
}

.select_filter_wrapper .value_list_container .value_list .value {
	font-style: normal;
	font-weight: normal;
	font-size: 16px;
	line-height: 24px;
	cursor: pointer;
}
.select_filter_wrapper .value_list_container .value_list .value + .value {
	margin-top: 12px;
}
.select_filter_wrapper .expand_children {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url(/common/core/img/icons/plus-expand.svg#white) no-repeat center;
    background-size: 1em;
    float: left;
}
.select_filter_wrapper .expand_children.expanded {
    background: url(/common/core/img/icons/plus-expand.svg#white_expanded) no-repeat center;
}
.select_filter_wrapper input[type="checkbox"] + label {
	display: flex;
    color: #7F838E;
    justify-content: space-between;
	cursor: pointer;
}
.select_filter_wrapper input[type="checkbox"] + label:hover{
	color: #FFFFFF;
}
.select_filter_wrapper input[type="checkbox"] + label:before {
    content: none;
}
.select_filter_wrapper input[type="checkbox"] + label:after {
    content: '';
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	display: inline-block;
}
.select_filter_wrapper input[type="checkbox"]:checked + label {
    color: white;
}
.select_filter_wrapper input[type="checkbox"]:checked + label:after {
	background-image: url(/common/core/img/icons/ok.svg);
	background-position: center right;
	background-repeat: no-repeat;
	transition: none;
}

.radio_filter_wrapper {
}

.radio_filter_wrapper input.replaced + label {
    cursor: pointer;
}
.radio_filter_wrapper input.replaced + label:before {
	content: none;
}

@media all and (max-width: 1600px) {
	.text_filter_wrapper input,
	.date_filter_wrapper .input_placeholder .value,
	.select_filter_wrapper .input_placeholder .value,
	.select_filter_wrapper .value_list_container .value_list .value {
		font-size: 14px;
		line-height: 22px;
	}
}
@media all and (max-width: 1400px) {
	.select_filter_wrapper.expanded .input_placeholder + .value_list_container  {
		max-height: 234px;
	}

	.text_filter_wrapper input,
	.date_filter_wrapper .input_placeholder .value,
	.select_filter_wrapper .input_placeholder .value,
	.select_filter_wrapper .value_list_container .value_list .value {
		font-size: 13px;
		line-height: 20px;
	}
}
@media all and (max-width: 1240px) {
	.select_filter_wrapper.expanded .input_placeholder + .value_list_container  {
		max-height: 250px;
	}
	
	.text_filter_wrapper input,
	.date_filter_wrapper .input_placeholder .value,
	.select_filter_wrapper .input_placeholder .value,
	.select_filter_wrapper .value_list_container .value_list .value {
		font-size: 14px;
		line-height: 22px;
	}
}
@media all and (max-width: 1000px){
	.select_filter_wrapper.expanded.input_placeholder + .value_list_container  {
		max-height: 230px;
	}
}
@media all and (max-width: 750px){
	.date_filter_wrapper .calendar_content .btn_container {
		gap: 10px;
		text-align: center;
	}
}

.filter_form_buttons {
    display: none;
    position: absolute;
    bottom: 5px;
    width: var(--page-content);
}

.filter_form_buttons button[type="submit"] {
    padding: 15px 0;
    display: block;
    background: #2a3143;
    color: white;
    width: 100%;
    text-transform: uppercase;
}

.filter_form_buttons button[type="reset"] {
    padding: 15px 0;
    display: block;
    background: white;
    color: #7f838e;
    width: 100%;
    text-transform: uppercase;
}



/* sort */
.filter_option_list {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin-top: var(--margin-top);
}

.filter_option {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: end;
	gap: 9px;
}

.show_more_filters {
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #2A3143;
    display: flex; 
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 9px;
}

.show_more_filters:before {
    content: "";
	width: 24px;
	height: 24px;
	display: block;
	background: url("/common/core/img/icons/filter_button.svg") no-repeat center;
	background-size: 17px 16px;
}

.sort_filter_option {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: end;
	gap: 10px;
	cursor: pointer;
}

.sort_filter_option .sort_title {
	font-style: normal;
	font-weight: 500;
	font-size: 12px;
	line-height: 17px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #7F838E;
}

.sort_option_list li {
	font-style: normal;
	font-weight: 500;
	font-size: 12px;
	line-height: 17px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #2A3143;
}

.sort_filter_option .btn_expand {
	width: 24px;
	height: 24px;
	display: block;
	background: url("/common/core/img/icons/arrow_expand.svg#down_dark") no-repeat center;
	background-size: 14px;
	margin-left: -6px;
}

.sort_filter_option .btn_expand.active {
	background-image: url("/common/core/img/icons/arrow_expand.svg#up_dark");
}

.list_found_count {
    font-size: 14px;
    line-height: 22px;
    font-weight: bold;
	color: #7F838E;
}
.list_found_count .count_unit {
    font-weight: normal;
}

@media all and (max-width: 1600px) {
	.list_found_count {
		font-size: 14px;
		line-height: 22px;
	}
}

@media all and (max-width: 1400px) {
    .list_found_count {
        font-size: 13px;
        line-height: 20px;
    }
}

@media all and (max-width: 1240px) {
    .list_found_count {
        font-size: 14px;
        line-height: 22px;
    }
}

.filter_block_mobile_button{
	display: none;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	line-height: 0;
	text-transform: uppercase;
}
.filter_block_mobile_button.global_search{
	margin: 28px 0;
}
.filter_block_mobile_button:hover{
	color: #aaadb4;
}
.filter_block_mobile_button:before{
	display: block;
	max-width: 24px;
	min-width: 24px;
	height: 24px;
	background-image: url("data:image/svg+xml,%3Csvg width='25' height='24' viewBox='0 0 25 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.96429 14.5948V20.0096H7.75V18.2046H3.5V17.603V17.0013V16.3997H7.75V14.5948H8.96429ZM20.5 16.3997V17.0013V17.603V18.2046H11.3929V16.3997H20.5ZM13.2143 14.5948H12V12.7898H3.5V12.1882V11.5865V10.9849H12V9.17995H13.2143V14.5948ZM20.5 10.9849V11.5865V12.1882V12.7898H15.6429V10.9849H20.5ZM8.35714 3.76514V9.17995H7.14286V7.37501H3.5V6.77337V6.17172V5.57007H7.14286V3.76514H8.35714ZM20.5 5.57007V6.17172V6.77337V7.37501H10.7857V5.57007H20.5Z' fill='%232A3143'/%3E%3C/svg%3E%0A");
	background-size: 100%;
	content: "";
}
@media (max-width: 750px) {
	.filter_block_mobile_button{
		display: flex;
	}
	.data_mobile_filter{
		transition: none;
	}
	.data_mobile_filter * {
		-webkit-tap-highlight-color: transparent;
	}
	.data_mobile_filter.mobile_filters_open{
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100Vh;
		height: var(--app-height);
		background: #fff;
		overflow: auto;
		z-index: 1000;
	}
	.data_mobile_filter.mobile_filters_open .filter_block_list{
		flex-wrap: nowrap;
		flex-direction: column;
		gap: 32px;
		width: 100%;
		max-width: 335px;
		min-height: calc(100% - 32px);
		margin: 32px auto 0;
	}
	.data_mobile_filter.mobile_filters_open .filter_block_mobile_button{
		font-size: 20px;
		line-height: 28px;
		font-weight: 700;
		text-align: left;
		pointer-events: none;
	}
	.data_mobile_filter.mobile_filters_open .filter_block_mobile_button:hover{
		color: #2A3143;
	}
	.data_mobile_filter.mobile_filters_open .filter_block_mobile_button:before{
		display: none;
	}
	.data_mobile_filter.mobile_filters_open .filter_block{
		display: block;
	}
	.data_mobile_filter.mobile_filters_open .search_filter_wrapper{
		display: none;
	}
	.data_mobile_filter.mobile_filters_open .date_filter_wrapper.expanded .calendar_wrapper{
		width: 100%;
		max-height: none;
	} 
	.data_mobile_filter.mobile_filters_open .calendar_content{
		max-height: none;
	}
	.data_mobile_filter.mobile_filters_open .filter_form_buttons{
		position: relative;
		bottom: auto;
		display: flex;
		flex-direction: column;
		gap: 16px;
		margin: auto 0 20px;
	}
	
}