/*
 * Bustotaal winkelwagen en checkout, variant A: basis (stap 1, 13-11-2026)
 *
 * Wordt overal geladen, omdat het uitschuifpaneel op elke pagina kan openen.
 * Alles staat onder .bt (wrapper in de sjablonen) of heeft de prefix .bt- / --bt-,
 * zodat Shoptimizer en de rest van de site niet geraakt worden.
 * Onderdelen per stap komen in eigen bestanden: bt-paneel.css, bt-winkelwagen.css, bt-checkout.css.
 */

/* Lato lokaal, geen Google. Live laadt nu alleen 400; vet werd nagemaakt door de browser. */
@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/lato-400.woff2") format("woff2");
}

@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/lato-700.woff2") format("woff2");
}

@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("../fonts/lato-900.woff2") format("woff2");
}

:root {
	/* Kleuren */
	--bt-groen: #0b432a;
	--bt-groen-donker: #072d1c;
	--bt-groen-licht: #eef4f0;
	--bt-groen-band: #e3f0e7;
	--bt-groen-rand: #c9dbcf;
	--bt-oranje: #c43e00;
	--bt-oranje-donker: #a83500;
	--bt-tekst: #17241d;
	--bt-tekst-zacht: #58645d;
	--bt-rand: #7a8a80;
	--bt-lijn: #dfe4e1;
	--bt-lijn-licht: #edf0ee;
	--bt-vlak: #f7f8f6;
	--bt-achtergrond: #f4f5f2;
	--bt-fout: #a83500;
	--bt-fout-vlak: #f6e9e3;
	--bt-focus: #1f5fd6;

	/* Maten */
	--bt-radius: 3px;
	--bt-radius-knop: 3px;
	--bt-radius-kaart: 4px;
	--bt-tik: 44px; /* minimale tikdoel-hoogte */
	--bt-breedte: 1180px;
	--bt-overzicht: 380px;

	--bt-font: Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Wrapper */
.bt,
.bt * {
	box-sizing: border-box;
}

.bt {
	font-family: var(--bt-font);
	color: var(--bt-tekst);
	font-size: 15px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

.bt button,
.bt input,
.bt select,
.bt textarea {
	font-family: inherit;
	font-size: inherit;
}

/* Iconen (inline svg met class bt-ico) */
.bt .bt-ico {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

/* Focus */
.bt a:focus-visible,
.bt button:focus-visible,
.bt input:focus-visible,
.bt select:focus-visible,
.bt textarea:focus-visible,
.bt [tabindex="-1"]:focus-visible {
	outline: 3px solid var(--bt-focus);
	outline-offset: 2px;
}

.bt .bt-kop-groen a:focus-visible,
.bt .bt-kop-groen button:focus-visible,
.bt .bt-kop-groen [tabindex="-1"]:focus-visible {
	outline-color: #fff;
}

/* Alleen voor schermlezers */
.bt .bt-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Kaart */
.bt .bt-kaart {
	background: #fff;
	border: 1px solid var(--bt-lijn);
	border-radius: var(--bt-radius-kaart);
	padding: 24px 26px;
	margin-bottom: 18px;
}

@media (max-width: 640px) {
	.bt .bt-kaart {
		border-radius: 4px;
		padding: 16px;
		margin-bottom: 12px;
	}
}

/* Hoofdknop (oranje) */
.bt .bt-knop {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	width: 100%;
	padding: 0 18px;
	border: 0;
	border-radius: var(--bt-radius-knop);
	background: var(--bt-oranje);
	color: #fff;
	font-weight: 700;
	font-size: 17px;
	text-decoration: none;
	cursor: pointer;
}

.bt .bt-knop:hover,
.bt .bt-knop:focus {
	background: var(--bt-oranje-donker);
	color: #fff;
}

/* Tweede knop (omlijnd) */
.bt .bt-knop2 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	width: 100%;
	border: 1px solid var(--bt-rand);
	border-radius: var(--bt-radius-knop);
	background: #fff;
	color: var(--bt-groen);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
}

.bt .bt-knop2:hover,
.bt .bt-knop2:focus {
	background: var(--bt-groen-licht);
	border-color: var(--bt-groen);
	color: var(--bt-groen);
}

/* Kleine knop met groene rand ("+ Toevoegen") */
.bt .bt-plusknop {
	min-height: var(--bt-tik);
	padding: 0 14px;
	border: 1px solid var(--bt-groen);
	border-radius: var(--bt-radius);
	background: #fff;
	color: var(--bt-groen);
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	cursor: pointer;
}

.bt .bt-plusknop:hover,
.bt .bt-plusknop:focus {
	background: var(--bt-groen-licht);
	color: var(--bt-groen);
}

/* Link als knop ("Ongedaan maken", "Aanpassen") */
.bt .bt-linkknop {
	flex: none;
	min-height: var(--bt-tik);
	padding: 0 2px;
	border: 0;
	background: none;
	color: var(--bt-groen);
	font-weight: 700;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

/* Aantal kiezen (min / aantal / plus) */
.bt .bt-stepper {
	display: flex;
	align-items: center;
	height: var(--bt-tik);
	border: 1px solid var(--bt-rand);
	border-radius: var(--bt-radius);
	background: #fff;
}

.bt .bt-stepknop {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: none;
	color: var(--bt-groen);
	cursor: pointer;
}

.bt .bt-stepknop:hover {
	background: var(--bt-groen-licht);
}

.bt .bt-stepknop:disabled {
	background: none;
	color: #a3aca6;
	cursor: default;
}

/* Verwijderknop (prullenbak) */
.bt .bt-weg {
	display: grid;
	place-items: center;
	width: var(--bt-tik);
	height: var(--bt-tik);
	padding: 0;
	border: 0;
	border-radius: var(--bt-radius);
	background: none;
	color: var(--bt-tekst-zacht);
	cursor: pointer;
}

.bt .bt-weg:hover {
	background: var(--bt-fout-vlak);
	color: var(--bt-fout);
}

/* Label "Vaak meebesteld" e.d. */
.bt .bt-klein-kop {
	display: block;
	color: var(--bt-tekst-zacht);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* Beweging verminderen */
@media (prefers-reduced-motion: reduce) {
	.bt *,
	.bt *::before,
	.bt *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Focus op uitklapregels (details/summary) */
.bt summary:focus-visible,
.bt-uitklap > summary:focus-visible {
	outline: 3px solid var(--bt-focus);
	outline-offset: 2px;
}

.bt .bt-stepknop {
	width: var(--bt-tik);
	height: var(--bt-tik);
}

/* ---- Meldingen van WooCommerce boven winkelwagen en afrekenen (18-11-2026) ---- */
/* De meldingen staan buiten de pagina-kolom: op dezelfde breedte zetten en in de huiskleuren (rustig groen, geen felgroene balk). */
body.woocommerce-cart .woocommerce-notices-wrapper,
body.woocommerce-checkout .woocommerce-notices-wrapper {
	box-sizing: border-box;
	max-width: var(--bt-breedte);
	margin: 0 auto;
	padding: 0 24px;
}

body.woocommerce-cart .woocommerce-notices-wrapper:not(:empty),
body.woocommerce-checkout .woocommerce-notices-wrapper:not(:empty) {
	margin-bottom: 0;
	padding-bottom: 16px;
}

body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-message,
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-info,
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-error,
body.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-message,
body.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-info,
body.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	width: auto;
	margin: 0 0 8px;
	padding: 12px 16px;
	border: 1px solid var(--bt-groen-rand);
	border-radius: var(--bt-radius);
	background: var(--bt-groen-band);
	box-shadow: none;
	color: var(--bt-tekst);
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.45;
	list-style: none;
}

body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-message::before,
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-info::before,
body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-error::before,
body.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-message::before,
body.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-info::before,
body.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-error::before {
	display: none;
}

body.woocommerce-cart .woocommerce-notices-wrapper > .woocommerce-error,
body.woocommerce-checkout .woocommerce-notices-wrapper > .woocommerce-error {
	border-color: var(--bt-fout);
	background: var(--bt-fout-vlak);
}

body.woocommerce-cart .woocommerce-notices-wrapper a,
body.woocommerce-checkout .woocommerce-notices-wrapper a {
	color: var(--bt-groen);
	font-weight: 700;
	text-decoration: underline;
}

body.woocommerce-cart .woocommerce-notices-wrapper a.button,
body.woocommerce-checkout .woocommerce-notices-wrapper a.button {
	order: 2;
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

@media (max-width: 640px) {
	body.woocommerce-cart .woocommerce-notices-wrapper,
	body.woocommerce-checkout .woocommerce-notices-wrapper {
		padding-left: 12px;
		padding-right: 12px;
	}
}
