@import "variables";
.b-spareFilter {
	display: flex;
	flex-direction: column;
	margin-bottom: 24px;
	@media(max-width: 767px){
		//display: none;
		position: fixed; top: 0; right: 0; left: 0;
		z-index: 999;
		max-height: 100%;

		visibility: hidden;
		overflow: hidden;
		opacity: 0;
		height: 0;
	}
	//visible
	.body-spareFilter-in & {
		@media(max-width: 767px){
			//display: flex;
			visibility: visible;
			overflow: visible;
			opacity: 1;
			height: auto;
		}
	}

	.b-spareFilter__head {
		@media(min-width: 768px){
			display: none;
		}
		@media(max-width: 767px){
			background: $color_blue;
			padding: 12px 24px 14px 16px;
			color: $white;
			.closer {
				top: 6px;
				right: 6px;
				width: 20px;
				height: 20px;
				opacity: 1;
				&:before, &:after {
					background: $white;
					width: 80%;
				}
				&:hover {
					background: $red;
				}
			}
		}
	}
	.b-spareFilter__tabs {
		.b-spareFilter-tabs__list {
			margin: 0;
			padding: 0;
			list-style: none;
			@media (max-width: 767px){
				display: none;
			}
			li {
				position: relative;
				display: inline-block;
				vertical-align: top;
				a, span {
					background: $color_gray_05;
					border: none;
					display: block;
					padding: 12px 32px;
					font-size: 16px;
					color: $color_dark;
					line-height: normal;
					@include border-radius(3px 3px 0 0);
				}
				.imark {
					//background: $color_green;
					background: url(../images/icons/newLabel.png) no-repeat 0 0 / 100% 100%;
					position: absolute; top: 0; right: 0;
					display: block;
					width: 48px;
					height: 48px;
					margin: -24px -24px 0 0;
					//font-size: 12px;
					//font-weight: bold;
					//font-style: normal;
					//color: $color_white;
					//text-align: center;
					//line-height: 48px;
					//@include border-radius(50%);
				}
				&.active {
					a, span {
						background: #d4e6f6;
						color: $color_blue;
					}
				}
			}
		}
	}
	.b-spareFilter__body {
		background: #d4e6f6;
		position: relative;
		overflow-y: auto;
		.b-spareFilter-body__offset {
			padding: 12px 16px;
		}
	}
	.b-spareFilter__footer {
		@media(min-width: 768px){
			display: none;
		}
		background: $color_water;
		position: relative;
		padding: 12px 16px;
		text-align: center;
		@include box-shadow(0 0 12px rgba(0,0,0,.35));
		.btn {
			padding: 12px 36px;
		}
	}

	.form-group {
		.form-label-image {
			margin-bottom: 4px;
			img {
				display: block;
				width: 100%;
				max-width: 165px;
			}
		}
		.form-label {
			position: relative;
			overflow: hidden;
			margin-bottom: 2px;
			font-size: 14px;
			color: #0d61ab;
			white-space: nowrap;
			text-overflow: ellipsis;
			&::first-letter {
				text-transform: uppercase;
			}
		}
		.form-field {
			&.watcher {
				&.selected {
					select.form-control {
						background: $blue !important;
						color: $white;
						option {
							background: $white;
							color: $black;
						}
					}
				}
			}
		}
		&.form-uniqA {
			label {
				background: $white;
				border: 2px solid #E6E6E6;
				display: flex;
				align-items: center;
				padding: 0;
				input {
					opacity: 0;
				}
				.form-uniq__text {
					flex-grow: 1;
					position: relative;
					overflow: hidden;
					padding: 4px 8px;
					font-size: 13px;
					font-weight: normal;
					text-align: right;
					white-space: nowrap;
					@media(max-width: 359px){
						padding: 8px 4px;
						text-align: center !important;
					}
					&:not(:first-child){
						text-align: left;
					}
				}
				.form-uniq__icon {
					padding: 4px 6px;
					img {
						display: block;
						height: 36px;
						@media(max-width: 767px){
							height: 28px;
						}
						&.a {
							display: block;
						}
						&.b {
							display: none;
						}
					}
					@media(max-width: 359px){
						display: none;
					}
				}
				.arr {
					display: none;
				}
				&:hover {
					@media(min-width: 768px){
						//background: rgba(255, 255, 255, 0.7);
						border-color: $blue;
						.form-uniq__icon {
							img {
								&.a {
									display: none;
								}
								&.b {
									display: block;
								}
							}
						}
					}
				}
			}
			&.active {
				label {
					border-color: $blue;
					.form-uniq__text {
						//font-weight: bold;
					}
					.form-uniq__icon {
						img {
							&.a {
								display: none;
							}
							&.b {
								display: block;
							}
						}
					}
				}
			}
		}
		&.form-uniqB {
			label {
				background: $white;
				display: block;
				width: 100px;
				height: 40px;
			}
		}
	}
}

.b-spareFilter-super {
	margin-bottom: 4px;
	.b-spareFilter-super__row {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		.b-spareFilter-super__col {
			@media( max-width: 767px ){
				width: 100%;
			}
			@media( min-width: 768px ){
				min-width: 40%;
			}
		}
	}
	.b-spareFilter-super__form-group-row {
		display: flex;
		flex-wrap: wrap;
		margin-left: -2px;
		margin-right: -2px;
		.form-group {
			flex-grow: 1;
			@media( max-width: 575px ){
				min-width: 50%;
			}
			@media( min-width: 576px ){
				min-width: 160px;
			}
			padding-left: 2px;
			padding-right: 2px;
			&.order-xs-5 {
				@media( max-width: 767px ){
					order: 5;
					max-width: 50%;
				}
			}
		}
	}
}
.b-spareFilter-manufacturer {
	margin-bottom: 16px;
}
.b-spareFilter-result {
	display: none;
	align-items: center;
	margin-bottom: 4px;
	form {
		position: relative;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		.item {
			background: $white;
			border: 2px solid $blue;
			position: relative;
			display: block;
			margin: 0 8px 8px 0;
			padding: 4px 28px 5px 8px;
			@include border-radius(2px);
			.closer {
				top: 50%;
				right: 8px;
				width: 12px;
				height: 12px;
				margin-top: -6px;
				opacity: 1;
				&:before, &:after {
					background: #7E93B2;
				}
				&:hover {
					&:before, &:after {
						background: $red;
					}
				}
			}
		}
		.clearResult {
			position: relative;
			display: inline-block;
			margin-bottom: 8px;
			padding-left: 16px;
			color: $red;
			.fa {
				position: absolute; top: 50%; left: 0;
				@include transform(translateY(-50%));
				&:after {
					content: '';
					background: $red;
					position: absolute; top: 50%; left: 50%;
					display: block; width: 120%; height: 2px;
					@include box-shadow(0 0 0 1px #d4e6f6);
					@include transform(translateX(-50%) translateY(-50%) rotate(-45deg));
				}
			}
			&:hover {
				cursor: pointer;
				text-decoration: underline;
			}
		}
	}

	&.in {
		display: flex;
	}
}
.b-spareFilter-list {
	.b-spareFilter-list__head {}
	.b-spareFilter-list__body {
		display: none;
	}
	.b-spareFilter-list__control {
		.control-link {
			position: relative;
			display: inline-block;
			padding-left: 16px;
			color: $blue;
			cursor: pointer;
			.fa.fa-filter {
				position: absolute; top: 50%; left: 0;
				@include transform(translateY(-50%));
			}
		}

		& + .b-spareFilter-list__body {
			margin-top: 8px;
		}
	}
	//mods
	&.in {
		.b-spareFilter-list__body {
			display: block;
		}
		.b-spareFilter-list__control {
			.control-link {
				.fa-angle-double-down {
					@include transform(rotate(180deg));
				}
			}
		}
	}
}

.b-spareFilter-backdrop {
	display: none;
	@media(max-width: 767px){
		background: rgba(0,0,0,.6);
		position: fixed; top: 0; right: 0; bottom: 0; left: 0;
		z-index: 998;
		.body-spareFilter-in & {
			display: block;
		}
	}
}

.b-spareFilter-control {
	margin-bottom: 16px;
	@media(min-width: 768px){
		display: none;
	}
	.btn {
		display: inline-flex;
		align-items: center;
		max-width: 100%;
		padding: 8px 12px;
		line-height: normal;
		@include transition(none);
		.btn-text {
			position: relative;
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;
			line-height: normal;
		}
		.btn-filtersToString {
			display: none;
			position: relative;
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;
			line-height: normal;
			span {
				@media( max-width: 575px ){
					display: none;
				}
			}
		}
	}
	&.in {
		.btn {
			.btn-text {
				display: none;
			}
			.btn-filtersToString {
				display: block;
			}
		}
	}
	&.fix {
		.btn {
			background: $blue !important;
			border-color: $blue !important;
			position: fixed; top: 0; left: 0;
			z-index: 900;
			padding: 8px 24px;
			@include border-radius(0 0 3px 0);
		}
	}
}

//body
.body-spareFilter-in {
	@media(max-width: 767px){
		overflow: hidden;
	}
}

#product-list {
	position: relative;
}

//Brand Slider
.brandSliderBox {
	position: relative;
	//margin-bottom: 16px;
	* {
		-ms-user-select: none;
		-moz-user-select: none;
		-khtml-user-select: none;
		-webkit-user-select: none;
	}
	.brandSliderBox-body {
		position: relative;
		overflow: hidden;
		width: 100%;
		&:before {
			background: rgba(255,255,255,.05);
			position: absolute; top: 0; right: 0; bottom: 0; left: 0;
			z-index: 998;
			opacity: .1;
			display: none;
		}
		&.inAction {
			&:before {
				content: '';
				display: block;
			}
		}
	}
	.brandSlider {
		overflow: visible;
		display: flex;
		width: auto;
		height: auto;
	}
	.brandSlider-prev, .brandSlider-next {
		//background: none;
		background: $blue;
		border: 0;
		position: absolute; top: 50%;
		display: block;
		width: 16px;
		height: 44px;
		margin: 0;
		padding: 0;
		outline: none !important;
		@include transform(translateY(-50%));
		i {
			display: block;
			font-size: 24px;
			line-height: 36px !important;
			//color: $blue;
			color: $white;
		}
		&:hover {
			background: $blue;
			i {
				color: $white;
			}
			&:not(.disabled){
				cursor: pointer;
			}
		}
		&.disabled {
			background: #e9e9e9;
			i {
				color: #9b9b9b;
			}
		}
	}
	.brandSlider-prev {
		right: 100%;
		&:not(.disabled){
			@include box-shadow(7px 0 10px 0 rgba(204, 204, 204, .4));
		}
	}
	.brandSlider-next {
		left: 100%;
		&:not(.disabled){
			@include box-shadow(-7px 0 10px 0 rgba(204, 204, 204, .4));
		}
	}
}
.brandSlider {
	//background: $white;
	position: relative;
	overflow: hidden;
	//overflow-x: auto;
	display: flex;
	width: 100%;
	height: 44px;
	.brandSlider-item {
		position: relative;
		order: 2;
		&:before {
			content: '';
			background: rgba(0,0,0,.1);
			position: absolute; top: 8px; bottom: 8px; left: -1px;
			z-index: 5;
			width: 1px;
		}
		label {
			background: $white;
			border: 2px solid $white;
			position: relative;
			display: block;
			width: 100px;
			height: 44px;
			&:after {
				content: '';
				background: transparent;
				position: absolute; top: 0; right: 0; bottom: 0; left: 0;
				z-index: 5;
				display: block;
			}
			input {
				visibility: hidden;
			}
			img {
				position: absolute; top: 50%; left: 50%;
				display: block;
				width: auto;
				max-width: 80px;
				max-height: 36px;
				@include transform(translateX(-50%) translateY(-50%));
			}
			span {
				position: absolute; top: 50%; left: 3%;
				overflow: hidden;
				display: block;
				width: 96%;
				font-size: 10px;
				letter-spacing: -0.3px;
				text-transform: uppercase;
				font-weight: bold;
				white-space: nowrap;
				text-align: center;
				text-overflow: ellipsis;
				@include transform(translateY(-50%));
			}
			.arr {
				display: none;
			}
			&:hover {
				//background: rgba(255, 255, 255, 0.7);
				border-color: $blue;
				cursor: pointer;
			}
		}
		&.active, &.selected {
			//order: 1;
			label {
				border-color: $blue;
			}
		}
	}
}

.b-spareFilter-pseudoBox {
	position: relative;
	padding-right: 16px;
	@media(max-width: 1199px){
		padding-right: 24px;
	}
	.b-spareFilter-pseudoInput {
		position: absolute; top: 1px; right: -4px;
		@media(max-width: 1199px){
			right: 4px;
		}
	}
}

.b-spareFilter-pseudoInput {
	display: none;
	//vertical-align: middle;
	min-width: 14px;
	font-size: 14px;
	line-height: 1;
	color: #7E93B2;
	text-align: center;
	.icon-checked {
		display: none;
	}
	.icon-unchecked {
		display: block;
	}
	&:hover {
		cursor: pointer;
		color: #0D61AB;
	}
	&.checked {
		display: inline-block !important;
		.icon-checked {
			display: block;
		}
		.icon-unchecked {
			display: none;
		}
	}
}
tr:hover .b-spareFilter-pseudoInput {
	display: inline-block;
}
.tr-highlight .b-spareFilter-pseudoInput {
	@media(max-width: 991px){
		display: inline-block;
	}
}

.img-preload-box {
	position: absolute; top: 0; left: 0;
	overflow: hidden;
	display: block; width: 1px; height: 1px;
	opacity: 0;
	img {
		display: block;
	}
}

//b-spareFilter-feature
.b-spareFilter-feature {
	position: relative;
	padding-left: 20px;
	.b-spareFilter-featureInput {
		position: absolute; top: -4px; left: -4px;
		width: 24px;
		height: 24px;
		.fa {
			width: 24px;
			height: 24px;
			font-size: 14px;
			line-height: 24px;
			text-align: center;
		}
	}
}
.b-spareFilter-featureInput {
	display: block;
	min-width: 14px;
	font-size: 14px;
	line-height: 1;
	color: #D9E0E8;
	text-align: center;
	.icon-checked {
		display: none;
	}
	.icon-unchecked {
		display: block;
	}
	tr:hover & {
		color: #bcc5d2;
	}
	&:hover {
		cursor: pointer;
		//color: #0D61AB;
		color: #7E93B2 !important;
		.icon-checked {
			color: $red;
		}
	}
	&.checked {
		display: inline-block !important;
		color: #19569D !important;
		.icon-checked {
			display: block;
		}
		.icon-unchecked {
			display: none;
		}
	}
}
tr.tr-bordered {
	&:hover {
		.b-spareFilter-featureInput {
			.icon-checked {
				&:before {
					content: "\f00d";
				}
			}
		}
	}
}
.spareFilterTooltip {
	position: absolute; top: 0; left: 0;
	z-index: 9999;
	display: none;
	width: 16px;
	height: 8px;
	font-size: 14px;
	text-align: center;
	.arrow {
		position: absolute; top: 0; left: 0;
		overflow: hidden;
		display: block;
		width: 16px;
		height: 8px;
		&:before {
			content: '';
			position: absolute; top: 0; left: -2px;
			border: 10px solid transparent;
			border-top-color: rgba(0,0,0,.1);
		}
		&:after {
			content: '';
			position: absolute; top: 0; left: 0;
			border: 8px solid transparent;
			border-top-color: $white;
		}
	}
	.tooltip-container {
		position: absolute; bottom: 100%; left: 50%;
		width: 312px;
		@include transform(translateX(-50%));
	}
	.closer {
		@include transition(none);
	}
	.body {
		background: $white;
		padding: 24px;
		@include border-radius(3px);
		@include box-shadow(0 0 8px rgba(0,0,0,.75));

		.tooltip-text {
			margin-bottom: 24px;
			& > span {
				display: block;
				margin-bottom: 4px;
				color: rgba(0,0,0,.6);
			}
		}

		.b-spareFilter--add {
			position: relative;
			background: $color_blue;
			background: -moz-linear-gradient(top, #2E75D1 0%, #002B81 100%);
			background: -webkit-linear-gradient(top, #2E75D1 0%, #002B81 100%);
			background: linear-gradient(to bottom, #2E75D1 0%, #002B81 100%);
			filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2E75D1', endColorstr='#002B81', GradientType=0 );
			border: 0 !important;
			outline: none;
			display: inline-block;
			min-width: 100px;
			padding: 7px 12px 8px;
			line-height: 20px;
			color: $white !important;
			text-decoration: none !important;
			text-align: center;
			@include border-radius(3px);
			&:hover {
				background: #2E75D1;
				background: -moz-linear-gradient(top, #388EFF 0%, #003CB5 100%);
				background: -webkit-linear-gradient(top, #388EFF 0%, #003CB5 100%);
				background: linear-gradient(to bottom, #388EFF 0%, #003CB5 100%);
				filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#388EFF', endColorstr='#003CB5', GradientType=0 );
			}
		}
		.b-spareFilter--remove {
			position: relative;
			background: #8A0707;
			background: -moz-linear-gradient(top, #D70A0A 0%, #8A0707 100%);
			background: -webkit-linear-gradient(top, #D70A0A 0%, #8A0707 100%);
			background: linear-gradient(to bottom, #D70A0A 0%, #8A0707 100%);
			filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#D70A0A', endColorstr='#8A0707', GradientType=0 );
			border: 0 !important;
			outline: none;
			display: inline-block;
			min-width: 100px;
			padding: 7px 12px 8px;
			line-height: 20px;
			color: $white !important;
			text-decoration: none !important;
			text-align: center;
			@include border-radius(3px);
			&:hover {
				background: #BD0909;
				background: -moz-linear-gradient(top, #FF0D0D 0%, #BD0909 100%);
				background: -webkit-linear-gradient(top, #FF0D0D 0%, #BD0909 100%);
				background: linear-gradient(to bottom, #FF0D0D 0%, #BD0909 100%);
				filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FF0D0D', endColorstr='#BD0909', GradientType=0 );
			}
		}
		/*.b-spareFilter--remove {
			border: 0;
			font-weight: bold;
			color: $red;
			text-decoration: none !important;
			.fa-filter {
				position: relative;
				&:after {
					content: '';
					position: absolute; top: 50%; left: 50%;
					background: $red;
					display: block;
					width: 16px;
					height: 2px;
					@include transform(translateX(-50%) translateY(-50%) rotate(-45deg));
					@include box-shadow(0 0 2px 2px rgba(255, 255, 255, .75));
				}
			}
		}*/
	}
	&.in {
		display: block;
	}
}