/*
 * Stolekonfigurator.
 * Farver og skrifttyper hentes fra sitets Elementor-indstillinger (Site Settings → Global Colors / Global Fonts).
 * Kan overskrives i temaet, fx: .sk-app { --sk-accent: #b5121b; }
 */
.sk-app {
	--sk-accent: var(--e-global-color-accent, var(--e-global-color-primary, #b5121b));
	--sk-accent-ink: #fff;
	--sk-heading: var(--e-global-color-primary, #2b2b2b);
	--sk-ink: var(--e-global-color-text, #333);
	--sk-muted: #767676;
	--sk-line: #e3e3e3;
	--sk-soft: #f6f6f6;
	--sk-surface: #fff;
	--sk-head-font: var(--e-global-typography-primary-font-family, inherit);
	--sk-head-weight: var(--e-global-typography-primary-font-weight, 400);
	--sk-radius: 3px;
	--sk-aside: 360px;
	color: var(--sk-ink);
	font-family: var(--e-global-typography-text-font-family, inherit);
	line-height: 1.55;
	container-type: inline-size;
	container-name: skapp;
}
.sk-app *, .sk-app *::before, .sk-app *::after { box-sizing: border-box; }
.sk-app .sk-loading { color: var(--sk-muted); text-align: center; }
.sk-app h2, .sk-app h3, .sk-app h4 { font-family: var(--sk-head-font); color: var(--sk-heading); letter-spacing: normal; text-transform: none; }
.sk-app :focus-visible { outline: 2px solid var(--sk-accent); outline-offset: 3px; }

/* ---------- oversigt ---------- */
.sk-app .sk-families { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
@container skapp (max-width: 720px) { .sk-families { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 16px !important; } .sk-family-img { height: 150px !important; } .sk-family-title { font-size: .95rem; } }
@container skapp (max-width: 420px) { .sk-families { grid-template-columns: 1fr !important; } }
.sk-app .sk-families li { margin: 0; padding: 0; }
.sk-app .sk-family-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; text-decoration: none; color: inherit; }
.sk-app .sk-family-img { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 220px; }
.sk-app .sk-family-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) { .sk-app .sk-family-img img { transition: transform .25s ease; } }
.sk-app .sk-family-card:hover .sk-family-img img { transform: translateY(-4px); }
.sk-app .sk-family-title { color: var(--sk-accent); font-weight: 600; line-height: 1.35; max-width: 18em; }
.sk-app .sk-family-card:hover .sk-family-title { text-decoration: underline; text-underline-offset: 3px; }
.sk-app .sk-family-desc { color: var(--sk-muted); font-size: .9rem; max-width: 26em; }
.sk-app .sk-overview-decode { margin: 48px auto 0; max-width: 420px; text-align: center; font-size: .9rem; color: var(--sk-muted); }
.sk-app .sk-overview-decode label { display: flex; flex-direction: column; gap: 6px; }
.sk-app .sk-row { display: flex; gap: 6px; }

/* ---------- konfigurator ---------- */
.sk-app .sk-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 4px; }
.sk-app .sk-back { display: inline-block; color: var(--sk-accent); text-decoration: none; font-size: .9rem; margin-bottom: 4px; }
.sk-app .sk-back::before { content: "‹ "; }
.sk-app .sk-back:hover { text-decoration: underline; }
.sk-app .sk-title { font-size: clamp(1.5rem, 3cqi, 2rem); font-weight: var(--sk-head-weight); margin: 0; line-height: 1.2; }
.sk-app .sk-field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--sk-muted); margin: 0; }
.sk-app .sk-decode { flex-direction: row; align-items: flex-end; gap: 6px; }
.sk-app .sk-decode label { display: flex; flex-direction: column; gap: 4px; }
.sk-app input[type=text], .sk-app input[type=email], .sk-app input[type=tel], .sk-app input[type=number], .sk-app textarea {
	font: inherit; font-size: 1rem; color: var(--sk-ink); background: var(--sk-surface); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); padding: 9px 11px; min-width: 0; width: 100%; box-shadow: none;
}
.sk-app input:focus, .sk-app textarea:focus { border-color: var(--sk-accent); outline: none; }
.sk-app .sk-skuin { min-width: 12rem; letter-spacing: .04em; }
.sk-app .sk-btn { font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; border-radius: var(--sk-radius); background: var(--sk-surface); color: var(--sk-ink); border: 1px solid var(--sk-line); padding: 9px 16px; line-height: 1.3; text-transform: none; letter-spacing: normal; white-space: nowrap; }
.sk-app .sk-btn:hover { border-color: var(--sk-ink); }
.sk-app .sk-btn-go { background: var(--sk-accent); color: var(--sk-accent-ink); border-color: var(--sk-accent); }
.sk-app .sk-btn-go:hover { filter: brightness(.92); border-color: var(--sk-accent); }
.sk-app .sk-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.sk-app .sk-wide { width: 100%; }
.sk-app .sk-msg { margin: 8px 0 0; font-size: .9rem; color: var(--sk-accent); min-height: 1.3em; }

.sk-app .sk-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--sk-aside); gap: 40px; align-items: start; margin-top: 8px; }
/* (mobil-regler ligger nederst i filen) */

.sk-app .sk-steps { list-style: none; margin: 0; padding: 0; counter-reset: skstep; }
.sk-app .sk-step { counter-increment: skstep; border-top: 1px solid var(--sk-line); padding: 22px 0 24px; display: grid; grid-template-columns: 36px 1fr; gap: 0 14px; margin: 0; }
.sk-app .sk-step::before { content: counter(skstep); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--sk-line); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem; color: var(--sk-muted); }
.sk-app .sk-step.sk-done::before { background: var(--sk-accent); border-color: var(--sk-accent); color: var(--sk-accent-ink); }
.sk-app .sk-step h3 { font-size: 1.2rem; font-weight: var(--sk-head-weight); line-height: 1.25; margin: 3px 0 4px; }
.sk-app .sk-hint { color: var(--sk-muted); font-size: .9rem; margin: 0 0 14px; }
.sk-app .sk-sub { margin-top: 18px; }
.sk-app .sk-sub h4 { font-size: .95rem; font-weight: 600; margin: 0 0 8px; color: var(--sk-ink); }
.sk-app .sk-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.sk-app .sk-opt { white-space: normal; overflow-wrap: anywhere; height: auto; position: relative; text-align: left; background: var(--sk-surface); color: var(--sk-ink); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); padding: 12px; font: inherit; font-size: .95rem; font-weight: 500; line-height: 1.3; display: flex; flex-direction: column; gap: 4px; min-height: 48px; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; }
.sk-app .sk-opt img { width: 100%; height: auto; max-height: 160px; aspect-ratio: 1 / 1; object-fit: contain; background: var(--sk-surface); margin-bottom: 6px; }
.sk-app .sk-opt small { font-weight: 400; color: var(--sk-muted); font-size: .8rem; white-space: pre-line; }
.sk-app .sk-opt code { font-family: inherit; font-size: .78rem; font-weight: 600; line-height: 1.2; letter-spacing: .06em; color: var(--sk-muted); background: none; padding: 0; margin-top: auto; }
.sk-app .sk-opt:hover { border-color: #bdbdbd; background: var(--sk-surface); color: var(--sk-ink); }
.sk-app .sk-opt[aria-pressed=true] { border-color: var(--sk-accent); box-shadow: inset 0 0 0 1px var(--sk-accent); }
.sk-app .sk-opt[aria-pressed=true]::after { content: ""; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--sk-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat; }
.sk-app .sk-opt[aria-pressed=true] code { color: var(--sk-accent); }
.sk-app .sk-empty { color: var(--sk-muted); font-style: italic; margin: 0; }

.sk-app .sk-aside { position: sticky; top: 100px; min-width: 0; }
.sk-app .sk-plate-row .sk-btn { white-space: normal; }
.sk-app .sk-plate { background: var(--sk-soft); border-top: 3px solid var(--sk-accent); padding: 18px 18px 16px; }
.sk-app .sk-plate-lbl { font-size: .8rem; color: var(--sk-muted); margin: 0 0 8px; }
.sk-app .sk-sku { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; min-height: 44px; }
.sk-app .sk-seg { display: flex; flex-direction: column; align-items: stretch; }
.sk-app .sk-seg i { display: block; height: 2px; margin-top: 6px; background: var(--sk-heading); border-radius: 1px; }
.sk-app .sk-seg.sk-blank i { background: #cfcfcf; }
.sk-app .sk-seg.sk-fresh i { background: var(--sk-accent); }
.sk-app .sk-seg.sk-more i { display: none; }
.sk-app .sk-seg b { font-family: var(--sk-head-font); font-weight: 600; font-size: 1.9rem; line-height: 1; letter-spacing: .03em; font-variant-numeric: tabular-nums; color: var(--sk-heading); }
.sk-app .sk-seg.sk-blank b { color: #c4c4c4; }
.sk-app .sk-seg.sk-fresh b { color: var(--sk-accent); }
@media (prefers-reduced-motion: no-preference) { .sk-app .sk-seg b { transition: color 1.2s ease; } }
.sk-app .sk-plate-row { flex-wrap: wrap; display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sk-line); }
.sk-app .sk-height small { display: block; color: var(--sk-muted); font-size: .75rem; }
.sk-app .sk-height b { font-size: 1.3rem; font-weight: 600; color: var(--sk-heading); }

.sk-app .sk-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sk-app .sk-thumbs:empty { display: none; }
.sk-app .sk-thumbs img { width: 72px; height: 72px; object-fit: contain; background: var(--sk-surface); border: 1px solid var(--sk-line); border-radius: var(--sk-radius); }

.sk-app .sk-bom { margin-top: 12px; border: 1px solid var(--sk-line); padding: 14px 16px; background: var(--sk-surface); }
.sk-app .sk-bom h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; }
.sk-app .sk-bom table { width: 100%; border-collapse: collapse; font-size: .86rem; margin: 0; border: 0; }
.sk-app .sk-bom td { padding: 6px 0; border: 0; border-top: 1px solid var(--sk-line); vertical-align: top; background: none; }
.sk-app .sk-bom td:first-child { color: var(--sk-muted); width: 32%; padding-right: 10px; overflow-wrap: normal; word-break: normal; }
.sk-app .sk-bom td:nth-child(2) { overflow-wrap: anywhere; }
.sk-app .sk-bom td.sk-vnr { text-align: right; white-space: nowrap; padding-left: 8px; color: var(--sk-muted); }
.sk-app .sk-bom table { table-layout: fixed; }
.sk-app .sk-bom, .sk-app .sk-plate, .sk-app .sk-inquiry, .sk-app .sk-form { max-width: 100%; overflow-wrap: anywhere; }

.sk-app .sk-inquiry { margin-top: 12px; }
.sk-app .sk-ok { background: var(--sk-soft); border-left: 3px solid var(--sk-accent); padding: 12px 14px; margin: 0; }

/* valg med hjælpetekst */
.sk-app .sk-opt-wrap { position: relative; display: flex; flex-direction: column; min-width: 0; }
.sk-app .sk-opt-wrap > .sk-opt { flex: 1; }
.sk-app .sk-has-help > .sk-opt { padding-right: 34px; }
.sk-app .sk-has-help > .sk-opt .sk-opt-name { padding-right: 0; }
.sk-app .sk-has-help > .sk-opt[aria-pressed=true]::after { right: 36px; top: 10px; }
.sk-app .sk-opt[aria-pressed=true] .sk-opt-name { padding-right: 20px; }
.sk-app .sk-has-help > .sk-opt[aria-pressed=true] .sk-opt-name { padding-right: 16px; }
.sk-app .sk-info { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid var(--sk-line); background: var(--sk-surface); color: var(--sk-muted); font: italic 600 13px/20px Georgia, serif; text-align: center; cursor: pointer; text-transform: none; }
.sk-app .sk-info:hover, .sk-app .sk-info[aria-expanded=true] { border-color: var(--sk-accent); color: var(--sk-accent); background: var(--sk-surface); }
.sk-app .sk-help { margin: 6px 0 0; padding: 8px 10px; font-size: .82rem; line-height: 1.45; color: var(--sk-ink); background: var(--sk-soft); border-left: 2px solid var(--sk-accent); white-space: pre-line; }
.sk-app .sk-help[hidden] { display: none; }


/* ---------- "Har du et varenummer?" ---------- */
.sk-app .sk-decode-box { font-size: .9rem; }
.sk-app .sk-decode-box > summary { cursor: pointer; color: var(--sk-muted); list-style: none; margin-bottom: 4px; }
.sk-app .sk-decode-box > summary::-webkit-details-marker { display: none; }
.sk-app .sk-decode-box > summary::after { content: " ▾"; font-size: .8em; }
.sk-app .sk-decode-box[open] > summary::after { content: " ▴"; }
.sk-app .sk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- mobilbar (kun smal visning) ---------- */
.sk-app .sk-bar { display: none; }

/* ---------- mobil og smal tablet ---------- */
@container skapp (max-width: 859px) {
	.sk-app .sk-layout { grid-template-columns: 1fr !important; gap: 0 !important; margin-top: 0 !important; }
	.sk-app .sk-aside { order: 0 !important; position: static !important; margin-top: 24px; scroll-margin-top: 90px; }
	.sk-app .sk-head { flex-direction: column; align-items: stretch !important; gap: 10px !important; }
	.sk-app .sk-title { font-size: 1.5rem !important; }
	.sk-app .sk-decode { width: 100%; }
	.sk-app .sk-decode label { flex: 1; }
	.sk-app .sk-skuin { min-width: 0 !important; }

	.sk-app .sk-step { display: block !important; padding: 18px 0 20px !important; scroll-margin-top: 90px; }
	.sk-app .sk-step::before { float: left; width: 26px !important; height: 26px !important; font-size: .8rem !important; margin: 0 10px 0 0; }
	.sk-app .sk-step h3 { font-size: 1.1rem !important; line-height: 26px !important; margin: 0 0 4px !important; }
	.sk-app .sk-hint { clear: left; margin: 0 0 10px !important; font-size: .85rem !important; }
	.sk-app .sk-step > div > .sk-opts, .sk-app .sk-step > div > .sk-sub, .sk-app .sk-step > div > .sk-empty { clear: left; }
	.sk-app .sk-sub { margin-top: 14px !important; }

	.sk-app .sk-opts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
	.sk-app .sk-opt { padding: 10px !important; font-size: .9rem !important; min-height: 52px; }
	.sk-app .sk-opt img { max-height: 120px !important; margin-bottom: 4px !important; }
	.sk-app .sk-has-help > .sk-opt { padding-right: 30px !important; }
	.sk-app .sk-info { top: 6px !important; right: 6px !important; }
	.sk-app .sk-info::before { content: ""; position: absolute; inset: -10px; } /* større trykflade */
	.sk-app .sk-has-help > .sk-opt[aria-pressed=true]::after { right: 32px !important; top: 8px !important; }

	.sk-app .sk-plate { padding: 14px !important; }
	.sk-app .sk-seg b { font-size: 1.6rem !important; }

	.sk-app .sk-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; bottom: 0; z-index: 20;
		margin: 0 -2px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--sk-surface);
		border-top: 2px solid var(--sk-accent); box-shadow: 0 -6px 16px rgba(0,0,0,.08); }
	.sk-app .sk-bar-info { display: flex; flex-direction: column; min-width: 0; }
	.sk-app .sk-bar-code { font-family: var(--sk-head-font); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; color: var(--sk-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.sk-app .sk-bar-height { font-size: .75rem; color: var(--sk-muted); }
	.sk-app .sk-bar-height:empty { display: none; }
	.sk-app .sk-bar-cta { flex: none; padding: 10px 14px !important; font-size: .9rem !important; text-decoration: none; text-align: center; }
	.sk-app .sk-bar-cta:hover { color: var(--sk-accent-ink); }
}
@container skapp (max-width: 299px) {
	.sk-app .sk-opts { grid-template-columns: 1fr !important; }
}

/* billede af den færdige stol */
.sk-app .sk-hero { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; background: var(--sk-surface); border: 1px solid var(--sk-line); margin-top: 12px; }
.sk-app .sk-hero[hidden] { display: none; }

/* forespørgselsformular */
.sk-app .sk-form { display: grid; gap: 12px; margin-top: 10px; border: 1px solid var(--sk-line); padding: 16px; background: var(--sk-surface); }
.sk-app .sk-form[hidden] { display: none; }
.sk-app .sk-form .sk-field { gap: 4px; }
.sk-app .sk-form .sk-field[hidden] { display: none; }
.sk-app .sk-form label { color: var(--sk-ink); font-size: .85rem; font-weight: 500; }
.sk-app .sk-form textarea { resize: vertical; min-height: 90px; }
.sk-app .sk-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--sk-line); border-radius: var(--sk-radius); overflow: hidden; }
.sk-app .sk-tab { font: inherit; font-size: .9rem; font-weight: 600; padding: 10px 8px; border: 0; background: var(--sk-surface); color: var(--sk-muted); cursor: pointer; text-transform: none; letter-spacing: normal; border-radius: 0; }
.sk-app .sk-tab + .sk-tab { border-left: 1px solid var(--sk-line); }
.sk-app .sk-tab[aria-selected=true] { background: var(--sk-accent); color: var(--sk-accent-ink); }
.sk-app .sk-tab:hover:not([aria-selected=true]) { background: var(--sk-soft); color: var(--sk-ink); }
.sk-app .sk-summary { margin: 0; padding: 0 0 10px; border-bottom: 1px solid var(--sk-line); display: grid; gap: 4px; }
.sk-app .sk-summary div { display: flex; justify-content: space-between; gap: 12px; }
.sk-app .sk-summary dt { color: var(--sk-muted); font-weight: 400; margin: 0; }
.sk-app .sk-summary dd { margin: 0; font-weight: 600; text-align: right; letter-spacing: .02em; }
.sk-app .sk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sk-app .sk-ok { background: var(--sk-soft); border-left: 3px solid var(--sk-accent); padding: 12px 14px; margin: 10px 0 0; }
