

/* Start:/local/templates/truckservice/components/bitrix/catalog.smart.filter/catalog-filter/style.css?178577930410474*/
/* ============================================================
   Горизонтальный фильтр каталога (по макету auto.ru / Stitch)
   ============================================================ */

.tsf {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	padding: 24px;
	margin-bottom: 32px;
}

/* --- табы состояния --- */
.tsf-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.tsf-tab {
	padding: 9px 24px;
	border-radius: 999px;
	border: 1px solid #e5e5e5;
	background: #f3f3f3;
	color: #1d1d1b;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}

.tsf-tab:hover {
	background: #e8e8e8;
}

.tsf-tab.active {
	background: #1d1d1b;
	border-color: #1d1d1b;
	color: #fff;
}

/* --- сетка полей --- */
.tsf-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.tsf-cell {
	min-width: 0;
}

/* --- выпадающий мультиселект --- */
.tsf-dd {
	position: relative;
}

.tsf-dd-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 11px 14px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	font-family: inherit;
	color: #1d1d1b;
	cursor: pointer;
	text-align: left;
	transition: border-color .15s, box-shadow .15s;
}

.tsf-dd-btn:hover {
	border-color: #c9c9c9;
}

.tsf-dd.open .tsf-dd-btn {
	border-color: #e30613;
	box-shadow: 0 0 0 3px rgba(227, 6, 19, .08);
}

.tsf-dd-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #757575;
}

.tsf-dd.has-value .tsf-dd-text {
	color: #1d1d1b;
	font-weight: 500;
}

.tsf-dd-caret {
	flex: none;
	transition: transform .15s;
}

.tsf-dd.open .tsf-dd-caret {
	transform: rotate(180deg);
}

.tsf-dd-pop {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 100%;
	max-width: 320px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
	padding: 8px;
	z-index: 60;
	display: none;
	max-height: 300px;
	overflow: auto;
}

.tsf-dd.open .tsf-dd-pop {
	display: block;
}

.tsf-dd-pop::-webkit-scrollbar {
	width: 6px;
}

.tsf-dd-pop::-webkit-scrollbar-thumb {
	background: #e5e5e5;
	border-radius: 10px;
}

/* --- чекбоксы в выпадашке --- */
.tsf-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	color: #1d1d1b;
	margin: 0;
	user-select: none;
}

.tsf-check:hover {
	background: #f6f6f6;
}

.tsf-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tsf-box {
	flex: none;
	width: 18px;
	height: 18px;
	border: 1.5px solid #d3d3d3;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	transition: background .12s, border-color .12s;
}

.tsf-box svg {
	opacity: 0;
	transition: opacity .12s;
}

.tsf-check.checked .tsf-box {
	background: #e30613;
	border-color: #e30613;
}

.tsf-check.checked .tsf-box svg {
	opacity: 1;
}

.tsf-check.disabled {
	opacity: .4;
	pointer-events: none;
}

.tsf-val {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* --- числовые поля (цена, год, пробег) --- */
.tsf-input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	color: #1d1d1b;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
	-moz-appearance: textfield;
	appearance: textfield;
}

.tsf-input::placeholder {
	color: #9b9b9b;
}

.tsf-input:focus {
	outline: none;
	border-color: #e30613;
	box-shadow: 0 0 0 3px rgba(227, 6, 19, .08);
}

.tsf-input::-webkit-outer-spin-button,
.tsf-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.tsf-range {
	display: flex;
	gap: 8px;
}

/* --- нижняя строка --- */
.tsf-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid #e5e5e5;
	margin-top: 20px;
	padding-top: 20px;
}

.tsf-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	color: #5f5e5e;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	padding: 8px 0;
	transition: color .15s;
}

.tsf-all:hover {
	color: #1d1d1b;
}

.tsf-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.tsf-reset {
	background: none;
	border: none;
	color: #5f5e5e;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding: 8px 0;
	transition: color .15s;
}

.tsf-reset:hover {
	color: #e30613;
}

.tsf-submit {
	background: #b5000b;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 13px 32px;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
	transition: background .15s;
	white-space: nowrap;
}

.tsf-submit:hover {
	background: #e30613;
}

.tsf-submit[disabled] {
	opacity: .65;
	cursor: default;
}

/* --- режим "Все фильтры": выпадашки раскрыты статично --- */
.tsf.tsf-expanded .tsf-grid {
	align-items: start;
}

.tsf.tsf-expanded .tsf-dd-pop {
	display: block;
	position: static;
	min-width: 0;
	max-width: none;
	box-shadow: none;
	border: none;
	border-top: 1px solid #f0f0f0;
	border-radius: 0;
	padding: 8px 0 0;
	margin-top: 8px;
	max-height: none;
	overflow: visible;
}

.tsf.tsf-expanded .tsf-dd-caret {
	transform: rotate(180deg);
}

/* --- всплывающее окно результата штатного скрипта не используется --- */
.tsf .smart-filter-popup-result {
	display: none !important;
}

/* ============================================================
   Раскладка страницы каталога: фильтр над списком во всю ширину
   ============================================================ */

.catalog-filter-top {
	width: 100%;
}

.catalog .catalog__row {
	display: block !important;
}

.catalog .catalog__row .sidebar {
	display: none !important;
}

.catalog .catalog__row .catalog__products {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
	margin-left: 0 !important;
}

.catalog .btn-mob-filter {
	display: none !important;
}

/* --- адаптив --- */
@media (max-width: 1024px) {
	.tsf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tsf {
		padding: 16px;
		border-radius: 10px;
	}

	.tsf-grid {
		grid-template-columns: 1fr;
	}

	.tsf-tab {
		padding: 8px 18px;
	}

	.tsf-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.tsf-actions {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 4px;
	}

	.tsf-submit {
		width: 100%;
	}
}

/* --- год: два выпадающих списка --- */
.tsf-year {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tsf-year-label {
	font-size: 12px;
	color: #8a8a8a;
	line-height: 1.2;
}

.tsf-year-row {
	display: flex;
	gap: 8px;
}

.tsf-select {
	width: 100%;
	min-width: 0;
	padding: 11px 30px 11px 14px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	color: #1d1d1b;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M14.25 6.75L9 11.25L3.75 6.75' stroke='%23191919' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}

.tsf-select:focus {
	outline: none;
	border-color: #ee2c2d;
	box-shadow: 0 0 0 3px rgba(238, 44, 45, .1);
}

/* --- ползунок «от — до» --- */
.tsf-slider-cell {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 4px 2px 0;
}

.tsf-slider-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.tsf-slider-name {
	font-size: 12px;
	color: #8a8a8a;
	line-height: 1.2;
}

.tsf-slider-value {
	font-size: 13px;
	color: #1d1d1b;
	white-space: nowrap;
}

.tsf-slider-cell.has-value .tsf-slider-value {
	font-weight: 600;
	color: #ee2c2d;
}

.tsf-slider {
	position: relative;
	height: 26px;
}

.tsf-slider-rail,
.tsf-slider-fill {
	position: absolute;
	top: 50%;
	height: 4px;
	border-radius: 2px;
	transform: translateY(-50%);
	pointer-events: none;
}

.tsf-slider-rail {
	left: 0;
	right: 0;
	background: #e5e5e5;
}

.tsf-slider-fill {
	background: #ee2c2d;
}

/* обе ручки лежат друг на друге: сам трек кликов не ловит, ловят только «пятачки» */
.tsf-slider-handle {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 26px;
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	pointer-events: none;
	appearance: none;
	-webkit-appearance: none;
}

.tsf-slider-handle:focus {
	outline: none;
}

.tsf-slider-handle::-webkit-slider-thumb {
	pointer-events: auto;
	appearance: none;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #ee2c2d;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	cursor: pointer;
}

.tsf-slider-handle::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #ee2c2d;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	cursor: pointer;
}

.tsf-slider-handle::-moz-range-track {
	background: none;
	border: none;
}

/* --- список товаров во время живого обновления --- */
#catalog-products-container {
	transition: opacity .15s;
}

#catalog-products-container.tsf-updating {
	opacity: .45;
	pointer-events: none;
}

@media (max-width: 1024px) {
	.tsf-slider-value {
		font-size: 12px;
	}
}

/* счётчик найденного: выглядит как прежняя кнопка, но не нажимается */
.tsf-submit.tsf-count {
	cursor: default;
	user-select: none;
	text-align: center;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tsf-submit.tsf-count:hover {
	background: #b5000b;
}

/* End */
/* /local/templates/truckservice/components/bitrix/catalog.smart.filter/catalog-filter/style.css?178577930410474 */
