/* ==========================================================================
   Livlig
   Farver hentet fra produkterne: salvie, smørgul og støvet rosa på kølig hvid.
   Hjørner på 6px som de syede skumklodser; buer og kiler kun i hero-klodserne.
   ========================================================================== */

:root {
	--ink: #1f2b2a;
	--ink-soft: #4a5654;
	--paper: #f6f7f4;
	--white: #ffffff;
	--salvie: #a8c4b4;
	--salvie-light: #dbe7e0;
	--smoer: #ebd38c;
	--smoer-light: #f6ecc9;
	--rosa: #e8b9ae;
	--skov: #2f5d50;
	--skov-dark: #234639;
	--line: #d9dfda;
	--danger: #a33a2c;

	--font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 6px;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(56px, 8vw, 104px);
}

/* ---------- Grundlag ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--skov); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--skov-dark); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.1875rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--skov); outline-offset: 2px; border-radius: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(720px + 2 * var(--gutter)); }

.section { padding: var(--section) 0; }
.section--tint { background: var(--salvie-light); }
.section-title { margin-bottom: .9em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { margin-bottom: .75em; }
.text-link { font-weight: 600; }

/* ---------- Knapper ---------- */

.button,
button.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	background: var(--skov); color: var(--white);
	font: 600 1rem/1.2 var(--font);
	padding: 14px 22px; min-height: 48px;
	border: 0; border-radius: var(--radius);
	text-decoration: none; cursor: pointer;
	transition: background-color .15s ease;
}
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
input[type="submit"]:hover { background: var(--skov-dark); color: var(--white); }
.button--large { padding: 18px 28px; font-size: 1.0625rem; }
.button:disabled, .woocommerce button.button:disabled, .woocommerce button.button.disabled {
	opacity: .45; cursor: not-allowed;
}
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--skov); }

/* ---------- Topbar + header ---------- */

.topbar { background: var(--ink); color: #e9eeeb; font-size: .875rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__note { margin: 0; }

.moms-toggle { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.moms-toggle__label { opacity: .8; }
.moms-toggle__group { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
.moms-toggle__opt {
	color: #e9eeeb; text-decoration: none; padding: 3px 12px; border-radius: 999px; font-weight: 600; font-size: .8125rem;
}
.moms-toggle__opt[aria-current="true"] { background: var(--smoer); color: var(--ink); }
.moms-toggle__opt:hover { color: var(--white); }
.moms-toggle__opt[aria-current="true"]:hover { color: var(--ink); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.site-logo { color: var(--ink); display: block; width: 132px; flex-shrink: 0; }
.site-logo svg { width: 100%; }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { border-bottom-color: var(--smoer); }
.site-nav .sub-menu { display: none; }

.cart-link { position: relative; color: var(--ink); display: inline-flex; padding: 8px; }
.cart-count {
	position: absolute; top: 0; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 999px; background: var(--rosa); color: var(--ink);
	font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center;
}
.cart-count[data-count="0"] { display: none; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 12px; cursor: pointer; color: var(--ink); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
	.topbar__note { display: none; }
	.topbar__inner { justify-content: flex-end; }
	.site-header__inner { gap: 8px; min-height: 64px; }
	.site-logo { width: 108px; }
	.nav-toggle { display: block; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
	}
	.nav-open .site-nav { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.site-nav a:hover { border-bottom-color: var(--line); }
}

/* ---------- Hero med skumklodser ---------- */

.hero { background: var(--white); overflow: hidden; }
.hero__inner {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center; gap: clamp(32px, 5vw, 72px);
	padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px);
}
.hero__title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; max-width: 12ch; margin-bottom: .4em; }
.hero__lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }
.hero__actions { margin: 2em 0 0; }

/* Klodserne gengiver produkternes former: L-modul, bue, kile (rutsjebane), terning og bænk */
.blocks { position: relative; aspect-ratio: 1 / 0.9; width: 100%; max-width: 560px; justify-self: end; }
.block { position: absolute; display: block; border-radius: var(--radius); }
.block--long  { left: 0;   bottom: 0;  width: 100%; height: 18%; background: var(--salvie); }
.block--ell   { left: 0;   bottom: 18%; width: 46%; height: 46%; background: var(--smoer);
	clip-path: polygon(0 0, 44% 0, 44% 56%, 100% 56%, 100% 100%, 0 100%); border-radius: 0; }
.block--arch  { left: 47%; bottom: 18%; width: 30%; height: 34%; background: var(--rosa); border-radius: 999px 999px 0 0; }
.block--wedge { left: 46%; bottom: 52%; width: 54%; height: 34%; background: var(--salvie);
	clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }
.block--cube  { right: 0;  bottom: 18%; width: 22%; height: 26%; background: var(--skov); }

@media (prefers-reduced-motion: no-preference) {
	.block { animation: drop .7s cubic-bezier(.3, 1.35, .5, 1) both; }
	.block--long  { animation-delay: .05s; }
	.block--ell   { animation-delay: .2s; }
	.block--arch  { animation-delay: .32s; }
	.block--cube  { animation-delay: .44s; }
	.block--wedge { animation-delay: .58s; }
	@keyframes drop {
		from { transform: translateY(-60px); opacity: 0; }
		to   { transform: none; opacity: 1; }
	}
}

@media (max-width: 860px) {
	.hero__inner { grid-template-columns: 1fr; }
	.blocks { justify-self: stretch; max-width: 440px; }
}

/* ---------- Kategorier ---------- */

.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.cat-card a { display: block; text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--radius); overflow: hidden; height: 100%; }
.cat-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-card__name { display: block; padding: 14px 18px 16px; font-weight: 700; font-size: 1.125rem; border-top: 6px solid var(--salvie); }
.cat-card--1 .cat-card__name { border-top-color: var(--smoer); }
.cat-card--2 .cat-card__name { border-top-color: var(--rosa); }
.cat-card--3 .cat-card__name { border-top-color: var(--skov); }
.cat-card a:hover .cat-card__name { text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Om Livlig ---------- */

.story__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.story__text .entry-content { max-width: 60ch; }
.story__img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.story__placeholder { aspect-ratio: 4 / 5; border-radius: var(--radius); background:
	linear-gradient(var(--smoer) 0 0) 0 100% / 100% 30% no-repeat,
	linear-gradient(var(--rosa) 0 0) 0 0 / 55% 70% no-repeat,
	var(--salvie-light); }
@media (max-width: 860px) { .story__inner { grid-template-columns: 1fr; } }

/* ---------- B2B ---------- */

.b2b { background: var(--smoer-light); }
.b2b__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.b2b__list h3 { margin-bottom: .35em; }
.b2b__list p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .b2b__list { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #d6ddd9; font-size: .9375rem; padding-top: clamp(48px, 6vw, 80px); }
.site-footer a { color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__brand p { max-width: 36ch; margin-top: 18px; }
.site-logo--footer { color: var(--white); width: 120px; }
.site-footer__heading { font-size: 1rem; color: var(--white); margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer address { font-style: normal; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 20px; padding-bottom: 28px; font-size: .875rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Indhold ---------- */

.entry-content > *:last-child { margin-bottom: 0; }
.entry-content img { border-radius: var(--radius); }
.entry--summary { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }

/* ==========================================================================
   WooCommerce
   ========================================================================== */

.woocommerce-breadcrumb { font-size: .875rem; color: var(--ink-soft); margin-bottom: 24px; }
.woocommerce-breadcrumb a { color: var(--ink-soft); }
.woocommerce-products-header__title { margin-bottom: .4em; }
.term-description { color: var(--ink-soft); max-width: 65ch; }

.woocommerce-result-count { color: var(--ink-soft); font-size: .9375rem; margin: 0 0 24px; float: left; }
.woocommerce-ordering { float: right; margin: 0 0 24px; }
.woocommerce-ordering select { min-height: 42px; }
ul.products { clear: both; }

/* Produktgrid */
ul.products {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px;
}
ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
ul.products::before, ul.products::after { display: none; }
@media (max-width: 960px) { ul.products, ul.products.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { ul.products, ul.products.columns-4, ul.products.columns-2 { grid-template-columns: 1fr; } }

ul.products li.product { position: relative; display: flex; flex-direction: column; margin: 0; width: auto; float: none; }
ul.products li.product a.woocommerce-LoopProduct-link { color: var(--ink); text-decoration: none; display: block; }
ul.products li.product img {
	width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--white); margin: 0 0 14px;
}
ul.products li.product .woocommerce-loop-product__title { font-size: 1.125rem; font-weight: 700; margin: 0 0 4px; }
ul.products li.product .price { display: block; color: var(--ink); font-weight: 600; margin-top: 6px; }
ul.products li.product .button { margin-top: auto; align-self: flex-start; padding: 10px 16px; min-height: 42px; font-size: .9375rem; }
ul.products li.product .price + .button,
ul.products li.product a.woocommerce-LoopProduct-link + .button { margin-top: 14px; }
ul.products li.product .added_to_cart { margin-top: 8px; font-size: .9375rem; font-weight: 600; }

.price .woocommerce-price-suffix { font-size: .8125rem; font-weight: 500; color: var(--ink-soft); }
.price del { color: var(--ink-soft); font-weight: 400; margin-right: 6px; }
.price ins { text-decoration: none; }

.onsale {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	background: var(--rosa); color: var(--ink); font-weight: 700; font-size: .8125rem;
	padding: 4px 10px; border-radius: 999px;
}

.card-swatches { display: flex; align-items: center; gap: 5px; margin: 4px 0 2px; }
.card-swatches__dot { width: 18px; height: 18px; border-radius: 50%; background: #d9d9d9 var(--swatch-img) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.card-swatches__more { font-size: .8125rem; color: var(--ink-soft); margin-left: 2px; }

/* Produktside */
.single-product div.product {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 64px); align-items: start; position: relative;
}
.single-product div.product .woocommerce-product-gallery { grid-column: 1; grid-row: 1 / span 2; margin: 0; opacity: 1 !important; }
.single-product div.product .summary { grid-column: 2; margin: 0; position: sticky; top: 100px; }
.single-product div.product .woocommerce-tabs,
.single-product div.product .related,
.single-product div.product .upsells { grid-column: 1 / -1; }
@media (max-width: 860px) {
	.single-product div.product { grid-template-columns: 1fr; }
	.single-product div.product .woocommerce-product-gallery,
	.single-product div.product .summary { grid-column: 1; grid-row: auto; position: static; }
}

.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { border-radius: var(--radius); background: var(--white); width: 100%; }
.woocommerce-product-gallery .flex-control-thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.woocommerce-product-gallery .flex-control-thumbs img { border-radius: 4px; cursor: pointer; opacity: .6; transition: opacity .15s; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: var(--white); font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: ""; position: absolute; inset: 12px; border: 2px solid var(--ink); border-radius: 50%; width: 11px; height: 11px; }
.woocommerce-product-gallery { position: relative; }

.product_title { font-size: clamp(1.875rem, 3.4vw, 2.5rem); margin-bottom: .3em; }
.summary > .price { font-size: 1.5rem; font-weight: 700; margin: 0 0 18px; }
.woocommerce-product-details__short-description { color: var(--ink-soft); }

/* Variationer */
table.variations { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
table.variations tr { display: block; margin-bottom: 18px; }
table.variations th, table.variations td { display: block; padding: 0; text-align: left; }
table.variations th label { font-weight: 700; font-size: .9375rem; display: block; margin-bottom: 8px; }
.variation-select-hidden select {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0;
}
.reset_variations { display: inline-block; margin-top: 10px; font-size: .875rem; }

.variation-picker__options { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
	width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer;
	background: #d9d9d9 var(--swatch-img) center / cover no-repeat; border: 2px solid var(--white);
	box-shadow: 0 0 0 1px var(--line);
	transition: box-shadow .12s ease;
}
.swatch:hover { box-shadow: 0 0 0 2px var(--ink-soft); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--ink); }
.swatch:disabled { opacity: .3; cursor: not-allowed; background-image: linear-gradient(135deg, transparent 47%, var(--ink) 47% 53%, transparent 53%), var(--swatch-img); }
.variation-picker__current { margin: 8px 0 0; font-size: .9375rem; color: var(--ink-soft); min-height: 1.5em; }

.pill {
	min-width: 56px; min-height: 44px; padding: 8px 16px; cursor: pointer;
	background: var(--white); color: var(--ink); font: 600 .9375rem/1.2 var(--font);
	border: 1px solid var(--line); border-radius: var(--radius);
}
.pill:hover { border-color: var(--ink-soft); }
.pill[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pill:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.single_variation_wrap .woocommerce-variation-price .price { font-size: 1.5rem; font-weight: 700; display: block; margin-bottom: 12px; }
.woocommerce-variation-availability .stock { font-size: .9375rem; }

form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 0 0 24px; }
form.variations_form { display: block; }
.woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.quantity .qty { width: 80px; min-height: 48px; text-align: center; }
.single_add_to_cart_button { flex: 1 1 200px; }

.product_meta { font-size: .875rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; }
.product_meta > span { display: block; margin-bottom: 4px; }

.woocommerce-tabs { margin-top: clamp(40px, 6vw, 72px); }
.woocommerce-tabs ul.tabs { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 0; color: var(--ink-soft); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--ink); }
.woocommerce-Tabs-panel { max-width: 72ch; }
.woocommerce-Tabs-panel > h2:first-child { display: none; }
.woocommerce-product-attributes { border-collapse: collapse; width: 100%; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.woocommerce-product-attributes td p { margin: 0; }

.related, .upsells { margin-top: clamp(48px, 7vw, 88px); }

/* Formularer */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"],
input[type="search"], textarea, select, .select2-container .select2-selection--single {
	width: 100%; min-height: 48px; padding: 10px 14px;
	font: 400 1rem/1.4 var(--font); color: var(--ink);
	background: var(--white); border: 1px solid #c3ccc6; border-radius: var(--radius);
}
.select2-container .select2-selection--single { display: flex; align-items: center; }
.select2-container .select2-selection--single .select2-selection__arrow { top: 10px; right: 8px; }
textarea { min-height: 120px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--skov); outline-offset: 0; border-color: var(--skov); }

.form-row { margin: 0 0 16px; }
.form-row label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.form-row .required { color: var(--danger); text-decoration: none; }
.form-row .optional { color: var(--ink-soft); font-weight: 400; }
.form-row.woocommerce-invalid input.input-text { border-color: var(--danger); }
.description, .form-row .description { font-size: .875rem; color: var(--ink-soft); }
@media (min-width: 640px) {
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper {
		display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px;
	}
	.form-row-wide, #billing_country_field, #shipping_country_field,
	#livlig_kundetype_field { grid-column: 1 / -1; }
}

/* Kundetype som segmenteret valg */
#livlig_kundetype_field .woocommerce-input-wrapper { display: flex; flex-wrap: wrap; gap: 8px; }
#livlig_kundetype_field input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
#livlig_kundetype_field label.radio {
	display: inline-flex; align-items: center; margin: 0; padding: 10px 16px; cursor: pointer;
	border: 1px solid #c3ccc6; border-radius: var(--radius); background: var(--white); font-weight: 600;
}
#livlig_kundetype_field input[type="radio"]:checked + label.radio { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--salvie-light); }
#livlig_kundetype_field input[type="radio"]:focus-visible + label.radio { outline: 3px solid var(--skov); outline-offset: 2px; }
.livlig-b2b-hidden { display: none !important; }

/* Beskeder */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
	list-style: none; margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius);
	background: var(--salvie-light); border-left: 4px solid var(--skov);
	display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.woocommerce-error { background: #f7e3df; border-left-color: var(--danger); display: block; }
.woocommerce-error li { margin: 0 0 4px; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; padding: 8px 14px; min-height: 40px; }

/* Kurv */
table.shop_table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
table.shop_table th, table.shop_table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table th { font-size: .875rem; color: var(--ink-soft); font-weight: 600; }
table.shop_table .product-thumbnail img { width: 72px; border-radius: 4px; }
table.shop_table .product-remove a { font-size: 1.5rem; text-decoration: none; color: var(--ink-soft); }
table.shop_table td.actions .coupon { display: inline-flex; gap: 8px; flex-wrap: wrap; }
table.shop_table td.actions .coupon input { width: 180px; }
table.shop_table td.actions > .button { float: right; }
.cart-collaterals .cart_totals { max-width: 460px; margin-left: auto; }
.wc-proceed-to-checkout .checkout-button { width: 100%; }
@media (max-width: 760px) {
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
	table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 8px 16px; }
	table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; }
	table.shop_table_responsive td.product-remove::before, table.shop_table_responsive td.product-thumbnail::before, table.shop_table_responsive td.actions::before { display: none; }
	table.shop_table td.actions > .button { float: none; width: 100%; }
}

/* Kasse */
form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
form.checkout #customer_details { grid-column: 1; }
form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
form.checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 100px; }
form.checkout .col2-set .col-1, form.checkout .col2-set .col-2 { width: 100%; float: none; }
form.checkout .col2-set .col-2 { margin-top: 24px; }
@media (max-width: 900px) {
	form.checkout { grid-template-columns: 1fr; }
	form.checkout #customer_details, form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; position: static; }
}
#payment { background: var(--white); border-radius: var(--radius); padding: 18px; margin-top: 8px; }
#payment ul.payment_methods { list-style: none; margin: 0 0 16px; padding: 0; }
#payment ul.payment_methods li { padding: 12px 0; border-bottom: 1px solid var(--line); }
#payment ul.payment_methods li label { font-weight: 600; cursor: pointer; }
#payment .payment_box { margin-top: 8px; padding: 12px 14px; background: var(--paper); border-radius: var(--radius); font-size: .9375rem; }
#payment .payment_box p:last-child { margin: 0; }
#place_order { width: 100%; }
.woocommerce-terms-and-conditions-wrapper { font-size: .9375rem; margin-bottom: 16px; }

/* Konto */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { color: var(--skov); }
@media (max-width: 760px) { .woocommerce-account .woocommerce { grid-template-columns: 1fr; } }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 520px; }

.woocommerce-pagination ul { list-style: none; margin: 40px 0 0; padding: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: var(--radius); text-decoration: none; background: var(--white); color: var(--ink); font-weight: 600; }
.woocommerce-pagination .current { background: var(--ink); color: var(--white); }

.clear { clear: both; }
