/* Fisher Stainless - Ex VAT / Inc VAT switch (see vqmod/xml/fisher_vat_switch.xml) */

/* Saved "Inc VAT" choice: hide prices until the script has swapped them (max 2.5s, see header.twig) */
html.vat-inc:not(.vat-ready) .product-thumb .price,
html.vat-inc:not(.vat-ready) .side-product .price,
html.vat-inc:not(.vat-ready) .side-product .price-tax,
html.vat-inc:not(.vat-ready) .product-price-group .price-wrapper {
	visibility: hidden;
}

/* ---------- Shared ---------- */
.fs-vat-switch {
	/* Journal sets pointer-events:none on .language-currency (it re-enables only its own dropdowns) */
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	font-family: "Inter Tight", sans-serif;   /* loaded weights: 500, 600, 700 */
	line-height: 1;
	white-space: nowrap;
}
.fs-vat-switch button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	font: inherit;
	cursor: pointer;
}
.fs-vat-switch button:focus { outline: none; }
.fs-vat-switch button:focus-visible {
	outline: 2px solid #B65217;
	outline-offset: 2px;
}

/* ---------- Desktop top bar: pill with a sliding orange thumb ---------- */
.desktop-currency-wrapper .fs-vat-switch {
	margin: 0 12px;
	gap: 9px;
	font-size: 11.5px;
	letter-spacing: .02em;
}
.desktop-currency-wrapper .fs-vat-label {
	color: #c9cbcf;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 11px;
}
.desktop-currency-wrapper .fs-vat-track {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 2px;
	border-radius: 999px;
	background: #2a2b2e;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.desktop-currency-wrapper .fs-vat-track::before {
	content: "";
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: 2px;
	width: calc(50% - 2px);
	border-radius: 999px;
	background: #B65217;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
	transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}
html.vat-inc .desktop-currency-wrapper .fs-vat-track::before {
	transform: translateX(100%);
}
.desktop-currency-wrapper .fs-vat-switch button {
	position: relative;           /* above the thumb */
	z-index: 1;
	padding: 5px 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-weight: 600;
	color: #9fa2a7 !important;    /* Journal's top-bar hover rule would turn text orange */
	transition: color .2s;
}
.desktop-currency-wrapper .fs-vat-switch button:hover {
	color: #f3f3f6 !important;
}
/* Active label follows the html class, so it's right from first paint (before the script runs) */
html:not(.vat-inc) .desktop-currency-wrapper .fs-vat-switch button[data-fs-vat="ex"],
html.vat-inc .desktop-currency-wrapper .fs-vat-switch button[data-fs-vat="inc"] {
	color: #fff !important;
	cursor: default;
}
@media (prefers-reduced-motion: reduce) {
	.desktop-currency-wrapper .fs-vat-track::before { transition: none; }
}

/* ---------- Phone off-canvas menu header (unchanged look) ---------- */
.mobile-currency-wrapper .fs-vat-switch {
	color: #5a5e60;
	font-size: 13px;
}
.mobile-currency-wrapper .fs-vat-label {
	margin-right: 8px;
	font-weight: 500;
	opacity: .8;
}
.mobile-currency-wrapper .fs-vat-track {
	display: inline-flex;
}
.mobile-currency-wrapper .fs-vat-switch button {
	padding: 7px 11px;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit !important;
	font-weight: 500;
	opacity: .75;
}
.mobile-currency-wrapper .fs-vat-switch button + button { border-left-width: 0; }
.mobile-currency-wrapper .fs-vat-switch button:first-of-type { border-radius: 3px 0 0 3px; }
.mobile-currency-wrapper .fs-vat-switch button:last-of-type  { border-radius: 0 3px 3px 0; }
.mobile-currency-wrapper .fs-vat-switch button[aria-pressed="true"] {
	background: #B65217;
	border-color: #B65217;
	color: #fff !important;
	opacity: 1;
	cursor: default;
}
