/* Stiftselskab.dk cookie consent, shared across the domain (the site loads css/consent.css, the app public/consent.css;
   keep the two copies identical). Figma: Website page, section "Cookie-banner · B", approved by Oliver 2026-10-08.
   Self-contained: the site's tokens are copied in here (Dark theme for the bar and the panel), the text uses the
   site's cap-height trim, and Mona Sans comes from /fonts on both hosts. */

@font-face { font-family: "Mona Sans"; src: url("/fonts/Mona-Sans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("/fonts/Mona-Sans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

.sc-root {
  --sc-bg: #060a12;
  --sc-text: #ffffff;
  --sc-text-2: rgba(255, 255, 255, .7);
  --sc-text-3: rgba(255, 255, 255, .55);
  --sc-line: rgba(255, 255, 255, .2);
  --sc-fill: rgba(255, 255, 255, .2);
  --sc-brand: #4f46e5;
  --sc-focus: #7684ff;
  --sc-shadow: 0 16px 48px rgba(0, 0, 0, .25), 0 2px 8px rgba(0, 0, 0, .1);
  font-family: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sc-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.sc-root *, .sc-root *::before, .sc-root *::after { box-sizing: border-box; }
.sc-root :where(p, h2, button, label, dialog) { margin: 0; }
.sc-root :where(button) { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.sc-root :focus-visible { outline: 2px solid var(--sc-focus); outline-offset: 3px; border-radius: 4px; }

/* Text, trimmed to cap height like the site's u-text classes (Mona Sans cap .729em). */
.sc-root .sc-t { display: block; font-size: 16px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; text-wrap: pretty; --tt: .1874; --tb: .2836; }
.sc-root .sc-t::before, .sc-root .sc-t::after { content: ""; display: block; height: 0; }
.sc-root .sc-t::before { margin-bottom: calc(var(--tt) * -1em); }
.sc-root .sc-t::after { margin-top: calc(var(--tb) * -1em); }
.sc-root .sc-t--title { font-size: 18px; font-weight: 500; }
.sc-root .sc-t--heading { font-size: 24px; font-weight: 500; }
.sc-root .sc-t--small { font-size: 14px; line-height: 1.5; letter-spacing: 0; --tt: .3374; --tb: .4336; }
.sc-root .sc-t--soft { color: var(--sc-text-2); }
.sc-root strong { font-weight: 500; color: var(--sc-text); }
.sc-root .sc-t a { color: var(--sc-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sc-root .sc-t a:hover { color: var(--sc-text-2); }

.sc-root .sc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 12px; white-space: nowrap;
  background: var(--sc-text); color: #000000;
  transition: opacity .2s ease, background-color .2s ease;
}
.sc-root .sc-btn:hover { opacity: .85; }
.sc-root .sc-btn--secondary { padding: 15px 32px; background: transparent; color: var(--sc-text); box-shadow: inset 0 0 0 1px var(--sc-line); }
.sc-root .sc-btn--secondary:hover { opacity: 1; background: var(--sc-fill); }

/* Indstillinger: a text link; the padding widens its tap area without moving the layout. */
.sc-root .sc-link { padding: 14px 0; margin: -14px 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease; }
.sc-root .sc-link:hover { color: var(--sc-text-2); }

.sc-banner {
  position: fixed; z-index: 2147483000;
  left: max(32px, calc((100vw - 1536px) / 2)); right: max(32px, calc((100vw - 1536px) / 2)); bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 32px 24px 24px; border-radius: 16px;
  background: var(--sc-bg); box-shadow: inset 0 0 0 1px var(--sc-line), var(--sc-shadow);
  opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease;
}
.sc-banner.is-visible { opacity: 1; transform: none; }
.sc-banner[hidden] { display: none; }
.sc-banner__lead { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 24px; }
.sc-banner__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sc-fill); }
.sc-banner__icon svg { display: block; width: 24px; height: 24px; }
.sc-banner__copy { flex: 0 1 720px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sc-banner__actions { flex: none; display: flex; align-items: center; gap: 8px; }
.sc-root .sc-banner__actions .sc-link { margin-right: 24px; }
.sc-banner__buttons { display: flex; align-items: center; gap: 8px; }

/* Settings: a dark panel on the right, inset 12, over a dimmed and blurred page. */
html.sc-is-open, html.sc-is-open body { overflow: hidden; }
.sc-root .sc-panel {
  position: fixed; inset: 12px 12px 12px auto; width: 480px; max-width: calc(100vw - 24px); height: calc(100dvh - 24px);
  max-height: none; margin: 0; padding: 0; border: 0; background: none; overflow: visible; color: var(--sc-text);
}
.sc-panel::backdrop { background: rgba(0, 0, 0, 0); transition: background .3s ease; }
.sc-panel.is-open::backdrop { background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sc-panel__box {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  height: 100%; padding: 32px; border-radius: 16px;
  background: var(--sc-bg); box-shadow: inset 0 0 0 1px var(--sc-line), var(--sc-shadow);
  opacity: 0; transform: translateX(24px); transition: opacity .35s ease, transform .35s ease;
}
.sc-panel.is-open .sc-panel__box { opacity: 1; transform: none; }
.sc-panel__body { min-height: 0; display: flex; flex-direction: column; gap: 32px; overflow-y: auto; overscroll-behavior: contain; }
.sc-panel__head { display: flex; align-items: center; gap: 16px; }
.sc-panel__head .sc-t { flex: 1; min-width: 0; }
.sc-root .sc-close { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sc-fill); transition: background-color .2s ease; }
.sc-root .sc-close:hover { background: rgba(255, 255, 255, .3); }
.sc-close svg { display: block; width: 20px; height: 20px; }
.sc-panel__actions { flex: none; display: flex; align-items: center; gap: 8px; }
.sc-panel__actions .sc-btn { flex: 1 1 0; }

.sc-cat { display: flex; align-items: center; gap: 24px; padding: 20px 0; border-top: 1px solid var(--sc-line); }
.sc-cat__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-root .sc-cat__name { font-weight: 500; }
.sc-root .sc-cat__always { flex: none; font-weight: 500; color: var(--sc-text-3); white-space: nowrap; }

.sc-toggle { position: relative; flex: none; width: 40px; height: 24px; }
.sc-toggle input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sc-toggle__track { display: block; width: 100%; height: 100%; padding: 3px; border-radius: 999px; background: var(--sc-line); transition: background-color .2s ease; }
.sc-toggle__track::after {
  content: ""; display: block; width: 18px; height: 18px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s ease;
}
.sc-toggle input:checked + .sc-toggle__track { background: var(--sc-brand); }
.sc-toggle input:checked + .sc-toggle__track::after { transform: translateX(16px); }
.sc-toggle input:focus-visible + .sc-toggle__track { outline: 2px solid var(--sc-focus); outline-offset: 3px; }

/* Reopen button, lower left (the app moves it to the middle of the left edge on the desktop, see wizard-shell.css). */
.sc-root .sc-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 2147482999;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: #ffffff; color: #000000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 8px 24px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .06);
  transition: transform .15s ease;
}
.sc-root .sc-fab:hover { transform: scale(1.06); }
.sc-root .sc-fab[hidden] { display: none; }
.sc-fab svg { display: block; width: 20px; height: 20px; }

@media (max-width: 1099px) {
  .sc-banner { flex-direction: column; align-items: stretch; }
  .sc-banner__copy { flex: 1 1 auto; }
  .sc-banner__actions { justify-content: flex-end; }
}

/* Phones: the bar becomes a card 16 from the edges, the panel a sheet from the bottom. */
@media (max-width: 767px) {
  .sc-banner { left: 16px; right: 16px; bottom: 16px; padding: 20px; }
  .sc-banner__icon { display: none; }
  .sc-banner__actions { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .sc-root .sc-banner__actions .sc-link { align-self: center; margin-right: 0; }
  .sc-banner__buttons .sc-btn { flex: 1 1 0; }

  .sc-root .sc-panel { inset: auto 0 0 0; width: 100%; max-width: none; height: auto; }
  .sc-panel__box {
    height: auto; max-height: calc(100dvh - 52px); padding: 24px 16px 32px; border-radius: 16px 16px 0 0;
    opacity: 1; transform: translateY(100%); transition: transform .3s cubic-bezier(.32, .72, 0, 1);
  }
  .sc-panel__body { gap: 24px; }
  .sc-root .sc-t--heading { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-banner, .sc-panel__box, .sc-panel::backdrop, .sc-toggle__track, .sc-toggle__track::after, .sc-root .sc-fab { transition: none; }
}
