/* =========================================================================
   Macrolux keuzehulp — uitschuifbare sidebar (rechts) met stappenflow.
   Premium variant: donkere kop, verfijnde optiekaarten, stap-animaties.
   ========================================================================= */

.ml-kh-lock,
.ml-kh-lock body {
	overflow: hidden;
}

.ml-kh {
	position: fixed;
	inset: 0;
	z-index: 9999;
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* Themakoppen komen soms in kapitalen door — hier altijd gewone letters. */
.ml-kh h3,
.ml-kh h4,
.ml-kh h5,
.ml-kh p,
.ml-kh span,
.ml-kh button,
.ml-kh a {
	text-transform: none !important;
	letter-spacing: normal !important;
}

.ml-kh__overlay {
	position: absolute;
	inset: 0;
	background: rgba(18, 18, 16, 0.5);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.3s ease;
	cursor: pointer;
}

.ml-kh.is-open .ml-kh__overlay {
	opacity: 1;
}

.ml-kh__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(480px, 100vw);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 18px 0 0 18px;
	box-shadow: -24px 0 60px rgba(18, 18, 16, 0.25);
	transform: translateX(105%);
	transition: transform 0.38s cubic-bezier(0.22, 0.9, 0.3, 1);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ml-kh.is-open .ml-kh__panel {
	transform: translateX(0);
}

/* ---------- Kop (donker, met oranje accent) ---------- */
.ml-kh__head {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 30px 28px 24px;
	background: linear-gradient(135deg, #1d1d1b 0%, #2e2e29 100%);
	border-radius: 18px 0 0 0;
	overflow: hidden;
}

/* Zachte oranje gloed rechtsboven in de kop. */
.ml-kh__head::before {
	content: "";
	position: absolute;
	top: -70px;
	right: -50px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 102, 0, 0.28) 0%, rgba(255, 102, 0, 0) 65%);
	pointer-events: none;
}

.ml-kh__title {
	position: relative;
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
}

.ml-kh__intro {
	position: relative;
	margin: 0;
	max-width: 320px;
	font-size: 13.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.6);
}

button.ml-kh__close {
	position: relative;
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06) !important;
	color: #fff !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

button.ml-kh__close:hover {
	border-color: #ff6600;
	background: rgba(255, 102, 0, 0.14) !important;
	color: #ff8a3d !important;
}

.ml-kh__close .ml-icon {
	width: 16px;
	height: 16px;
	display: block;
}

/* ---------- Voortgang (strak onder de kop) ---------- */
.ml-kh__progress {
	height: 4px;
	margin: 0;
	border-radius: 0;
	background: #eceae6;
	overflow: hidden;
}

.ml-kh__progress-bar {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #ff6600 0%, #ff9147 100%);
	box-shadow: 0 0 10px rgba(255, 102, 0, 0.45);
	transition: width 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- Body / stappen ---------- */
.ml-kh__body {
	flex: 1 1 auto;
	padding: 26px 28px;
}

/* Elke stap glijdt subtiel in beeld. */
.ml-kh__step:not([hidden]) {
	animation: ml-kh-step-in 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes ml-kh-step-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ml-kh__question {
	margin: 0 0 18px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #1d1d1b;
}

.ml-kh__cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

button.ml-kh__card {
	position: relative;
	display: block;
	width: 100%;
	text-align: left;
	/* Knoppen krijgen van thema/browser vaak nowrap; hier gewoon laten
	   doorlopen naar de volgende regel. */
	white-space: normal !important;
	padding: 15px 35px 15px 18px !important;
	border: 1px solid #eceae6;
	border-radius: 14px;
	background: #fff !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

/* Chevron rechts, licht van kleur; kleurt oranje en schuift mee op hover. */
button.ml-kh__card::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 8px;
	height: 8px;
	border-top: 2px solid #c9c7c2;
	border-right: 2px solid #c9c7c2;
	transform: translateY(-50%) rotate(45deg);
	transition: border-color 0.2s ease, right 0.2s ease;
}

button.ml-kh__card:hover {
	border-color: rgba(255, 102, 0, 0.55);
	box-shadow: 0 10px 26px rgba(29, 29, 27, 0.09);
	transform: translateY(-1px);
}

button.ml-kh__card:hover::after {
	border-color: #ff6600;
	right: 16px;
}

button.ml-kh__card.is-active {
	border-color: #ff6600;
	background: rgba(255, 102, 0, 0.05) !important;
	box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.14);
}

button.ml-kh__card.is-active::after {
	border-color: #ff6600;
}

.ml-kh__card-label {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #1d1d1b;
}

.ml-kh__card-desc {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(29, 29, 27, 0.55);
	white-space: normal;
	overflow-wrap: break-word;
}

.ml-kh__sys {
	margin: 20px 0 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: #f7f6f3;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(29, 29, 27, 0.6);
}

.ml-kh__sys a {
	color: #ff6600;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ml-kh__sys a:hover {
	color: #e65c00;
}

/* ---------- Resultaat ---------- */
.ml-kh__product {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px;
	border: 1px solid #eceae6;
	border-radius: 16px;
	background: linear-gradient(160deg, #faf9f7 0%, #f1efeb 100%);
	overflow: hidden;
}

.ml-kh__product-img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 12px;
	flex: 0 0 auto;
	box-shadow: 0 8px 18px rgba(29, 29, 27, 0.12);
}

.ml-kh__badge {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 7px;
	padding: 4px 11px;
	border-radius: 20px;
	background: rgba(255, 102, 0, 0.12);
	color: #e65c00;
	font-size: 11.5px;
	font-weight: 700;
}

.ml-kh__product-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ml-kh__product-title {
	font-size: 15.5px;
	font-weight: 700;
	color: #1d1d1b;
	line-height: 1.35;
}

.ml-kh__product-price {
	margin-top: 5px;
	font-size: 15px;
	font-weight: 700;
	color: #ff6600;
}

.ml-kh__product-price del {
	color: rgba(29, 29, 27, 0.45);
	font-weight: 400;
	margin-right: 6px;
}

.ml-kh__advies {
	margin: 16px 0 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: rgba(29, 29, 27, 0.65);
}

.ml-kh__cta {
	display: block;
	margin-top: 18px;
	padding: 16px 22px;
	border-radius: 10px;
	background: linear-gradient(120deg, #ff6600 0%, #ff7d26 100%);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	box-shadow: 0 10px 24px rgba(255, 102, 0, 0.3);
	transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.ml-kh__cta:hover {
	filter: brightness(0.95);
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(255, 102, 0, 0.36);
}

/* Toebehoren */
.ml-kh__sub {
	margin: 30px 0 12px;
	font-size: 14.5px;
	font-weight: 700;
	color: #1d1d1b;
}

.ml-kh__extras {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ml-kh__extra a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border: 1px solid #eceae6;
	border-radius: 12px;
	text-decoration: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ml-kh__extra a:hover {
	border-color: rgba(255, 102, 0, 0.55);
	box-shadow: 0 6px 16px rgba(29, 29, 27, 0.07);
}

.ml-kh__extra img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 8px;
	flex: 0 0 auto;
}

.ml-kh__extra-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.ml-kh__extra-title {
	font-size: 13.5px;
	font-weight: 600;
	color: #1d1d1b;
	line-height: 1.3;
}

.ml-kh__extra-note {
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.45;
	color: rgba(29, 29, 27, 0.5);
}

.ml-kh__extra-price {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	color: #1d1d1b;
	white-space: nowrap;
}

.ml-kh__extra-price del {
	display: none;
}

button.ml-kh__restart {
	display: inline-block;
	margin-top: 22px;
	padding: 0 !important;
	border: 0;
	background: transparent !important;
	color: rgba(29, 29, 27, 0.55) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

button.ml-kh__restart:hover {
	color: #ff6600 !important;
}

/* ---------- Voet ---------- */
.ml-kh__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 28px;
	border-top: 1px solid #eceae6;
	background: #fbfaf8;
}

button.ml-kh__back {
	padding: 8px 14px !important;
	border: 1px solid #eceae6;
	border-radius: 30px;
	background: #fff !important;
	color: #1d1d1b !important;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

button.ml-kh__back:hover {
	border-color: #ff6600;
	color: #ff6600 !important;
}

.ml-kh__counter {
	padding: 5px 12px;
	border-radius: 30px;
	background: #f1efeb;
	font-size: 12px;
	font-weight: 600;
	color: rgba(29, 29, 27, 0.55);
}

.ml-kh__counter:empty {
	display: none;
}

/* ---------- Mobiel ---------- */
@media (max-width: 560px) {
	.ml-kh__panel {
		border-radius: 0;
	}
	.ml-kh__head {
		border-radius: 0;
		padding: 24px 20px 20px;
	}
	.ml-kh__body {
		padding: 22px 20px;
	}
	.ml-kh__foot {
		padding: 12px 20px;
	}
}
