/* BiondaLogisch bestelmandje. Gebruikt de kleuren uit het thema, met eigen reservekleuren. */

.blb-producten {
	--blb-groen: var(--wp--preset--color--groen, #48744e);
	--blb-donker: var(--wp--preset--color--donkergroen, #1f3d2b);
	--blb-creme: var(--wp--preset--color--creme, #f3eedc);
	--blb-wit: var(--wp--preset--color--wit, #fffdf6);
	--blb-lijn: var(--wp--preset--color--lijn, #d9d1ba);
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 1rem;
}

.blb-product {
	display: flex;
	flex-direction: column;
	background: var(--blb-wit);
	border: 1px solid var(--blb-lijn);
	border-radius: 12px;
	overflow: hidden;
}

.blb-product__foto img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	height: auto;
}

.blb-product__tekst {
	padding: 1rem 1rem 0.5rem;
	flex: 1;
}

.blb-product__naam {
	margin: 0 0 0.25rem;
	font-size: var(--wp--preset--font-size--large, 1.35rem);
}

.blb-product__prijs {
	margin: 0;
	font-weight: 600;
	color: var(--blb-donker);
}

.blb-product__prijs span {
	font-weight: 400;
}

.blb-product__prijs del {
	font-weight: 400;
	opacity: 0.75;
	margin-right: 0.25rem;
}

.blb-product__prijs ins {
	text-decoration: none;
}

.blb-product__actie {
	display: inline-block;
	margin: 0.4rem 0 0;
	padding: 0.1rem 0.6rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	background: var(--wp--preset--color--donkergroen, #1f3d2b);
	color: var(--wp--preset--color--creme, #f3eedc);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.blb-product__stuk {
	margin: 0.15rem 0 0;
	font-size: var(--wp--preset--font-size--small, 0.95rem);
}

.blb-regel-gewicht {
	font-weight: 400;
	white-space: nowrap;
}

.blb-product__uitleg {
	margin: 0.5rem 0 0;
	font-size: var(--wp--preset--font-size--small, 0.95rem);
}

.blb-product__status {
	display: inline-block;
	margin: 0.5rem 0 0;
	padding: 0.1rem 0.6rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 500;
	background: var(--wp--preset--color--lichtgroen, #b7cfaf);
	color: var(--blb-donker);
}

/* Foto is een knop (op de telefoon groter te tikken); op de computer gewoon een foto bovenaan de kaart. */
.blb-product__foto {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: default;
}

/* Telefoon: elk product als compacte regel. Kleine foto links (als die er is), naam en prijs, teller rechts,
   en de beschrijving eronder over de volle breedte. */
@media (max-width: 600px) {
	.blb-producten {
		gap: 0.6rem;
	}

	/* minmax(0, 1fr): de naamkolom mag smaller worden dan het langste woord, anders duwt hij de teller uit de kaart. */
	.blb-product {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 0.75rem;
		align-items: center;
		padding: 0.75rem 0.75rem 0.85rem 1rem;
	}

	.blb-product:has(.blb-product__foto) {
		grid-template-columns: 64px minmax(0, 1fr) auto;
		padding-left: 0.75rem;
	}

	.blb-product .blb-product__naam {
		overflow-wrap: anywhere;
	}

	.blb-product .blb-teller__aantal {
		min-width: 3rem;
	}

	.blb-product .blb-teller button {
		width: 40px;
		height: 40px;
	}

	.blb-product .blb-product__tekst {
		display: contents;
	}

	/* -3 / -2 = de kolom voor de teller, of er nu een foto is of niet. */
	.blb-product .blb-product__naam {
		grid-column: -3 / -2;
		grid-row: 1;
		margin: 0;
		font-size: 1.15rem;
	}

	.blb-product .blb-product__prijs {
		grid-column: -3 / -2;
		grid-row: 2;
	}

	.blb-product .blb-teller {
		grid-column: -2 / -1;
		grid-row: 1 / span 2;
		margin: 0;
	}

	.blb-product .blb-product__foto {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: 64px;
		height: 64px;
		border-radius: 8px;
		overflow: hidden;
		cursor: zoom-in;
	}

	.blb-product .blb-product__foto img {
		width: 64px;
		height: 64px;
		aspect-ratio: 1;
	}

	.blb-product .blb-product__stuk,
	.blb-product .blb-product__actie,
	.blb-product .blb-product__uitleg,
	.blb-product .blb-product__status {
		grid-column: 1 / -1;
		justify-self: start;
	}

	/* Foto aangetikt: groot over de volle breedte bovenaan. */
	.blb-product.is-foto-groot .blb-product__foto {
		grid-column: 1 / -1;
		grid-row: 1;
		width: 100%;
		height: auto;
		margin-bottom: 0.75rem;
		cursor: zoom-out;
	}

	.blb-product.is-foto-groot .blb-product__foto img {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.blb-product.is-foto-groot .blb-product__naam {
		grid-row: 2;
	}

	.blb-product.is-foto-groot .blb-product__prijs {
		grid-row: 3;
	}

	.blb-product.is-foto-groot .blb-teller {
		grid-row: 2 / span 2;
	}

	.blb-product:not(:has(.blb-product__foto)) .blb-teller__aantal {
		min-width: 3.5rem;
	}
}

.blb-product.is-uitverkocht {
	opacity: 0.7;
}

.blb-product.is-uitverkocht .blb-product__status {
	background: var(--blb-lijn);
}

/* Winkel: alle categorieën op één pagina */
.blb-categorieen {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 20;
	margin: 0 calc(-1 * var(--wp--style--root--padding-left, 1rem)) 1rem;
	padding: 0.6rem var(--wp--style--root--padding-left, 1rem);
	background: var(--wp--preset--color--creme, #f3eedc);
	border-bottom: 1px solid var(--wp--preset--color--lijn, #d9d1ba);
}

.blb-categorieen ul {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.blb-categorieen ul::-webkit-scrollbar {
	display: none;
}

.blb-categorieen a {
	display: inline-block;
	white-space: nowrap;
	padding: 0.5rem 1rem;
	min-height: 44px;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--groen, #48744e);
	border-radius: 999px;
	color: var(--wp--preset--color--groen, #48744e);
	text-decoration: none;
	font-weight: 500;
	line-height: 1.6;
}

.blb-categorieen a:hover,
.blb-categorieen a.is-actief {
	background: var(--wp--preset--color--groen, #48744e);
	color: var(--wp--preset--color--creme, #f3eedc);
}

.blb-categorie {
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 72px);
	margin-bottom: var(--wp--preset--spacing--50, 2.5rem);
}

.blb-categorie > h2 {
	margin-bottom: 0.75rem;
}

.blb-categorie--sub {
	margin-top: var(--wp--preset--spacing--40, 1.5rem);
	margin-bottom: var(--wp--preset--spacing--40, 1.5rem);
}

.blb-categorie--sub > h3 {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--large, 1.35rem);
}

/* Label "Nieuw" */
.blb-nieuw {
	display: inline-block;
	vertical-align: middle;
	margin-left: 0.35rem;
	padding: 0.05rem 0.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--groen, #48744e);
	color: var(--wp--preset--color--creme, #f3eedc);
	font-family: var(--wp--preset--font-family--jost, sans-serif);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.5;
}

/* Pakket van de maand */
.blb-pakket {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: var(--wp--preset--spacing--40, 1.5rem);
	align-items: center;
	margin: var(--wp--preset--spacing--50, 2.5rem) 0;
	padding: var(--wp--preset--spacing--40, 1.5rem);
	border-radius: 12px;
	background: var(--wp--preset--color--wit, #fffdf6);
	border: 2px solid var(--wp--preset--color--groen, #48744e);
}

.blb-pakket:not(:has(.blb-pakket__foto)) {
	grid-template-columns: 1fr;
}

.blb-pakket__foto img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
}

.blb-pakket__label {
	display: inline-block;
	margin: 0 0 0.4rem;
	padding: 0.1rem 0.7rem;
	border-radius: 999px;
	background: var(--wp--preset--color--groen, #48744e);
	color: var(--wp--preset--color--creme, #f3eedc);
	font-size: 0.85rem;
	font-weight: 600;
}

.blb-pakket h2 {
	margin: 0 0 0.5rem;
}

.blb-pakket__prijs del {
	opacity: 0.7;
	margin-right: 0.3rem;
}

@media (max-width: 700px) {
	.blb-pakket {
		grid-template-columns: 1fr;
	}
}

/* Aanbiedingsblok in de kleuren van het seizoen (goedgekeurd door Bion, 27-09-2026).
   De kaartjes zelf zijn altijd crème met donkere tekst, zodat alles goed leesbaar blijft. */
.blb-aanbieding {
	--blb-a-bg: #1f3d2b;
	--blb-a-tekst: #f3eedc;
	--blb-a-label-bg: #b7cfaf;
	--blb-a-label: #1f3d2b;
	margin: var(--wp--preset--spacing--40, 1.5rem) 0 var(--wp--preset--spacing--50, 2.5rem);
	padding: 1.25rem;
	border-radius: 16px;
	background: var(--blb-a-bg);
	color: var(--blb-a-tekst);
}

.blb-aanbieding--lente {
	--blb-a-bg: #dde8d3;
	--blb-a-tekst: #1f3d2b;
	--blb-a-label-bg: #48744e;
	--blb-a-label: #f3eedc;
}

.blb-aanbieding--zomer {
	--blb-a-bg: #f1dc9c;
	--blb-a-tekst: #1f3d2b;
	--blb-a-label-bg: #1f3d2b;
	--blb-a-label: #f1dc9c;
}

.blb-aanbieding--herfst {
	--blb-a-bg: #a34f28;
	--blb-a-tekst: #f3eedc;
	--blb-a-label-bg: #f3eedc;
	--blb-a-label: #7a3a1c;
}

.blb-aanbieding--winter {
	--blb-a-bg: #1f3d2b;
	--blb-a-tekst: #f3eedc;
	--blb-a-label-bg: #b7cfaf;
	--blb-a-label: #1f3d2b;
}

.blb-aanbieding .blb-aanbieding__label {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.25rem 0.9rem;
	border-radius: 999px;
	background: var(--blb-a-label-bg);
	color: var(--blb-a-label);
	font-family: var(--wp--preset--font-family--jost, sans-serif);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.5;
}

.blb-aanbieding__lijst {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.blb-aanbieding__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 0.9rem;
	align-content: start;
	padding: 0.9rem;
	border-radius: 12px;
	background: var(--wp--preset--color--creme, #f3eedc);
	color: var(--wp--preset--color--donkergroen, #1f3d2b);
}

.blb-aanbieding__item:has(.blb-aanbieding__foto) {
	grid-template-columns: 96px minmax(0, 1fr);
}

.blb-aanbieding__foto img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 8px;
}

.blb-aanbieding .blb-aanbieding__naam {
	margin: 0 0 0.2rem;
	font-size: var(--wp--preset--font-size--large, 1.35rem);
	line-height: 1.2;
	color: inherit;
}

.blb-aanbieding__prijs {
	margin: 0;
	font-weight: 600;
}

.blb-aanbieding__prijs del {
	font-weight: 400;
	opacity: 0.75;
	margin-right: 0.25rem;
}

.blb-aanbieding__prijs ins {
	text-decoration: none;
	font-size: 1.15em;
}

.blb-aanbieding__prijs span {
	font-weight: 400;
}

.blb-aanbieding__stuk {
	margin: 0.1rem 0 0;
	font-size: var(--wp--preset--font-size--small, 0.95rem);
}

.blb-aanbieding__tot {
	display: inline-block;
	margin: 0.4rem 0 0;
	padding: 0.05rem 0.6rem;
	border-radius: 999px;
	background: var(--blb-a-label-bg);
	color: var(--blb-a-label);
	font-size: 0.85rem;
	font-weight: 600;
}

.blb-aanbieding .blb-teller {
	grid-column: 1 / -1;
	margin: 0.75rem 0 0;
	background: var(--wp--preset--color--wit, #fffdf6);
}

/* Eén aanbieding op een breed scherm: alles op één regel, teller rechts. */
@media (min-width: 700px) {
	.blb-aanbieding__lijst:has(> :only-child) {
		grid-template-columns: minmax(0, 1fr);
	}

	.blb-aanbieding__item:only-child {
		grid-template-columns: minmax(0, 1fr) 240px;
		align-items: center;
		padding: 1rem 1.25rem;
	}

	.blb-aanbieding__item:only-child:has(.blb-aanbieding__foto) {
		grid-template-columns: 96px minmax(0, 1fr) 240px;
	}

	.blb-aanbieding__item:only-child .blb-teller {
		grid-column: auto;
		margin: 0;
	}
}

/* Recept: aantal personen */
.blb-personen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin: 0.5rem 0 1rem;
}

.blb-personen[hidden] {
	display: none;
}

.blb-personen__label {
	font-weight: 600;
}

.blb-personen__teller {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 3px;
	border: 1px solid var(--wp--preset--color--groen, #48744e);
	border-radius: 999px;
	background: var(--wp--preset--color--wit, #fffdf6);
}

.blb-personen__teller button {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--groen, #48744e);
	color: var(--wp--preset--color--creme, #f3eedc);
	font: inherit;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

.blb-personen__teller button:hover {
	background: var(--wp--preset--color--donkergroen, #1f3d2b);
}

.blb-personen__teller button[aria-disabled="true"] {
	background: var(--wp--preset--color--lijn, #d9d1ba);
	color: var(--wp--preset--color--donkergroen, #1f3d2b);
	opacity: 0.6;
	cursor: default;
}

.blb-personen__aantal {
	min-width: 2.5rem;
	text-align: center;
	font-weight: 600;
	font-size: 1.1rem;
}

/* Onder een recept: het vlees voor dit recept */
.blb-recept-bestellen {
	margin: var(--wp--preset--spacing--50, 2.5rem) 0;
	padding: var(--wp--preset--spacing--40, 1.5rem);
	border-radius: 12px;
	background: var(--wp--preset--color--wit, #fffdf6);
	border: 2px solid var(--wp--preset--color--groen, #48744e);
}

.blb-recept-bestellen h2 {
	margin: 0 0 0.75rem;
}

.blb-recept-bestellen__lijst {
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.blb-recept-bestellen__lijst li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--wp--preset--color--lijn, #d9d1ba);
}

.blb-recept-bestellen__naam {
	font-weight: 600;
}

.blb-recept-bestellen .blb-product__actie {
	margin: 0;
}

.blb-recept-knop {
	cursor: pointer;
	border: 0;
}

.blb-recept-melding[hidden] {
	display: none;
}

.blb-recept-melding {
	margin: 0.75rem 0 0;
	font-weight: 500;
}

/* Tegels "In de winkel" */
.blb-tegels {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.blb-tegel a {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 12px;
	background: var(--wp--preset--color--groen, #48744e);
	color: var(--wp--preset--color--creme, #f3eedc);
	text-decoration: none;
}

.blb-tegel img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.blb-tegel a:hover img {
	transform: scale(1.04);
}

.blb-tegel__naam {
	position: relative;
	width: 100%;
	padding: 1.5rem 0.9rem 0.7rem;
	background: linear-gradient(to top, rgba(31, 61, 43, 0.92), rgba(31, 61, 43, 0));
	font-family: var(--wp--preset--font-family--dm-serif-display, serif);
	font-size: 1.3rem;
	line-height: 1.15;
}

.blb-tegel--zonder-foto .blb-tegel__naam {
	background: none;
}

.blb-tegel .blb-nieuw {
	background: var(--wp--preset--color--creme, #f3eedc);
	color: var(--wp--preset--color--donkergroen, #1f3d2b);
}

.blb-tegel a:focus-visible {
	outline: 3px solid var(--wp--preset--color--groen, #48744e);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.blb-winkel) {
		scroll-behavior: smooth;
	}
}

/* Teller met + en − */
.blb-teller {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0.5rem 1rem 1rem;
	border: 1px solid var(--blb-lijn, #d9d1ba);
	border-radius: 999px;
	padding: 3px;
	background: var(--blb-creme, #f3eedc);
}

.blb-teller.is-gekozen {
	border-color: var(--blb-groen, #48744e);
}

.blb-teller button {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: var(--blb-groen, #48744e);
	color: var(--blb-creme, #f3eedc);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	font-family: inherit;
}

.blb-teller button:hover {
	background: var(--blb-donker, #1f3d2b);
}

.blb-teller button:disabled {
	background: var(--blb-lijn, #d9d1ba);
	color: var(--blb-donker, #1f3d2b);
	cursor: default;
	opacity: 0.6;
}

.blb-teller__aantal {
	min-width: 4.5rem;
	text-align: center;
	font-weight: 600;
}

/* Cadeaubon naar keuze: bedrag zelf intypen */
.blb-teller__euro {
	font-weight: 600;
	margin-right: -0.4rem;
}

.blb-teller__invoer {
	width: 4.2rem;
	padding: 0.35rem 0.3rem;
	border: 1px solid var(--blb-lijn, #d9d1ba);
	border-radius: 8px;
	background: var(--wp--preset--color--wit, #fffdf6);
	font: inherit;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
}

.blb-teller__invoer::-webkit-outer-spin-button,
.blb-teller__invoer::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.blb-keuze:has(input:disabled) {
	opacity: 0.55;
	cursor: not-allowed;
}

.blb-teller--klein {
	margin: 0;
	display: inline-flex;
}

.blb-teller--klein button {
	width: 36px;
	height: 36px;
	font-size: 1.2rem;
}

.blb-teller--klein .blb-teller__aantal {
	min-width: 3.5rem;
}

/* Balk onderaan */
.blb-balk {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
	background: var(--wp--preset--color--donkergroen, #1f3d2b);
	color: var(--wp--preset--color--creme, #f3eedc);
	box-shadow: 0 -4px 16px rgba(31, 61, 43, 0.2);
}

.blb-balk[hidden] {
	display: none;
}

.blb-balk__tekst {
	margin: 0;
	font-weight: 500;
}

.blb-balk .blb-balk__knop {
	flex: 0 0 auto;
	background: var(--wp--preset--color--creme, #f3eedc);
	color: var(--wp--preset--color--donkergroen, #1f3d2b);
	text-decoration: none;
}

.blb-balk .blb-balk__knop:hover {
	background: var(--wp--preset--color--lichtgroen, #b7cfaf);
	color: var(--wp--preset--color--donkergroen, #1f3d2b);
}

body.blb-heeft-balk {
	padding-bottom: 76px;
}

@media (min-width: 782px) {
	.blb-balk {
		left: auto;
		right: 1.5rem;
		bottom: 1.5rem;
		border-radius: 12px;
		padding: 0.75rem 0.75rem 0.75rem 1.25rem;
	}

	body.blb-heeft-balk {
		padding-bottom: 0;
	}
}

/* Afronden */
.blb-tabel {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
}

.blb-tabel th,
.blb-tabel td {
	padding: 0.6rem 0.4rem;
	border-bottom: 1px solid var(--wp--preset--color--lijn, #d9d1ba);
	text-align: left;
	vertical-align: middle;
}

.blb-tabel thead th {
	font-size: 0.9rem;
	font-weight: 500;
}

.blb-tabel tfoot th,
.blb-tabel tfoot td {
	font-weight: 600;
	border-bottom: 0;
}

.blb-tabel .blb-rechts {
	text-align: right;
	white-space: nowrap;
}

@media (max-width: 520px) {
	.blb-tabel,
	.blb-tabel tbody,
	.blb-tabel tfoot {
		display: block;
	}

	.blb-tabel tfoot tr {
		display: flex;
		justify-content: space-between;
		padding-top: 0.6rem;
	}

	.blb-tabel tfoot th,
	.blb-tabel tfoot td {
		padding: 0;
	}

	.blb-tabel thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.blb-tabel tbody tr {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 0.4rem 0.75rem;
		padding: 0.6rem 0;
		border-bottom: 1px solid var(--wp--preset--color--lijn, #d9d1ba);
	}

	.blb-tabel tbody td {
		border: 0;
		padding: 0;
	}

	.blb-tabel tbody td:first-child {
		grid-column: 1 / -1;
		font-weight: 500;
	}
}

.blb-formulier[hidden] {
	display: none;
}

.blb-veld label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.3rem;
}

.blb-optioneel {
	font-weight: 400;
	font-size: 0.9rem;
}

.blb-veld input,
.blb-veld select,
.blb-veld textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.8rem;
	font: inherit;
	color: inherit;
	background: var(--wp--preset--color--wit, #fffdf6);
	border: 1px solid #8a8570;
	border-radius: 8px;
}

.blb-veld input:focus-visible,
.blb-veld select:focus-visible,
.blb-veld textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--groen, #48744e);
	outline-offset: 1px;
}

/* Afhalen of bezorgen */
.blb-levering {
	border: 0;
	margin: 1.25rem 0 0.5rem;
	padding: 0;
}

.blb-levering legend {
	font-weight: 500;
	margin-bottom: 0.4rem;
	padding: 0;
}

.blb-keuze {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.75rem 0.9rem;
	margin-bottom: 0.5rem;
	border: 1px solid var(--wp--preset--color--lijn, #d9d1ba);
	border-radius: 10px;
	background: var(--wp--preset--color--wit, #fffdf6);
	cursor: pointer;
}

.blb-keuze:has(input:checked) {
	border-color: var(--wp--preset--color--groen, #48744e);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--groen, #48744e);
}

.blb-keuze input {
	width: 1.2rem;
	height: 1.2rem;
	margin-top: 0.2rem;
	accent-color: var(--wp--preset--color--groen, #48744e);
	flex: 0 0 auto;
}

/* Datumprikker: dagen als knoppen in een rij, dan de tijdvakken van die dag */
.blb-prikker {
	border: 0;
	margin: 0.75rem 0 1rem;
	padding: 0;
	min-width: 0;
}

.blb-prikker legend {
	font-weight: 500;
	margin-bottom: 0.5rem;
	padding: 0;
}

/* Datumvak met uitklapbare kalender (wens Bion: zelf typen of kiezen, beschikbare dagen gekleurd). */
.blb-kalenderveld[hidden],
.blb-kalender[hidden],
.blb-datum-melding[hidden],
.blb-vakken[hidden] {
	display: none;
}

.blb-datum-label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.95rem;
}

.blb-datumveld {
	display: flex;
	gap: 0.4rem;
	max-width: 22rem;
}

.blb-datumveld input {
	flex: 1;
	min-width: 0;
	box-sizing: border-box;
	padding: 0.7rem 0.8rem;
	font: inherit;
	color: inherit;
	background: var(--wp--preset--color--wit, #fffdf6);
	border: 1px solid #8a8570;
	border-radius: 8px;
}

.blb-kalender-knop {
	flex: 0 0 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: var(--wp--preset--color--groen, #48744e);
	color: var(--wp--preset--color--creme, #f3eedc);
	cursor: pointer;
}

.blb-kalender-knop:hover,
.blb-kalender-knop[aria-expanded="true"] {
	background: var(--wp--preset--color--donkergroen, #1f3d2b);
}

.blb-datumveld input:focus-visible,
.blb-kalender-knop:focus-visible,
.blb-kalender button:focus-visible,
.blb-andere-dag:focus-visible {
	outline: 3px solid var(--wp--preset--color--groen, #48744e);
	outline-offset: 2px;
}

.blb-datumveld input:disabled,
.blb-kalender-knop:disabled {
	opacity: 0.55;
}

.blb-datumveld + .blb-uitleg {
	margin: 0.35rem 0 0;
}

.blb-datum-melding {
	margin: 0.5rem 0 0;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	background: #fbeaea;
	color: #5c1414;
	font-size: var(--wp--preset--font-size--small, 0.95rem);
}

.blb-kalender {
	max-width: 22rem;
	margin-top: 0.5rem;
	padding: 0.75rem;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--lijn, #d9d1ba);
	border-radius: 12px;
	background: var(--wp--preset--color--wit, #fffdf6);
}

.blb-kalender__kop {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.4rem;
}

.blb-kalender__maand {
	font-weight: 600;
}

.blb-kalender__pijl {
	width: 40px;
	height: 40px;
	border: 1px solid var(--wp--preset--color--groen, #48744e);
	border-radius: 999px;
	background: var(--wp--preset--color--wit, #fffdf6);
	color: var(--wp--preset--color--groen, #48744e);
	font: inherit;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

.blb-kalender__pijl:disabled {
	opacity: 0.35;
	cursor: default;
}

.blb-kalender__raster {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 3px;
	text-align: center;
}

.blb-kalender__wd {
	padding: 0.2rem 0;
	font-size: 0.8rem;
	color: #5f5e5a;
}

.blb-kalender__dag {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	max-height: 44px;
	margin: 0 auto;
	width: 100%;
	max-width: 44px;
	border: 0;
	border-radius: 999px;
	background: none;
	font: inherit;
	font-size: 0.95rem;
	color: #8a8570;
}

.blb-kalender__dag.is-kan {
	background: var(--wp--preset--color--lichtgroen, #b7cfaf);
	color: var(--wp--preset--color--donkergroen, #1f3d2b);
	font-weight: 600;
	cursor: pointer;
}

.blb-kalender__dag.is-kan:hover {
	background: #9fbf95;
}

.blb-kalender__dag.is-gekozen,
.blb-kalender__dag.is-gekozen:hover {
	background: var(--wp--preset--color--donkergroen, #1f3d2b);
	color: var(--wp--preset--color--creme, #f3eedc);
}

.blb-kalender__uitleg {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	margin: 0.6rem 0 0;
	font-size: 0.8rem;
	color: #5f5e5a;
}

.blb-kalender__uitleg span::before {
	content: "";
	display: inline-block;
	width: 0.7rem;
	height: 0.7rem;
	margin-right: 0.35rem;
	border-radius: 999px;
	vertical-align: -0.05rem;
	background: var(--wp--preset--color--lichtgroen, #b7cfaf);
}

.blb-kalender__uitleg .is-gekozen::before {
	background: var(--wp--preset--color--donkergroen, #1f3d2b);
}

.blb-andere-dag {
	display: inline-block;
	margin: 0.6rem 0 0.25rem;
	padding: 0.25rem 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--groen, #48744e);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.blb-prikker.is-js .blb-vakken {
	margin-top: 0.9rem;
}

.blb-vak {
	position: relative;
	cursor: pointer;
}

/* Het rondje zelf is onzichtbaar; het hele vakje is de knop. */
.blb-vak input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.blb-vakken {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.blb-vakken__dag {
	grid-column: 1 / -1;
	margin: 0.5rem 0 0;
	font-weight: 500;
}

/* Met JavaScript staat de dag al in de knoppenrij. */
.blb-prikker.is-js .blb-vakken__dag {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.blb-vak > span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.4rem 0.6rem;
	box-sizing: border-box;
	text-align: center;
	border: 1px solid #8a8570;
	border-radius: 10px;
	background: var(--wp--preset--color--wit, #fffdf6);
	font-weight: 500;
}

.blb-vak--afspraak {
	grid-column: 1 / -1;
}

.blb-vak input:checked + span {
	border-color: var(--wp--preset--color--groen, #48744e);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--groen, #48744e);
	background: var(--wp--preset--color--creme, #f3eedc);
}

.blb-vak.is-vol {
	cursor: not-allowed;
}

.blb-vak.is-vol span {
	opacity: 0.5;
	text-decoration: line-through;
}

.blb-vak.is-vol small {
	display: inline-block;
	margin-left: 0.25rem;
	text-decoration: none;
}

.blb-vak input:focus-visible + span {
	outline: 3px solid var(--wp--preset--color--groen, #48744e);
	outline-offset: 2px;
}

.blb-deel-afhalen[hidden],
.blb-deel-bezorgen[hidden] {
	display: none;
}

.blb-velden-rij {
	display: grid;
	grid-template-columns: 9rem 1fr;
	gap: 0 0.75rem;
}

@media (max-width: 420px) {
	.blb-velden-rij {
		grid-template-columns: 1fr;
	}
}

.blb-bezorginfo:empty {
	display: none;
}

.blb-bezorginfo {
	margin: 0.25rem 0 0.75rem;
	padding: 0.7rem 0.9rem;
	border-radius: 10px;
	background: var(--wp--preset--color--wit, #fffdf6);
	border: 1px solid var(--wp--preset--color--lijn, #d9d1ba);
}

.blb-bezorginfo.is-goed {
	border-color: var(--wp--preset--color--groen, #48744e);
}

.blb-bezorginfo.is-te-laag {
	border-color: #a33a3a;
	background: #fbeaea;
	color: #5c1414;
}

.blb-verstuur:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.blb-honing {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.blb-uitleg {
	font-size: var(--wp--preset--font-size--small, 0.95rem);
}

.blb-verstuur {
	width: 100%;
	cursor: pointer;
	border: 0;
}

@media (min-width: 600px) {
	.blb-verstuur {
		width: auto;
	}
}

.blb-melding {
	padding: 1rem 1.25rem;
	border-radius: 12px;
	margin-bottom: 1.5rem;
}

.blb-melding--goed {
	background: var(--wp--preset--color--wit, #fffdf6);
	border: 2px solid var(--wp--preset--color--groen, #48744e);
}

.blb-melding--fout {
	background: #fbeaea;
	border: 2px solid #a33a3a;
	color: #5c1414;
}
