.stp-taxonomy-terms {
	width: 100%;
	margin: 0;
	padding: 0;
}

.stp-taxonomy-terms__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 4px 0;
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	transition: color 0.2s ease, opacity 0.2s ease;
}

.stp-taxonomy-terms__item:hover {
	color: var(--primary-color, #d71920);
	text-decoration: none;
	opacity: 0.85;
}

.stp-taxonomy-terms__name {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.stp-taxonomy-terms__count {
	flex: 0 0 auto;
	font-size: 0.9em;
	opacity: 0.7;
}

.stp-taxonomy-terms--grid {
	display: grid;
	grid-template-columns: repeat(var(--stp-taxonomy-columns), minmax(0, 1fr));
	gap: 0 24px;
}

.stp-taxonomy-terms--grid .stp-taxonomy-terms__item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.stp-taxonomy-terms__item {
	background-color: var(--stp-item-bg, #ffffff);
	border: var(--stp-item-border-width, 1px) solid var(--stp-item-border-color, #eadfd6);
	border-radius: var(--stp-item-radius, 999px);
	display: flex;
align-items: center;
justify-content: center;
text-align: center;
gap: 6px;
}
.stp-taxonomy-terms__list--wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.stp-taxonomy-terms__list--wrap .stp-taxonomy-terms__item {
    flex: 0 0 auto;
    white-space: nowrap;
}
@media (max-width: 849px) {
	.stp-taxonomy-terms--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 549px) {
	.stp-taxonomy-terms--grid {
		grid-template-columns: 1fr;
	}
}
.stp-taxonomy-terms--wrap {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
}

.stp-taxonomy-terms--wrap .stp-taxonomy-terms__item {
	display: inline-flex;
	flex: 0 0 auto;
	width: fit-content !important;
	max-width: 100%;
	white-space: nowrap;
}
.stp-taxonomy-terms--wrap .stp-taxonomy-terms__item {
	padding-inline: 6px;
}
.stp-taxonomy-terms__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 8px;
}

.stp-taxonomy-terms__title {
	margin: 0;
}
.stp-taxonomy-terms .stp-taxonomy-terms__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	margin-bottom: 8px;
	grid-column: 1 / -1;
}

.stp-taxonomy-terms--wrap .stp-taxonomy-terms__header {
	flex: 0 0 100%;
}

.stp-taxonomy-terms__title {
	margin: 0;
}