.wpw-category-subnav--empty {
	display: none !important;
}

.elementor-widget-shortcode:has(.wpw-category-subnav--empty) {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	min-height: 0 !important;
}

.wpw-category-subnav {
	max-width: 100%;
	overflow-x: auto;
	padding: 8px 4px 12px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.wpw-category-subnav__track {
	display: flex;
	width: max-content;
	min-width: 100%;
	min-height: 64px;
	align-items: stretch;
	padding: 5px;
	border: 1px solid #e3e5e2;
	border-radius: 32px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(20, 35, 24, 0.12);
}

.wpw-category-subnav__item {
	display: inline-flex;
	min-width: 180px;
	min-height: 52px;
	flex: 1 0 auto;
	align-items: center;
	justify-content: center;
	padding: 10px 28px;
	border-radius: 27px;
	color: #202521;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.wpw-category-subnav__item:hover,
.wpw-category-subnav__item:focus-visible {
	background: #eef4ee;
	color: #1f6429;
	text-decoration: none;
}

.wpw-category-subnav__item.is-active {
	background: #216b2b;
	box-shadow: 0 2px 7px rgba(19, 77, 27, 0.25);
	color: #fff;
	font-weight: 700;
}

.wpw-category-subnav__item.is-active:hover,
.wpw-category-subnav__item.is-active:focus-visible {
	background: #195822;
	color: #fff;
}

@media (max-width: 767px) {
	.wpw-category-subnav {
		padding-bottom: 8px;
	}

	.wpw-category-subnav__track {
		min-height: 54px;
		border-radius: 27px;
	}

	.wpw-category-subnav__item {
		min-width: auto;
		min-height: 42px;
		padding: 8px 20px;
		border-radius: 22px;
		font-size: 16px;
		white-space: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpw-category-subnav__item {
		transition: none;
	}
}
