:root {
	--nwt-rail-width: 56px;
	--nwt-rail-open: 220px;
	--nwt-line: #e2e2e0;
	--nwt-ink: #1a1a18;
	--nwt-muted: #6b6b65;
}

/* De balk staat vast links en schuift niet mee met de pagina. Omdat hij
   position: fixed is, valt hij buiten de normale opmaakstroom, dus de inhoud
   krijgt links een marge ter breedte van de balk. */

.nwt-rail {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 999;
	width: var(--nwt-rail-width);
	background: #fff;
	border-right: 1px solid var(--nwt-line);
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 0;
	overflow: hidden;
	transition: width 0.18s ease;
}

.nwt-rail.is-open {
	width: var(--nwt-rail-open);
	box-shadow: 2px 0 12px rgba(0, 0, 0, 0.06);
}

.nwt-rail__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--nwt-rail-width);
	height: 44px;
	flex: 0 0 auto;
	border: 0;
	background: none;
	color: var(--nwt-muted);
	cursor: pointer;
}

.nwt-rail.is-open .nwt-rail__toggle svg {
	transform: rotate(180deg);
}

.nwt-rail__list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nwt-rail__link {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 44px;
	padding: 0 18px;
	color: var(--nwt-muted);
	text-decoration: none;
	white-space: nowrap;
}

.nwt-rail__link:hover,
.nwt-rail__link:focus-visible {
	color: var(--nwt-ink);
	background: #f4f4f2;
}

.nwt-rail__icon {
	flex: 0 0 20px;
	line-height: 0;
}

/* Het label bestaat altijd in de DOM, zodat schermlezers en toetsenbord het
   vinden. Ingeklapt is het alleen visueel weggeknepen, niet display: none. */
.nwt-rail__label {
	opacity: 0;
	transition: opacity 0.12s ease;
	font-size: 14px;
}

.nwt-rail.is-open .nwt-rail__label {
	opacity: 1;
}

.nwt-rail__link:focus-visible {
	outline: 2px solid var(--nwt-ink);
	outline-offset: -2px;
}

body.has-nwt-rail {
	padding-left: var(--nwt-rail-width);
}

/* Een sticky header binnen een body met padding-left rekent zijn breedte
   vanaf de viewport, niet vanaf de body. Zonder deze correctie steekt de
   header onder de balk door. */
body.has-nwt-rail .elementor-location-header {
	max-width: calc(100vw - var(--nwt-rail-width));
}

@media (max-width: 900px) {
	.nwt-rail {
		display: none;
	}

	body.has-nwt-rail {
		padding-left: 0;
	}

	body.has-nwt-rail .elementor-location-header {
		max-width: none;
	}
}

/* ------------------------------------------------------ sitetypografie -- */

body {
	color: var(--nwt-ink);
}

.woocommerce div.product .product_title {
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 500;
	margin-bottom: 4px;
}

.nwt-merklogo img {
	max-width: 140px;
	height: auto;
	margin-bottom: 8px;
}
