/* Norsan Cadeau Selector */

.norsan-gifts {
	--ng-accent: #0b6b4f;
	--ng-border: #e2e5e9;
	--ng-radius: 10px;
	position: relative;
	margin: 0 0 30px;
	padding: 22px;
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius);
	background: #fff;
}

.norsan-gifts__headline {
	margin: 0 0 10px;
	font-weight: 600;
	font-size: 1em;
	line-height: 1.3;
}

.norsan-gifts.is-unlocked .norsan-gifts__headline {
	color: var(--ng-accent);
}

.norsan-gifts__bar {
	position: relative;
	height: 8px;
	border-radius: 999px;
	background: #eef0f2;
	overflow: hidden;
}

.norsan-gifts__bar-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--ng-accent);
	transition: width .4s ease;
}

.norsan-gifts__meta {
	margin: 12px 0 0;
	font-size: .85em;
	opacity: .7;
}

.norsan-gifts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 12px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.norsan-gifts__grid li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.norsan-gift__label {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 12px;
	border: 1px solid var(--ng-border);
	border-radius: var(--ng-radius);
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.norsan-gift__label:hover {
	border-color: var(--ng-accent);
}

.norsan-gift.is-selected .norsan-gift__label {
	border-color: var(--ng-accent);
	box-shadow: inset 0 0 0 1px var(--ng-accent);
}

.norsan-gift.is-disabled .norsan-gift__label {
	opacity: .45;
	cursor: not-allowed;
}

.norsan-gift__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.norsan-gift__image {
	flex: 0 0 64px;
	width: 64px;
}

.norsan-gift__image img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 6px;
}

.norsan-gift__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.norsan-gift__title {
	font-weight: 600;
	line-height: 1.25;
}

.norsan-gift__desc {
	font-size: .82em;
	line-height: 1.35;
	opacity: .7;
}

.norsan-gift__check {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 18px;
	height: 18px;
	border: 1px solid var(--ng-border);
	border-radius: 50%;
	background: #fff;
}

.norsan-gift.is-selected .norsan-gift__check {
	border-color: var(--ng-accent);
	background: var(--ng-accent);
}

.norsan-gift.is-selected .norsan-gift__check::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 6px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.norsan-gift__input:focus-visible + .norsan-gift__image {
	outline: 2px solid var(--ng-accent);
	outline-offset: 3px;
}

.norsan-gifts.is-loading {
	pointer-events: none;
}

.norsan-gifts.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--ng-radius);
	background: rgba(255, 255, 255, .6);
}

/* Winkelwagen regel */
.norsan-gift-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	border-radius: 999px;
	background: #0b6b4f;
	color: #fff;
	font-size: .7em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	vertical-align: middle;
}

.norsan-gift-free {
	font-weight: 600;
	color: #0b6b4f;
}

/* Mini cart */
.norsan-gifts--mini {
	margin: 0 0 12px;
	padding: 12px;
}

.norsan-gifts--mini .norsan-gifts__headline {
	font-size: .82em;
}

@media (max-width: 480px) {
	.norsan-gifts__grid {
		grid-template-columns: 1fr;
	}
}
