.widget_ep-facet,
.wp-block-elasticpress-facet {

	& input[type="search"] {
		margin-bottom: 1rem;
	}

	& .searchable .inner {
		max-height: 20em;
		overflow: scroll;
	}

	& .term.hide {
		display: none;
	}

	& .empty-term {
		opacity: 0.5;
		position: relative;
	}

	& .empty-term::after {
		bottom: 0;
		content: " ";
		display: block;
		left: 0;
		position: absolute;
		right: 0;
		top: 0;
		width: 100%;
		z-index: 2;
	}

	& .level-1 {
		padding-left: 20px;
	}
	
	& .level-2 {
		padding-left: 40px;
	}
	
	& .level-3 {
		padding-left: 60px;
	}
	
	& .level-4 {
		padding-left: 80px;
	}
	
	& .level-5 {
		padding-left: 100px;
	}

	& input[disabled] {
		cursor: pointer;
		opacity: 1;
	}
	
	& .term a {
		align-items: center;
		display: flex;
		position: relative;
	}

	& .term a:hover .ep-checkbox {
		background-color: #ccc;
	}
}

.ep-checkbox {
	align-items: center;
	background-color: #eee;
	display: flex;
	flex-shrink: 0;
	height: 1em;
	justify-content: center;
	margin-right: 0.25em;
	width: 1em;
}

.ep-checkbox::after {
	border: solid #fff;
	border-width: 0 0.125em 0.125em 0;
	content: "";
	display: none;
	height: 0.5em;
	transform: rotate(45deg);
	width: 0.25em;
}

.ep-checkbox.checked {
	background-color: #5e5e5e;
}

.ep-checkbox.checked::after {
	display: block;
}
