/* Product Rewards & Sidecart – voortgang & cadeaukeuze (sidecart + Cart/Checkout-block). Gescoped onder .chcr-rw. */
.chcr-rw {
	--chcr-rw-accent: var(--chcr-accent, var(--chcr-brand, var(--e-global-color-primary, var(--e-global-color-accent, #6b3e26))));
	--chcr-rw-track: var(--chcr-border, #ece7e2);
	--chcr-rw-muted: var(--chcr-muted, #6f6a66);
	--chcr-rw-soft: var(--chcr-soft, #faf7f4);
	--chcr-rw-radius: var(--chcr-radius, 8px);
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
}
.chcr-rw *, .chcr-rw *::before, .chcr-rw *::after { box-sizing: border-box; }
.chcr-rw:empty { display: none; }
/* Cart/Checkout-block: zelfde inspringing als de totaalregels van WooCommerce. */
.chcr-rw.chcr-rw--block {
	--chcr-rw-inset: 16px;
	margin: 0;
	padding: var(--chcr-rw-inset);
	color: inherit;
}
.chcr-rw.chcr-rw--block .chcr-rw__msg { font-size: 14px; }
.chcr-rw.is-busy { opacity: .6; pointer-events: none; }

.chcr-rw .chcr-rw__reminder {
	margin: 0;
	padding: 10px 12px;
	border-radius: var(--chcr-rw-radius);
	background: var(--chcr-rw-accent);
	color: #fff;
	font-weight: 600;
	text-align: center;
}
.chcr-rw .chcr-rw__error { margin: 0; color: #b32d2e; font-size: 13px; }
.chcr-rw .chcr-rw__section { display: flex; flex-direction: column; gap: 8px; }
.chcr-rw .chcr-rw__msg { margin: 0; font-size: 13.6px; }
.chcr-rw .chcr-rw__section.is-done > .chcr-rw__msg { font-weight: 600; }

/* Balk */
.chcr-rw .chcr-rw-bar { position: relative; height: 6px; border-radius: 999px; background: var(--chcr-rw-track); overflow: hidden; }
.chcr-rw .chcr-rw-bar__fill { display: block; height: 100%; border-radius: inherit; background: var(--chcr-rw-accent); transition: width .35s ease; }

/* Keuzeregel + uitklapmenu */
.chcr-rw .chcr-rw-choice { border: 1px solid var(--chcr-rw-track); border-radius: var(--chcr-rw-radius); background: var(--chcr-rw-soft); }
.chcr-rw .chcr-rw-choice.needs-choice { border-color: var(--chcr-rw-accent); }
.chcr-rw .chcr-rw-choice__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 10px; }
.chcr-rw .chcr-rw-choice__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.6px; min-width: 0; }
.chcr-rw .chcr-rw-choice__label svg { flex: 0 0 auto; color: var(--chcr-rw-accent); }

.chcr-rw button.chcr-rw-choice__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 60%;
	min-height: 36px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--chcr-rw-accent);
	border-radius: 999px;
	background: #fff;
	color: var(--chcr-rw-accent);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}
.chcr-rw .chcr-rw-choice.needs-choice button.chcr-rw-choice__toggle { background: var(--chcr-rw-accent); color: #fff; }
.chcr-rw .chcr-rw-choice__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chcr-rw .chcr-rw-choice__toggle svg { flex: 0 0 auto; transition: transform .2s ease; }
.chcr-rw .chcr-rw-choice.is-open .chcr-rw-choice__toggle svg { transform: rotate(180deg); }
.chcr-rw button.chcr-rw-choice__toggle:focus { outline: none; box-shadow: none; }
.chcr-rw button.chcr-rw-choice__toggle:focus-visible { outline: 2px solid var(--chcr-rw-accent); outline-offset: 2px; }

.chcr-rw .chcr-rw-menu { list-style: none; margin: 0; padding: 4px; border-top: 1px solid var(--chcr-rw-track); background: #fff; border-radius: 0 0 var(--chcr-rw-radius) var(--chcr-rw-radius); }
.chcr-rw .chcr-rw-menu li { margin: 0; padding: 0; list-style: none; }
.chcr-rw .chcr-rw-menu li::before { content: none; }
.chcr-rw button.chcr-rw-menu__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 6px 8px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}
.chcr-rw button.chcr-rw-menu__opt:hover:not(:disabled),
.chcr-rw button.chcr-rw-menu__opt.is-selected { background: var(--chcr-rw-soft); color: inherit; }
.chcr-rw button.chcr-rw-menu__opt:focus-visible { outline: 2px solid var(--chcr-rw-accent); outline-offset: -2px; }
.chcr-rw button.chcr-rw-menu__opt:disabled { opacity: .5; cursor: default; }
.chcr-rw .chcr-rw-menu__opt img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: cover; border-radius: 6px; margin: 0; }
.chcr-rw .chcr-rw-menu__text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.chcr-rw .chcr-rw-menu__name { font-size: 13.6px; font-weight: 600; }
.chcr-rw .chcr-rw-menu__value { font-size: 12px; color: var(--chcr-rw-muted); }
.chcr-rw .chcr-rw-menu__check { flex: 0 0 18px; color: var(--chcr-rw-accent); font-weight: 700; text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.chcr-rw .chcr-rw-bar__fill, .chcr-rw .chcr-rw-choice__toggle svg { transition: none; }
}

/* 1.1.1: label op één regel, knop krimpt mee */
.chcr-rw .chcr-rw-choice__label { flex: 1 1 auto; }
.chcr-rw .chcr-rw-choice__label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chcr-rw button.chcr-rw-choice__toggle { flex: 0 1 auto; min-width: 0; }
