/**
 * Header VAT toggle switch.
 *
 * The state comes from the bb-vat-incl / bb-vat-excl class on <html> (set in
 * <head> before the first paint), not from server markup: cached pages are
 * the same for every visitor.
 */
.bb-vat-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
	vertical-align: middle;
}

.bb-vat-toggle__opt {
	color: #999;
	font-weight: 500;
	cursor: pointer;
	transition: color 0.2s ease;
}

.bb-vat-incl .bb-vat-toggle__opt--incl,
.bb-vat-excl .bb-vat-toggle__opt--excl {
	color: var(--bb-red, #b01e22);
	font-weight: 700;
}

.bb-vat-toggle__switch {
	position: relative;
	width: 40px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--bb-red, #b01e22);
	cursor: pointer;
	flex: 0 0 auto;
	transition: background 0.2s ease;
	min-height: unset;
	margin-right: unset;
}

.bb-vat-toggle__knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease;
}

/* "incl." — knob to the right (aria-checked="true" on the switch) */
.bb-vat-incl .bb-vat-toggle__knob {
	transform: translateX(18px);
}

.bb-vat-toggle__switch:focus-visible {
	outline: 2px solid var(--bb-red-light, #c93a3e);
	outline-offset: 2px;
}
