/*
 * Winkelwagen-feedback op de cursuspagina (hoort bij inc/cart-feedback.php en assets/cart-feedback.js).
 * Huisstijl: navy #141E4A, groen #2CDA82. Contrast: wit op navy ca. 15:1, groen op navy ca. 8,5:1, navy op groen ca. 8,5:1.
 */
.ga-cfb-state {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 12px 0 0;
	color: #141E4A;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
}
.ga-cfb-state[hidden] { display: none; }
.ga-cfb-state__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #2CDA82;
	color: #141E4A;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}
.ga-cfb-state__text { flex: 1 1 auto; }
.ga-cfb-state a.ga-cfb-state__go,
.ga-cfb-state a.ga-cfb-state__go:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 16px;
	border-radius: 10px;
	background: #141E4A;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.ga-cfb-state a.ga-cfb-state__go:hover { background: #1f2c66; color: #fff; }
.ga-cfb-state a.ga-cfb-state__go:focus-visible { outline: 3px solid #141E4A; outline-offset: 2px; }
/* In de kopband staat de regel op de donkere achtergrond: lichte tekst, groene knop. */
.ga-pn-band .ga-cfb-state { color: #fff; }
.ga-pn-band .ga-cfb-state__text { flex: 0 1 auto; } /* knop direct naast de regel, niet tegen de rechterrand van de inleiding */
.ga-pn-band .ga-cfb-state a.ga-cfb-state__go,
.ga-pn-band .ga-cfb-state a.ga-cfb-state__go:visited { background: #2CDA82; color: #141E4A; }
.ga-pn-band .ga-cfb-state a.ga-cfb-state__go:hover { background: #4fe39a; color: #141E4A; }
.ga-pn-band .ga-cfb-state a.ga-cfb-state__go:focus-visible { outline-color: #fff; }

/* Header-icoon licht kort op na toevoegen. */
.ga-header-cart--bump .ga-header-cart__link { animation: ga-cfb-bump 1.2s ease-out 1; }
.ga-header-cart--bump .ga-header-cart__badge { animation: ga-cfb-badge 1.2s ease-out 1; }
@keyframes ga-cfb-bump {
	0% { background: rgba(44, 218, 130, 0); transform: scale(1); }
	20% { background: rgba(44, 218, 130, .35); transform: scale(1.12); }
	100% { background: rgba(44, 218, 130, 0); transform: scale(1); }
}
@keyframes ga-cfb-badge {
	0%, 100% { box-shadow: 0 0 0 0 rgba(44, 218, 130, 0); }
	25% { box-shadow: 0 0 0 6px rgba(44, 218, 130, .45); }
}

/* Melding rechtsonder. */
.ga-cfb-toast {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100000;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	box-sizing: border-box;
	max-width: min(420px, calc(100vw - 32px));
	padding: 14px 44px 14px 16px;
	border-radius: 14px;
	background: #141E4A;
	color: #fff;
	box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .45);
	font-family: Inter, system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .2s ease, transform .2s ease;
}
.ga-cfb-toast.is-open { opacity: 1; transform: none; }
.ga-cfb-toast__text { flex: 1 1 100%; margin: 0; font-weight: 600; }
.ga-cfb-toast__check {
	display: inline-flex; align-items: center; justify-content: center;
	width: 20px; height: 20px; margin-right: 4px; border-radius: 50%;
	background: #2CDA82; color: #141E4A; font-size: 12px; font-weight: 800; vertical-align: -3px;
}
.ga-cfb-toast a.ga-cfb-toast__link,
.ga-cfb-toast a.ga-cfb-toast__link:visited { color: #2CDA82; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ga-cfb-toast a.ga-cfb-toast__link:hover { color: #7ff0b6; }
.ga-cfb-toast a.ga-cfb-toast__link:focus-visible,
.ga-cfb-toast .ga-cfb-toast__close:focus-visible { outline: 3px solid #2CDA82; outline-offset: 2px; border-radius: 4px; }
.ga-cfb-toast .ga-cfb-toast__close {
	position: absolute; top: 6px; right: 6px;
	width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
	background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.ga-cfb-toast .ga-cfb-toast__close:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 600px) {
	.ga-cfb-toast { right: 16px; left: 16px; bottom: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ga-cfb-toast { transition: none; transform: none; }
	.ga-header-cart--bump .ga-header-cart__link { animation: none; background: rgba(44, 218, 130, .3); }
	.ga-header-cart--bump .ga-header-cart__badge { animation: none; box-shadow: 0 0 0 4px rgba(44, 218, 130, .45); }
}
