.cat-ls {
	position: relative;
	display: inline-block;
	font: 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	z-index: 99999;
}
.cat-ls-floating {
	position: fixed;
	top: 12px;
	right: 12px;
}
body.admin-bar .cat-ls-floating {
	top: 44px;
}
@media (max-width: 782px) {
	body.admin-bar .cat-ls-floating {
		top: 58px;
	}
}
.cat-ls-current {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 8px 12px;
	border: 1px solid #d0d4da;
	border-radius: 6px;
	background: #fff;
	color: #1d2327;
	font: inherit;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.cat-ls-current:hover,
.cat-ls-current:focus-visible {
	border-color: #8c95a1;
}
.cat-ls-code {
	display: inline-block;
	min-width: 22px;
	padding: 2px 4px;
	border-radius: 3px;
	background: #1d2327;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: center;
}
.cat-ls-caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}
.cat-ls-list {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 100%;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	border: 1px solid #d0d4da;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
	max-height: calc(100vh - 80px);
	overflow-y: auto;
}
.cat-ls.cat-ls-open .cat-ls-list {
	display: block;
}
@media (hover: hover) {
	.cat-ls:hover .cat-ls-list {
		display: block;
	}
	/* Bridge the gap between button and list so hover doesn't drop. */
	.cat-ls:hover::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		height: 6px;
	}
}
.cat-ls-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.cat-ls-list a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	color: #1d2327;
	text-decoration: none;
	white-space: nowrap;
}
.cat-ls-list a:hover,
.cat-ls-list a:focus-visible {
	background: #f0f2f4;
}
