/* TAIL.SELECT OVERRIDE */
.filter .tail-select,
.filter .tail-select * {
	box-sizing: border-box;
}

.filter .tail-select {
	width: 100% !important;
	margin: 0 !important;
	display: block !important;
	font-family: inherit !important;
	background: transparent !important;
}

.filter .tail-select .select-label {
	min-height: 40px !important;
	height: 40px !important;
	padding: 0 14px !important;
	display: flex !important;
	align-items: center !important;
	border: 1px solid rgba(0,0,0,0.5) !important;
	border-radius: 4px !important;
	background: #2a2d34 !important;
	color: var(--tt-on-black) !important;
	box-shadow: none !important;
	position: relative !important;
}

.filter .tail-select .label-count {
	display: none !important;
}

.filter .tail-select .label-inner {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 6px !important;
	white-space: normal !important;
	overflow: hidden !important;
	text-overflow: clip !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
	color: var(--tt-on-black) !important;
}

/* убираем счетчик, вертикальную палку и встроенные иконки */
.filter .tail-select .label-count,
.filter .tail-select .select-label:before,
.filter .tail-select .select-label:after,
.filter .tail-select .select-label .label-inner:before,
.filter .tail-select .select-label .label-inner:after {
	display: none !important;
	content: none !important;
}

.filter .tail-select .select-dropdown {
	top: calc(100% + 6px) !important;
	left: 0 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(0,0,0,0.5) !important;
	border-radius: 4px !important;
	background: #2a2d34 !important;
	color: var(--tt-on-black) !important;
	box-shadow: var(--bsh-long) !important;
	z-index: 300 !important;
}

.filter .tail-select .dropdown-search {
	padding: 10px !important;
	border-bottom: 1px solid rgba(255,255,255,.08) !important;
	background: #2a2d34 !important;
}

.filter .tail-select .dropdown-search input[type="text"] {
	width: 100% !important;
	height: 38px !important;
	padding: 0 12px !important;
	border: 1px solid rgba(255,255,255,.08) !important;
	border-radius: 4px !important;
	background: #2a2d34 !important;
	color: #fff !important;
	font-size: 14px !important;
	line-height: 38px !important;
	box-shadow: none !important;
	outline: none !important;
	caret-color: #fff !important;
	opacity: 1 !important;
	-webkit-text-fill-color: #fff !important;
}

.filter .tail-select .dropdown-search input[type="text"]::placeholder {
	color: rgba(255,255,255,.45) !important;
	opacity: 1 !important;
}

.filter .tail-select .dropdown-search input[type="text"]:focus {
	background: #2a2d34 !important;
	color: #fff !important;
	border-color: var(--accent) !important;
	-webkit-text-fill-color: #fff !important;
}

.filter .tail-select .dropdown-inner {
	max-height: 280px !important;
	padding: 8px 0 !important;
	background: #2a2d34 !important;
}

.filter .tail-select .select-dropdown ul,
.filter .tail-select .select-dropdown ul li {
	background: transparent !important;
}

.filter .tail-select .select-dropdown ul li {
	padding: 8px 12px !important;
	color: var(--tt-on-black) !important;
	font-size: 14px !important;
	line-height: 1.3 !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
}

.filter .tail-select .select-dropdown ul li::before,
.filter .tail-select .select-dropdown ul li::after {
	display: none !important;
	content: none !important;
	background: none !important;
	background-image: none !important;
}

.filter .tail-select .select-dropdown ul li.dropdown-option {
	padding-left: 12px !important;
	cursor: pointer !important;
}

.filter .tail-select .select-dropdown ul li.dropdown-option:hover,
.filter .tail-select .select-dropdown ul li.dropdown-option.hover {
	background: rgba(255,255,255,.06) !important;
	color: #fff !important;
}

.filter .tail-select .select-dropdown ul li.dropdown-option.selected {
	background: rgba(255,255,255,.08) !important;
	color: var(--yellow) !important;
}

.filter .tail-select .select-dropdown ul li.dropdown-option.disabled {
	color: rgba(255,255,255,.35) !important;
	background: transparent !important;
}

.filter .tail-select .select-label .select-handle,
.filter .tail-select-container .select-handle {
	display: inline-flex !important;
	align-items: center !important;
	height: 24px !important;
	padding: 0 8px !important;
	margin: 0 !important;
	border-radius: 3px !important;
	border: 0 !important;
	background: var(--accent) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 24px !important;
	box-shadow: none !important;
	text-transform: none !important;
}

.filter .tail-select .select-label .select-handle:hover,
.filter .tail-select-container .select-handle:hover {
	background: var(--red) !important;
	color: #fff !important;
}

.filter .tail-select .select-label .select-handle::after,
.filter .tail-select-container .select-handle::after {
	content: "×" !important;
	margin-left: 6px !important;
	font-size: 14px !important;
	line-height: 1 !important;
}

.filter .tail-select-container {
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
}

/* если выбранных значений нет — placeholder строго по центру по вертикали */
.filter .tail-select .select-label:not(:has(.select-handle)) .label-inner {
	display: flex !important;
	align-items: center !important;
	height: 100% !important;
}

/* на всякий случай убираем лишние иконки из базового css tail-select */
.filter .tail-select .select-dropdown ul li.dropdown-option.selected:before,
.filter .tail-select .select-dropdown ul li.dropdown-option.hover:before,
.filter .tail-select .select-dropdown ul li.dropdown-option:hover:before,
.filter .tail-select.multiple .select-dropdown ul li.dropdown-option:before,
.filter .tail-select.multiple .select-dropdown ul li.dropdown-option.selected:before,
.filter .tail-select.multiple .select-dropdown ul li.dropdown-option.selected:hover:before,
.filter .tail-select.multiple .select-dropdown ul li.dropdown-option.selected.hover:before,
.filter .tail-select .select-dropdown ul li.dropdown-option.disabled:before {
	display: none !important;
	content: none !important;
	background-image: none !important;
}