/* Header tidy, UX review 2026-10-25. Pairs with front-end/header-ux.php and
 * assets/js/header-ux.js. */

/* ---- Basket: count only ------------------------------------------------ */
.site-header .shoptimizer-cart a.cart-contents > .amount {
	display: none;
}

/* ---- Checkout in the top bar only with items in the basket -------------
 * Hidden by default, because most visitors have an empty basket and the page is cached for
 * guests. The JS adds `ksec-cart-full` to <html> from the woocommerce_items_in_cart cookie at
 * once, then keeps it in step with the basket badge. Scoped to the top bar secondary menu. */
html:not(.ksec-cart-full) .secondary-navigation li.ksec-nav-checkout {
	display: none;
}

/* ---- Support opens in a new tab: visible marker ------------------------ */
.secondary-navigation ul.menu > li.ksec-nav-support > a[target="_blank"]::after {
	content: "\2197";
	content: "\2197" / "";
	margin-left: 3px;
	font-size: 11px;
	opacity: .6;
}

/* Visually hidden but still read by screen readers. The theme's .screen-reader-text sets
 * visibility:hidden, which hides the text from the accessibility tree as well. */
.ksec-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
