/**
 * Safemovement Bestilling – handlekurv i headeren, mini-cart, «Legg i handlekurv», kasse og ordrer.
 * Bruker Safemovement-temaets designtokens og felles sm-*-komponenter fra klubbpluginen.
 */

/* Handlekurv i headeren */
.header-cart__icon {
	position: relative;
	display: inline-grid;
}

.header-cart__count {
	position: absolute;
	top: -0.45rem;
	right: -0.6rem;
	display: grid;
	place-items: center;
	min-width: 1.2rem;
	height: 1.2rem;
	padding: 0 0.3rem;
	font-size: 0.7rem;
	font-weight: 750;
	line-height: 1;
	color: var(--on-volt);
	background: var(--volt);
	border: 2px solid var(--paper, #fff);
	border-radius: var(--r-pill);
	font-variant-numeric: tabular-nums;
}

.header-cart__count[hidden] {
	display: none;
}

/* Mini-cart */
.cart-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(440px, 100vw);
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	color: var(--text, var(--ink));
	background: var(--surface, #fff);
	border: 0;
	box-shadow: var(--shadow-lg, -20px 0 60px rgb(0 0 0 / 0.2));
	overflow: hidden;
}

.cart-drawer[open] {
	display: flex;
	flex-direction: column;
	animation: cart-in 320ms var(--ease-out, ease-out);
}

.cart-drawer::backdrop {
	background: rgb(11 22 32 / 0.45);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

@keyframes cart-in {
	from {
		transform: translateX(100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cart-drawer[open] {
		animation: none;
	}
}

.cart-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-4) var(--space-5);
	border-bottom: 1px solid var(--line-soft);
}

.cart-drawer__title {
	font-size: var(--fs-lg);
}

.cart-drawer__status:empty {
	display: none;
}

.cart-drawer__status {
	margin: var(--space-3) var(--space-5) 0;
	padding: var(--space-2) var(--space-3);
	font-size: var(--fs-sm);
	font-weight: 600;
	background: color-mix(in srgb, var(--volt) 35%, transparent);
	border-radius: var(--r-sm);
}

.cart-drawer__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	transition: opacity var(--dur) var(--ease);
}

.cart-drawer.is-busy .cart-drawer__content {
	opacity: 0.6;
	pointer-events: none;
}

.cart-drawer .cart-lines {
	flex: 1;
	padding: 0 var(--space-5);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.cart-drawer__foot {
	display: grid;
	gap: var(--space-2);
	padding: var(--space-4) var(--space-5) max(var(--space-4), env(safe-area-inset-bottom));
	background: var(--paper, #fff);
	border-top: 1px solid var(--line-soft);
}

.cart-drawer__empty {
	display: grid;
	gap: var(--space-3);
	justify-items: center;
	margin: auto;
	padding: var(--space-6) var(--space-5);
	text-align: center;
	color: var(--muted);
}

.cart-drawer__empty .btn {
	width: 100%;
}

.cart-drawer__empty-icon {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	color: var(--pitch-2);
	background: var(--stone);
	border-radius: 50%;
}

.cart-drawer__empty-title {
	font-size: var(--fs-md);
	font-weight: 700;
	color: var(--ink);
}

/* Linjer (mini-cart, kasse og ordre) */
.cart-lines {
	margin: 0;
	list-style: none;
}

.cart-line {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	gap: var(--space-3);
	align-items: start;
	padding-block: var(--space-4);
	border-bottom: 1px solid var(--line-soft);
}

.cart-line:last-child {
	border-bottom: 0;
}

/* Uten prisboks (sidebaren viser ikke pris) bruker linjen hele bredden. */
.cart-line:not(:has(.cart-line__total)) {
	grid-template-columns: 72px minmax(0, 1fr);
}

.cart-lines--compact .cart-line:not(:has(.cart-line__total)) {
	grid-template-columns: minmax(0, 1fr);
}

.cart-lines--compact .cart-line {
	grid-template-columns: minmax(0, 1fr) auto;
	padding-block: var(--space-3);
}

.cart-lines--compact .cart-line__media {
	display: none;
}

.cart-line__media {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	overflow: hidden;
	color: var(--muted);
	background: var(--stone);
	border-radius: var(--r-sm);
}

.cart-line__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.cart-line__body {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
}

.cart-line__title {
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none;
}

a.cart-line__title:hover {
	color: var(--pitch-2);
}

.cart-line__meta {
	font-size: var(--fs-xs);
	color: var(--muted);
}

.cart-line__controls {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-2);
}

.cart-line__qty {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.cart-line__qty-label {
	font-size: var(--fs-xs);
	font-weight: 650;
	color: var(--muted);
}

.cart-line__qty .qty__input {
	font-size: var(--fs-sm);
	font-weight: 750;
}

/* Valgt antall i kassen (uten knapper). */
.cart-line__count {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	justify-self: start;
	margin-top: var(--space-1);
	padding: 0.25rem 0.75rem;
	font-size: var(--fs-xs);
	color: var(--muted);
	background: var(--stone);
	border-radius: var(--r-pill);
}

.cart-line__count strong {
	font-size: 12px;
	font-weight: 800;
	color: var(--ink);
}

.has-cart-js .cart-line__update {
	display: none;
}

.cart-line__update {
	font-size: var(--fs-xs);
	font-weight: 650;
	text-decoration: underline;
	background: none;
	border: 0;
	cursor: pointer;
}

.cart-line__remove {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--muted);
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.cart-line__remove:hover,
.cart-line__remove:focus-visible {
	color: var(--danger);
	background: var(--stone);
}

.cart-line__total {
	display: grid;
	justify-items: end;
	gap: 0.1rem;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.cart-line__amount {
	font-size: var(--fs-md);
	font-weight: 750;
	white-space: nowrap;
}

.cart-line__per {
	font-size: var(--fs-xs);
	color: var(--muted);
}

.cart-line__amount--request {
	font-size: var(--fs-sm);
	color: var(--pitch-2);
}

.cart-line__regular {
	font-size: var(--fs-xs);
	color: var(--muted);
	white-space: nowrap;
}

/* Antall */
.qty {
	display: inline-flex;
	align-items: center;
	background: var(--surface, #fff);
	border: 1.5px solid var(--line);
	border-radius: var(--r-pill);
}

.qty__btn {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--ink);
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.qty__btn:hover {
	background: var(--stone);
}

.qty__btn .icon {
	width: 1rem;
	height: 1rem;
}

.qty__input {
	width: 2.75rem;
	height: 2.5rem;
	padding: 0;
	font: inherit;
	font-weight: 650;
	text-align: center;
	background: none;
	border: 0;
	-moz-appearance: textfield;
	appearance: textfield;
	font-variant-numeric: tabular-nums;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.qty__input:focus-visible {
	outline: 2px solid var(--focus, var(--ink));
	outline-offset: -2px;
	border-radius: var(--r-sm);
}

/* Sum */
.cart-totals {
	display: grid;
	gap: var(--space-2);
	margin: 0;
}

.cart-totals__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-3);
	font-variant-numeric: tabular-nums;
}

.cart-totals__row dd {
	margin: 0;
}

.cart-totals__row--saving {
	font-size: var(--fs-sm);
	font-weight: 650;
	color: var(--pitch-2);
}

.cart-totals__row--sum {
	font-size: var(--fs-md);
	font-weight: 750;
}

.cart-totals__row--sum small {
	font-size: var(--fs-xs);
	font-weight: 500;
	color: var(--muted);
}

.cart-totals__note {
	font-size: var(--fs-xs);
	color: var(--muted);
}

/* «Legg i handlekurv» på produktsiden */
.add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	min-width: 0;
}

.add-to-cart .qty {
	flex: none;
	min-height: 52px;
}

.add-to-cart__btn {
	/* Får ikke knappen plass ved siden av antall, legger den seg under i full bredde. */
	flex: 1 1 13rem;
	min-width: 0;
	max-width: 24rem; /* Ikke strekk knappen over hele den brede kjøpsboksen. */
	padding-inline: 1.1rem;
	white-space: nowrap;
}

/* Smale skjermer: litt mindre tekst, så «Legg i tilbudslisten» får plass ved siden av antall. */
@media (max-width: 400px) {
	.add-to-cart__btn {
		gap: 0.4rem;
		padding-inline: 0.85rem;
		font-size: 0.9375rem;
	}
}

.add-to-cart__btn[aria-busy="true"] {
	opacity: 0.7;
	pointer-events: none;
}

.add-to-cart__note,
.add-to-cart__status {
	font-size: var(--fs-sm);
	color: var(--muted);
}

.add-to-cart__status:empty {
	display: none;
}

/* Kasse */
.checkout {
	display: grid;
	gap: var(--space-5);
	align-items: start;
}

@media (min-width: 1024px) {
	.checkout {
		grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
	}

	.checkout__summary {
		position: sticky;
		top: calc(var(--header-offset, 90px) + var(--space-4));
	}
}

.checkout__step {
	display: grid;
	gap: var(--space-4);
}

.checkout__title {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	font-size: var(--fs-md);
}

.checkout__num {
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	font-size: var(--fs-sm);
	color: var(--on-volt);
	background: var(--volt);
	border-radius: 50%;
}

.checkout__club {
	padding: var(--space-4);
	background: var(--stone);
	border-radius: var(--r-md);
}

@media (min-width: 640px) {
	.checkout__club {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	}

	.checkout__postal {
		grid-template-columns: 9rem minmax(0, 1fr);
	}
}

.checkout__club-name dd {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.checkout__club-name .club-logo {
	width: 2rem;
	height: 2rem;
}

.checkout__summary {
	display: grid;
	gap: var(--space-3);
}

.checkout__summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.link-button {
	padding: 0.25rem 0;
	font: inherit;
	font-size: var(--fs-sm);
	font-weight: 650;
	color: var(--pitch-2);
	text-decoration: underline;
	background: none;
	border: 0;
	cursor: pointer;
}

.sm-field__error {
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--danger);
}

.checkout-empty {
	display: grid;
	gap: var(--space-3);
	justify-items: center;
	padding-block: var(--space-7);
	text-align: center;
}

/* Ordrer på Min side */
.account-orders {
	margin-top: var(--space-4);
}

.account-orders__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-3);
}

.account-orders__empty {
	margin-bottom: var(--space-5);
}

.order-table {
	overflow-x: auto;
}

.order-table:focus-visible {
	outline: 2px solid var(--focus, var(--ink));
}

.order-table table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: var(--fs-sm);
}

.order-table th,
.order-table td {
	padding: var(--space-3) var(--space-2);
	text-align: left;
	border-bottom: 1px solid var(--line-soft);
}

.order-table thead th {
	font-size: var(--fs-xs);
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.order-table tbody tr:last-child > * {
	border-bottom: 0;
}

.order-table tbody th a {
	font-weight: 700;
}

.order-table__num {
	text-align: right !important;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.order-status {
	display: inline-flex;
	padding: 0.15rem 0.6rem;
	font-size: var(--fs-xs);
	font-weight: 700;
	white-space: nowrap;
	background: var(--stone);
	border-radius: var(--r-pill);
}

.order-status--behandles {
	background: color-mix(in srgb, var(--volt) 45%, transparent);
}

.order-status--sendt,
.order-status--fullfort {
	color: var(--on-dark);
	background: var(--pitch-2);
}

.order-status--kansellert {
	color: var(--danger);
}

.order-detail {
	display: grid;
	gap: var(--space-4);
}

.link-back {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: var(--fs-sm);
	font-weight: 650;
	text-decoration: none;
}

.order-detail__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-3);
}

.order-detail__grid {
	display: grid;
	gap: var(--space-4);
	align-items: start;
}

.order-detail__grid form {
	margin-top: var(--space-4);
}

@media (min-width: 900px) {
	.order-detail__grid {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	}
}

.order-progress {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: progress;
}

.order-progress li {
	display: grid;
	gap: var(--space-2);
	font-size: var(--fs-xs);
	font-weight: 650;
	color: var(--muted);
}

.order-progress li::before {
	content: "";
	height: 6px;
	background: var(--stone);
	border-radius: var(--r-pill);
}

.order-progress li.is-done {
	color: var(--ink);
}

.order-progress li.is-done::before {
	background: var(--pitch-2);
}

/* Tilbudsforespørsler på Min side */
.quote-list {
	display: grid;
	gap: var(--space-3);
}

.quote-card {
	padding: 0;
}

.quote-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-4);
	padding: var(--space-4) var(--space-5);
	cursor: pointer;
	list-style: none;
}

.quote-card__head::-webkit-details-marker {
	display: none;
}

.quote-card__number {
	font-weight: 750;
}

.quote-card__date,
.quote-card__count {
	font-size: var(--fs-sm);
	color: var(--muted);
}

.quote-card__head .sm-badge {
	margin-left: auto;
}

.quote-card__lines {
	display: grid;
	gap: var(--space-2);
	margin: 0;
	padding: 0 var(--space-5) var(--space-4);
	list-style: none;
}

.quote-card__lines li {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.quote-card__qty {
	min-width: 2.5rem;
	font-weight: 700;
}

.quote-card > .sm-muted {
	padding: 0 var(--space-5) var(--space-4);
}

/* Tilbudslisten: bekreftelse og tom liste på siden «Tilbudsliste» */
.quote-sent {
	display: grid;
	justify-items: start;
	gap: var(--space-3);
	max-width: 40rem;
}

.quote-sent:focus {
	outline: none;
}

.quote-sent__icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	color: var(--on-volt);
	background: var(--volt);
	border-radius: 50%;
}

.quote-sent__title {
	font-size: var(--fs-lg);
}

.quote-sent p {
	color: var(--muted);
}

.quote-sent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-2);
}

.quote-empty {
	max-width: 40rem;
	margin-inline: auto;
}

.header-quote[hidden] {
	display: none;
}

/* Valg på en linje i tilbudslisten (f.eks. nettfarge og logo) */
.cart-line__options {
	display: grid;
	gap: 0.1rem;
	margin: 0.2rem 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-xs);
	color: var(--muted);
}

.cart-line__options span {
	font-weight: 650;
	color: var(--ink);
}

/* ==========================================================================
 * Velkomstgave (includes/welcome-gift.php)
 *   gift-dialog  Etter innlogging: tydelig, én gang per innlogging.
 *   gift-bar     Smal stripe under menyen (kan lukkes).
 *   gift-line    Gavelinjen i handlekurven, ordresammendraget og på ordren.
 *   gift-card    Kort på Min klubb.
 * ======================================================================= */

/* Dialogen */
.gift-dialog {
	width: min(32rem, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: 0;
	overflow: auto;
	color: var(--ink);
	background: var(--surface);
	border: 0;
	border-radius: 28px;
	box-shadow: 0 30px 80px -20px rgb(11 22 32 / 0.45);
}

.gift-dialog[open] {
	animation: gift-in 320ms var(--ease-out, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
}

.gift-dialog.is-closing {
	animation: gift-out 180ms ease-in both;
}

.gift-dialog::backdrop {
	background: rgb(11 22 32 / 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

@keyframes gift-in {
	from { opacity: 0; transform: translateY(16px) scale(0.97); }
}

@keyframes gift-out {
	to { opacity: 0; transform: translateY(8px) scale(0.98); }
}

.gift-dialog__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	color: var(--on-dark);
	cursor: pointer;
	background: rgb(255 255 255 / 0.12);
	border: 0;
	border-radius: 50%;
	transition: background var(--dur) var(--ease);
}

.gift-dialog__close:hover,
.gift-dialog__close:focus-visible {
	background: rgb(255 255 255 / 0.24);
}

.gift-dialog__close .icon {
	width: 20px;
	height: 20px;
}

/* Toppen: mørk flate med gaven i en volt-sirkel og lette konfetti-prikker. */
.gift-dialog__visual {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 200px;
	padding: 40px 24px 32px;
	background:
		radial-gradient(circle at 14% 24%, var(--volt) 0 3px, transparent 4px),
		radial-gradient(circle at 82% 18%, rgb(141 162 255 / 0.7) 0 4px, transparent 5px),
		radial-gradient(circle at 74% 78%, rgb(255 255 255 / 0.35) 0 3px, transparent 4px),
		radial-gradient(circle at 22% 80%, rgb(141 162 255 / 0.5) 0 2px, transparent 3px),
		radial-gradient(circle at 92% 56%, rgb(255 255 255 / 0.25) 0 2px, transparent 3px),
		radial-gradient(120% 90% at 50% 0%, var(--pitch, #0d5236) 0%, var(--ink) 70%);
}

.gift-dialog__icon {
	display: grid;
	place-items: center;
	width: 112px;
	height: 112px;
	color: var(--on-volt);
	background: var(--volt);
	border-radius: 50%;
	box-shadow: 0 0 0 12px rgb(141 162 255 / 0.14), 0 0 0 26px rgb(141 162 255 / 0.06);
}

.gift-dialog__icon .icon {
	width: 52px;
	height: 52px;
	stroke-width: 1.6;
}

.gift-dialog__visual--image img {
	width: 168px;
	height: 168px;
	object-fit: contain;
	padding: 12px;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 0 0 10px rgb(141 162 255 / 0.18);
}

.gift-dialog__tag {
	position: absolute;
	bottom: -14px;
	left: 50%;
	padding: 6px 14px;
	font-size: 0.8125rem;
	font-weight: 750;
	letter-spacing: 0.01em;
	color: var(--on-volt);
	white-space: nowrap;
	background: var(--volt);
	border-radius: var(--r-pill, 999px);
	box-shadow: 0 6px 16px -6px rgb(11 22 32 / 0.4);
	transform: translateX(-50%);
}

.gift-dialog__body {
	display: grid;
	gap: 14px;
	padding: 36px clamp(20px, 5vw, 36px) 28px;
	text-align: center;
}

.gift-dialog__title {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.gift-dialog__text {
	font-size: var(--fs-md);
	line-height: 1.5;
	color: var(--ink);
}

.gift-dialog__points {
	display: grid;
	gap: 6px;
	justify-content: center;
	margin: 2px 0 6px;
	padding: 0;
	list-style: none;
	text-align: left;
}

.gift-dialog__points li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--fs-sm);
	color: var(--muted);
}

.gift-dialog__points .icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	padding: 3px;
	color: var(--on-volt);
	background: var(--volt);
	border-radius: 50%;
}

.gift-dialog__actions {
	display: grid;
	gap: 8px;
}

@media (min-width: 480px) {
	.gift-dialog__actions {
		grid-template-columns: 1.4fr 1fr;
	}
}

.gift-dialog__fine {
	font-size: var(--fs-xs);
	color: var(--muted);
}

/* Stripen under menyen */
.gift-bar {
	color: var(--ink);
	background: linear-gradient(90deg, #e8edff, #f2f5ff 60%, var(--paper));
	border-bottom: 1px solid #d3dcff;
}

.gift-bar[hidden] {
	display: none;
}

.gift-bar__inner {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding-block: 6px;
}

.gift-bar__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 28px;
	height: 28px;
	color: var(--on-volt);
	background: var(--volt);
	border-radius: 50%;
}

.gift-bar__icon .icon {
	width: 16px;
	height: 16px;
}

.gift-bar__text {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: var(--fs-sm);
	line-height: 1.35;
}

.gift-bar__close {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 36px;
	height: 36px;
	color: var(--muted);
	cursor: pointer;
	background: transparent;
	border: 0;
	border-radius: 50%;
}

.gift-bar__close:hover,
.gift-bar__close:focus-visible {
	color: var(--ink);
	background: rgb(11 22 32 / 0.06);
}

.gift-bar__close .icon {
	width: 18px;
	height: 18px;
}

/* Gavelinjen */
.gift-line {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: var(--space-3, 0.75rem);
	padding: 10px 12px;
	background: #f2f5ff;
	border: 1px dashed #b7c5ff;
	border-radius: 14px;
}

.gift-line__media {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	color: var(--on-volt);
	background: var(--volt);
	border-radius: 12px;
}

.gift-line__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
}

.gift-line__media .icon {
	width: 24px;
	height: 24px;
}

.gift-line__text {
	display: grid;
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

.gift-line__text strong {
	font-size: var(--fs-sm);
}

.gift-line__text span {
	font-size: var(--fs-xs);
	color: var(--muted);
}

.gift-line__price {
	flex-shrink: 0;
	padding: 3px 10px;
	font-size: var(--fs-xs);
	font-weight: 750;
	color: var(--pitch, #0d5236);
	background: #e3f1e6;
	border-radius: var(--r-pill, 999px);
}

.cart-drawer__empty .gift-line {
	margin-top: var(--space-3, 0.75rem);
	text-align: left;
}

.gift-line--done {
	margin-top: var(--space-3, 0.75rem);
}

/* Kort på Min klubb */
.gift-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
	background: linear-gradient(120deg, #eaefff, #fff 70%);
	border-color: #d3dcff;
}

.gift-card__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 56px;
	height: 56px;
	color: var(--on-volt);
	background: var(--volt);
	border-radius: 16px;
}

.gift-card__icon .icon {
	width: 28px;
	height: 28px;
}

.gift-card__body {
	display: grid;
	flex: 1 1 260px;
	gap: 4px;
}

.gift-card__title {
	font-size: var(--fs-md);
	letter-spacing: -0.01em;
}

.gift-card__body p {
	margin: 0;
	color: var(--muted);
}

.gift-card__cta {
	flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
	.gift-dialog[open],
	.gift-dialog.is-closing {
		animation: none;
	}
}

/* ==========================================================================
 * Variantvalg på produktsiden (f.eks. størrelse) – render_variant_picker()
 * ======================================================================= */
.variant-picker {
	display: grid;
	gap: 10px;
	width: 100%;
	min-width: 0;
	margin: 0 0 var(--space-2, 0.5rem);
	padding: 0;
	border: 0;
}

.variant-picker__group {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.variant-picker {
	gap: 16px;
}

.variant-picker__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	margin-bottom: 10px;
	padding: 0;
}

.variant-picker__label {
	font-size: var(--fs-sm);
	font-weight: 750;
	color: var(--ink);
}

.variant-picker__note {
	font-size: var(--fs-xs);
	color: var(--muted);
}

.variant-picker__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.variant-picker__option {
	position: relative;
	cursor: pointer;
}

.variant-picker__option input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.variant-picker__option span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 14px;
	font-size: var(--fs-sm);
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
	background: var(--surface);
	border: 1.5px solid var(--line);
	border-radius: 12px;
	transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.variant-picker__option:hover span {
	border-color: var(--ink);
}

.variant-picker__option input:checked + span {
	color: var(--ink);
	background: #e8edff;
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink);
}

.variant-picker__option input:focus-visible + span {
	outline: 3px solid var(--focus, var(--ink));
	outline-offset: 2px;
}

.variant-picker__current {
	margin: 0;
	font-size: var(--fs-xs);
	color: var(--muted);
}

.variant-picker__current strong {
	color: var(--ink);
}

.add-to-cart .variant-picker {
	flex: 1 1 100%;
}
