/* Categories section at the top of the Item Group filter sidebar.
   Reuses webshop's .filter-block / .filter-label look; links instead of checkboxes. */
.pbl-subcategory-filter .pbl-subcategory-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
	font-size: 11px;
	font-weight: 600;
	color: var(--gray-700, #383838);
	text-transform: uppercase;
	min-height: 24px;
}

.pbl-subcategory-filter .pbl-subcategory-toggle:focus-visible {
	outline: 2px solid var(--primary, #2490ef);
	outline-offset: 2px;
}

.pbl-subcategory-caret {
	width: 8px;
	height: 8px;
	margin-right: 4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.pbl-subcategory-filter.pbl-collapsed .pbl-subcategory-caret {
	transform: rotate(-45deg);
}

.pbl-subcategory-filter.pbl-collapsed .pbl-subcategory-toggle {
	margin-bottom: 0 !important;
}

.pbl-subcategory-list {
	max-height: 260px;
	overflow-y: auto;
	padding: 0;
}

.pbl-subcategory-item {
	margin: 0;
}

.pbl-subcategory-item[hidden] {
	display: none;
}

.pbl-subcategory-link {
	display: block;
	padding: 4px 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--gray-800, #1f272e);
	text-decoration: none;
}

.pbl-subcategory-link:hover,
.pbl-subcategory-link:focus {
	color: var(--primary, #2490ef);
	text-decoration: underline;
}

/* Phone: the sidebar collapses with the other filters; give links finger-sized targets. */
@media (max-width: 767.98px) {
	.pbl-subcategory-link {
		padding: 10px 0;
		min-height: 44px;
	}

	.pbl-subcategory-filter .pbl-subcategory-toggle {
		min-height: 44px;
	}
}
