/* Mærkbar Prisberegner – farver kan overstyres via CSS-variabler på .mbp */
.mbp {
	--mbp-navy: #0b2243;
	--mbp-orange: #ff8c35;
	--mbp-teal: #1b8a94;
	--mbp-bg: #ffffff;
	--mbp-text: var(--mbp-navy);
	--mbp-muted: #a39f9a;
	--mbp-line: #e4e1dc;
	--mbp-chip: #efeeec;
	--mbp-sum-text: #ffffff;
	--mbp-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

	container-type: inline-size;
	width: 100%;
	color: var(--mbp-text);
	font-family: inherit;
	line-height: 1.4;
	box-sizing: border-box;
}
.mbp *, .mbp *::before, .mbp *::after { box-sizing: border-box; }
.mbp [hidden] { display: none !important; }
.mbp button, .mbp input { font: inherit; color: inherit; }
:where(.mbp) :where(h3, p, ul) { margin: 0; padding: 0; }
:where(.mbp) ul { list-style: none; }

.mbp__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
	gap: clamp(32px, 6cqi, 72px);
	align-items: start;
}

/* ---------- sections ---------- */
.mbp__sec {
	display: grid;
	grid-template-columns: 57px minmax(0, 1fr);
	border-top: 1px solid var(--mbp-line);
	padding: 28px 0 32px;
}
.mbp__sec + .mbp__sec { padding-top: 32px; }
.mbp__hd { display: contents; }
.mbp__num {
	font-family: var(--mbp-mono);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--mbp-teal);
	padding-top: 10px;
}
.mbp__h {
	font-size: clamp(22px, 2.4cqi + 10px, 28px);
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.25;
	color: var(--mbp-text);
}
.mbp__body { grid-column: 2; }
.mbp__sec > .mbp__list { grid-column: 2; margin-top: 20px; }
.mbp__hint { margin-top: 14px; font-size: 14px; color: var(--mbp-muted); }

/* ---------- counter ---------- */
.mbp__body { margin-top: 18px; }
.mbp__counter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	border: 1px solid var(--mbp-line);
	border-radius: 999px;
}
.mbp__step {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	background: var(--mbp-chip);
	cursor: pointer;
	transition: background .15s;
}
.mbp__step:hover { background: #e5e3e0; }
.mbp__step:focus-visible, .mbp__cb:focus-visible + .mbp__box { outline: 2px solid var(--mbp-teal); outline-offset: 2px; }
.mbp__emp {
	width: 110px;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 34px;
	font-weight: 600;
	color: var(--mbp-text);
	padding: 0;
	outline: none;
}
.mbp__emp::placeholder, .mbp__km-in::placeholder { color: var(--mbp-text); opacity: 1; }

/* ---------- services ---------- */
.mbp__list { border-top: 1px solid var(--mbp-line); }
.mbp__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 16px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--mbp-line);
}
.mbp__check {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
	cursor: pointer;
	font-size: 17px;
}
.mbp__cb { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mbp__box {
	position: relative;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border: 1px solid var(--mbp-line);
	border-radius: 50%;
	background: #fff;
	transition: background .15s, border-color .15s;
}
.mbp__box::after {
	content: "";
	position: absolute;
	left: 10px;
	top: 6px;
	width: 7px;
	height: 12px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .15s;
}
.mbp__cb:checked + .mbp__box { background: var(--mbp-orange); border-color: var(--mbp-orange); }
.mbp__cb:checked + .mbp__box::after { transform: rotate(45deg) scale(1); }

.mbp__row.is-sub { padding-left: 0; }
.mbp__row.is-sub .mbp__check { padding-left: 32px; font-size: 16px; }
.mbp__row.is-sub .mbp__box { width: 26px; height: 26px; }
.mbp__row.is-sub .mbp__box::after { left: 8px; top: 4px; }
.mbp__row.is-disabled .mbp__check { cursor: not-allowed; opacity: .45; }
.mbp__row.is-disabled .mbp__price { opacity: .45; }

.mbp__badge {
	font-family: var(--mbp-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mbp-teal);
	background: var(--mbp-chip);
	border-radius: 999px;
	padding: 6px 12px;
}
.mbp__name { overflow-wrap: anywhere; }
.mbp__price { text-align: right; font-size: 17px; white-space: nowrap; }
.mbp__price s { color: var(--mbp-muted); font-size: .85em; }
.mbp__unit { color: var(--mbp-muted); }

.mbp__qty {
	grid-column: 1;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0 0 48px;
	font-size: 14px;
	color: var(--mbp-muted);
}
.mbp__row.is-sub .mbp__qty { margin-left: 80px; }
.mbp__qty-in {
	width: 72px;
	padding: 6px 10px;
	border: 1px solid var(--mbp-line);
	border-radius: 999px;
	text-align: center;
	background: #fff;
	color: var(--mbp-text);
}

/* ---------- km ---------- */
.mbp__km {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 17px;
}
.mbp__km-in {
	width: 130px;
	padding: 12px 18px;
	border: 1px solid var(--mbp-line);
	border-radius: 999px;
	background: #fff;
	text-align: center;
	font-size: 20px;
	font-weight: 600;
}

/* ---------- summary ---------- */
.mbp__sum {
	position: sticky;
	/* sticks vertically centered in the viewport; --mbp-sum-h is set by mbp.js */
	top: max(24px, calc(50vh - var(--mbp-sum-h, 0px) / 2));
	background: var(--mbp-navy);
	color: var(--mbp-sum-text);
	border-radius: 32px;
	padding: 28px 24px 24px;
}
.mbp__eyebrow {
	font-family: var(--mbp-mono);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.mbp__lines { min-height: 64px; }
.mbp__line { padding: 14px 0 0; }
.mbp__line + .mbp__line { padding-top: 12px; }
.mbp__line-r { display: flex; justify-content: space-between; gap: 16px; font-size: 17px; }
.mbp__line-r span:last-child { white-space: nowrap; }
.mbp__line-s { margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.mbp__lines .mbp__line:last-child { padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mbp__empty { padding: 16px 0; font-size: 15px; color: rgba(255, 255, 255, .72); border-bottom: 1px solid rgba(255, 255, 255, .12); }

.mbp__total-wrap { padding-top: 28px; }
.mbp__total-l { font-size: 17px; }
.mbp__total {
	font-size: 76px; /* shrunk to fit by mbp.js */
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.1;
	margin: 4px 0 8px;
	white-space: nowrap;
}
.mbp__avg { font-size: 14px; color: rgba(255, 255, 255, .85); }
.mbp__disc { margin: 28px 0 24px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .92); }

.mbp__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 24px;
	border-radius: 999px;
	background: var(--mbp-orange);
	color: var(--mbp-navy);
	font-size: 17px;
	text-decoration: none;
	transition: filter .15s, transform .15s;
}
.mbp__cta { width: 100%; border: 0; cursor: pointer; font: inherit; }
.mbp__cta:disabled { opacity: .45; cursor: not-allowed; }
.mbp__cta:not(:disabled):hover { filter: brightness(1.06); }
.mbp__cta:active { transform: translateY(1px); }
.mbp__cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.mbp__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	justify-content: center;
	margin-top: 18px;
	font-size: 15px;
}
.mbp__trust li { display: inline-flex; align-items: center; gap: 8px; }
.mbp__trust svg { color: var(--mbp-orange); }

/* ---------- narrow containers ---------- */
@container (max-width: 900px) {
	.mbp__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.mbp__sum { position: static; }
}
@container (max-width: 520px) {
	.mbp__sec { grid-template-columns: 36px minmax(0, 1fr); }
	.mbp__row { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
	.mbp__price { text-align: left; padding-left: 48px; white-space: normal; }
	.mbp__row.is-sub .mbp__price { padding-left: 80px; }
	.mbp__qty { margin-left: 48px; }
	.mbp__sum { border-radius: 24px; padding: 24px 18px 20px; }
	.mbp__check { gap: 14px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.mbp * { transition: none !important; }
}

/* ---------- popup (lives on <body>, colours copied from .mbp by mbp.js) ---------- */
.mbp-modal {
	--mbp-navy: #0b2243;
	--mbp-orange: #ff8c35;
	--mbp-teal: #1b8a94;
	--mbp-line: #e4e1dc;
	--mbp-muted: #8d8984;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 16px;
	font-family: inherit;
	color: var(--mbp-navy);
	line-height: 1.4;
	box-sizing: border-box;
}
.mbp-modal *, .mbp-modal *::before, .mbp-modal *::after { box-sizing: border-box; }
.mbp-modal [hidden] { display: none !important; }
.mbp-modal__backdrop { position: absolute; inset: 0; background: rgba(11, 34, 67, .6); backdrop-filter: blur(2px); }
.mbp-modal__panel {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fffdfb;
	border-radius: 28px;
	padding: 36px 32px 32px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
	outline: none;
	animation: mbp-pop .2s ease-out;
}
@keyframes mbp-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.mbp-modal__x {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #efeeec;
	color: inherit;
	cursor: pointer;
}
.mbp-modal__h { margin: 0 40px 8px 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: inherit; }
.mbp-modal__intro { margin: 0 0 20px; color: var(--mbp-muted); font-size: 16px; }

.mbp-modal__sum { background: var(--mbp-navy); color: #fff; border-radius: 20px; padding: 18px 20px; margin-bottom: 24px; }
.mbp-modal__sum-h { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.mbp-modal__sum .mbp__line { padding: 10px 0 0; }
.mbp-modal__sum .mbp__line-r { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.mbp-modal__sum .mbp__line-r span:last-child { white-space: nowrap; }
.mbp-modal__sum .mbp__line-s { font-size: 13px; color: rgba(255, 255, 255, .72); }
.mbp-modal__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .15); }
.mbp-modal__total strong { font-size: 24px; font-weight: 600; }

.mbp-modal__form { display: grid; gap: 14px; }
.mbp-modal__f { display: grid; gap: 6px; font-size: 14px; }
.mbp-modal__f span { font-weight: 600; }
.mbp-modal__f input {
	width: 100%;
	padding: 13px 18px;
	border: 1px solid var(--mbp-line);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: inherit;
}
.mbp-modal__f input:focus-visible { outline: 2px solid var(--mbp-teal); outline-offset: 1px; }
.mbp-modal__f.has-err input { border-color: #c0392b; }
.mbp-modal__err { font-style: normal; font-size: 13px; color: #c0392b; }
.mbp-modal__err:empty { display: none; }
.mbp-modal__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mbp-modal__msg { margin: 0; font-size: 14px; color: #c0392b; }
.mbp-modal__msg:empty { display: none; }
.mbp-modal__submit {
	width: 100%;
	padding: 16px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--mbp-orange);
	color: var(--mbp-navy);
	font: inherit;
	font-size: 17px;
	cursor: pointer;
}
.mbp-modal__submit:hover { filter: brightness(1.06); }
.mbp-modal__submit:disabled { opacity: .6; cursor: wait; }
.mbp-modal__x:focus-visible, .mbp-modal__submit:focus-visible { outline: 2px solid var(--mbp-teal); outline-offset: 2px; }

@media (max-width: 520px) {
	.mbp-modal { padding: 8px; }
	.mbp-modal__panel { padding: 28px 20px 24px; border-radius: 22px; max-height: calc(100vh - 16px); }
}
.mbp-modal__req { color: #c0392b; text-decoration: none; border: 0; cursor: help; }
