
.tkv {
    --tkv-kort: #ffffff;
    --tkv-felt: #f8fafc;
    --tkv-tekst: #0f172a;
    --tkv-tekst-2: #64748b;
    --tkv-linje: #e2e8f0;
    --tkv-accent: #6C63FF;
    --tkv-accent-ink: #ffffff;
    --tkv-r: 16px;
    --tkv-r-lille: 10px;
    margin: 0 0 24px 0;
}
html.dark .tkv {
    --tkv-kort: #0f172a;
    --tkv-felt: #1e293b;
    --tkv-tekst: #f8fafc;
    --tkv-tekst-2: #94a3b8;
    --tkv-linje: #1e293b;
}
body.ed .tkv {
    --tkv-kort: var(--ed-kort);
    --tkv-felt: var(--ed-felt);
    --tkv-tekst: var(--ed-tekst);
    --tkv-tekst-2: var(--ed-tekst-2);
    --tkv-linje: var(--ed-linje);
    --tkv-accent: var(--ed-accent);
    --tkv-accent-ink: var(--ed-accent-ink, #fff);
    --tkv-r: var(--ed-r, 16px);
    --tkv-r-lille: var(--ed-knap-r, 10px);
}
.tkv[hidden] { display: none; }
.tkv-titel { margin: 0 0 12px 0; font-size: 1.05rem; font-weight: 800; color: var(--tkv-tekst); letter-spacing: -0.01em; }
.tkv-liste { display: grid; gap: 10px; }
.tkv-kort { background: var(--tkv-kort); border: 1px solid var(--tkv-linje); border-radius: var(--tkv-r); padding: 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.tkv-kort.er-valgt { border-color: var(--tkv-accent); box-shadow: 0 0 0 1px var(--tkv-accent); }
.tkv-top { display: flex; gap: 12px; align-items: flex-start; }
.tkv-billede { width: 56px; height: 56px; border-radius: calc(var(--tkv-r) - 4px); flex-shrink: 0; background: var(--tkv-felt) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--tkv-accent); }
.tkv-billede svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tkv-tekst { flex: 1; min-width: 0; }
.tkv-navn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; color: var(--tkv-tekst); font-size: 0.98rem; overflow-wrap: anywhere; }
.tkv-maerke { font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--tkv-felt); color: var(--tkv-tekst-2); text-transform: uppercase; letter-spacing: 0.03em; }
.tkv-maerke--alder { color: #b42318; }
.tkv-kampagne { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 99px; background: var(--tkv-accent); color: var(--tkv-accent-ink); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; max-width: 100%; overflow-wrap: anywhere; }
.tkv-beskrivelse { margin: 6px 0 0 0; font-size: 0.86rem; line-height: 1.45; color: var(--tkv-tekst-2); white-space: pre-line; }
.tkv-prislinje { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 6px; }
.tkv-pris { font-weight: 800; color: var(--tkv-tekst); font-size: 0.98rem; }
.tkv-foer { color: var(--tkv-tekst-2); font-size: 0.84rem; }
.tkv-spar { font-size: 0.74rem; font-weight: 700; color: #027a48; background: #ecfdf3; padding: 1px 7px; border-radius: 99px; }
html.dark .tkv-spar { background: rgba(3, 152, 85, 0.18); color: #6ce9a6; }
.tkv-info { margin: 6px 0 0 0; font-size: 0.76rem; color: var(--tkv-tekst-2); line-height: 1.45; }
.tkv-ned { color: #c4320a; font-weight: 700; }
html.dark .tkv-ned { color: #fdb022; }
.tkv-valg { flex-shrink: 0; align-self: center; }
.tkv-varianter { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tkv-linje); }
.tkv-variant { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tkv-variant-navn { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: 0.92rem; color: var(--tkv-tekst); overflow-wrap: anywhere; }
.tkv-variant-navn small { margin-top: 1px; font-size: 0.8rem; font-weight: 500; color: var(--tkv-tekst-2); }
.tkv-stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--tkv-felt); border-radius: 99px; padding: 3px; }
.tkv-knap { appearance: none; width: 32px; height: 32px; border-radius: 50%; border: none; background: transparent; color: var(--tkv-tekst); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tkv-knap svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tkv-knap:disabled { opacity: 0.3; cursor: default; }
.tkv-knap:focus-visible { outline: 2px solid var(--tkv-accent); outline-offset: 1px; }
.tkv-stepper.har-valgt .tkv-knap[data-ret="1"]:not(:disabled) { background: var(--tkv-accent); color: var(--tkv-accent-ink); }
.tkv-tal { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tkv-tekst); font-size: 0.95rem; }
.tkv-udsolgt { font-size: 0.8rem; font-weight: 700; color: var(--tkv-tekst-2); }
.tkv-laast { display: flex; align-items: center; gap: 6px; margin: 12px 0 0 0; font-size: 0.8rem; font-weight: 600; color: var(--tkv-tekst-2); }
.tkv-laast svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tkv-kort.er-laast .tkv-stepper { opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .tkv-kort { transition: none; } }


body.ed .tkv { margin: 28px 0 0 0; }
body.ed .tkv-titel { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; }
body.ed .tkv-liste { gap: 12px; }
body.ed .tkv-kort { background: var(--ed-kort-2); border: 1px solid var(--ed-linje); border-radius: var(--ed-r-lille); padding: 16px; }
body.ed .tkv-kort.er-valgt { border-color: var(--ed-accent); box-shadow: 0 0 0 1px var(--ed-accent); }
body.ed .tkv-billede { border-radius: var(--ed-r-lille); background-color: color-mix(in srgb, var(--ed-tekst) 7%, transparent); }
body.ed .tkv-maerke { background: color-mix(in srgb, var(--ed-tekst) 8%, transparent); }
body.ed .tkv-navn { font-size: 1.02rem; }
body.ed .tkv-pris { color: var(--ed-accent-tekst); font-weight: 700; }
@media (min-width: 640px) {
    body.ed .tkv-liste { gap: 16px; }
    body.ed .tkv-kort { padding: 20px; }
}
.ed[data-ed-billetstil="billetto"] .tkv-kort { background: var(--ed-kort); border: 2px solid transparent; border-radius: var(--ed-r); }
.ed[data-ed-billetstil="billetto"] .tkv-kort.er-valgt { border-color: var(--ed-accent); box-shadow: none; }
.ed[data-ed-billetstil="billetto"] .tkv-navn { text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.95rem; }
.ed[data-ed-billetstil="apple"] .tkv-liste { gap: 0; }
.ed[data-ed-billetstil="apple"] .tkv-kort, .ed[data-ed-billetstil="apple"] .tkv-kort.er-valgt { position: relative; background: var(--ed-kort); border: 0; border-radius: 0; padding: 14px 16px; box-shadow: none; }
.ed[data-ed-billetstil="apple"] .tkv-kort + .tkv-kort::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; height: 0.5px; background: var(--ed-linje-staerk); }
.ed[data-ed-billetstil="apple"] .tkv-kort:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.ed[data-ed-billetstil="apple"] .tkv-kort:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.ed[data-ed-billetstil="apple"] .tkv-pris { color: var(--ed-tekst); font-weight: 600; }
@media (max-width: 480px) {
    .tkv-top { flex-wrap: wrap; }
    .tkv-valg { width: 100%; display: flex; justify-content: flex-end; margin-top: 4px; }
}
