.has-compact-filter #amazzing_filter.block {
	top: 50px;
	height:calc(100% - 50px);
	bottom: 0;
	padding: 0;
	background: linear-gradient(to right, #EEE 170px, #FFF 0px);
	box-shadow: none;
	border-left: 1px solid #EEE;
}
@media (min-width: 768px) {
	.has-compact-filter #amazzing_filter {
		max-width: 418px;
	}
}
.has-compact-filter.show-filter #amazzing_filter.block {
	transform: translateX(0);
}
.has-compact-filter.show-filter .af-compact-overlay {
	opacity: 0;
	top: 50px;
}
.has-compact-filter.show-filter .af.block .block_content {
	position: absolute;
	left: 0;
	right: 0;
	top: 50px;
	bottom: 60px;
	padding: 0;
}
.has-compact-filter #amazzing_filter .compact-toggle {
	display: none;
}
/* custom header */
.af-compact-header {
	display: none;
	position: relative;
	padding: 15px;
	background: #FFF;
	border-bottom: 1px solid #eee;
	text-transform: uppercase;
	height: 50px;
}
.has-compact-filter .af-compact-header {
	display: block;
}
.has-compact-filter .af-total-count {
	opacity: 1;
	margin-right: 3px;
}
.has-compact-filter .af-total-count:before,
.has-compact-filter .af-total-count:after {
	content: '';
}
.has-compact-filter .af-cancel {
	float: right;
	margin-right: 10px;
	font-size: 12px;
}
/* subtitles */
.has-compact-filter .af_subtitle {
	font-size: 1rem;
	font-weight: normal;
	width: 170px;
	float: left;
	padding: 7px 15px;
	z-index: 1;
	position: relative;
}
.has-compact-filter .af_subtitle:before {
	display: none;
}
.has-compact-filter .show-content .af_subtitle:before,
.has-compact-filter .has-selection .af_subtitle:before {
	content: '';
	height: 4px;
	width: 4px;
	background: #5C6062;
	border-radius: 50%;
	position: absolute;
	top: 50%;
	left: 5px;
	margin: -2px 0 -10px 0;
	display: inline;
	border: none;
}
.has-compact-filter .show-content .af_subtitle {
	color: #9D0000;
}
.has-compact-filter .show-content .af_subtitle:before {
	background: #9D0000;
}
.has-compact-filter .special .af_subtitle.hidden {
	display: block!important; /* override .hidden */
	overflow: visible;
	pointer-events: all;
	height: auto;
}
/* filter contents */
.has-compact-filter .af-form {
	position: relative;
	padding: 0;
}
.has-compact-filter .af_filter {
	position: static;
	border: 0;
	padding: 0;
	margin: 0;
}
.has-compact-filter .af_filter_content {
	position: absolute;
	z-index: 1;
	width: calc(100% - 170px);
	top: 0;
	right: 0;
	display: none;
	padding: 11px 15px;
	margin: 0;
}
.has-compact-filter .show-content .af_filter_content {
	display: block;
}
.has-compact-filter .af_filter ul {
	max-height: none;
}
.has-compact-filter label {
	display: flex;
	flex: 1 100%;
	padding: 8px 0 8px 15px;
	margin: 0;
	font-size: 13px;
	border-bottom: 1px solid #EEE;
}
.has-compact-filter label .name {
	margin-right: auto;
}
.has-compact-filter .af_filter .count {
	font-size: 10px;
	color: #B1B1B1;
	margin-left: 3px;
}
.has-compact-filter .af_filter_content li {
	padding: 0;
}
/* sliders */
.has-compact-filter .has-slider .af_filter_content {
	overflow: hidden;
}
.af-slider .back-bar .selected-bar {
	background: #9D0000;
}
.af-slider .back-bar .pointer {
	border: 1px solid #22252A;
	background: #FFF;
}
.has-compact-filter .af-slider .slider-values {
	margin: 10px 0px;
}
.has-compact-filter .af-slider .slider_value {
	width: 47%;
	border: 1px solid #DDD;
	text-align: center;
	padding: 3px 1px;
}
.has-compact-filter .af-slider .input-text {
	text-align: center;
}
/* checkboxes, radioboxes */
.af-checkbox-label:after,
.af-radio-label:after {
	width: 12px;
	height: 12px;
	box-shadow: none;
	top: 8px;
	left: 0;
}
.active > .af-checkbox-label:before,
.active > .af-radio-label:before {
	color: #9D0000;
	left:2px;
	top: 8px;
}
/* custom footer */
.has-compact-filter #amazzing_filter .btn-holder {
	padding: 0;
	right: 0;
}
.has-compact-filter .selectedFilters {
	float: left;
	width: 170px;
}
.has-compact-filter .selectedFilters .clearAll {
	background: #FFF;
	padding: 21px 0;
	height: 60px;
	text-align: center;
}
.selectedFilters .clearAll .txt {
	font-size: 1em;
	font-weight: 700;
	color: #212529;
}
.has-compact-filter .selectedFilters .clearAll i {
	display: none;
}
.has-compact-filter .selectedFilters .cf {
	display: none;
}
#amazzing_filter .btn-holder .btn {
	text-transform: uppercase;
	font-weight: 600;
}
.has-compact-filter #amazzing_filter .btn-holder .btn {
	float: right;
	width: calc(100% - 170px);
	height: 60px;
	padding: 21px 0;
	margin: 0;
}
.has-compact-filter #amazzing_filter .btn-holder .btn:hover {
	background: #505050;
}
.has-compact-filter .btn-pulsate {
	animation: none;
}

/* custom styles for filter on main page */
.horizontal-layout .title_block,
.horizontal-layout .selectedFilters,
#index:not(.has-compact-filter) .af-toggle-external {
	display: none;
}
#amazzing_filter.horizontal-layout {
	padding: 1% 0 0 35%;
}
.horizontal-layout .af_filter {
	width: 33.3%;
	margin-bottom: 10px;
}
.horizontal-layout .af_subtitle,
.horizontal-layout .closed .af_subtitle {
	border: 1px solid #DDD;
	padding: 15px 20px;
	border-radius: 20px ;
}
.horizontal-layout .af_subtitle:before {
	right: 15px;
}
.horizontal-layout .af_filter .af_filter_content {
	max-height: none;
	padding: 10px 15px 15px 15px;
	border: 1px solid #DDD;
	margin-top: -42px;
	border-radius: 20px;
	box-shadow: -2px 1px 7px rgba(0,0,0,0.2);
}
.horizontal-layout .af_filter_content ul {
	max-height: 350px;
	overflow-y: auto;
}
.horizontal-layout .special .af_filter_content {
	margin: 0;
	padding: 11px 20px 10px 20px;
	background: #FFF;
	box-shadow: none;
}
.hide-zero-matches .special .no-available-items {
	display: block;
}
.horizontal-layout .special .af_filter_content ul {
	overflow: visible;
}
.horizontal-layout .special .af_filter_content .af-checkbox-label {
	padding: 3px 0 3px 12px;
}
.horizontal-layout .has-selection .af_subtitle {
	color: #9D0000;
}
.horizontal-layout .has-selection .af_subtitle:before {
	border-color: #9D0000;
}
.horizontal-layout .has-selection .af_subtitle,
.horizontal-layout .has-selection .af_filter_content {
	border-color: #DDD;
}
.horizontal-layout .btn-holder {
	float: right;
	width: 33.3%;
}
#amazzing_filter.horizontal-layout .btn-holder .btn.viewFilteredProducts {
	line-height: 22px;
	border-radius: 20px;
}
.horizontal-layout .af-checkbox-label:after,
.horizontal-layout .af-radio-label:after,
.horizontal-layout .active > .af-checkbox-label:before,
.horizontal-layout .active > .af-radio-label:before {
	top: 3px;
}
@media (min-width: 480px) {
	.horizontal-layout #amazzing_filter:after {
		content: '';
		display: block;
		clear: both;
	}
}

.has-compact-filter.show-filter {
	position: initial;
}

@media (max-width: 1024px) {
	.has-compact-filter.show-filter{
		position: fixed;
	}
}

@media (min-width: 1024px) {
	.has-compact-filter.show-filter{
		overflow: auto;
	}

	#header{
		z-index: 10000000;
	}

	.has-compact-filter #amazzing_filter {
		position: absolute;
		top: 0 !important;
		left: 0;
		transform: none;
	}

	.has-compact-filter .af.block .block_content{
		overflow-x: hidden;
	}

	.has-compact-filter #amazzing_filter
	{
		width: 420px;
		overflow: hidden;
		height: 100% !important;
	}

	.has-compact-filter:not(.show-filter) #amazzing_filter{
		width: 178px;
	}

	.has-compact-filter:not(.show-filter) #amazzing_filter .af-cancel
	,.has-compact-filter:not(.show-filter) #amazzing_filter .btn-holder
	,.has-compact-filter:not(.show-filter) #amazzing_filter .af_filter_content
	,#js-product-list-top .af-toggle-external
	{
		display: none;
	}

	.has-compact-filter .amazzing_filter_block {
		order: -1;
		min-width: 170px;
		margin-right: 30px;
		position: sticky;
		height: calc(100vh - 240px);
		top:94px;
		z-index: 1111111;
	}

	.has-compact-filter #inner-wrapper{
		display: flex;
	}

	.has-compact-filter #content-wrapper{
		width: 100%;
	}

	.af-compact-header
	,.af-compact-header .af-cancel
	{
		color: #000 !important;
		font-weight: 600;
	}
}
