/*
 * ToolPoint VAT Toggle. Which price shows is decided by a class on <html>;
 * the switch is themed with the --tpvat-* custom properties.
 */
.tpvat-excl { display: none; }
.tpvat-show-excl .tpvat-incl { display: none; }
.tpvat-show-excl .tpvat-excl { display: inline; }

:root {
	--tpvat-bg: rgba(127, 127, 127, .18);
	--tpvat-fg: inherit;
	--tpvat-on-bg: #1B5FAA;
	--tpvat-on-fg: #fff;
}

.tpvat-switch {
	display: inline-flex;
	align-items: stretch;
	padding: 3px;
	gap: 0;
	border: 0;
	border-radius: 999px;
	background: var(--tpvat-bg);
	color: var(--tpvat-fg);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
}
.tpvat-switch__opt {
	padding: 6px 10px;
	border-radius: 999px;
	transition: background-color .15s ease, color .15s ease;
}
.tpvat-show-incl .tpvat-switch__opt--incl,
.tpvat-show-excl .tpvat-switch__opt--excl {
	background: var(--tpvat-on-bg);
	color: var(--tpvat-on-fg);
}
.tpvat-switch:focus-visible { outline: 2px solid var(--tpvat-on-bg); outline-offset: 2px; }

.tpvat-float {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 90;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
	border-radius: 999px;
}
