/*
 * The toolbar above a product list: the result count on the left, the sorting dropdown on the right (catalogs,
 * categories, search). Scoped to the two blocks' wrappers.
 *
 * Kirill, 2026-10-22: the dropdown did not read as one. Snippet 35 "Sorting appearance discount checkbox" made it a
 * borderless 20px line on the page colour (all !important); it is a pill now, like the search field, with a chevron.
 * The count's wording: storefront.php.
 */

.wc-block-product-results-count .woocommerce-result-count {
	margin: 0;
	font-size: 14px;
	color: #A4A4A4;
}

.wp-block-group:has(> .wc-block-catalog-sorting) {
	align-items: center;
}

.wc-block-catalog-sorting select.orderby {
	appearance: none;
	-webkit-appearance: none;
	height: 40px;
	min-width: 0;
	padding: 0 36px 0 14px;
	border: 0;
	border-radius: 12px;
	background-color: var(--wp--preset--color--custom-card-background);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23E7E7E7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	color: var(--wp--preset--color--primary);
	font-family: Onest, sans-serif;
	font-size: 14px;
	cursor: pointer;
}

/* No ring after a choice: iOS Safari keeps the select focused (and :focus-visible) while the page reloads with the
   new order, so a ring stayed on for a second (Kirill, iOS 27). The ring stays for the keyboard where there is a
   pointer. */
.wc-block-catalog-sorting select.orderby:focus {
	outline: none;
}

@media (hover: hover) {
	.wc-block-catalog-sorting select.orderby:focus-visible {
		outline: 1px solid var(--wp--preset--color--accent);
	}
}
