.pk-keuzehulp {
	--pk-kh-accent: var( --color-primary, #2e7d32 );
	--pk-kh-border: var( --color-border, #e2e2e2 );
	--pk-kh-text: var( --color-text, #1a1a1a );
	--pk-kh-muted: var( --color-text-secondary, #666 );
	font-family: inherit;
	color: var( --pk-kh-text );
}

/* Alle [hidden]-toggles in de widget moeten écht verdwijnen, ook als een
   element elders in dit bestand een eigen `display` waarde krijgt (bijv.
   .pk-keuzehulp__nav met display:flex) — anders wint die regel van de
   standaard [hidden]{display:none} van de browser. */
.pk-keuzehulp [hidden] {
	display: none !important;
}

.pk-keuzehulp__intro h2 {
	font-size: 22px;
	margin: 0 0 6px;
}

.pk-keuzehulp__intro p {
	font-size: 14px;
	color: var( --pk-kh-muted );
	margin: 0 0 20px;
}

/* Voortgangsbalk */
.pk-keuzehulp__progress {
	height: 6px;
	background: #eee;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 24px;
}

.pk-keuzehulp__progress-bar {
	height: 100%;
	width: 0;
	background: var( --pk-kh-accent );
	transition: width 0.3s ease;
}

/* Vragen */
.pk-keuzehulp__question-label {
	font-size: 18px;
	margin: 0 0 16px;
}

.pk-keuzehulp__options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

.pk-keuzehulp__option {
	border: 1.5px solid var( --pk-kh-border );
	background: #fff;
	color: var( --pk-kh-text );
	font-family: inherit;
	font-size: 14px;
	padding: 10px 18px;
	border-radius: 999px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.pk-keuzehulp__option:hover {
	border-color: var( --pk-kh-accent );
}

.pk-keuzehulp__option.is-selected {
	background: var( --pk-kh-accent );
	border-color: var( --pk-kh-accent );
	color: #fff;
}

.pk-keuzehulp__option--image {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border-radius: 12px;
	width: 120px;
}

.pk-keuzehulp__option-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.pk-keuzehulp__option-label {
	font-size: 13px;
	text-align: center;
}

/* Schaal-vraag */
.pk-keuzehulp__scale {
	padding: 8px 4px 0;
}

.pk-keuzehulp__slider {
	width: 100%;
	accent-color: var( --pk-kh-accent );
}

.pk-keuzehulp__scale-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var( --pk-kh-muted );
	margin-top: 6px;
}

.pk-keuzehulp__error {
	color: #c0392b;
	font-size: 13px;
	margin: 8px 0 0;
}

/* Navigatie */
.pk-keuzehulp__nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
}

.pk-keuzehulp__prev,
.pk-keuzehulp__next,
.pk-keuzehulp__submit {
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 22px;
	border-radius: 999px;
	cursor: pointer;
	border: none;
}

.pk-keuzehulp__prev {
	background: transparent;
	color: var( --pk-kh-muted );
}

.pk-keuzehulp__prev:disabled {
	opacity: 0.4;
	cursor: default;
}

.pk-keuzehulp__next,
.pk-keuzehulp__submit {
	background: var( --pk-kh-accent );
	color: #fff;
	margin-left: auto;
}

.pk-keuzehulp__submit:disabled {
	opacity: 0.7;
	cursor: default;
}

/* Resultaten */
.pk-keuzehulp__results {
	font-family: inherit;
}

.pk-keuzehulp-results__intro p {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 18px;
}

.pk-keuzehulp-results__intro.is-fallback p {
	color: var( --pk-kh-muted );
	font-weight: 500;
}

.pk-keuzehulp-results__grid {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}

.pk-keuzehulp-result {
	display: flex;
	gap: 14px;
	border: 1px solid var( --pk-kh-border );
	border-radius: 14px;
	padding: 14px;
	align-items: center;
}

.pk-keuzehulp-result__image img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.pk-keuzehulp-result__body {
	flex: 1 1 auto;
	min-width: 0;
}

.pk-keuzehulp-result__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	background: var( --pk-kh-accent );
	color: #fff;
	padding: 2px 8px;
	border-radius: 999px;
	margin-bottom: 6px;
}

.pk-keuzehulp-result__title {
	font-size: 15px;
	margin: 0 0 4px;
}

.pk-keuzehulp-result__price {
	font-size: 14px;
	color: var( --pk-kh-muted );
	margin-bottom: 8px;
}

.pk-keuzehulp-result__link {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: var( --pk-kh-accent );
	margin-right: 14px;
}

.pk-keuzehulp-results__whatsapp-hint {
	font-size: 13px;
	color: var( --pk-kh-muted );
	margin: 0 0 16px;
}

.pk-keuzehulp__restart {
	font-family: inherit;
	font-size: 13px;
	background: transparent;
	border: none;
	color: var( --pk-kh-muted );
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.pk-keuzehulp-results__debug {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px dashed var( --pk-kh-border );
	font-size: 12px;
}

.pk-keuzehulp-results__debug table {
	width: 100%;
	border-collapse: collapse;
}

.pk-keuzehulp-results__debug th,
.pk-keuzehulp-results__debug td {
	text-align: left;
	padding: 4px 8px;
	border-bottom: 1px solid var( --pk-kh-border );
}

/* Pop-up trigger + modal */
.pk-keuzehulp-trigger {
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 999px;
	cursor: pointer;
}

.pk-keuzehulp-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.pk-keuzehulp-modal.is-open {
	display: flex;
}

.pk-keuzehulp-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 10, 10, 10, 0.55 );
	opacity: 0;
	transition: opacity 0.4s cubic-bezier( 0.16, 1, 0.3, 1 );
}

.pk-keuzehulp-modal.is-visible .pk-keuzehulp-modal__overlay {
	opacity: 1;
}

.pk-keuzehulp-modal__card {
	position: relative;
	background: #fff;
	border-radius: 18px;
	padding: 32px 28px 28px;
	max-width: 560px;
	width: 100%;
	max-height: calc( 100vh - 40px );
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.3 );
	opacity: 0;
	transform: translateY( 18px );
	transition: opacity 0.4s cubic-bezier( 0.16, 1, 0.3, 1 ), transform 0.4s cubic-bezier( 0.16, 1, 0.3, 1 );
	will-change: transform, opacity;
}

.pk-keuzehulp-modal.is-visible .pk-keuzehulp-modal__card {
	opacity: 1;
	transform: translateY( 0 );
}

.pk-keuzehulp-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: none;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	color: #9a9a9a;
	cursor: pointer;
	font-family: inherit;
}

.pk-keuzehulp-modal__close:hover {
	color: #333;
}

@media ( min-width: 480px ) {
	.pk-keuzehulp-results__grid {
		grid-template-columns: 1fr;
	}
}
