/**
 * On Sale page (id 74361) compact text-only header. Enqueued only on that
 * page (inc/onsale-header.php); every selector is also scoped to
 * .vpn-onsale-header / .vpn-sale-*, which exist nowhere else.
 * No hero image, icons, promo blocks or buttons - plain text on the page's
 * existing light-gray commerce background.
 */

/* Width contract: the header is a plain block-level SIBLING inserted before
   the WooCommerce loop container (.woocommerce.columns-4 > ul.products-list);
   it wraps nothing and sets no width/max-width/padding-inline of its own, so
   it takes exactly the width of the column the grid sits in and cannot
   influence the grid. (An earlier revision also overrode #primary's
   margin-top and inset the header 8px on mobile; both removed - the
   existing 24px gap above #primary now supplies the top spacing.) */
.vpn-onsale-header {
	display: block;
	box-sizing: border-box;
	width: auto;
	max-width: none;
	padding: 0;
	margin: 0 0 12px;
}
.vpn-onsale-breadcrumb {
	font-size: 12.5px;
	line-height: 1.4;
	color: #777;
	margin: 0 0 8px;
}
.vpn-onsale-breadcrumb a {
	color: #555;
	text-decoration: none;
}
.vpn-onsale-breadcrumb a:hover {
	color: #111;
	text-decoration: underline;
}
.vpn-onsale-sep {
	margin: 0 6px;
	color: #999;
}
.vpn-onsale-title {
	font-size: 30px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #111;
	margin: 0 0 8px;
}
.vpn-onsale-desc {
	font-size: 15px;
	line-height: 1.5;
	color: #555;
	margin: 0;
	max-width: 640px;
}

/* Filter row: thin #E5E5E5 divider above, control left, live count right. */
body.vpn-clean-archive .vpn-onsale-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 42px;
	margin-top: 18px;
	padding-top: 10px;
	padding-bottom: 10px;
	border-top: 1px solid #e5e5e5;
}
.vpn-sale-controls {
	position: relative;
}
/* Functional toggle (native <details>/<summary>, no JS) styled as light plain
   text with a thin sliders icon - no button box. */
body.vpn-clean-archive .vpn-sale-controls > summary {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	min-height: 36px;
	padding: 6px 0;
	list-style: none;
	cursor: pointer;
	user-select: none;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	color: #222222;
}
body.vpn-clean-archive .vpn-sale-controls > summary::-webkit-details-marker {
	display: none;
}
body.vpn-clean-archive .vpn-sale-controls > summary:hover {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #000000;
}
body.vpn-clean-archive .vpn-sale-controls > summary:focus-visible {
	outline: 2px solid #62bed0;
	outline-offset: 3px;
}
body.vpn-clean-archive .vpn-sale-controls > summary .filter-icon {
	display: block;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.vpn-sale-panel {
	position: absolute;
	left: 0;
	top: calc(100% + 6px);
	z-index: 20;
	min-width: 270px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.vpn-sale-group-label {
	margin: 0 0 8px;
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #777;
}
.vpn-sale-group-label:not(:first-child) {
	margin-top: 14px;
}
.vpn-sale-panel .vpn-fumot-filter-bar {
	margin: 0;
}
.vpn-sale-sort {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
body.vpn-clean-archive .vpn-sale-count {
	margin: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	color: #555555;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.vpn-onsale-header {
		margin-bottom: 8px;
	}
	.vpn-onsale-title {
		font-size: 27px;
	}
	.vpn-onsale-desc {
		font-size: 14.5px;
	}
	.vpn-sale-panel {
		min-width: 0;
		width: min(340px, calc(100vw - 30px));
	}
}
