/* Стили для затемнения фона */
.custom-modal {
	display: none; /* По умолчанию скрыто */
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}

/* Стили для содержания модального окна */
.custom-modal-content {
	background-color: #fff;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	max-width: 500px;
	border-radius: 8px;
	text-align: center;
}

/* Кнопка закрытия */
.custom-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

.custom-close:hover,
.custom-close:focus {
	color: #000;
	text-decoration: none;
}

.close_catalog {
	width: 27px;
	height: 18px;
}

.close_catalog img {
	width: 14px;
	vertical-align: top;
}

.view_catalog {
	display: none !important;
	width: 27px;
	height: 18px;
}

.view_catalog img {
	width: 14px;
	vertical-align: top;
}

.filter-panel__view {
	width: 24%;
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 9;
}

.filter-panel__view a {
	display: inline-block;
	vertical-align: top;
	padding: 4px 7px;
}

.catalog {
	position: relative;
	height: 100%;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
}

body {
	overflow: hidden;
}

.catalog__wrapper {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-moz-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: reverse;
	-moz-box-orient: horizontal;
	-moz-box-direction: reverse;
	-ms-flex-direction: row-reverse;
	flex-direction: row-reverse;
	-webkit-box-align: start;
	-moz-box-align: start;
	-ms-flex-align: start;
	align-items: flex-start;
	width: 100%;
}

.catalog__section {
	width: 100%;
	overflow-x: hidden;
	overflow-y: visible;
	position: relative;
	height: 100%;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-moz-box-orient: vertical;
	-moz-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-pack: justify;
	-moz-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
}

.catalog__section > [id^='bx_incl_area'] {
	height: 100%;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-moz-box-orient: vertical;
	-moz-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}

.catalog__section-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	width: 100%;
}

.catalog__search {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
}

.catalog__search form {
	width: 100%;
}

.catalog__search i {
	cursor: pointer;
}

.catalog__search i:hover {
	color: #2a3140 !important;
}

.catalog__search div:nth-child(1) {
	width: 100%;
}

.catalog__filter {
	display: flex;
	overflow: clip;
	height: 100%;
	margin-left: 16px;
	min-width: 280px;
}

.catalog__filter form {
	margin-bottom: -20px;
}

#catalog__filter .index_blank-filter .card-body {
	max-height: calc(100vh - 410px);
	overflow: auto;
}

.catalog__filter-toggler {
	width: 36px;
	height: 36px;
	background-color: #3e495f;
	display: none;
	-webkit-box-pack: center;
	-moz-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-moz-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	border-radius: 4px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	/* margin-left: 16px; */
	cursor: pointer;
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

.catalog__filter-toggler.catalog__filter-toggler-position-left {
	margin-left: 0;
	margin-right: 16px;
}

.catalog__filter-toggler-icon {
	color: #fff;
	font-size: 20px;
}

.catalog__filter-toggler--close {
	width: 100%;
	height: 32px;
	border: 0;
	display: none;
	-webkit-box-align: center;
	-moz-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-moz-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	position: sticky;
	top: 0;
	z-index: 10;
}

.catalog__filter.smartfilter_wrapper.catalog__filter-position-left {
	order: 1;
	margin-left: 0;
	margin-right: 1.25rem;
}

body:not(.sidebar-xs) .catalog__filter-position-left.catalog__filter--open {
	left: 0;
	display: block;
	right: auto;
}

.catalog__footer {
	position: sticky;
	left: 0;
	bottom: 0;
	border-top: 1px solid #e3e3e3;
	padding: 8px 20px;
	text-align: end;
	background-color: #f3f3f3;
	z-index: 99;
}

.catalog__footer-wrapper {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-moz-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: justify;
	-moz-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: center;
}

.catalog__basket {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-moz-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

.catalog__basket-wrapper {
	margin-right: 20px;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-moz-box-orient: vertical;
	-moz-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}

.catalog__basket-quantity {
	text-align: left;
}

.catalog__basket-quantity-title:after {
	content: ': ';
}

.catalog__basket-quantity-value {
	font-weight: bold;
}

.catalog__basket-price {
	text-align: left;
	display: inline-block !important;
}

.catalog__basket-price-title:after {
	content: ': ';
}

.catalog__basket-price-value {
	font-weight: bold;
}

.catalog__basket-link {
	-webkit-box-flex: 0;
	-moz-box-flex: 0;
	-ms-flex-positive: 0;
	flex-grow: 0;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-moz-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-moz-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	min-width: 170px;
	height: 36px;
	background: #3e495f;
	color: #fff;
	border-radius: 0.1875rem;
}

.catalog__basket-link:hover,
.catalog__basket-link:checked {
	background-color: #2a3140;
	color: #fff;
}

.catalog__actions-container {
	display: none;
	position: absolute;
	bottom: 100%;
	left: 0px;
	width: 100%;
	height: auto;
	max-height: 50vh;
	overflow-x: hidden;
	overflow-y: scroll;
	background-color: #fff;
	z-index: 1049;
}

.catalog__actions-container--open {
	display: block;
	overflow: auto;
	-webkit-box-shadow: 0px -15px 10px -10px #ccc;
	box-shadow: 0px -15px 10px -10px #ccc;
}

.catalog__actions-toggler {
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-moz-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-moz-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-flex: 0;
	-moz-box-flex: 0;
	-ms-flex-positive: 0;
	flex-grow: 0;
	border: 1px solid #dddddd;
	border-radius: 4px;
	outline: unset;
	cursor: pointer;
	background: #fafafa;
	color: #5c5f68;
	font-style: normal;
	font-weight: normal;
	font-size: 13px;
	line-height: 20px;
	padding: 8px 16px;
}

.catalog__actions-toggler span {
	margin-left: 8px;
}

.catalog__actions-toggler:hover {
	background-color: #f5f5f5;
	outline: unset;
}

.catalog__actions-toggler:focus {
	outline: unset;
}

.catalog__actions-list {
	list-style: none;
	padding: 16px;
	margin: 0;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
}

.catalog__actions-item {
	margin: 8px;
	-ms-flex-preferred-size: calc(25% - 16px);
	flex-basis: calc(25% - 16px);
	max-width: 190px;
	border: 1px solid #dddddd;
	border-radius: 4px;
	background: #fafafa;
	text-align: left;
	cursor: pointer;
}

.catalog__actions-item:hover {
	color: #f5f5f5;
	outline: unset;
}

.catalog__actions-item button {
	width: 100%;
}

.catalog .pagination-flat .page-item.active .page-link {
	background-color: #3e495f;
	border-color: #3e495f;
}

@media screen and (max-width: 1200px) {
	body:not(.sidebar-xs) .catalog__filter {
		position: absolute;
		right: -100%;
		height: 100%;
		display: none;
		-webkit-transition: all ease-in-out 0.6s;
		transition: all ease-in-out 0.6s;
		background-color: #f7f7f7 !important;
		z-index: 700 !important;
		-webkit-box-shadow: -8px 0px 8px 0px #dedede !important;
		box-shadow: -8px 0px 8px 0px #dedede !important;
		-webkit-box-flex: 0 !important;
		-moz-box-flex: 0 !important;
		-ms-flex-positive: 0 !important;
		flex-grow: 0 !important;
		overflow-y: scroll;
		overflow-x: hidden;
	}

	body:not(.sidebar-xs) .catalog__filter-toggler {
		display: -webkit-box;
		display: -moz-box;
		display: -ms-flexbox;
		display: flex;
	}

	body:not(.sidebar-xs) .catalog__filter-toggler--close {
		display: -webkit-box;
		display: -moz-box;
		display: -ms-flexbox;
		display: flex;
	}

	body:not(.sidebar-xs) .catalog__filter--open {
		right: 0 !important;
		display: block;
	}
}

@media screen and (max-width: 1024px) {
	.catalog__filter {
		position: absolute;
		height: 100%;
		right: -100%;
		display: none;
		-webkit-transition: all ease-in-out 0.6s;
		transition: all ease-in-out 0.6s;
		background-color: #f7f7f7 !important;
		z-index: 700 !important;
		-webkit-box-shadow: -8px 0px 8px 0px #dedede !important;
		box-shadow: -8px 0px 8px 0px #dedede !important;
		-webkit-box-flex: 0 !important;
		-moz-box-flex: 0 !important;
		-ms-flex-positive: 0 !important;
		flex-grow: 0 !important;
		overflow-y: scroll;
		overflow-x: hidden;
	}

	.catalog__filter--open {
		right: 0 !important;
		display: block;
	}

	.catalog__filter-toggler {
		display: -webkit-box;
		display: -moz-box;
		display: -ms-flexbox;
		display: flex;
	}

	.catalog__filter-toggler--close {
		display: -webkit-box;
		display: -moz-box;
		display: -ms-flexbox;
		display: flex;
	}
}

/*TODO: Move it to filter component*/
.row-under-modifications-filter {
	-webkit-box-shadow: 0px -4px 8px 0px #e3e3e3;
	box-shadow: 0px -4px 8px 0px #e3e3e3;
	background-color: #fff;
	padding: 16px;
	position: sticky !important;
	bottom: 0;
}

.catalog__section .nothing_to_show {
	padding: 20px;
	font-size: 14px;
}

.product__property--avaliable .item-quantity .item-quantity__store-list {
	position: absolute;
	top: -100%;
	left: 100%;
	display: none;
	padding: 8px;
	list-style: none;
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 2px 2px 8px 2px #0000001f;
	white-space: nowrap;
	z-index: 400;
}

.blank-zakaza__scroll-wrapper
	.blank-zakaza__wrapper.ui-ear-container-no-scrollbar {
	scrollbar-width: none;
	margin-top: 20px;
}

@media (max-width: 405px) {
	.blank-zakaza__pagination .blank-zakaza__pagination--top {
		margin: 0 auto !important;
	}
}

.catalog__section-not_available
	.blank-zakaza__item
	.product
	.quantity-selector
	button,
.blank-zakaza-detail-not_available .quantity-selector button {
	opacity: 0.4;
}

.product .product__property--name,
.product .product__property--image {
	z-index: 90;
}

#title-search {
	width: 100%;
}

.card.fixed-top .blank-zakaza__scroll-wrapper {
	overflow-y: auto;
}
.sorting_block {
	display: flex;
	width: 210px;
	/*  float: right; */
	align-items: center;
	margin-top: 10px;
}

@media (max-width: 767px) {
	.button-type-catalog {
		display: none !important;
	}

	#view_catalog,
	#close_catalog {
		margin-left: -22px;
	}
}

@media (max-width: 525px) {
	.filter-panel__view {
		width: 24% !important;
		position: relative !important;
		left: 15px !important;
		margin-bottom: 15px !important;
		z-index: 9 !important;
	}

	#title-search {
		min-width: 150px !important;
	}
}

@media (max-width: 390px) {
	#title-search {
		min-width: 120px !important;
	}
}

.catalog__actions,
.order-last {
	display: none !important;
}
