/**
 * ms-azure-search — Content Type facet (multi-select checkboxes).
 * Self-contained; does not depend on ElasticPress or theme facet CSS.
 */
.ms-azure-search-progress {
	background: rgb(0 0 0 / 15%);
	color: var(--wp--preset--color--azure, #000);
	height: 4px;
	left: 0;
	overflow: hidden;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 100000;
}

.ms-azure-search-progress__bar {
	background: currentcolor;
	display: block;
	height: 100%;
	transition: width 250ms ease-out;
	width: 0;
}

@media (prefers-reduced-motion: reduce) {

	.ms-azure-search-progress__bar {
		transition-duration: 0ms;
	}
}

.ms-azure-facet {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	margin-block-start: var(--wp--preset--spacing--md);
	padding: 0;
}

.ms-azure-facet__item {
	margin-bottom: var(--wp--preset--spacing--sm);
	padding: 0;

}

.ms-azure-facet__item .ms-azure-facet__link span:last-child {
	margin-left: auto;
	white-space: nowrap;
}

.ms-azure-facet__link {
	align-items: center;
	color: inherit;
	cursor: pointer;
	display: flex;
	font-size: var(--wp--preset--font-size--body-small);
	font-weight: var(--wp--custom--font--weight--core--semi-bold);
	gap: var(--wp--preset--spacing--sm);
	line-height: 1.3;
	position: relative;
	text-decoration: none;
}

.ms-azure-facet__link:hover .ms-azure-facet__label {
	text-decoration: underline;
}

.ms-azure-facet__box {
	background: #fff;
	border: 2px solid #616161;
	border-radius: 2px;
	box-sizing: border-box;
	flex: 0 0 auto;
	height: 18px;
	min-width: 18px;
	position: relative;
	width: 18px;
}

.ms-azure-facet__link.is-selected .ms-azure-facet__box {
	background: #0067b8; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
	border-color: #0067b8; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
}

.ms-azure-facet__link.is-selected .ms-azure-facet__box::after {
	border: solid #fff;
	border-width: 0 2px 2px 0;
	content: "";
	height: 10px;
	left: 4px;
	position: absolute;
	top: 0;
	transform: rotate(45deg);
	width: 5px;
}

.ms-azure-facet__count {
	color: #616161; /* stylelint-disable-line scale-unlimited/declaration-strict-value */
}

li.ms-azure-facet__item.is-child {
	padding-left: 20px;
}
