/* Tail.Select — тема под шаблон kp.
   Chosen, Nice Select и Ion.RangeSlider удалены за ненадобностью.
   Оригинал: dle_filter.css.bak */

.tail-select {position: relative; width: 100%; font-size: 15px; color: var(--tt);}
.tail-select select {display: none;}

/* закрытое поле */
.tail-select .select-label {display: flex; align-items: center; height: 48px; padding: 0 38px 0 16px;
	border-radius: 12px; background-color: var(--bg-darker); color: var(--tt); font-weight: 500;
	cursor: pointer; user-select: none;}
.tail-select .select-label .label-inner {overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
.tail-select .select-label .label-count {flex: 0 0 auto; margin-left: 8px; padding: 2px 8px; border-radius: 10px;
	background-color: var(--accent); color: #fff; font-size: 12px; font-weight: 600;}
.tail-select .select-label:after {display: none;}
.tail-select.disabled .select-label {opacity: .5; cursor: default;}

/* выпадающий список */
.tail-select .select-dropdown {display: none; position: absolute; z-index: 50; left: 0; top: calc(100% + 6px);
	width: 100%; padding: 6px; border-radius: 12px; background-color: var(--bg-darker);
	box-shadow: 0 8px 24px rgba(0,0,0,.45);}
.tail-select.active .select-dropdown {display: block;}
.tail-select.open-top .select-dropdown {top: auto; bottom: calc(100% + 6px);}

/* поиск */
.tail-select .select-dropdown .dropdown-search {padding: 2px 2px 8px;}
.tail-select input[type=text] {width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: 8px;
	background-color: var(--bg-darker); color: var(--tt); font-size: 14px; box-shadow: none;}
.tail-select input[type=text]::placeholder {color: var(--tt-fade); opacity: 1;}

/* пункты */
.tail-select .select-dropdown .dropdown-inner {max-height: 280px; overflow-y: auto;
	scrollbar-width: thin; scrollbar-color: var(--bg-darkest) transparent;}
.tail-select .select-dropdown .dropdown-inner::-webkit-scrollbar {width: 6px;}
.tail-select .select-dropdown .dropdown-inner::-webkit-scrollbar-thumb {border-radius: 3px;
	background-color: var(--bg-darkest);}
.tail-select .select-dropdown ul {margin: 0; padding: 0; list-style: none;}
.tail-select .select-dropdown ul li {margin: 0;}
.tail-select .select-dropdown ul li.dropdown-option {display: flex; align-items: center; padding: 10px 12px;
	border-radius: 8px; color: var(--tt); font-size: 14px; line-height: 1.2; cursor: pointer;}
.tail-select .select-dropdown ul li.dropdown-option:hover,
.tail-select .select-dropdown ul li.dropdown-option.hover {background-color: var(--bg);}
.tail-select .select-dropdown ul li.dropdown-option.selected {background-color: var(--accent); color: #fff;}
.tail-select .select-dropdown ul li.dropdown-option .option-description {display: block; margin-top: 2px;
	color: var(--tt-fade); font-size: 12px;}
.tail-select .select-dropdown ul li.dropdown-option.selected .option-description {color: rgba(255,255,255,.75);}
.tail-select .select-dropdown ul li.disabled {opacity: .45; cursor: default;}
.tail-select.hide-disabled .select-dropdown ul li.disabled {display: none;}

/* чекбоксы при мультивыборе */
.tail-select.multiple .select-dropdown ul li.dropdown-option:before {content: ''; flex: 0 0 auto;
	width: 16px; height: 16px; margin-right: 10px; border: 1px solid var(--tt-fade); border-radius: 4px;}
.tail-select.multiple .select-dropdown ul li.dropdown-option.selected:before {border-color: #fff;
	background-color: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat, linear-gradient(#fff, #fff);
	-webkit-mask-composite: destination-out;
	mask: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;}

/* заголовки групп */
.tail-select .select-dropdown ul li.optgroup-title {padding: 10px 12px 4px; color: var(--tt-fade);
	font-size: 12px; font-weight: 600; text-transform: uppercase;}
.tail-select .select-dropdown ul li.optgroup-title button {padding: 0; border: 0; background: none;
	color: var(--tt-fade); font-size: 12px; cursor: pointer;}

/* пусто / действия */
.tail-select .select-dropdown .dropdown-empty {padding: 12px; color: var(--tt-fade); font-size: 14px;
	text-align: center;}
.tail-select .select-dropdown .dropdown-action {display: flex; gap: 8px; padding: 8px 4px 2px;}
.tail-select button.tail-all, .tail-select button.tail-none {padding: 0; border: 0; background: none;
	color: var(--tt-fade); font-size: 13px; cursor: pointer;}
.tail-select button.tail-all:hover, .tail-select button.tail-none:hover {color: var(--tt);}
.tail-select mark {background: none; color: var(--accent);}
.filter-block__reset:hover {background: none; color: var(--tt);}

