/* Webux Ergebnis-Leiste (field block) - frontend.
   Count on the left, sort pill on the right. Values from the Figma "03 Kaufen"
   results head; .screen-reader-text is provided by the theme (app.css). */
.webux-results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0 0 24px;
}

.webux-results-bar__count {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: #1a1a1a;
	font-variant-numeric: tabular-nums;
}

.webux-results-bar__sortwrap {
	flex: 0 0 auto;
}

.webux-results-bar__sort {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 40px 0 14px;
	border: 1px solid #cfc9c0;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
	font-family: inherit;
	cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a847d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
}

.webux-results-bar__sort:hover {
	border-color: var(--wp--preset--color--primary, #8b8178);
}

.webux-results-bar__sort:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary, #8b8178);
	outline-offset: 2px;
}

/* Stack on narrow screens: count above the sort, no horizontal overflow. */
@media (max-width: 600px) {
	.webux-results-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.webux-results-bar__sortwrap {
		align-self: flex-start;
	}
}
