
.lgefep-filter-bar-wrapper {
	min-width: 200px;
}

.lgefep-filter-bar-wrapper[data-multi-select=yes] {
	min-width: 250px;
}

.lgefep-filter-bar-wrapper span.select2.select2-container .select2-selection.select2-selection--single {
	height: auto;
}

.lgefep-filter-bar-wrapper span.select2.select2-container li.select2-selection__choice, .lgefep-filter-bar-wrapper span.select2.select2-container span.select2-selection__rendered {
	font-family: var(--lgefep-taxonomy-filter-font-family);
	font-size: var(--lgefep-taxonomy-filter-font-size);
	font-weight: var(--lgefep-taxonomy-filter-font-weight);
	text-transform: var(--lgefep-taxonomy-filter-text-transform);
	font-style: var(--lgefep-taxonomy-filter-font-style);
	-webkit-text-decoration: var(--lgefep-taxonomy-filter-text-decoration);
	text-decoration: var(--lgefep-taxonomy-filter-text-decoration);
	line-height: var(--lgefep-taxonomy-filter-line-height);
	letter-spacing: var(--lgefep-taxonomy-filter-letter-spacing);
	word-spacing: var(--lgefep-taxonomy-filter-word-spacing);
	color: var(--lgefep-taxonomy-active-filter-text-color, var(--lgefep-taxonomy-normal-filter-text-color));
	text-shadow: var(--lgefep-taxonomy-active-filter-text-shadow, var(--lgefep-taxonomy-normal-filter-text-shadow));
}

.lgefep-filter-bar-wrapper span.select2.select2-container .select2-selection--single {
	overflow: hidden;
	padding: var(--lgefep-taxonomy-filter-padding-top, .5em) var(--lgefep-taxonomy-filter-padding-right, 2rem) var(--lgefep-taxonomy-filter-padding-bottom, .5rem) var(--lgefep-taxonomy-filter-padding-left, .8em);
	border-radius: var(--lgefep-taxonomy-filter-border-radius-top, 4px) var(--lgefep-taxonomy-filter-border-radius-right, 4px) var(--lgefep-taxonomy-filter-border-radius-bottom, 4px) var(--lgefep-taxonomy-filter-border-radius-left, 4px);
	border-style: var(--lgefep-taxonomy-active-filter-border-style, var(--lgefep-taxonomy-normal-filter-border-style, solid));
	border-width: var(--lgefep-taxonomy-active-filter-border-width-top, var(--lgefep-taxonomy-normal-filter-border-width-top, 1px)) var(--lgefep-taxonomy-active-filter-border-width-right, var(--lgefep-taxonomy-normal-filter-border-width-right, 1px)) var(--lgefep-taxonomy-active-filter-border-width-bottom, var(--lgefep-taxonomy-normal-filter-border-width-bottom, 1px)) var(--lgefep-taxonomy-active-filter-border-width-left, var(--lgefep-taxonomy-normal-filter-border-width-left, 1px));
	border-color: var(--lgefep-taxonomy-active-filter-border-color, var(--lgefep-taxonomy-normal-filter-border-color, #aaa));
	background: var(--lgefep-taxonomy-active-filter-background-gradient, var(--lgefep-taxonomy-active-filter-background-color, var(--lgefep-taxonomy-normal-filter-background-gradient, var(--lgefep-taxonomy-normal-filter-background-color, #e4e4e4))));
}

.lgefep-filter-bar-wrapper span.select2.select2-container .select2-selection--single .select2-selection__arrow {
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

.lgefep-filter-bar-wrapper span.select2.select2-container .select2-selection--single .select2-selection__arrow b {
	display: block;
	border-color: var(--lgefep-taxonomy-active-filter-text-color, var(--lgefep-taxonomy-normal-filter-text-color, #888)) transparent transparent transparent;
}

.lgefep-filter-bar-wrapper span.select2.select2-container.select2-container--open .select2-selection--single .select2-selection__arrow b {
	border-color: transparent transparent var(--lgefep-taxonomy-active-filter-text-color, var(--lgefep-taxonomy-normal-filter-text-color, #888)) transparent;
}

.lgefep-filter-bar-wrapper span.select2.select2-container li.select2-selection__choice {
	border-radius: var(--lgefep-taxonomy-filter-border-radius-top, 4px) var(--lgefep-taxonomy-filter-border-radius-right, 4px) var(--lgefep-taxonomy-filter-border-radius-bottom, 4px) var(--lgefep-taxonomy-filter-border-radius-left, 4px);
	margin-right: var(--lgefep-taxonomy-filter-space-between, 5px);
	background: var(--lgefep-taxonomy-active-filter-background-gradient, var(--lgefep-taxonomy-active-filter-background-color, var(--lgefep-taxonomy-normal-filter-background-gradient, var(--lgefep-taxonomy-normal-filter-background-color, #e4e4e4))));
	border-width: var(--lgefep-taxonomy-active-filter-border-width-top, var(--lgefep-taxonomy-normal-filter-border-width-top, 1px)) var(--lgefep-taxonomy-active-filter-border-width-right, var(--lgefep-taxonomy-normal-filter-border-width-right, 1px)) var(--lgefep-taxonomy-active-filter-border-width-bottom, var(--lgefep-taxonomy-normal-filter-border-width-bottom, 1px)) var(--lgefep-taxonomy-active-filter-border-width-left, var(--lgefep-taxonomy-normal-filter-border-width-left, 1px));
	border-color: var(--lgefep-taxonomy-active-filter-border-color, var(--lgefep-taxonomy-normal-filter-border-color, #aaa));
	background: var(--lgefep-taxonomy-active-filter-background-gradient, var(--lgefep-taxonomy-active-filter-background-color, var(--lgefep-taxonomy-normal-filter-background-gradient, var(--lgefep-taxonomy-normal-filter-background-color, #e4e4e4))));
}

.lgefep-filter-bar-wrapper span.select2.select2-container li.select2-selection__choice .select2-selection__choice__remove {
	color: var(--lgefep-taxonomy-active-filter-text-color, var(--lgefep-taxonomy-normal-filter-text-color, #999));
	border-color: var(--lgefep-taxonomy-active-filter-text-color, var(--lgefep-taxonomy-normal-filter-text-color, #999));
}

.lgefep-filter-bar-wrapper span.select2.select2-container li.select2-selection__choice .select2-selection__choice__remove:hover {
	color: var(--lgefep-taxonomy-hover-filter-text-color, var(--lgefep-taxonomy-normal-filter-text-color, #999));
	border-color: var(--lgefep-taxonomy-hover-filter-text-color, var(--lgefep-taxonomy-normal-filter-text-color, #999));
	background: var(--lgefep-taxonomy-hover-filter-background-gradient, var(--lgefep-taxonomy-hover-filter-background-color, var(--lgefep-taxonomy-normal-filter-background-gradient, var(--lgefep-taxonomy-normal-filter-background-color, #f1f1f1))));
}

.lgefep-filter-bar-wrapper span.select2.select2-container li.select2-selection__choice:hover {
	color: var(--lgefep-taxonomy-hover-filter-text-color, var(--lgefep-taxonomy-normal-filter-text-color));
	background: var(--lgefep-taxonomy-hover-filter-background-gradient, var(--lgefep-taxonomy-hover-filter-background-color, var(--lgefep-taxonomy-normal-filter-background-gradient, var(--lgefep-taxonomy-normal-filter-background-color))));
	text-shadow: var(--lgefep-taxonomy-hover-filter-text-shadow, var(--lgefep-taxonomy-normal-filter-text-shadow));
}

.select2-container[class*=lgefep-taxonomy-filter-] .select2-dropdown {
	width: auto !important;
	min-width: 200px;
}

.select2-container[class*=lgefep-taxonomy-filter-] .select2-search--dropdown, .select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option {
	font-family: var(--lgefep-taxonomy-filter-font-family);
	font-size: var(--lgefep-taxonomy-filter-font-size);
	font-weight: var(--lgefep-taxonomy-filter-font-weight);
	text-transform: var(--lgefep-taxonomy-filter-text-transform);
	font-style: var(--lgefep-taxonomy-filter-font-style);
	-webkit-text-decoration: var(--lgefep-taxonomy-filter-text-decoration);
	text-decoration: var(--lgefep-taxonomy-filter-text-decoration);
	line-height: var(--lgefep-taxonomy-filter-line-height);
	letter-spacing: var(--lgefep-taxonomy-filter-letter-spacing);
	word-spacing: var(--lgefep-taxonomy-filter-word-spacing);
	color: var(--lgefep-taxonomy-normal-filter-text-color);
	text-shadow: var(--lgefep-taxonomy-normal-filter-text-shadow);
	background: var(--lgefep-taxonomy-normal-filter-background-gradient, var(--lgefep-taxonomy-normal-filter-background-color));
	padding: var(--lgefep-taxonomy-filter-padding-top, 6px) var(--lgefep-taxonomy-filter-padding-right, .75em) var(--lgefep-taxonomy-filter-padding-bottom, 6px) var(--lgefep-taxonomy-filter-padding-left, .75em);
}

.select2-container[class*=lgefep-taxonomy-filter-] .select2-search--dropdown:not(.select2-search--dropdown), .select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option:not(.select2-search--dropdown) {
	border-style: var(--lgefep-taxonomy-normal-filter-border-style);
	border-width: var(--lgefep-taxonomy-normal-filter-border-width-top) var(--lgefep-taxonomy-normal-filter-border-width-right) var(--lgefep-taxonomy-normal-filter-border-width-bottom) var(--lgefep-taxonomy-normal-filter-border-width-left);
	border-color: var(--lgefep-taxonomy-normal-filter-border-color);
}

.select2-container[class*=lgefep-taxonomy-filter-] .select2-search--dropdown.select2-results__option--selected, .select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option.select2-results__option--selected {
	color: var(--lgefep-taxonomy-active-filter-text-color, var(--lgefep-taxonomy-normal-filter-text-color));
	background: var(--lgefep-taxonomy-active-filter-background-gradient, var(--lgefep-taxonomy-active-filter-background-color, var(--lgefep-taxonomy-normal-filter-background-gradient, var(--lgefep-taxonomy-normal-filter-background-color, #e4e4e4))));
}

.select2-container[class*=lgefep-taxonomy-filter-] .select2-search--dropdown.select2-results__option--highlighted, .select2-container[class*=lgefep-taxonomy-filter-] .select2-search--dropdown:not(.select2-search--dropdown):hover, .select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option.select2-results__option--highlighted, .select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option:not(.select2-search--dropdown):hover {
	color: var(--lgefep-taxonomy-hover-filter-text-color, var(--lgefep-taxonomy-normal-filter-text-color, #000));
	background: var(--lgefep-taxonomy-hover-filter-background-gradient, var(--lgefep-taxonomy-hover-filter-background-color, var(--lgefep-taxonomy-normal-filter-background-gradient, var(--lgefep-taxonomy-normal-filter-background-color, #5897fb))));
	text-shadow: var(--lgefep-taxonomy-hover-filter-text-shadow, var(--lgefep-taxonomy-normal-filter-text-shadow));
}

.select2-container[class*=lgefep-taxonomy-filter-] .select2-search--dropdown.select2-results__option--highlighted:not(.select2-search--dropdown), .select2-container[class*=lgefep-taxonomy-filter-] .select2-search--dropdown:not(.select2-search--dropdown):hover:not(.select2-search--dropdown), .select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option.select2-results__option--highlighted:not(.select2-search--dropdown), .select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option:not(.select2-search--dropdown):hover:not(.select2-search--dropdown) {
	border-style: var(--lgefep-taxonomy-hover-filter-border-style, var(--lgefep-taxonomy-normal-filter-border-style));
	border-width: var(--lgefep-taxonomy-hover-filter-border-width-top, var(--lgefep-taxonomy-normal-filter-border-width-top)) var(--lgefep-taxonomy-hover-filter-border-width-right, var(--lgefep-taxonomy-normal-filter-border-width-right)) var(--lgefep-taxonomy-hover-filter-border-width-bottom, var(--lgefep-taxonomy-normal-filter-border-width-bottom)) var(--lgefep-taxonomy-hover-filter-border-width-left, var(--lgefep-taxonomy-normal-filter-border-width-left));
	border-color: var(--lgefep-taxonomy-hover-filter-border-color, var(--lgefep-taxonomy-normal-filter-border-color));
}

.select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option.lgefep-filter-bar-list-item-child-level-1 {
	font-weight: 500;
}

.select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option.lgefep-filter-bar-list-item-child-level-2 {
	font-style: italic;
	font-weight: 400;
}

.select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option.lgefep-filter-bar-list-item-child-level-3 {
	font-size: .9em;
}

.select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option.lgefep-filter-bar-list-item-child-level-4 {
	font-size: .85em;
}

.select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option.lgefep-filter-bar-list-item-child-level-1::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\" fill=\"%23000\" stroke=\"%23000\" stroke-width=\"8\"><path d=\"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"/></svg>");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	margin-right: 8px;
	vertical-align: middle;
}

.select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option.lgefep-filter-bar-list-item-child-level-2::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\" fill=\"%23000\" stroke=\"%23000\" stroke-width=\"8\"><path d=\"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"/></svg>");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	margin-right: 8px;
	margin-left: 16px;
	vertical-align: middle;
}

.select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option.lgefep-filter-bar-list-item-child-level-3::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\" fill=\"%23000\" stroke=\"%23000\" stroke-width=\"8\"><path d=\"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z\"/></svg>");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	margin-right: 8px;
	margin-left: 32px;
	vertical-align: middle;
}

.select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option[data-term-depth="1"] {
	border-left: 2px solid #e0e0e0;
}

.select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option[data-term-depth="2"] {
	padding-left: 20px;
	border-left: 2px solid #d0d0d0;
}

.select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option[data-term-depth="3"] {
	padding-left: 40px;
	border-left: 2px solid silver;
}

.number-span {
	text-align: center;
	padding: 3px 15px 5px 6px;
	font-size: 14px;
	border-radius: 3px;
}

.lgefep-filter-bar-list-item-child .lgefep-term-name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}

.select2-container[class*=lgefep-taxonomy-filter-] li.select2-results__option:not(.lgefep-filter-bar-list-item-child) .lgefep-term-name {
	display: flex;
	font-weight: 700;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}

.select2-container[class*=lgefep-taxonomy-filter-] .lgefep-term-name .number-span {
	background-color: #f0f0f0;
}

.lgefep-filter-bar-list-item-child {
	display: flex;
	align-items: center;
}
