/* Ion.RangeSlider css version 2.0.3 Denis Ineshin | IonDen.com */
.irs-slider {position: absolute; display: block; cursor: default; z-index: 1;}
/* Ion.RangeSlider, Nice Skin */


/* =========================
   SMART FILTER — BASE
========================= */

.smart-filter {
	background: #fff;
	border-radius: 2px;
	padding: 22px;
	box-shadow: 0 8px 28px rgba(0,0,0,.08);
	margin-bottom: 10px;
	box-sizing: border-box;
}

.sf-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 18px;
}

.sf-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #222;
}

.sf-subtitle {
	font-size: 14px;
	color: #777;
	margin-top: 4px;
}

.sf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.sf-chip input {
	display: none;
}

.sf-chip span {
	display: block;
	padding: 9px 15px;
	border-radius: 999px;
	background: #f2f4f3;
	color: #333;
	cursor: pointer;
	transition: .2s;
	font-weight: 500;
}

.sf-chip input:checked + span {
	background: #35b95f;
	color: #fff;
	box-shadow: 0 4px 12px rgba(53,185,95,.3);
}

.sf-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.sf-field label,
.sf-range label {
	display: block;
	font-size: 13px;
	color: #666;
	margin-bottom: 7px;
}

.sf-field select {
	width: 100%;
	min-height: 44px;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	padding: 0 13px;
	background: #fff;
	color: #222;
	outline: none;
	box-sizing: border-box;
}

.sf-field select:focus {
	border-color: #35b95f;
	box-shadow: 0 0 0 3px rgba(53,185,95,.12);
}

.sf-ranges {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 18px;
}

.sf-range {
	background: #f7f8f7;
	border-radius: 14px;
	padding: 14px 18px 16px;
	box-sizing: border-box;
	overflow: visible;
}

.sf-range-top {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.sf-range-top span {
	color: #35b95f;
	font-weight: 600;
	white-space: nowrap;
}

.sf-actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

.sf-submit,
.sf-reset {
	border: 0;
	cursor: pointer;
	font-weight: 700;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.sf-submit {
	flex: 1;
	height: 50px;
	border-radius: 10px;
	background: #6abd3b;
	color: #fff;
	font-size: 16px;
	box-shadow: 0 6px 18px rgba(106,189,59,.3);
}

.sf-submit:hover {
	background: #57aa2f;
}

.sf-reset {
	width: 180px;
	height: 50px;
	border-radius: 10px;
	background: #e9e9e9;
	color: #333;
	font-size: 15px;
}

.sf-reset:hover {
	background: #dedede;
}


/* =========================
   ION RANGE SLIDER — OLD VERSION FIX
   Работает и на главной, и в сайдбаре
========================= */

.smart-filter .irs {
	width: 100% !important;
	max-width: 100% !important;
	height: 55px !important;
	padding: 0 !important;
	margin: 0 !important;
}

.smart-filter .irs-line {
	height: 8px !important;
	top: 33px !important;
	background: #edf0ee !important;
	border-radius: 999px !important;
	overflow: hidden !important;
}

.smart-filter .irs-line-left,
.smart-filter .irs-line-mid,
.smart-filter .irs-line-right {
	height: 8px !important;
	background: #edf0ee !important;
	border-radius: 999px !important;
}

.smart-filter .irs-bar {
	height: 8px !important;
	top: 33px !important;
	background: #6abd3b !important;
	border-radius: 999px !important;
}

.smart-filter .irs-slider {
	width: 20px !important;
	height: 20px !important;
	top: 27px !important;
	background: #6abd3b !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	cursor: pointer;
	z-index: 2;
}

.smart-filter .irs-slider:hover,
.smart-filter .irs-slider.state_hover {
	background: #57aa2f !important;
}

/* стандартные подписи скрываем, значения показываем сверху */
.smart-filter .irs-from,
.smart-filter .irs-to,
.smart-filter .irs-single,
.smart-filter .irs-min,
.smart-filter .irs-max {
	display: none !important;
}


/* =========================
   SIDEBAR / FULLSTORY FILTER
========================= */

.fright .frels-title {
	display: none;
}

.fright .smart-filter {
	padding: 20px;
	border-radius: 2px;
	box-shadow: none;
	}

.fright .sf-head {
	display: block;
	margin-bottom: 15px;
}

.fright .sf-title {
	font-size: 20px;
	line-height: 1.2;
	max-width: 100%;
}

.fright .sf-subtitle {
	display: none;
}

.fright .sf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.fright .sf-chip span {
	padding: 7px 14px;
	font-size: 13px;
}

.fright .sf-grid {
	grid-template-columns: 1fr;
	gap: 12px;
}

.fright .sf-field select {
	min-height: 38px;
	height: 38px;
	font-size: 13px;
	padding: 0 10px;
}

.fright .sf-ranges {
	grid-template-columns: 1fr;
	gap: 14px;
}

.fright .sf-range {
	padding: 14px 18px 16px;
}

.fright .sf-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fright .sf-submit,
.fright .sf-reset {
	width: 100%;
	height: 50px;
	border-radius: 8px;
	margin: 0;
	padding: 0;
}

.fright .sf-submit {
	font-size: 15px;
}

.fright .sf-reset {
	background: #e9e9e9;
	color: #333;
	box-shadow: none;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {
	.sf-grid,
	.sf-ranges {
		grid-template-columns: 1fr;
	}

	.sf-head {
		flex-direction: column;
	}

	.sf-actions {
		flex-direction: column;
	}

	.sf-submit,
	.sf-reset {
		width: 100%;
	}
}

/* Компактнее блоки со слайдерами */
.sf-range {
	padding: 12px 18px 8px;
}

.sf-range-top {
	margin-bottom: 0;
}

.smart-filter .irs {
	height: 34px !important;
	margin-top: 2px !important;
}

.smart-filter .irs-line {
	top: 14px !important;
}

.smart-filter .irs-bar {
	top: 14px !important;
}

.smart-filter .irs-slider {
	top: 8px !important;
}




