/**
 * Contextuele sticky keuzehulp-CTA voor apparaat- en probleempagina's.
 *
 * Rustig en compact: de component verschijnt buiten de documentflow en gebruikt
 * uitsluitend het Koelkastwijzer-palet. Geen pulse-effecten of zware animatie.
 */
.wg-sticky-choice-cta {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 2147483000;
	display: flex;
	box-sizing: border-box;
	align-items: stretch;
	width: max-content;
	max-width: calc(100vw - 48px);
	min-height: 62px;
	overflow: hidden;
	border: 1px solid var(--wg-color-border-strong);
	border-radius: var(--wg-radius-lg);
	background: var(--wg-color-surface);
	box-shadow: var(--wg-shadow-card);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate3d(0, 8px, 0);
	transition:
		opacity var(--wg-transition),
		transform var(--wg-transition),
		visibility 0s linear 180ms,
		border-color var(--wg-transition),
		box-shadow var(--wg-transition);
	-webkit-tap-highlight-color: transparent;
}

.wg-sticky-choice-cta.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate3d(0, 0, 0);
	transition-delay: 0s;
}

.wg-sticky-choice-cta:hover {
	border-color: var(--wg-color-primary-muted);
	box-shadow: var(--wg-shadow-card-hover);
}

.wg-sticky-choice-cta__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	min-height: 62px;
	padding: 9px 14px 9px 15px;
	color: var(--wg-color-text);
	font-family: var(--wg-font-family);
	text-decoration: none;
}

.wg-sticky-choice-cta__link:hover,
.wg-sticky-choice-cta__link:focus,
.wg-sticky-choice-cta__link:visited {
	color: var(--wg-color-text);
	text-decoration: none;
}

.wg-sticky-choice-cta__check {
	display: grid;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid var(--wg-color-border);
	border-radius: 50%;
	background: var(--wg-color-primary-soft);
	color: var(--wg-color-primary);
	font-size: 17px;
	font-weight: 800;
	line-height: 1;
}

.wg-sticky-choice-cta__copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 4px;
	white-space: nowrap;
}

.wg-sticky-choice-cta__copy strong {
	color: var(--wg-color-heading);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.2;
}

.wg-sticky-choice-cta__copy span {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	color: var(--wg-color-primary);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.wg-sticky-choice-cta__arrow {
	flex: 0 0 auto;
	margin-left: 3px;
	color: var(--wg-color-primary);
	font-size: 20px;
	line-height: 1;
	transition: transform var(--wg-transition);
}

.wg-sticky-choice-cta__link:hover .wg-sticky-choice-cta__arrow,
.wg-sticky-choice-cta__link:focus-visible .wg-sticky-choice-cta__arrow {
	transform: translateX(2px);
}

.wg-sticky-choice-cta__close {
	display: grid;
	flex: 0 0 42px;
	width: 42px;
	min-height: 62px;
	padding: 0;
	place-items: center;
	border: 0;
	border-left: 1px solid var(--wg-color-border);
	border-radius: 0;
	background: var(--wg-color-surface-soft);
	box-shadow: none;
	color: var(--wg-color-text-subtle);
	font-family: inherit;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.wg-sticky-choice-cta__close:hover,
.wg-sticky-choice-cta__close:focus-visible {
	background: var(--wg-color-primary-soft);
	color: var(--wg-color-primary);
}

.wg-sticky-choice-cta__link:focus-visible,
.wg-sticky-choice-cta__close:focus-visible {
	outline: 3px solid rgba(59, 76, 95, 0.24);
	outline-offset: -4px;
}

@media (max-width: 782px) {
	.wg-sticky-choice-cta {
		left: 14px;
		right: 14px;
		bottom: calc(18px + env(safe-area-inset-bottom, 0px));
		width: auto;
		max-width: none;
		min-height: 64px;
		transform: translate3d(0, 10px, 0);
	}

	.wg-sticky-choice-cta.is-visible {
		transform: translate3d(0, 0, 0);
	}

	.wg-sticky-choice-cta__link {
		flex: 1 1 auto;
		min-height: 64px;
		gap: 12px;
		padding: 9px 12px 9px 14px;
	}

	.wg-sticky-choice-cta__check {
		flex-basis: 36px;
		width: 36px;
		height: 36px;
		font-size: 18px;
	}

	.wg-sticky-choice-cta__copy {
		flex: 1 1 auto;
		white-space: normal;
	}

	.wg-sticky-choice-cta__copy strong {
		font-size: 15px;
	}

	.wg-sticky-choice-cta__close {
		flex-basis: 43px;
		width: 43px;
		min-height: 64px;
	}
}

@media (max-width: 430px) {
	.wg-sticky-choice-cta {
		left: 10px;
		right: 10px;
	}

	.wg-sticky-choice-cta__link {
		gap: 9px;
		padding-left: 11px;
	}

	.wg-sticky-choice-cta__check {
		flex-basis: 32px;
		width: 32px;
		height: 32px;
	}

	.wg-sticky-choice-cta__copy strong {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wg-sticky-choice-cta,
	.wg-sticky-choice-cta__arrow {
		transition: none;
	}
}
