.wc-block-product-categories {
	margin-bottom: 1em;

	&.is-dropdown {
		display: flex;
	}

	select {
		margin-right: 0.5em;
	}
}

.wc-block-product-categories-list-item-count::before {
	content: " (";
}

.wc-block-product-categories-list-item-count::after {
	content: ")";
}

.wp-block-woocommerce-product-categories.is-loading .wc-block-product-categories__placeholder {
	display: inline-block;
	height: 1em;
	width: 50%;
	min-width: 200px;
	background: currentColor;
	opacity: 0.2;
}

.wc-block-product-categories__button {
	display: flex;
	align-items: center;
	text-decoration: none;
	font-size: 13px;
	margin: 0;
	border: none;
	cursor: pointer;
	background: none;
	padding: 8px;
	color: #555d66;
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	svg {
		fill: currentColor;
		outline: none;
		.rtl & {
			transform: rotate(180deg);
		}
	}
	&:active {
		color: currentColor;
	}
	&:disabled,
	&[aria-disabled="true"] {
		cursor: default;
		opacity: 0.3;
	}
	&:focus:enabled {
		background-color: #fff;
		color: #191e23;
		box-shadow: inset 0 0 0 1px #6c7781, inset 0 0 0 2px #fff;
		outline: 2px solid transparent;
		outline-offset: -2px;
	}
	&:not(:disabled):not([aria-disabled="true"]):hover {
		background-color: #fff;
		color: #191e23;
		box-shadow: inset 0 0 0 1px #e2e4e7, inset 0 0 0 2px #fff, 0 1px 1px rgba(25, 30, 35, 0.2);
	}
	&:not(:disabled):not([aria-disabled="true"]):active {
		outline: none;
		background-color: #fff;
		color: #191e23;
		box-shadow: inset 0 0 0 1px #ccd0d4, inset 0 0 0 2px #fff;
	}
	&[aria-disabled="true"]:focus,
	&:disabled:focus {
		box-shadow: none;
	}
}
