.ybsb-active-filters-wrapper {
	display: flex;
	flex-direction: row; /* overridden per-breakpoint by the Direction control */
	align-items: stretch; /* the Results Text block's height follows the pills block */
	justify-content: space-between;
	flex-wrap: nowrap; /* the Results Text block never drops to its own row */
}

.ybsb-active-filters-hide-empty:not(.ybsb-active-filters-has-items) {
	display: none;
}

/* ── Results Text + Divider, as one glued unit ── */
.ybsb-active-filters-results-group {
	display: flex;
	align-items: center; /* keeps the divider + text centered on the same
	                        line as the pills, regardless of any difference
	                        between the two blocks' own font sizes */
	flex-shrink: 0;
}

.ybsb-active-filters-results {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.ybsb-active-filters-results-text {
	white-space: nowrap;
}

/* Text hugs the edge of its own box on whichever side it's placed */
.ybsb-active-filters-text-left .ybsb-active-filters-results-text {
	text-align: left;
}
.ybsb-active-filters-text-right .ybsb-active-filters-results-text {
	text-align: right;
}

.ybsb-active-filters-results-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.ybsb-active-filters-results-icon i,
.ybsb-active-filters-results-icon svg {
	display: block;
	line-height: 1;
	fill: currentColor;
}

/* ── Divider between the Results Text and the pills - fixed size, always
	 pinned to the top, never stretches with the pills block's height ── */
.ybsb-active-filters-divider {
	align-self: center;
	flex-shrink: 0;
	border-left-width: 1px;
	border-left-style: solid;
}

/* ── Pills zone - sized to its own content (never force-stretched), wraps
	 its own pills onto as many rows as needed once space runs out ── */
.ybsb-active-filters-pills-zone {
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	align-items: center; /* keeps the pills centered on the same line as
	                        the Results Text block */
	flex: 0 1 auto;
	min-width: 0;
}

.ybsb-active-filters-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.ybsb-active-filters-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	line-height: 1;
	cursor: default;
	transform-origin: center;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.ybsb-active-filters-pill:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ybsb-active-filters-pill-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	line-height: 1;
	font-size: inherit;
	font-family: inherit;
	color: inherit;
	vertical-align: middle;
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ybsb-active-filters-pill-remove:hover {
	transform: scale(1.3);
}

.ybsb-active-filters-pill-remove:focus {
	outline: none;
}

.ybsb-active-filters-pill-remove i,
.ybsb-active-filters-pill-remove svg {
	display: block;
	line-height: 1;
	fill: currentColor; /* Elementor SVG icons carry their own fill - this
	                       makes them follow the Icon Color control instead
	                       of staying stuck on their default color. */
}

.ybsb-active-filters-clear-all {
	display: inline-block;
	border: none;
	background: transparent;
	cursor: pointer;
	text-decoration: underline;
	font: inherit;
	margin-left: 12px;
	padding: 0;
	line-height: 1;
	vertical-align: middle;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}