.wl-ptypes {
	margin: 0 0 1.25rem;
}

.wl-ptypes__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 0.4rem;
}

.wl-ptypes__heading {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.3;
	font-weight: 600;
}

.wl-ptypes__clear {
	flex-shrink: 0;
	margin: 0;
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: underline;
	color: inherit;
}

.wl-ptypes__clear:hover,
.wl-ptypes__clear:focus-visible {
	opacity: 0.8;
}

.wl-ptypes__list {
	display: flex;
	flex-direction: column;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wl-ptypes:not(.is-expanded) .wl-ptypes__item--more {
	display: none;
}

.wl-ptypes__item a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 8px;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	border: 1px solid transparent;
	background: transparent;
	box-sizing: border-box;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wl-ptypes__item a:hover,
.wl-ptypes__item a:focus-visible {
	background: rgba(0, 0, 0, 0.05);
}

.wl-ptypes .wl-ptypes__item.is-active > a,
.wl-ptypes .wl-ptypes__item > a.is-active,
.wl-ptypes .wl-ptypes__item > a[aria-pressed="true"] {
	background: #fff;
	color: var(--theme-palette-color-5);
	border-color: transparent;
	font-weight: 500;
}

.wl-ptypes .wl-ptypes__item.is-active > a:hover,
.wl-ptypes .wl-ptypes__item.is-active > a:focus-visible,
.wl-ptypes .wl-ptypes__item > a.is-active:hover,
.wl-ptypes .wl-ptypes__item > a.is-active:focus-visible,
.wl-ptypes .wl-ptypes__item > a[aria-pressed="true"]:hover,
.wl-ptypes .wl-ptypes__item > a[aria-pressed="true"]:focus-visible {
	background: #fff;
	color: var(--theme-palette-color-5);
	font-weight: 500;
}

.wl-ptypes__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.wl-ptypes__svg {
	display: block;
	width: 18px;
	height: 18px;
}

.wl-ptypes__label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.92rem;
	line-height: 1.2;
}

.wl-ptypes__count {
	flex-shrink: 0;
	font-size: 0.75rem;
	color: #000;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.wl-ptypes__more {
	display: inline-block;
	margin: 0.35rem 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
}

.wl-ptypes__more:hover,
.wl-ptypes__more:focus-visible {
	opacity: 0.8;
}

@media only screen and (max-width: 900px) {
	.wl-ptypes {
		margin-bottom: 0.85rem;
	}

	.wl-ptypes__list {
		flex-direction: row;
		overflow-x: auto;
		gap: 8px;
		padding: 2px 2px 8px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.wl-ptypes__item {
		flex: 0 0 auto;
	}

	.wl-ptypes__item a {
		flex-direction: column;
		justify-content: flex-start;
		min-width: 78px;
		max-width: 96px;
		padding: 8px 6px 6px;
		text-align: center;
		gap: 4px;
	}

	.wl-ptypes__label {
		font-size: 0.78rem;
		line-height: 1.2;
	}

	.wl-ptypes__count {
		display: none;
	}
}
