/* =====================================================================
   Strikkeglad Master v0.9.14 | AUTH + PROFILE GLOBAL CSS
   Kun SGM namespaced klasser (.sgm-* / .sgmv2-*). Sikrer login + profil
   funktion på alle sider inkl. Asgaros Forum / WC My Account.
   widgets.css (hele 14k linjer) indlæses KUN på sider med SGM widgets.
   ===================================================================== */

.sgm-widget {
  --sgm-widget-text: #1f1a17;
  --sgm-widget-heading: #1f1a17;
  --sgm-widget-muted: #6f625a;
  --sgm-widget-accent: #b68770;
  --sgm-widget-bg: transparent;
  --sgm-widget-surface: #f6f1eb;
  --sgm-widget-surface-alt: #fbf8f4;
  --sgm-widget-border: #e6ddd4;
  --sgm-widget-button-bg: #2d2723;
  --sgm-widget-button-text: #ffffff;
  --sgm-widget-button-hover-bg: #1f1a17;
  --sgm-widget-button-hover-text: #ffffff;
  --sgm-widget-input-bg: #ffffff;
  --sgm-widget-input-text: #1f1a17;
  --sgm-widget-input-placeholder: #b7aba1;
  --sgm-widget-radius: 24px;
  --sgm-widget-chip-bg: #fbf8f4;
  --sgm-widget-chip-text: #1f1a17;
  --sgm-widget-chip-border: #e6ddd4;
  --sgm-widget-chip-hover-bg: #f1ece5;
  --sgm-widget-chip-hover-text: #1f1a17;
  --sgm-widget-chip-hover-border: #e6ddd4;
  --sgm-widget-suggestion-title: #1f1a17;
  --sgm-widget-suggestion-meta: #5c514b;
  --sgm-widget-suggestion-hover-title: #1f1a17;
  --sgm-widget-suggestion-hover-meta: #5c514b;
  --sgm-widget-suggestion-hover-bg: #f6f1eb;
  color: #1f1a17;
  background: var(--sgm-widget-bg);
}


.sgm-filter-input,
.sgm-filter-select {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e6ddd4;
  border-radius: 10px;
  background: #fff;
  color: #1f1a17;
  font-size: 14px;
}



.sgm-search-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #2d2723;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}


.sgm-search-hero__button.is-secondary {
  background: transparent;
  color: #1f1a17;
  border: 1px solid rgba(180, 154, 137, 0.35);
}

.sgm-search-hero__button.is-secondary:hover,
.sgm-search-hero__button.is-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.78);
}

.sgm-forum-categories__grid,
.sgm-forum-topic-list__items {
  display: grid;
  gap: 18px;


.sgm-search-hero__button.is-danger {
  background: #8f3a3a;
  color: #fff;
}

.sgm-search-hero__button.is-danger:hover,
.sgm-search-hero__button.is-danger:focus-visible {
  background: #7e3030;
  color: #fff;
}

.sgm-forum-auth-gate {
  display: grid;
  gap: 16px;
  padding: 24px;


.sgm-widget .sgm-filter-input,
.sgm-widget .sgm-filter-select {
  background: var(--sgm-widget-input-bg);
  color: var(--sgm-widget-input-text);
  border-color: var(--sgm-widget-border);
}

.sgm-widget .sgm-filter-input::placeholder,
.sgm-widget .sgm-search-hero__input::placeholder {
  color: var(--sgm-widget-input-placeholder);
}

.sgm-widget .sgm-search-hero__input {
  color: var(--sgm-widget-input-text);
}

.sgm-widget .sgm-search-hero__button {
  background: var(--sgm-widget-button-bg);
  color: var(--sgm-widget-button-text);
}

.sgm-widget a.sgm-search-hero__button:link,
.sgm-widget a.sgm-search-hero__button:visited {
  color: var(--sgm-widget-button-text);
  text-decoration: none;
}

.sgm-widget .sgm-search-hero__button:hover,
.sgm-widget .sgm-search-hero__button:focus-visible,
.sgm-widget .sgm-search-hero__button:active {
  background: var(--sgm-widget-button-hover-bg);
  color: var(--sgm-widget-button-hover-text);
}

.sgm-widget a.sgm-search-hero__button:hover,
.sgm-widget a.sgm-search-hero__button:focus-visible,
.sgm-widget a.sgm-search-hero__button:active {
  text-decoration: none;
}



.sgm-account {
  position: relative;
}

.sgm-account__bar,
.sgm-account__actions,
.sgm-account__user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sgm-account__bar {
  justify-content: space-between;
  flex-wrap: nowrap;
}

.sgm-account__user {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.sgm-account__actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.sgm-account__actions .sgm-account__trigger {
  min-width: 112px;
  justify-content: center;
}

.sgm-account__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sgm-account__greeting {
  color: var(--sgm-widget-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.sgm-account__avatar,
.sgm-profile__avatar {
  display: block;
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex: 0 0 40px;
  border-radius: 999px !important;
  object-fit: cover;
  overflow: hidden;
  border: 1px solid var(--sgm-widget-border);
  background: var(--sgm-widget-surface);
}

.sgm-account__avatar--placeholder {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  color: var(--sgm-widget-heading, #2b1d14);
  background: linear-gradient(135deg, #fff8e1 0%, #f5e6c8 100%);
  user-select: none;
  -webkit-user-select: none;
}

.sgm-account__name {
  color: var(--sgm-widget-heading);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sgm-account .sgm-search-hero__button {
  width: auto;
  min-width: 0;
  min-height: 42px;
  padding: 0 18px;
  font-size: 12px;
  white-space: nowrap;
}

.sgm-account__trigger.is-secondary {
  background: var(--sgm-widget-surface);
  color: var(--sgm-widget-heading);
  border: 1px solid var(--sgm-widget-border);
}

.sgm-account__trigger.is-secondary:hover,
.sgm-account__trigger.is-secondary:focus-visible {
  background: var(--sgm-widget-surface-alt);
  color: var(--sgm-widget-heading);
}

html.sgm-auth-open,
body.sgm-auth-open {
  overflow: hidden !important;
  /* ⚠️ v0.3.43: LÅS BAGGRUND HELT (ingen scroll, ingen URL-hash bounce via scroll!) */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  touch-action: none !important;           /* mobil: ingen swipe/scroll */
  overscroll-behavior: none !important;    /* ingen "bounce" der trigger hashændring */
}
.sgm-account__modal[hidden] {
  display: none !important;
}

.sgm-account__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* Sikre ingen overscroll på overlayet heller */
  overscroll-behavior: contain !important;
  touch-action: none !important;
}

.sgm-account__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 23, 0.46);
  backdrop-filter: blur(4px);
}

.sgm-account__panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: var(--sgm-widget-radius);
  background: #fff;
  box-shadow: 0 30px 80px rgba(31, 26, 23, 0.24);
}

.sgm-account__close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 999px;
  background: var(--sgm-widget-surface);
  color: var(--sgm-widget-heading);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sgm-account__panel-header {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.sgm-account__eyebrow {
  color: var(--sgm-widget-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-account__title,
.sgm-profile__title {
  margin: 0;
  color: var(--sgm-widget-heading);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.sgm-account__intro,
.sgm-profile__subtitle {
  margin: 0;
  color: var(--sgm-widget-muted);
  line-height: 1.6;
}

.sgm-account__tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 999px;
  background: var(--sgm-widget-surface);
}

.sgm-account__tab {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sgm-widget-muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sgm-account__tab.is-active {
  background: var(--sgm-widget-button-bg);
  color: var(--sgm-widget-button-text);
}

.sgm-account__feedback,
.sgm-profile__feedback {
  min-height: 20px;
  color: var(--sgm-widget-muted);
  font-size: 13px;
}

.sgm-account__feedback.is-error,
.sgm-profile__feedback.is-error {
  color: #7f1d1d;
  background: #fee2e2 !important;
  border: 1px solid #fecaca !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  margin: 4px 0 10px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

.sgm-account__feedback.is-success,
.sgm-profile__feedback.is-success {
  color: #14532d;
  background: #dcfce7 !important;
  border: 1px solid #bbf7d0 !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  margin: 4px 0 10px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

.sgm-account__form {
  display: none;
  gap: 20px;  /* ⚠️ v0.3.42: Var 14px → nu 20px for mere luft mellem felter! */
}

.sgm-account__form.is-active {
  display: grid;
}

/* 🎨 Sikr SORT (ikke hvid) tekst på hvide login/opret inputfelter! */
/*    Overrid det nedarvede --sgm-widget-input-text (som er hvid fra sidebar tema) */
.sgm-account__form .sgm-filter-input,
.sgm-account__form .sgm-filter-select,
.sgm-account__form input[type="text"],
.sgm-account__form input[type="email"],
.sgm-account__form input[type="password"] {
  color: #1a1a1a !important;             /* Mørk/sort tekst */
  background: #ffffff !important;         /* Sikr hvid baggrund (ikke nedarvet mørk) */
}
.sgm-account__form .sgm-filter-input::placeholder,
.sgm-account__form input::placeholder {
  color: #8a7d72 !important;
  opacity: 1 !important;
}

.sgm-account__form.is-loading,
.sgm-profile__form.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.sgm-account__field {
  display: grid;
  gap: 8px;
  color: var(--sgm-widget-heading);
  font-size: 13px;
  font-weight: 600;
}

.sgm-account__submit {
  width: 100%;
  /* ⚠️ v0.3.42: Sikr AFSTAND fra forrige felt (checkbox) til knappen */
  margin-top: 6px !important;
  min-height: 46px !important;
}

/* ======================================================================
   v0.3.41: LOGIN MODAL REDESIGN (centrering + 2-kol m. billede)
   ====================================================================== */

/* (A) Selve MODAL = FULD SKæmrer / Overlay (full stay the same, but add SAFE override — CENTRERING PANEL*/

/* OLD sgm-account__modal[hidden] stay as-is */

/* ---------- 1) PANEL: Centrering i VIEWPOINT CENTER + 2-KOL STRUKTUR ---------- */
/* OVERSKRIV gammel panel */
.sgm-account__panel {
  /* ⭐⭐⭐ Gammel: width:min(560px,...) + margin:16px auto; → IKKE centreret præcist! */
  position: absolute !important;
  /* ⭐⭐⭐ CENTERERING PRECIST MIDT PÅ PUNKTET: */
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(980px, calc(100vw - 32px)) !important;   /* ⚠️ Fix: 960→980 for mere PLADS i bunden */
  /* ⚠️ v0.3.43: FJERN den HÅRDE 620px max-højde der BESKÆR submit-knap! */
  max-height: calc(100vh - 32px) !important;
  max-width: min(980px, 100vw) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  background: #fffdfa !important;
  border: 2px solid #eadfd6 !important;
  border-radius: 28px !important;
  box-shadow: 0 30px 80px rgba(31, 26, 23, .22), 0 0 0 1px rgba(255,255,255,.6) inset !important;
}
/* Når der er BRANDING → 2 KOLONNER! */
.sgm-account__panel.has-branding {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
}
/* Close-knap: FLYT til HØJRE SIDE (i content-kol, ikke i media mærkatten da media har gradient). Når 1 kol: original top 16px right 16px, 2-kol:
   50%: 26, 49% afstand → 2. kolonne start 50%+16px */
.sgm-account__close {
  /* original: 14px / 40px. Keep */
  position: absolute !important;
  top: 16px !important;
  right: 18px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  background: #fffdfa !important;
  border: 1.5px solid #e4d1bb !important;
  color: #5c3f2b !important;
  z-index: 10 !important;
  transition: all .18s ease;
  box-shadow: 0 2px 8px rgba(160,122,99,.12);
}
.sgm-account__close:hover,
.sgm-account__close:focus-visible {
  background: #fff3c7 !important;
  border-color: #d7b88a !important;
  transform: scale(1.06) rotate(90deg);
  color: #996515 !important;
}

/* ---------- 2) VENSTRE SIDE: MEDIA / BRANDING KOLONNE ---------- */
.sgm-account__panel-media {
  display: flex !important;
  flex-direction: column !important;
  justify-content: stretch !important;
  gap: 18px !important;
  padding: 36px 32px 32px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 560px !important;
  overflow: hidden !important;
  isolation: isolate;
  /* Gradient tema (Beige gradient mørkere end normalt for branding effekt):
  sammensat Beige Gul-brune nuancer mørkebrune tema for kontrast
   background: linear-gradient(160deg, #fff9ee 0%, #faf0e1 35%, #f0e1cc 65%, #e9d9c1 100%) !important;
  */
  background: linear-gradient(160deg, #fff9ee 0%, #f7ead4 45%, #f3dfb9 100%) !important;
  position: relative !important;
  z-index: 1;
}
/* Soft overlay mønster (subtile prikker/dots for at give tekstur) */
.sgm-account__panel-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(153,101,21,.07) 0, rgba(153,101,21,.07) 2px, transparent 3px, transparent 100%),
    radial-gradient(circle at 80% 85%, rgba(160,122,99,.08) 0, rgba(160,122,99,.08) 2px, transparent 3px, transparent 100%);
  background-size: 26px 26px, 34px 34px;
  opacity: .85;
}
.sgm-account__panel-media-image-wrap {
  position: relative !important;
  z-index: 1;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  min-height: 220px !important;
  max-height: 280px !important;
  margin-top: 4px;
  border-radius: 22px !important;
  overflow: hidden !important;
  border: 2px solid rgba(255,255,255,.5) !important;
  box-shadow: 0 10px 30px rgba(153, 101, 21, .22), inset 0 0 0 1px rgba(255,255,255,.6) !important;
}
.sgm-account__panel-media-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
/* COPY (under billede) */
.sgm-account__panel-media-copy {
  position: relative !important;
  z-index: 1;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 14px !important;
  box-sizing: border-box !important;
  padding: 12px 2px 4px !important;
  max-width: 100% !important;
  width: 100% !important;
}
.sgm-account__panel-media-eyebrow {
  color: #996515 !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}
.sgm-account__panel-media-heading {
  margin: 0 !important;
  color: #5c3f2b !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
  font-size: clamp(26px, 2.4vw, 38px) !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}
.sgm-account__panel-media-text {
  margin: 0 !important;
  color: #6d4a35 !important;
  font-size: 15px !important;
  line-height: 1.62 !important;
  font-weight: 500 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}
.sgm-account__panel-media-text--small {
  margin-top: 6px !important;
  padding: 12px 14px !important;
  background: rgba(255, 253, 250, .7) !important;
  border: 1px solid rgba(228, 209, 187, .65) !important;
  border-radius: 16px !important;
  color: #7a5445 !important;
  font-size: 14px !important;
  font-style: normal !important;
  backdrop-filter: blur(3px);
  box-shadow: 0 3px 10px rgba(160,122,99,.06) !important;
}
/* ---------- 3) HØJRE SIDE: CONTENT (form + forms) ---------- */
.sgm-account__panel-content {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  /* ⚠️ Fix: padding-bottom 32px → 48px for mere LUFT i bunden under submit! */
  padding: 36px 36px 48px !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
}
.sgm-account__panel-header {
  margin-bottom: 22px !important;
  padding-right: 44px !important;  /* plads til luk-knap */
  gap: 10px !important;
}
.sgm-account__eyebrow {
  /* var(--sgm-widget-accent); beholder, men justeret tema: brun gul #996515 for konsistent branding! */
  color: #996515 !important;
}
.sgm-account__title {
  /* clamp(28px -> 42px) beholder men lavere max for at passe bedre */
  font-size: clamp(24px, 2.6vw, 34px) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
}
/* Checkbox: HUSK MIG 30 DAGE */
.sgm-account__remember {
  display: inline-flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 2px 0 6px !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
  background: #fffdfa !important;
  border: 1.5px solid #eadfd6 !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all .18s ease;
  max-width: 100% !important;
}
.sgm-account__remember:hover {
  border-color: #d7bf9c !important;
  background: #fff9ee !important;
}
.sgm-account__remember input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  margin: 1px 0 0 !important;
  border: 2px solid #c7a988 !important;
  border-radius: 6px !important;
  background: #fff !important;
  position: relative !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: all .15s ease;
  vertical-align: middle !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.sgm-account__remember input[type="checkbox"]:hover {
  border-color: #996515 !important;
}
.sgm-account__remember input[type="checkbox"]:checked {
  background: linear-gradient(180deg, #fff3c7 0%, #ffe59a 100%) !important;
  border-color: #a07a63 !important;
}
.sgm-account__remember input[type="checkbox"]:checked::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #5c3f2b;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  margin-top: -3px;
}
.sgm-account__remember span:last-child {
  color: #5c3f2b !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  flex: 1 1 auto !important;
  padding-top: 0 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

/* ---------- 4) RESPONSIVE: ≤ 900px → 1 kol, branding KOL FALDER HELET (uden billede+tekst skjules) → mobilen er der ikke plads til 2kol på mindre skærme. */
@media (max-width: 900px) {
  .sgm-account__panel.has-branding {
    grid-template-columns: 1fr !important;
  }
  /* SKJUL branding-kol HELT! (ingen plads + indhold er formularen!) */
  .sgm-account__panel-media {
    display: none !important;
  }
  .sgm-account__panel-content {
    padding: 26px 22px !important;
    max-width: 560px;
  }
  .sgm-account__panel {
    max-height: calc(100vh - 40px) !important;
  }
  .sgm-account__panel-header {
    padding-right: 44px !important;
  }
  .sgm-account__title {
    font-size: 26px !important;
  }
}
@media (max-width: 520px) {
  .sgm-account__panel {
    width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 20px) !important;
    border-radius: 22px !important;
  }
  .sgm-account__panel-content {
    padding: 22px 18px 40px !important;
  }
  .sgm-account__panel-header {
    margin-bottom: 18px !important;
  }
  .sgm-account__title {
    font-size: 22px !important;
  }
  .sgm-account__remember {
    padding: 9px 11px !important;
  }
  .sgm-account__remember span:last-child {
    font-size: 12.5px !important;
  }
  .sgm-account__close {
    top: 12px !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
  }
}

.sgm-profile {
  display: grid;
  gap: 24px;
}

.sgm-profile__guest-state {
  display: grid;
  gap: 16px;
}

.sgm-profile__guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sgm-profile__header {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: var(--sgm-widget-radius);
  background: var(--sgm-widget-surface);
}

.sgm-profile__identity {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-right: 250px;
}

.sgm-profile--public .sgm-profile__identity {
  padding-right: 0;
}

.sgm-profile__identity-copy {
  display: grid;
  gap: 4px;
}

.sgm-profile__eyebrow-email {
  color: var(--sgm-widget-muted);
  letter-spacing: 0;
  text-transform: none;
}

.sgm-profile__title {
  margin-top: -2px;
  font-size: clamp(22px, 3.2vw, 30px);
  font-style: italic;
}

.sgm-profile__meta {
  color: var(--sgm-widget-muted);
  font-size: 14px;
}

.sgm-profile__form {
  display: grid;
  gap: 16px;
}

.sgm-profile__edit-panel {
  display: grid;
  gap: 16px;
}

.sgm-profile__edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 999px;
  background: var(--sgm-widget-surface-alt);
  color: var(--sgm-widget-heading);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
  position: absolute;
  top: 24px;
  right: 24px;
}

.sgm-profile__edit-toggle::-webkit-details-marker {
  display: none;
}

.sgm-profile__edit-toggle::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
}

.sgm-profile__edit-panel[open] .sgm-profile__edit-toggle::after {
  content: "−";
}

.sgm-profile__edit-toggle-label.is-open {
  display: none;
}

.sgm-profile__edit-panel[open] .sgm-profile__edit-toggle-label {
  display: none;
}

.sgm-profile__edit-panel[open] .sgm-profile__edit-toggle-label.is-open {
  display: inline;
}

/* --- 🧶 Ny: Opret opskrift knap i profil header --- */
.sgm-profile__header-actions {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: clamp(180px, 26vw, 260px);
  z-index: 3;
}

.sgm-profile__create-recipe {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  border-radius: 999px !important;
  background: var(--sgm-accent, #7b4b2a) !important;
  color: #fff !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.sgm-profile__create-recipe:hover {
  transform: translateY(-1px);
  background: var(--sgm-accent-dark, #5a3620) !important;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}
.sgm-profile__create-recipe-icon {
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

/* =====================================================================
   🎯 Den KORREKTE løsning på "Vis profiloplysninger" knap:
   • KUN <summary>-knappen er ABSOLUT positioneret (uden for flow)
   • <details> (selve beholderen + formen) er i NORMALT FLOW → 100% bred!
   → Åbnes form: udvider KUN header-boksen som altid, ingen 260px-tvang!
   ===================================================================== */
.sgm-profile__edit-toggle {
  position: absolute !important;
  top: 86px !important;
  right: 22px !important;
  width: clamp(180px, 26vw, 260px) !important;
  justify-content: center !important;
  z-index: 2;
}

/* Giv mere plads til 2 knapper i højre side på desktop */
.sgm-profile__identity {
  padding-right: 340px;
}

@media (max-width: 768px) {
  .sgm-profile__header-actions {
    position: static;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }
  .sgm-profile__create-recipe {
    flex: 1 1 auto;
    min-width: 200px;
  }
  .sgm-profile__edit-toggle {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: fit-content !important;
    justify-self: flex-start !important;
    flex: 1 1 auto;
    min-width: 200px;
    justify-content: center !important;
  }
  .sgm-profile__identity {
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .sgm-profile__create-recipe,
  .sgm-profile__edit-toggle {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}
/* --- Slut ny opskrift knap --- */

.sgm-profile__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sgm-profile__avatar-field {
  grid-column: 1 / -1;
}

.sgm-profile__avatar-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sgm-profile__avatar-preview {
  width: 64px;
  height: 64px;
  min-width: 64px;
  flex: 0 0 64px;
}

.sgm-profile__textarea {
  min-height: 120px;
  padding: 12px;
}

.sgm-profile__form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sgm-profile__columns {
  display: grid;
  gap: 18px;
  align-items: start;
}

.sgm-profile__columns.is-three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sgm-profile__columns.is-four-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sgm-profile__column {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
  align-items: start;
}

.sgm-profile__section-title {
  margin: 0;
  color: var(--sgm-widget-heading);
  font-size: 20px;
  line-height: 1.2;
}

.sgm-profile__column-empty {
  padding: 20px;
  align-self: start;
}

.sgm-profile__card-list {
  display: grid;
  gap: 10px;
  align-content: start;
  align-items: start;
}

.sgm-profile-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  align-self: start;
  padding: 12px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 18px;
  background: var(--sgm-widget-surface);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sgm-profile-card:hover,
.sgm-profile-card:focus-visible {
  background: var(--sgm-widget-surface-alt);
  border-color: var(--sgm-widget-border);
  outline: none;
}

.sgm-profile-card:active {
  transform: translateY(1px);
}

.sgm-profile-card__image {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--sgm-widget-surface-alt);
  border: 1px solid var(--sgm-widget-border);
}

.sgm-profile-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sgm-profile-card__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sgm-profile-card__eyebrow {
  color: var(--sgm-widget-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgm-profile-card__title {
  color: var(--sgm-widget-heading);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.sgm-profile-card__meta {
  color: var(--sgm-widget-muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .sgm-popular-categories__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sgm-popular-categories .sgm-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sgm-yarn-archive__filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sgm-yarn-archive__filter-actions {
    grid-column: 1 / -1;
    justify-self: start;
    flex-wrap: wrap;
  }

  .sgm-yarn-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sgm-yarn-single__layout {
    grid-template-columns: 1fr;
  }

  .sgm-profile__columns.is-three-columns,
  .sgm-profile__columns.is-four-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sgm-popular-categories__cta {
    width: 100%;
  }

  /* 🏷️ Kompakte kategorikort på mobil: 2 kolonner, mindre padding, større billede-udnyttelse */
  .sgm-popular-categories .sgm-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .sgm-popular-categories .sgm-category-card {
    border-radius: 16px !important;
    overflow: hidden;
  }
  .sgm-popular-categories .sgm-category-card__image {
    border-radius: 14px 14px 0 0 !important;
  }
  .sgm-popular-categories .sgm-category-card__title {
    font-size: 14px !important;
    line-height: 1.25 !important;
    padding: 8px 10px 0 !important;
    -webkit-line-clamp: 2 !important;
  }
  .sgm-popular-categories .sgm-category-card__meta {
    font-size: 11px !important;
    line-height: 1.3 !important;
    padding: 4px 10px 10px !important;
  }
  /* Heading over populære kategorier: mindre på mobil */
  .sgm-popular-categories__heading {
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  .sgm-popular-categories__heading-copy h2,
  .sgm-popular-categories__heading-copy h3,
  .sgm-popular-categories__heading-copy .sgm-section-heading__title {
    font-size: 22px !important;
    line-height: 1.2;
  }
  .sgm-popular-categories__heading-copy p,
  .sgm-popular-categories__heading-copy .sgm-section-heading__subtitle {
    font-size: 14px !important;
    line-height: 1.5;
    margin-top: 4px !important;
  }

  .sgm-yarn-archive__filter-grid {
    grid-template-columns: 1fr;
  }

  .sgm-yarn-archive__filter-actions {
    justify-self: stretch;
  }

  .sgm-yarn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sgm-yarn-match-card {
    flex-basis: 200px;
  }

  .sgm-store-map__item-shell {
    grid-template-columns: 1fr;
  }

  .sgm-store-map__item-actions {
    justify-content: flex-start;
  }

  .sgm-account__panel {
    padding: 22px 16px 18px;
  }

  .sgm-account__bar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .sgm-account__user,
  .sgm-account__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .sgm-account__actions {
    justify-content: flex-start;
  }

  .sgm-profile__header {
    gap: 16px;
  }


  .sgm-profile__identity {
    padding-right: 0;
  }

  .sgm-profile__edit-panel {
    gap: 12px;
  }

  .sgm-profile__edit-toggle {
    position: static;
    justify-self: flex-start;
    flex-direction: column;
  }

  .sgm-profile__form-grid,
  .sgm-profile__columns.is-three-columns,
  .sgm-profile__columns.is-four-columns {
    grid-template-columns: 1fr;
  }

  .sgm-profile__form-footer {
    align-items: flex-start;
  }
}

.sgm-widget img {
  max-width: 100%;
  height: auto;
}

.sgm-size-table {
  min-width: 0;
}

@media (max-width: 1024px) {
  .sgm-archive-page {
    padding: 20px 18px 56px;
  }

  .sgm-archive-page__hero {
    margin-bottom: 22px;
  }

  .sgm-archive-page__description {
    max-width: none;
    font-size: 16px;
  }

  .sgm-designer-archive__meta {
    gap: 12px;
  }

  .sgm-designer-archive__button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .sgm-filter-panel {
    padding: 18px;
    max-height: none;
  }

  .sgm-filter-panel__header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .sgm-filter-panel__toggle {
    min-height: 40px;
    padding: 0 14px;
  }

  .sgm-store-map__map {
    height: min(56vh, 520px);
    min-height: min(56vh, 520px);
    margin-top: 16px;
  }

  .sgm-store-map__selected,
  .sgm-store-map__item {
    padding: 14px;
  }

  .sgm-store-map__results .sgm-archive-results__meta {
    align-items: flex-start;
  }

  .sgm-single-recipe__actions > .sgm-search-hero__button {
    flex: 1 1 240px;
    min-width: 0;
  }

  .sgm-single-recipe__author {
    align-items: flex-start;
  }

  .sgm-single-recipe__hero-bottom-side,
  .sgm-single-recipe__makers {
    width: 100%;
  }

  .sgm-forum-toolbar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .sgm-forum-toolbar .sgm-filter-input,
  .sgm-forum-toolbar .sgm-filter-select,
  .sgm-forum-toolbar .sgm-search-hero__button {
    width: 100%;
  }

  .sgm-forum-topic-single__header-actions,
  .sgm-forum-topic-single__manage {
    width: 100%;
  }

  .sgm-forum-topic-single__header-actions {
    justify-content: space-between;
  }

  .sgm-forum-topic-single__manage .sgm-search-hero__button {
    flex: 1 1 220px;
    min-width: 0;
  }

  .sgm-profile__header {
    padding: 20px;
  }

  .sgm-profile__identity {
    padding-right: 0;
  }

  .sgm-profile__edit-toggle {
    position: static;
    justify-self: flex-start;
  }
}

@media (max-width: 767px) {
  .sgm-widget {
    --sgm-widget-radius: 20px;
  }

  .sgm-search-hero__form {
    gap: 12px;
  }

  .sgm-search-hero__bar {
    gap: 10px;
    padding: 12px;
  }

  .sgm-search-hero__icon {
    margin-right: 10px;
  }

  .sgm-search-hero__input {
    font-size: 17px;
  }

  /* =========================================================
     📱 MOBIL SØG FULD-MODAL (SIMPELT & ROBUST!):
     Hele søge-widgeten (hero) = FIXED FULDSKÆRM når den er åben!
     → Ingen ting kan "sætte sig over" eller komme bagved!
     → Søgebar = sticky øverst (sikkert!)
     ========================================================= */
  body.sgm-search-open {
    overflow: hidden !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .sgm-search-hero.is-search-focused {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: var(--sgm-vv-height, 100vh) !important;
    max-height: var(--sgm-vv-height, 100vh) !important;
    z-index: 99999 !important;
    background: #ffffff !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    /* Let fade-in for hele søge-UI */
    animation: sgmFadeInSearch 220ms ease-out both;
  }

  .sgm-search-hero.is-search-focused .sgm-search-hero__form {
    padding: 0 16px !important;
  }

  /* STICKY søgebar: Bliver i TOPPEN når du scroller resultater */
  .sgm-search-hero.is-search-focused .sgm-search-hero__bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #ffffff !important;
    padding-top: max(12px, calc(env(safe-area-inset-top, 0px) + 10px)) !important;
    padding-right: 16px !important;
    padding-bottom: 14px !important;
    padding-left: 16px !important;
    margin: 0 -16px 0 !important;
    border-radius: 0 0 20px 20px !important;
    box-shadow: 0 6px 18px rgba(31, 26, 23, 0.06) !important;
    gap: 10px;
  }

  .sgm-search-hero.is-search-focused .sgm-search-hero__chips-wrap {
    padding: 14px 0 10px;
    margin: 0 !important;
  }
  .sgm-search-hero.is-search-focused .sgm-search-hero__chips {
    gap: 8px;
  }

  /* 🚫 NÅR BRUGEREN SKRIVER (is-search-engaged): SKJUL chips → frigiv højde til resultater! */
  .sgm-search-hero.is-search-engaged .sgm-search-hero__chips-wrap {
    display: none !important;
  }

  /* COMPACT søgebar når den er engaged (mindre padding = mere plads til resultater) */
  .sgm-search-hero.is-search-engaged .sgm-search-hero__bar {
    padding-top: max(10px, calc(env(safe-area-inset-top, 0px) + 8px)) !important;
    padding-bottom: 10px !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__icon {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__input {
    font-size: 16px !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__button[type="submit"] {
    min-height: 42px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
  }

  /* Suggestions: NU STATIC (ikke fixed længere!) → inde i modal */
  .sgm-search-hero__suggestions {
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    z-index: 1 !important;
    margin: 0 -16px !important;
    padding: 8px 16px calc(40px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 12px !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Når engageret → KORT mere kompakte */
  .sgm-search-hero.is-search-engaged .sgm-search-hero__suggestion {
    padding: 12px 14px !important;
    min-height: 58px !important;
    border-radius: 16px !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__suggestion.is-recipe {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__suggestion-thumb {
    width: 54px !important;
    height: 54px !important;
    border-radius: 12px !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__suggestion-title {
    font-size: 15.5px !important;
    line-height: 1.22 !important;
  }
  .sgm-search-hero.is-search-engaged .sgm-search-hero__suggestion-meta {
    font-size: 13px !important;
  }

  /* Hvert kort: fade-in + stagger */
  .sgm-search-hero__suggestions[hidden] {
    display: none !important;
  }
  .sgm-search-hero__suggestion {
    opacity: 0;
    transform: translateY(6px);
    animation: sgmFadeInSearch 240ms ease-out both;
  }
  .sgm-search-hero__suggestion:nth-child(1) { animation-delay: 50ms; }
  .sgm-search-hero__suggestion:nth-child(2) { animation-delay: 80ms; }
  .sgm-search-hero__suggestion:nth-child(3) { animation-delay: 110ms; }
  .sgm-search-hero__suggestion:nth-child(4) { animation-delay: 140ms; }
  .sgm-search-hero__suggestion:nth-child(5) { animation-delay: 170ms; }
  .sgm-search-hero__suggestion:nth-child(6) { animation-delay: 200ms; }
  .sgm-search-hero__suggestion:nth-child(7) { animation-delay: 230ms; }
  .sgm-search-hero__suggestion:nth-child(n+8) { animation-delay: 260ms; }

  .sgm-search-hero__suggestion-section,
  .sgm-search-hero__suggestion-heading {
    animation: sgmFadeInSearch 220ms ease-out both;
    animation-delay: 30ms;
  }

  @keyframes sgmFadeInSearch {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .sgm-search-hero__suggestion.is-recipe {
    grid-template-columns: 60px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: center !important;
  }
  .sgm-search-hero__suggestion-thumb {
    width: 60px !important;
    height: 60px !important;
    border-radius: 14px !important;
  }
  .sgm-search-hero__suggestion-title {
    font-size: 17px !important;
    line-height: 1.25 !important;
  }
  .sgm-search-hero__suggestion-meta {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }
  .sgm-search-hero__suggestion-heading {
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
  }
  .sgm-search-hero__suggestion-section {
    gap: 10px !important;
  }
  .sgm-search-hero__suggestion-list {
    gap: 10px !important;
  }
  .sgm-search-hero__suggestion-footer {
    font-size: 13px !important;
    padding-top: 4px 6px 0 !important;
  }
  /* Mobil: Altid Scrollbar tynd (ingen horizontal) */
  .sgm-search-hero__suggestions::-webkit-scrollbar {
    width: 6px;
  }
  .sgm-search-hero__suggestions::-webkit-scrollbar-thumb {
    background: #e6ddd4;
    border-radius: 999px;
  }

  .sgm-search-hero__chips {
    gap: 8px;
    max-height: none;
  }

  .sgm-chip {
    min-height: 36px;
    padding: 0 14px;
  }

  .sgm-archive-page {
    padding: 18px 14px 44px;
  }

  .sgm-archive-page__title {
    font-size: clamp(28px, 9vw, 40px);
  }

  .sgm-archive-page__description {
    font-size: 15px;
    line-height: 1.65;
  }

  .sgm-designer-archive__hero {
    gap: 18px;
    margin-bottom: 24px;
  }

  .sgm-designer-archive__image,
  .sgm-yarn-single__media {
    border-radius: 22px;
  }

  .sgm-card__body {
    padding: 12px 14px 14px;
  }

  .sgm-card__footer,
  .sgm-card__meta-list {
    gap: 8px;
  }

  .sgm-card__meta-pill,
  .sgm-card__rating-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .sgm-yarn-single__details-grid {
    grid-template-columns: 1fr;
  }

  .sgm-yarn-single__details,
  .sgm-yarn-single__body {
    padding: 12px;
  }

  .sgm-store-map__sidebar {
    gap: 14px;
  }

  .sgm-store-map__map {
    height: min(48vh, 340px);
    min-height: min(48vh, 340px);
    margin-top: 12px;
    border-radius: 22px;
  }

  .sgm-store-map__filters {
    gap: 10px;
  }

  .sgm-store-map__tag {
    min-height: 36px;
    padding: 6px 12px;
  }

  .sgm-store-map__results .sgm-archive-results__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sgm-store-map__selected-title {
    font-size: 16px;
  }

  .sgm-store-map__item {
    padding: 12px;
  }

  .sgm-store-map__item-body {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .sgm-store-map__item-image {
    width: 40px;
    height: 40px;
  }

  .sgm-store-map__button,
  .sgm-store-map__clear-selection {
    width: 100%;
  }

  .sgm-store-map__meta-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-content: stretch;
  }

  .sgm-store-map__directions-inline,
  .sgm-store-map__clear-selection {
    width: 100%;
    min-width: 0;
  }

  .sgm-store-map__directions-inline {
    font-size: 10px;
    letter-spacing: 0.06em;
    padding: 0 10px;
  }


  .sgm-forum-category-card,
  .sgm-forum-topic-card,
  .sgm-forum-compose,
  .sgm-forum-topic-single__card,
  .sgm-forum-comments,
  .sgm-forum-reply {
    padding: 18px;
    border-radius: 20px;
  }

  .sgm-forum-category-card__title,
  .sgm-forum-topic-card__title,
  .sgm-forum-topic-single__title,
  .sgm-forum-comments__title,
  .sgm-forum-reply__title {
    font-size: 22px;
  }

  .sgm-forum-topic-single__author {
    gap: 12px;
    align-items: flex-start;
  }

  .sgm-forum-topic-single__avatar,
  .sgm-forum-topic-single__avatar-image,
  .sgm-forum-topic-single__avatar-placeholder {
    width: 52px;
    height: 52px;
  }

  .sgm-forum-topic-single__content {
    font-size: 16px;
    line-height: 1.7;
  }

  .sgm-forum-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sgm-forum-form {
    gap: 18px;
  }

  .sgm-forum-form__actions > * {
    width: 100%;
  }

  .sgm-single-recipe__title {
    font-size: clamp(28px, 10vw, 40px);
  }

  .sgm-single-recipe__excerpt,
  .sgm-single-recipe__hero-intro,
  .sgm-single-recipe__content,
  .sgm-single-recipe__step-text {
    font-size: 15px;
    line-height: 1.7;
  }

  .sgm-single-recipe__actions {
    gap: 10px;
    margin-top: 18px;
  }

  .sgm-single-recipe__actions > * {
    width: 100%;
  }

  .sgm-single-recipe__author {
    min-height: 0;
    padding: 14px;
  }

  .sgm-single-recipe__author-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .sgm-single-recipe__author-avatar--secondary {
    margin-left: -10px;
  }

  .sgm-single-recipe__maker-avatar {
    width: 46px;
    height: 46px;
  }

  .sgm-single-recipe__thumbnails {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72px;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
  }

  .sgm-single-recipe__thumbnail {
    width: 72px;
    height: 72px;
  }

  .sgm-single-recipe__fact {
    padding: 14px;
  }

  .sgm-single-recipe__fact-icon {
    width: 44px;
    height: 44px;
  }

  .sgm-single-recipe__fact-icon svg {
    width: 22px;
    height: 22px;
  }

  .sgm-single-recipe__resource-card {
    padding: 14px;
  }

  .sgm-single-recipe__resource-title {
    font-size: 18px;
  }

  .sgm-size-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sgm-account__actions .sgm-account__trigger,
  .sgm-profile__guest-actions > * {
    width: 100%;
    min-width: 0;
  }

  .sgm-account__panel {
    max-width: min(100vw - 20px, 560px);
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .sgm-account__tabs {
    grid-template-columns: 1fr;
  }

  .sgm-account__tab {
    min-height: 44px;
  }

  .sgm-profile__header {
    padding: 18px;
  }

  .sgm-profile__identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .sgm-profile__meta {
    font-size: 13px;
  }

  .sgm-profile__form-footer > .sgm-search-hero__button {
    width: 100%;
  }

  .sgm-profile-card {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 10px;
  }

  .sgm-profile-card__image {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 560px) {
  .sgm-category-grid,
  .sgm-popular-categories .sgm-category-grid,
  .sgm-yarn-grid,
  .sgm-forum-media {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   👵 MOBIL + TABLET VENLIGT (ÆLDREVENLIGT, 44px touch targets)
   =========================================================== */

/* TABLET MELLEM (900px og derunder): Lettere overgange, 2 kol til facts */
@media (max-width: 900px) {
  .sgm-single-recipe__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sgm-single-recipe__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sgm-single-recipe__section-title {
    font-size: 34px;
  }
  .sgm-single-recipe__title {
    font-size: 34px !important;
  }
  .sgm-single-recipe__hero-intro,
  .sgm-single-recipe__excerpt,
  .sgm-single-recipe__content p,
  .sgm-single-recipe__content li {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* TABLET LILLE + STOR TELEFON (768px → 1024px allerede dækket, her ekstra for 767-): */
@media (max-width: 767px) {
  /* ---------- Knapper: 100% bredde (hele skærmen = let at ramme!) ---------- */
  .sgm-single-recipe__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sgm-single-recipe__actions .sgm-search-hero__button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important; /* MIN 48px - ældre finger! */
    padding: 14px 20px !important;
    font-size: 15px !important;
  }
  /* ---------- Brød + overskrifter: STØRRE (ingen 12px tekster mere!) ---------- */
  .sgm-single-recipe__section-title {
    font-size: 30px;
    line-height: 1.12;
  }
  .sgm-single-recipe__designer-title {
    font-size: 26px;
  }
  .sgm-single-recipe__hero-intro,
  .sgm-single-recipe__excerpt,
  .sgm-single-recipe__content p,
  .sgm-single-recipe__content li,
  .sgm-single-recipe__content td,
  .sgm-single-recipe__content blockquote {
    font-size: 17px !important;
    line-height: 1.75 !important;
  }
  .sgm-single-recipe__content strong {
    font-size: 18px !important;
  }
  /* ---------- Fact labels (Pinde/Konstruktion): STØRRE ingen opacity 0.8! ---------- */
  .sgm-single-recipe__fact-label,
  .sgm-detail-card__label {
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
    opacity: 1 !important;
  }
  .sgm-single-recipe__fact-value {
    font-size: 17px !important;
  }
  .sgm-detail-card__value {
    font-size: 20px !important;
  }
  /* ---------- Fact ikon cirkel (STØRRE) ---------- */
  .sgm-single-recipe__fact-icon {
    width: 58px;
    height: 58px;
  }
  .sgm-single-recipe__fact-icon svg {
    width: 30px;
    height: 30px;
  }
  /* ---------- Engagement boks: 1 kol allerede, men STØRRE avatars + stjerner ---------- */
  .sgm-single-recipe__engagement {
    padding: 20px 18px !important;
    border-radius: 22px !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__makers-label,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-label,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-title {
    font-size: 12.5px !important;
    letter-spacing: 0.08em !important;
    opacity: 0.9 !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__maker-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__makers-more-toggle {
    font-size: 15px !important;
  }
  /* ---------- Rating stjerner: 44px (FULD touch størrelse!) ---------- */
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-star,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-star {
    width: 44px !important;
    height: 44px !important;
    font-size: 26px !important;
    line-height: 44px !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-note,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-text {
    font-size: 15px !important;
  }
  /* ---------- Designer boks (mindre padding, større tekst) ---------- */
  .sgm-single-recipe__designer-box-inner {
    padding: 22px 18px;
    border-radius: 22px;
  }
  .sgm-single-recipe__designer-content,
  .sgm-single-recipe__designer-content p,
  .sgm-single-recipe__designer-content li {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }
  /* ---------- Author boks: ---------- */
  .sgm-single-recipe__author {
    padding: 16px;
    gap: 14px;
    min-height: 84px;
  }
  .sgm-single-recipe__author-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
}

/* LILLE TELEFON (under 560px → gældende for 400-560) */
@media (max-width: 560px) {
  /* Engagement boks → mere luft */
  .sgm-single-recipe__engagement {
    padding: 18px 16px !important;
    gap: 14px !important;
    border-radius: 20px !important;
  }
  .sgm-single-recipe__engagement-col + .sgm-single-recipe__engagement-col {
    padding-top: 14px !important;
  }
  /* Rating stjerner lidt mindre (36px, stadig over 32px minimum) */
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-star,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-star {
    width: 38px !important;
    height: 38px !important;
    font-size: 22px !important;
    line-height: 38px !important;
  }
  /* Fact + details → mere compact padding */
  .sgm-single-recipe__facts,
  .sgm-single-recipe__details {
    gap: 14px;
    padding: 20px 16px;
    border-radius: 22px;
  }
  .sgm-detail-card {
    padding: 18px;
    min-height: 110px;
    border-radius: 20px;
  }
  /* Overskrifter: mindre på lille skærm */
  .sgm-single-recipe__title {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }
  .sgm-single-recipe__section-title {
    font-size: 26px;
  }
  .sgm-single-recipe__designer-title {
    font-size: 24px;
  }
  /* H1/H2 i content → mindre */
  .sgm-single-recipe__content h1 { font-size: 24px !important; line-height: 1.2; }
  .sgm-single-recipe__content h2 { font-size: 22px !important; line-height: 1.25; }
  .sgm-single-recipe__content h3 { font-size: 19px !important; line-height: 1.3; }
}

/* MEget LILLE TELEFON (under 400px, iPhone SE 2020 375px!) */
@media (max-width: 400px) {
  /* Knapper: 100% bredde, helt fuld */
  .sgm-single-recipe__actions .sgm-search-hero__button {
    min-height: 50px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
  /* Avatars → 40px stadig OK */
  .sgm-single-recipe__engagement .sgm-single-recipe__maker-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }
  /* Stjerner: 34px */
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-star,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-star {
    width: 34px !important;
    height: 34px !important;
    font-size: 20px !important;
    line-height: 34px !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-stars {
    gap: 3px;
  }
  /* Brødtekst stadig 16px (minimum for læselighed) */
  .sgm-single-recipe__hero-intro,
  .sgm-single-recipe__excerpt,
  .sgm-single-recipe__content p,
  .sgm-single-recipe__content li {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }
}

/* ===========================================================
   🏆 GENEREL TARGET STØRRELSE (for alle widgets: touch ≥44px!)
   =========================================================== */
.sgm-widget button,
.sgm-widget a.sgm-search-hero__button,
.sgm-widget .sgm-search-hero__button[type="button"],
.sgm-widget .sgm-search-hero__button[type="submit"] {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
  touch-action: manipulation;
}

/* Ingen horisontal scroll på mobil (selv hvis noget går galt!) */
.sgm-widget {
  max-width: 100%;
  overflow-x: hidden;
}
.sgm-widget img,
.sgm-widget svg {
  max-width: 100%;
  height: auto;
}

/* ===================================================================
   🏷️ ARKIV + FORSIDE WIDGETS: Mobile-optimerede chips, kort, søg, filter
   =================================================================== */

/* CHIPS (kategoriknapper): Større på mobil → 44px (Touch venlig!) */
@media (max-width: 767px) {
  .sgm-chip {
    min-height: 42px !important;
    padding: 6px 18px !important;
    font-size: 14px !important;
    border-radius: 999px;
  }
  .sgm-search-hero__chips {
    gap: 10px;
  }

  /* FORSIDE/ARKIV KORT: større font, større klikkbare områder */
  .sgm-card {
    border-radius: 22px;
  }
  .sgm-card__body {
    padding: 16px 18px 18px;
  }
  .sgm-card__title,
  .sgm-card__title a {
    font-size: 20px !important;
    line-height: 1.22 !important;
  }
  .sgm-card__excerpt {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  .sgm-card__meta-label,
  .sgm-card__meta-value,
  .sgm-card__rating-copy {
    font-size: 13px !important;
  }
  .sgm-card__rating-star {
    width: 22px;
    height: 22px;
    font-size: 13px;
    line-height: 22px;
  }
  .sgm-card__meta-pill,
  .sgm-card__rating-pill {
    min-height: 34px;
    padding: 4px 12px;
  }

  /* SØGEBAR: større input (ældre lettere at ramme!) */
  .sgm-search-hero__bar {
    padding: 12px !important;
  }
  .sgm-search-hero__input {
    font-size: 17px !important;
    min-height: 50px !important;
  }
  .sgm-search-hero__input::placeholder {
    font-size: 16px !important;
  }
  .sgm-search-hero__button[type="submit"],
  .sgm-search-hero__button[type="button"] {
    min-height: 50px !important;
    font-size: 15px !important;
  }

}

/* =================================================================
   💻 DEFAULT (Desktop ≥768px): MOBIL-ONLY elementer = SKJULT
   (Skal være FØR @media (max-width:767px) blokken, så mobile
   regler kommer SENEST og overstyrer via CSS cascade!)
   ================================================================= */
.sgm-archive-mobile-toggle {
  display: none !important;
}
.sgm-archive-sidebar-close {
  display: none !important;
}
.sgm-archive-sidebar-close-label {
  display: none !important;
}
.sgm-archive-sidebar-overlay {
  display: none !important;
}

/* =================================================================
   📱 UNIVERSEL MOBIL FILTER DRAWER (virker for ALLE widgets!)
   ⭐ BRUG KUN DATA-ATTRIBUTTER (IKKE klasse-navne!)
   ⭐ JS garanterer data-sgm-archive="true" + data-sgm-archive-sidebar="true"
   ⭐ Både gammelt "Recipe Archive" og nyt "Simpelt Filter" fungerer!
   ================================================================= */
@media (max-width: 767px) {

  /* 1. Filter knap (synlig kun mobil) */
  .sgm-archive-mobile-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 50px !important;
    padding: 12px 20px !important;
    margin: 0 0 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffdae9 !important;
    background-color: #996515 !important;
    border: 2px solid #ffdae9 !important;
    border-radius: 999px !important;
    justify-content: center !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0.08) !important;
  }
  .sgm-archive-mobile-toggle span:first-child {
    font-size: 22px !important;
    line-height: 1 !important;
  }
  .sgm-archive-mobile-toggle:active {
    transform: scale(0.985) !important;
  }

  /* 2. Grid layout på mobil: sidebar er fjernet fra flow! */
  [data-sgm-archive="true"] > .sgm-archive-layout,
  [data-sgm-archive="true"] > .sgm-simple-archive-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    position: relative !important;
  }

  /* 3. Overlay mørk baggrund (DATA-ATTR, ikke klasse-navne!) */
  [data-sgm-archive-overlay="true"] {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(31, 26, 23, 0.55) !important;
    backdrop-filter: blur(1.5px) !important;
    -webkit-backdrop-filter: blur(1.5px) !important;
    z-index: 2147483645 !important;
    opacity: 0 !important;
    transition: opacity 260ms ease-out !important;
    visibility: hidden !important;
  }
  [data-sgm-archive="true"].is-sidebar-open [data-sgm-archive-overlay="true"] {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* 4. Sidebar = drawer FRA HØJRE (DATA-ATTR, ikke klasse-navne!) */
  [data-sgm-archive-sidebar="true"] {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 88% !important;
    max-width: 420px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 2147483646 !important;
    background: #ffffff !important;
    border-left: 1px solid #eadfd3 !important;
    border-radius: 24px 0 0 24px !important;
    box-shadow: -20px 0 50px rgba(31, 26, 23, 0.18) !important;
    transform: translateX(102%) !important;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1) !important;
    padding: 0 !important;
    overscroll-behavior: contain !important;
  }
  [data-sgm-archive="true"].is-sidebar-open [data-sgm-archive-sidebar="true"] {
    transform: translateX(0) !important;
  }
  /* Body lock så baggrunden ikke rører sig */
  body.sgm-archive-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }

  /* 5. Filter panel inde i drawer (MOBIL) → Scroll TILLADT, men scrollbar SKJULT! */
  [data-sgm-archive-sidebar="true"] .sgm-filter-panel {
    position: absolute !important;
    inset: 0 0 0 0 !important;
    padding:
      calc(16px + env(safe-area-inset-top, 0px))
      16px
      calc(24px + env(safe-area-inset-bottom, 0px))
      16px !important;
    border-radius: 24px 0 0 24px !important;
    background: #f6f1eb !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-filter-panel::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* 6. Luk knap i sidebar øverst til højre */
  .sgm-archive-sidebar-close {
    position: absolute !important;
    top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    right: 12px !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 40px !important;
    padding: 6px 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f1a17 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid #eadfd3 !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0.08) !important;
  }
  .sgm-archive-sidebar-close span:first-child {
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
  }
  .sgm-archive-sidebar-close-label {
    display: inline-block !important;
    font-size: 14px !important;
  }

  /* 7. Filter selve rækker: noget mere luft på mobil */
  [data-sgm-archive-sidebar="true"] .sgm-filter-panel__title {
    max-width: calc(100% - 100px) !important;
    font-size: 22px !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-filter-group {
    padding: 16px 12px !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-filter-label {
    font-size: 13px !important;
    opacity: 0.95 !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-filter-input,
  [data-sgm-archive-sidebar="true"] .sgm-filter-select {
    min-height: 48px !important;
    font-size: 15px !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-filter-submit {
    margin-top: 18px !important;
    min-height: 54px !important;
    font-size: 16px !important;
  }
} /* End max-width 767px */

/* Lille telefon (SE 375px, sidebar = 92% bred) */
@media (max-width: 400px) {
  @media (max-width: 767px) {
    [data-sgm-archive-sidebar="true"] {
      width: 92% !important;
    }
    .sgm-archive-sidebar-close-label {
      display: none !important;
    }
  }
}

/* =================================================================
   📄 ARKIV SIDEVÆLGER (pagination): Nice knapper i stedet for infinite scroll
   ================================================================= */
.sgm-archive-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.sgm-archive-pagination .sgm-page-numbers {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
}

.sgm-archive-pagination .sgm-page-numbers li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sgm-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px !important;
  min-width: 44px !important;
  padding: 8px 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #00401a !important;
  background: #fdf4f8 !important;
  border: 2px solid #ffdae9 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0.08);
  transition: background-color 160ms ease, transform 120ms ease, border-color 160ms ease, color 160ms ease;
}

.sgm-archive-pagination a.page-numbers:hover,
.sgm-archive-pagination a.page-numbers:focus-visible {
  background: #996515 !important;
  color: #ffdae9 !important;
  border-color: #996515 !important;
  outline: none;
}

.sgm-archive-pagination a.page-numbers:active {
  transform: scale(0.97);
}

.sgm-archive-pagination .page-numbers.current {
  background: #00401a !important;
  color: #ffdae9 !important;
  border-color: #00401a !important;
}

.sgm-archive-pagination .page-numbers.dots {
  background: transparent !important;
  border: 2px dashed #eadfd3 !important;
  color: #8a7b6d !important;
}

/* Mobil pagination: lidt større for bedre touch */
@media (max-width: 767px) {
  .sgm-archive-pagination {
    margin-top: 28px;
  }
  .sgm-archive-pagination .sgm-page-numbers {
    gap: 7px !important;
  }
  .sgm-archive-pagination .page-numbers {
    min-height: 48px !important;
    min-width: 48px !important;
    padding: 10px 16px !important;
    font-size: 16px !important;
  }
}
@media (max-width: 767px) {
  .sgm-widget.sgm-single-recipe,
  .sgm-widget.sgm-single-recipe * {
    text-align: center !important;
  }

  /* Undtagelser for elementer der stadig skal være naturlig (ul/li bullets,
     citater, kode, tabeller til datavisning) */
  .sgm-widget.sgm-single-recipe ul,
  .sgm-widget.sgm-single-recipe ol,
  .sgm-widget.sgm-single-recipe pre,
  .sgm-widget.sgm-single-recipe code,
  .sgm-widget.sgm-single-recipe blockquote,
  .sgm-widget.sgm-single-recipe table,
  .sgm-widget.sgm-single-recipe .alignleft,
  .sgm-widget.sgm-single-recipe .alignright,
  .sgm-widget.sgm-single-recipe .wp-caption.alignleft,
  .sgm-widget.sgm-single-recipe .wp-caption.alignright,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__actions,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__fact-icon,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__hero-thumb,
  .sgm-widget.sgm-single-recipe .sgm-detail-card__icon,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__engagement-col:first-child,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__engagement-makers {
    text-align: inherit !important;
  }

  /* Actions knapper = flex, ikke tekst-align */
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__actions {
    justify-content: center;
  }

  /* ul/li som er i steps-lister: center text men behold bullets placering pæn */
  .sgm-widget.sgm-single-recipe ul,
  .sgm-widget.sgm-single-recipe ol {
    text-align: center !important;
    list-style-position: inside !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-inline-start: 0 !important;
    padding-inline-end: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* billeder */
  .sgm-widget.sgm-single-recipe img,
  .sgm-widget.sgm-single-recipe .wp-caption {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Avatars i lavet-af: center */
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__engagement-makers,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__engagement-makers-more {
    justify-content: center !important;
  }
}

/* Lille telefon (chips 40px max, ikke for store på 375px) */
@media (max-width: 400px) {
  .sgm-chip {
    min-height: 40px !important;
    padding: 5px 14px !important;
    font-size: 13px !important;
  }
  .sgm-card__title,
  .sgm-card__title a {
    font-size: 18px !important;
  }
  .sgm-search-hero__input {
    font-size: 16px !important;
  }
}

/* =================================================================
   💻 SIKKER HED (Post-cascade, KUN DESKTOP ≥768px):
   MOBIL-ONLY filter-knapper = SKJULT ALTID på skrivebord.
   (min-width 768px = overstyrer IKKE mobile @media max-width:767px!)
   ================================================================= */
@media (min-width: 768px) {
  .sgm-archive-mobile-toggle {
    display: none !important;
  }
  .sgm-archive-sidebar-close {
    display: none !important;
  }
  .sgm-archive-sidebar-close-label {
    display: none !important;
  }
  .sgm-archive-sidebar-overlay {
    display: none !important;
  }
}

/* ================================================================================
   🕵️ SMART FILTER CHIPS (Automatisk fundne filtre fra søgeord)
   Anvendes på: søgeresultater-side + live AJAX forslag overlay
   ================================================================================ */

.sgm-smart-filters {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fff8f0 0%, #fdf4f8 100%);
  border: 1px solid #efe6dc;
  border-radius: 20px;
}

.sgm-smart-filters__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: "Inter", system-ui, sans-serif;
  color: #7d6f65;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sgm-smart-filters__icon {
  font-size: 14px;
  line-height: 1;
}

.sgm-smart-filters__title {
  line-height: 1;
}

.sgm-smart-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

/* ──────────────── Et enkelt chip ──────────────── */
.sgm-smart-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 12px;
  min-height: 36px;
  background: #ffffff;
  border: 1px solid #efe6dc;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(31, 26, 23, 0.04);
  font-family: "Inter", system-ui, sans-serif;
  color: #1f1a17;
  font-size: 14px;
  line-height: 1.2;
  transition: all 180ms ease;
  cursor: default;
  user-select: none;
}

.sgm-smart-chip:hover {
  border-color: #e6d5c3;
  background: #fffbfa;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(31, 26, 23, 0.08);
}

.sgm-smart-chip__emoji {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.sgm-smart-chip__prefix {
  color: #867265;
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}

.sgm-smart-chip__value {
  color: #1f1a17;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  padding-right: 2px;
}

/* ──────────────── Lukke-knap (×) ──────────────── */
.sgm-smart-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin-left: 2px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f5ebe1;
  color: #7d6f65;
  cursor: pointer;
  transition: all 160ms ease;
}

.sgm-smart-chip__remove svg {
  display: block;
}

.sgm-smart-chip__remove:hover,
.sgm-smart-chip__remove:focus-visible {
  background: #e6607a;
  color: #ffffff;
  transform: scale(1.08);
  outline: none;
}

.sgm-smart-chip__remove:active {
  transform: scale(0.94);
}

/* ──────────────── Mobil forstørrelse ≤767px ──────────────── */
@media (max-width: 767px) {
  .sgm-smart-filters {
    padding: 12px 14px;
    border-radius: 18px;
    margin-bottom: 14px;
  }

  .sgm-smart-filters__chips {
    gap: 7px;
  }

  .sgm-smart-chip {
    padding: 10px 12px 10px 14px;
    min-height: 44px;
    font-size: 15px;
    gap: 7px;
  }

  .sgm-smart-chip__emoji {
    font-size: 17px;
  }

  .sgm-smart-chip__prefix {
    font-size: 13px;
  }

  .sgm-smart-chip__value {
    font-size: 14.5px;
  }

  .sgm-smart-chip__remove {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }

  .sgm-smart-chip__remove svg {
    width: 16px;
    height: 16px;
  }
}

/* ── Sikkerhed: hvis chips placeres i body-root (AJAX overlay) ── */
.sgm-suggestions-body-root .sgm-smart-filters {
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, #fff8f0cc 0%, #fdf4f8cc 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ================================================================================
   SLUT: Smart Filter Chips
   ================================================================================ */

/* ================================================================================
   📱 MOBIL MENU WIDGET
   ================================================================================ */

.sgm-mobile-menu {
  --sgm-mm-bg: #fbf8f4;
  --sgm-mm-surface: #ffffff;
  --sgm-mm-text: #1f1a17;
  --sgm-mm-muted: #6f625a;
  --sgm-mm-accent: #b68770;
  --sgm-mm-border: #e6ddd4;
  --sgm-mm-btn-primary: #2d2723;
  --sgm-mm-btn-primary-text: #ffffff;
  --sgm-mm-btn-secondary: #ffffff;
  --sgm-mm-btn-secondary-text: #1f1a17;
  --sgm-mm-btn-secondary-border: #e6ddd4;
  --sgm-mm-radius: 20px;
  --sgm-mm-transition: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  --sgm-mm-safe-top: env(safe-area-inset-top, 0px);
  --sgm-mm-safe-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  width: 100%;
  z-index: 100;
}

/* ── Trigger (Hamburger) ── */
.sgm-mobile-menu__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--sgm-mm-border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--sgm-mm-text);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(31, 26, 23, 0.06), 0 2px 8px rgba(31, 26, 23, 0.04);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sgm-mobile-menu__trigger:hover {
  background: #f6f1eb;
  box-shadow: 0 2px 4px rgba(31, 26, 23, 0.08), 0 6px 18px rgba(31, 26, 23, 0.06);
}
.sgm-mobile-menu__trigger:active {
  transform: scale(0.96);
}
.sgm-mobile-menu__trigger:focus-visible {
  outline: 2px solid var(--sgm-mm-accent);
  outline-offset: 2px;
}
.sgm-mobile-menu__hamburger {
  display: inline-flex;
  color: var(--sgm-mm-text);
}
.sgm-mobile-menu__hamburger svg {
  display: block;
}

/* ── Overlay ── */
.sgm-mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 23, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity var(--sgm-mm-transition);
  pointer-events: none;
}
.sgm-mobile-menu.is-open .sgm-mobile-menu__overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ── Panel (Slide-in) ── */
.sgm-mobile-menu__panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(84vw, 340px);
  max-width: 100%;
  height: 100vh;
  max-height: 100vh;
  background: var(--sgm-mm-bg);
  color: var(--sgm-mm-text);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform var(--sgm-mm-transition);
  box-shadow: -10px 0 30px rgba(31, 26, 23, 0.12);
  overflow: hidden;
}
.sgm-mobile-menu.is-open .sgm-mobile-menu__panel {
  transform: translateX(0);
}

/* ── Trigger / Close Anchor wrappers (fjern default a styling) ── */
.sgm-mobile-menu__trigger-link,
.sgm-mobile-menu__close-link,
.sgm-mobile-menu__overlay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  cursor: pointer;
}
.sgm-mobile-menu__overlay {
  display: block;
}

/* ── NO-JS FALLBACK: :has() + :target! (virker iPhone 16 Pro / iOS 16+ / Safari 15.4+) ── */
.sgm-mobile-menu:has(.sgm-mobile-menu__panel:target) .sgm-mobile-menu__overlay {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.sgm-mobile-menu:has(.sgm-mobile-menu__panel:target) .sgm-mobile-menu__panel {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.sgm-mobile-menu:has(.sgm-mobile-menu__panel:target) {
  z-index: 9999;
}

/* ── Panel Header ── */
.sgm-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(16px + var(--sgm-mm-safe-top)) 20px 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--sgm-mm-border);
  flex: 0 0 auto;
}
.sgm-mobile-menu__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}
.sgm-mobile-menu__sitename {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--sgm-mm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sgm-mobile-menu__logo {
  display: inline-flex;
  align-items: center;
  max-height: 36px;
}
.sgm-mobile-menu__logo img,
.sgm-mobile-menu__logo a,
.sgm-mobile-menu__logo :is(img, svg) {
  max-height: 36px !important;
  width: auto !important;
  height: auto !important;
  display: block;
}
.sgm-mobile-menu__close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--sgm-mm-border);
  border-radius: 50%;
  background: #fbf8f4;
  color: var(--sgm-mm-text);
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.sgm-mobile-menu__close:hover {
  background: #f1ece5;
}

/* =========================================================
   ⭐⭐⭐⭐⭐ CRITICAL LOADING STATE FIKSES (SÅ SIDEN IKKE FRYSER!)
   ========================================================= */
/* 1. ⛔ NÅR archive loader: MÅ IKKE HELE BODY'S CURSOR ÆNDRES!
      (Mus = hånd/fane frys = ikke at kunne klikke F5, osv.) */
body {
  cursor: auto !important;
}
body * {
  cursor: auto !important;
}
/* 2. Results grid: Halvgennemsigtig (viser loading!) MEN MUSEN VIRKER!
      (Tidligere satte den pointer-events:none på grid → bruger troede siden fryste!) */
.sgm-recipe-archive.is-loading .sgm-archive-results__grid {
  opacity: 0.5 !important;
  pointer-events: auto !important;   /* ✅ KAN KLIKKE PÅ KORT! */
  cursor: auto !important;
  transition: opacity 0.18s ease !important;
  filter: saturate(0.85) !important;
}
/* 3. ENKELT LOADING SPINNER (ikke fuld-skærm overlay!) i TOP-HJØRNET! */
.sgm-recipe-archive.is-loading::after {
  content: '' !important;
  position: fixed !important;
  top: 22px !important;
  right: 22px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  border: 3px solid rgba(115, 90, 70, 0.18) !important;
  border-top-color: #735a46 !important;   /* Kaffe-brun! */
  z-index: 999999 !important;
  pointer-events: none !important;
  animation: sgmRecipeLoadingSpin 0.8s linear infinite !important;
  box-shadow: 0 2px 12px rgba(115,90,70,0.18) !important;
  display: block !important;
}
@keyframes sgmRecipeLoadingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* 4. SIDEBAR = NORMAL TEKST/POINTER (ingen fryst!) */
.sgm-recipe-archive.is-loading .sgm-archive-sidebar,
.sgm-recipe-archive.is-loading .sgm-filter-form,
.sgm-recipe-archive.is-loading .sgm-filter-group,
.sgm-recipe-archive.is-loading .sgm-filter-group__accordion-header,
.sgm-recipe-archive.is-loading .sgm-filter-chip {
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: auto !important;
  -webkit-user-select: auto !important;
}
/* 5. FEJL-BOKS (AJAX timeout) styling */
.sgm-archive-ajax-error {
  font-family: inherit !important;
  line-height: 1.55 !important;
}

/* ============================================================
   🆕 SIMPLE RECIPE ARCHIVE WIDGET (Ny version!)
   Layout: Sidebar (venstre) + 3-kolonne grid (højre)
   ============================================================ */
.sgm-simple-recipe-archive {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 24px 16px !important;
}
.sgm-simple-recipe-archive .sgm-archive-mobile-toggle {
  display: none !important;
  width: 100% !important;
  background: linear-gradient(#a07a63, #8c6a54) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  margin-bottom: 16px !important;
  cursor: pointer !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: center !important;
}
.sgm-simple-archive-layout {
  display: grid !important;
  grid-template-columns: 320px 1fr !important;
  gap: 28px !important;
  align-items: flex-start !important;
}
.sgm-simple-archive-sidebar {
  position: sticky !important;
  top: 20px !important;
  background: #fff !important;
  border: 1px solid #e8ddd1 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(122, 91, 72, 0.08) !important;
  padding: 20px !important;
  z-index: 40 !important;
}
.sgm-simple-archive-sidebar-close {
  display: none !important;
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: transparent !important;
  border: none !important;
  font-size: 24px !important;
  cursor: pointer !important;
  color: #7a5b48 !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
}
.sgm-simple-archive-sidebar-close:hover {
  background: #f5efe8 !important;
}
.sgm-simple-filter-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #5a4232 !important;
  margin: 0 0 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #f0e6da !important;
}
.sgm-simple-reset-btn {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  background: #fff !important;
  color: #a07a63 !important;
  border: 1.5px dashed #c9a88c !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  margin-bottom: 18px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  justify-content: center !important;
}
.sgm-simple-reset-btn:hover {
  background: #faf4ed !important;
  border-color: #a07a63 !important;
  color: #7a5b48 !important;
}
.sgm-simple-filter-checkbox.is-missing {
  opacity: 0.55 !important;
}
.sgm-simple-filter-checkbox.is-missing .sgm-simple-filter-checkbox__label {
  text-decoration: line-through dotted #bba893 !important;
  color: #94836f !important;
}
.sgm-simple-filter-checkbox.is-missing .sgm-simple-filter-checkbox__count {
  background: rgba(180, 160, 140, 0.18) !important;
  color: #b79f86 !important;
}
/* 🔥 Disabled state: 0 resultater i kontekst (brugeren KAN ikke vælge denne).
   VIGTIGT: pointer-events:none BRUGES IKKE, så allerede checkede bokse KAN afkrydses (krav 7). */
.sgm-simple-filter-checkbox.is-disabled {
  opacity: 0.48 !important;
  cursor: not-allowed !important;
  filter: saturate(0.55) !important;
}
.sgm-simple-filter-checkbox.is-disabled .sgm-simple-filter-checkbox__label {
  color: #968473 !important;
}
.sgm-simple-filter-checkbox.is-disabled .sgm-simple-filter-checkbox__count {
  background: rgba(160, 150, 140, 0.18) !important;
  color: #b2a190 !important;
}
/* Sikr at AKTIVE filtre (is-checked) ALLTID ser aktive ud, også hvis samtidig er disabled
   (f.eks. hvis en anden kombination gør det valgte term 0-count - det er en edge-case 
    vi dog forhindrer ved self-exclusion, men definer det for sikkerheds skyld). */
.sgm-simple-filter-checkbox.is-checked.is-disabled {
  opacity: 0.82 !important;
  cursor: pointer !important;
  filter: none !important;
  background: #f5efe8 !important;
  border-color: #c9a88c !important;
}
.sgm-simple-filter-checkbox.is-checked.is-disabled .sgm-simple-filter-checkbox__label {
  color: inherit !important;
}
.sgm-simple-filter-checkbox.is-checked.is-disabled .sgm-simple-filter-checkbox__count {
  background: rgba(199, 153, 118, 0.18) !important;
  color: #a07a63 !important;
}
.sgm-simple-filter-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
.sgm-simple-filter-checkboxes {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 4px 2px 10px !important;
}
.sgm-simple-filter-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  border: 1.5px solid transparent !important;
  cursor: pointer !important;
  transition: background 0.12s ease, border-color 0.12s ease !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
.sgm-simple-filter-checkbox:hover {
  background: #faf4ed !important;
  border-color: #e8ddd1 !important;
}
.sgm-simple-filter-checkbox.is-checked {
  background: #f5efe8 !important;
  border-color: #c9a88c !important;
}
.sgm-simple-filter-checkbox__input {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border: 2px solid #a07a63 !important;
  border-radius: 4px !important;
  background: #fff !important;
  cursor: pointer !important;
  position: relative !important;
  display: inline-block !important;
  transition: all 0.12s ease !important;
  margin: 0 !important;
  padding: 0 !important;
}
.sgm-simple-filter-checkbox__input:checked {
  background: linear-gradient(#a07a63, #8c6a54) !important;
  border-color: #7a5b48 !important;
}
.sgm-simple-filter-checkbox__input:checked::after {
  content: '' !important;
  position: absolute !important;
  left: 3px !important;
  top: -1px !important;
  width: 9px !important;
  height: 13px !important;
  border: solid #fff !important;
  border-width: 0 3px 3px 0 !important;
  transform: rotate(45deg) !important;
  border-radius: 1px !important;
}
.sgm-simple-filter-checkbox__label {
  flex: 1 !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #4a3728 !important;
  line-height: 1.3 !important;
}
.sgm-simple-filter-checkbox__count {
  background: #f5efe8 !important;
  color: #7a5b48 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  min-width: 28px !important;
  text-align: center !important;
  line-height: 1.4 !important;
}
.sgm-simple-filter-checkbox.is-checked .sgm-simple-filter-checkbox__count {
  background: #a07a63 !important;
  color: #fff !important;
}

/* Opdater liste knap */
.sgm-simple-filter-submit-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  width: 100% !important;
  padding: 13px 18px !important;
  margin-top: 18px !important;
  background: linear-gradient(#a07a63, #8c6a54) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease !important;
  box-shadow: 0 3px 10px rgba(122, 91, 72, 0.18) !important;
  text-decoration: none !important;
  line-height: 1 !important;
}
.sgm-simple-filter-submit-btn:hover {
  background: linear-gradient(#8c6a54, #7a5b48) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(122, 91, 72, 0.26) !important;
  color: #fff !important;
}
.sgm-simple-filter-submit-btn:active {
  transform: translateY(0) scale(0.985) !important;
}
.sgm-simple-filter-submit-btn:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* ⭐⭐⭐ COMPACT MOBIL-FILTER INDEN I DRAWER! ⭐⭐⭐ */
@media (max-width: 767px) {
  /* Hele panelet: mindre padding, skab plads til sticky-knap i bunden */
  [data-sgm-archive-sidebar="true"] .sgm-simple-filter-panel {
    padding:
      calc(10px + env(safe-area-inset-top, 0px))
      12px
      calc(95px + env(safe-area-inset-bottom, 0px)) /* PLADS TIL STICKY KNAP! */
      12px !important;
  }
  /* Titel: mindre */
  [data-sgm-archive-sidebar="true"] .sgm-simple-filter-title {
    font-size: 19px !important;
    margin: 0 0 10px !important;
    padding-bottom: 8px !important;
  }
  /* Reset knap: mindre (hvis den bliver tilføjet senere) */
  [data-sgm-archive-sidebar="true"] .sgm-simple-reset-btn {
    padding: 8px 12px !important;
    margin-bottom: 12px !important;
    font-size: 12.5px !important;
  }
  /* Form: mindre mellemrum imellem filtergrupper (14 → 8) */
  [data-sgm-archive-sidebar="true"] .sgm-simple-filter-form {
    gap: 8px !important;
  }
  /* ── SECTIONS (👥 Målgruppe & størrelse osv.) ──  */
  [data-sgm-archive-sidebar="true"] .sgm-filter-section {
    padding: 13px 2px 3px 0px !important;
    margin-left: 1px !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-filter-section__icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 14.5px !important;
    border-radius: 8px !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-filter-section__label {
    font-size: 12px !important;
  }
  /* ── ACCORDION-GRUPPER: mindre alt! ── */
  [data-sgm-archive-sidebar="true"] .sgm-filter-group,
  [data-sgm-archive-sidebar="true"] .sgm-filter-group--accordion {
    border-radius: 12px !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-filter-group__accordion-header {
    min-height: 44px !important;
    padding: 9px 12px 9px 12px !important;
    border-radius: 12px !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-filter-group--accordion.is-open > .sgm-filter-group__accordion-header {
    border-radius: 12px 12px 0 0 !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-filter-group__accordion-label {
    font-size: 14px !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-filter-group__accordion-count {
    font-size: 12px !important;
    padding: 1px 7px !important;
    min-width: 20px !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-filter-group__accordion-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-filter-group__accordion-body {
    padding: 8px 10px 8px 10px !important;
  }
  /* ── CHECKBOXES: mindre alt! ── */
  [data-sgm-archive-sidebar="true"] .sgm-simple-filter-checkboxes {
    gap: 5px !important;
    padding: 0 !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-simple-filter-checkbox {
    gap: 8px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-simple-filter-checkbox__input {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    border-width: 1.8px !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-simple-filter-checkbox__label {
    font-size: 13.5px !important;
    font-weight: 600 !important;
  }
  [data-sgm-archive-sidebar="true"] .sgm-simple-filter-checkbox__count {
    font-size: 11px !important;
    padding: 2px 6.5px !important;
    min-width: 24px !important;
  }
}

/* ⭐⭐⭐ STICKY OPDATER LISTE KNAP INDEN I DRAWER (MOBIL) ⭐⭐⭐ */
/* Wrap der holder den fast i bunden af DRAWER — KUN når drawer er ÅBEN, og KUN inde i drawer-bredden! */
@media (max-width: 767px) {
  /* Kun når drawer er ÅBEN (is-sidebar-open), og KUN inde i den specifikke drawer [data-sgm-archive-sidebar="true"]
     Ellers ville sticky wrap blive vist NEDERST PÅ HELE SIDEN når drawer er lukket!  */
  [data-sgm-archive="true"].is-sidebar-open [data-sgm-archive-sidebar="true"] .sgm-simple-filter-sticky-submit-wrap {
    position: absolute !important;
    z-index: 2147483647 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) 14px !important;
    background: linear-gradient(
      180deg,
      rgba(246, 241, 235, 0) 0%,
      rgba(246, 241, 235, 0.94) 25%,
      rgba(246, 241, 235, 1) 60%
    ) !important;
    border-radius: 0 0 0 24px !important;
    pointer-events: none !important;
  }
  .sgm-simple-filter-sticky-submit-wrap .sgm-simple-filter-submit-btn--drawer {
    pointer-events: auto !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 12px 18px !important;
    margin: 0 !important;
    font-size: 15.5px !important;
    border-radius: 14px !important;
    box-shadow:
      0 3px 12px rgba(122, 91, 72, 0.25),
      0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
  }
  .sgm-simple-filter-submit-btn__count {
    margin-left: auto !important;
    background: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    padding: 4px 11px !important;
    border-radius: 999px !important;
    min-width: 34px !important;
    line-height: 1.2 !important;
  }
  /* Når drawer er LUKKET → SLET sticky wrap fuldstændigt fra view */
  [data-sgm-archive-sidebar="true"]:not([aria-hidden="false"]) .sgm-simple-filter-sticky-submit-wrap {
    display: none !important;
  }
}
/* På Desktop (ikke mobil): skjul drawerenes sticky knap (der bruges "Opdater liste" øverst i stedet) */
@media (min-width: 768px) {
  .sgm-simple-filter-sticky-submit-wrap {
    display: none !important;
  }
}

/* RESULTATER (HØJRE SIDE) */
.sgm-simple-archive-results {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  min-width: 0 !important;
}
.sgm-simple-archive-results__meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 14px 20px !important;
  background: #fff !important;
  border: 1px solid #e8ddd1 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(122, 91, 72, 0.05) !important;
  flex-wrap: wrap !important;
}
.sgm-simple-archive-results__count {
  font-weight: 800 !important;
  font-size: 15.5px !important;
  color: #5a4232 !important;
}

/* Opdater knap - EKSTERN (i resultatbaren) - mindre og kompakt */
.sgm-simple-filter-submit-btn--external {
  width: auto !important;
  margin: 0 !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
}
@media (max-width: 520px) {
  .sgm-simple-archive-results__meta {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .sgm-simple-filter-submit-btn--external {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ============================================================
   PAGINATION (flot design!) – matcher farvepalette #a07a63
   ============================================================ */
.sgm-simple-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 12px 0 4px !important;
  padding: 4px 0 18px !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.sgm-pagination-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: center !important;
  align-items: center !important;
}
.sgm-pagination-list > li {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 8px !important;
}
.sgm-pagination-list > li > a.page-numbers,
.sgm-pagination-list > li > span.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border: 1.5px solid #e8ddd1 !important;
  background: #ffffff !important;
  color: #7a5b48 !important;
  transition: all 0.15s ease !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
.sgm-pagination-list > li > a.page-numbers:hover {
  background: #faf4ed !important;
  border-color: #c9a88c !important;
  color: #5a4232 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(122, 91, 72, 0.12) !important;
}
.sgm-pagination-list > li > a.prev,
.sgm-pagination-list > li > a.next {
  background: linear-gradient(#a07a63, #8c6a54) !important;
  color: #ffffff !important;
  border-color: #7a5b48 !important;
  font-weight: 800 !important;
  padding: 0 18px !important;
  box-shadow: 0 3px 10px rgba(122, 91, 72, 0.18) !important;
  min-width: auto !important;
  width: auto !important;
}
.sgm-pagination-list > li > a.prev:hover,
.sgm-pagination-list > li > a.next:hover {
  background: linear-gradient(#8c6a54, #7a5b48) !important;
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 6px 16px rgba(122, 91, 72, 0.28) !important;
  color: #ffffff !important;
  border-color: #5a4232 !important;
}
.sgm-pagination-list > li > span.current {
  background: linear-gradient(#a07a63, #8c6a54) !important;
  color: #ffffff !important;
  border-color: #7a5b48 !important;
  box-shadow: 0 3px 10px rgba(122, 91, 72, 0.20) !important;
  cursor: default !important;
  transform: scale(1.05) !important;
}
.sgm-pagination-list > li > span.dots {
  border: none !important;
  background: transparent !important;
  min-width: 28px !important;
  color: #a07a63 !important;
  font-weight: 800 !important;
  padding: 0 !important;
  cursor: default !important;
  box-shadow: none !important;
}
@media (max-width: 580px) {
  .sgm-simple-pagination {
    gap: 6px !important;
  }
  .sgm-pagination-list {
    gap: 6px !important;
  }
  .sgm-pagination-list > li {
    min-width: 38px !important;
    height: 38px !important;
  }
  .sgm-pagination-list > li > a.page-numbers,
  .sgm-pagination-list > li > span.page-numbers {
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 11px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    line-height: 38px !important;
  }
  .sgm-pagination-list > li > a.prev,
  .sgm-pagination-list > li > a.next {
    padding: 0 14px !important;
    font-size: 14px !important;
  }
}
.sgm-simple-archive-results__grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  align-items: stretch !important;
}
.sgm-simple-recipe-card {
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  border: 1px solid #e8ddd1 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px rgba(122, 91, 72, 0.07) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  height: 100% !important;
}
.sgm-simple-recipe-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(122, 91, 72, 0.13) !important;
}
.sgm-simple-recipe-card .sgm-card__body {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 18px 18px 20px !important;
  flex: 1 !important;
}
.sgm-simple-recipe-card .sgm-card__media {
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  background: #f0e6da !important;
}
.sgm-simple-recipe-card .sgm-card__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}
.sgm-simple-recipe-card:hover .sgm-card__media img {
  transform: scale(1.04) !important;
}
.sgm-simple-recipe-card .sgm-card__eyebrow {
  color: #a07a63 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}
.sgm-simple-recipe-card .sgm-card__title {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: #3d2d20 !important;
}
.sgm-simple-recipe-card .sgm-card__title a {
  color: inherit !important;
  text-decoration: none !important;
}
.sgm-simple-recipe-card .sgm-card__title a:hover {
  color: #a07a63 !important;
}
.sgm-simple-recipe-card .sgm-card__excerpt {
  font-size: 13.5px !important;
  color: #6b5341 !important;
  line-height: 1.55 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 0 !important;
  flex: 1 !important;
}
.sgm-simple-see-recipe-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 6px !important;
  padding: 11px 18px !important;
  background: linear-gradient(#a07a63, #8c6a54) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 6px rgba(122, 91, 72, 0.15) !important;
  width: 100% !important;
  text-align: center !important;
}
.sgm-simple-see-recipe-btn:hover {
  background: linear-gradient(#8c6a54, #7a5b48) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(122, 91, 72, 0.22) !important;
  color: #fff !important;
}
.sgm-simple-see-recipe-btn:visited {
  color: #fff !important;
}

/* LOAD MORE / INFINITE SCROLL */
.sgm-simple-archive-results__loadmore {
  padding: 28px 0 !important;
  text-align: center !important;
  color: #7a5b48 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.sgm-simple-archive-results__loader {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #a07a63 !important;
  font-weight: 700 !important;
}
.sgm-simple-archive-sentinel {
  height: 1px !important;
  margin-top: -1px !important;
}

/* EMPTY STATE */
.sgm-simple-archive-empty {
  padding: 52px 32px !important;
  text-align: center !important;
  background: #fff !important;
  border: 2px dashed #e8ddd1 !important;
  border-radius: 16px !important;
}
.sgm-simple-archive-empty h3 {
  color: #5a4232 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  margin: 0 0 10px !important;
}
.sgm-simple-archive-empty p {
  color: #7a5b48 !important;
  font-size: 14.5px !important;
  margin: 0 !important;
}

/* LOADING STATE */
.sgm-simple-recipe-archive.is-loading {
  opacity: 0.72 !important;
  pointer-events: none !important;
  transition: opacity 0.12s ease !important;
}
.sgm-simple-recipe-archive.is-loading .sgm-simple-archive-results__grid {
  filter: blur(1px) !important;
}

/* OVERLAY (mobile) */
.sgm-archive-sidebar-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(42, 28, 15, 0.52) !important;
  z-index: 45 !important;
}

/* ============================================================
   📱 RESPONSIVE: Tablet + Mobil
   ============================================================ */
@media (max-width: 1100px) {
  .sgm-simple-archive-results__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}
@media (max-width: 860px) {
  .sgm-simple-recipe-archive .sgm-archive-mobile-toggle {
    display: inline-flex !important;
  }
  .sgm-simple-archive-layout {
    grid-template-columns: 1fr !important;
  }
  .sgm-simple-archive-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 85% !important;
    max-width: 360px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    border-radius: 0 !important;
    padding: 52px 20px 24px !important;
    transform: translateX(-100%) !important;
    transition: transform 0.25s ease !important;
    z-index: 50 !important;
    box-shadow: 8px 0 32px rgba(0,0,0,0.18) !important;
  }
  .sgm-simple-archive-sidebar.is-open {
    transform: translateX(0) !important;
  }
  .sgm-simple-archive-sidebar-close {
    display: inline-flex !important;
  }
  .sgm-simple-archive-results__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}
@media (max-width: 560px) {
  .sgm-simple-archive-results__grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .sgm-simple-recipe-archive {
    padding: 16px 12px !important;
  }
  .sgm-simple-recipe-card .sgm-card__body {
    padding: 16px !important;
  }
}
.sgm-mobile-menu__close:active {
  transform: scale(0.94);
}
.sgm-mobile-menu__close:focus-visible {
  outline: 2px solid var(--sgm-mm-accent);
  outline-offset: 2px;
}

/* ── User greeting (logged in) ── */
.sgm-mobile-menu__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f6f1eb 0%, #fbf8f4 100%);
  border-bottom: 1px solid var(--sgm-mm-border);
  flex: 0 0 auto;
}
.sgm-mobile-menu__avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(31, 26, 23, 0.1);
}
.sgm-mobile-menu__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sgm-mm-accent) 0%, #c79b87 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border: 2px solid #ffffff;
}
.sgm-mobile-menu__user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.sgm-mobile-menu__user-greeting {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--sgm-mm-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sgm-mobile-menu__user-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sgm-mm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Nav List (scroll area) ── */
.sgm-mobile-menu__nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 12px calc(12px + var(--sgm-mm-safe-bottom));
  scrollbar-width: thin;
  scrollbar-color: #d7cabf transparent;
}
.sgm-mobile-menu__nav::-webkit-scrollbar {
  width: 4px;
}
.sgm-mobile-menu__nav::-webkit-scrollbar-thumb {
  background: #d7cabf;
  border-radius: 2px;
}

.sgm-mobile-menu__list,
.sgm-mobile-menu__submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sgm-mobile-menu__item {
  position: relative;
}

.sgm-mobile-menu__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  min-height: 52px;
  color: var(--sgm-mm-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: var(--sgm-mm-radius);
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.sgm-mobile-menu__link:hover {
  background: rgba(182, 135, 112, 0.08);
  color: var(--sgm-mm-text);
}
.sgm-mobile-menu__link:focus-visible {
  outline: 2px solid var(--sgm-mm-accent);
  outline-offset: -2px;
}
.sgm-mobile-menu__link.is-active {
  background: linear-gradient(135deg, rgba(182, 135, 112, 0.14) 0%, rgba(182, 135, 112, 0.06) 100%);
  color: var(--sgm-mm-text);
  box-shadow: inset 3px 0 0 var(--sgm-mm-accent);
}
.sgm-mobile-menu__link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 12px;
  background: rgba(182, 135, 112, 0.1);
  color: var(--sgm-mm-accent);
  flex: 0 0 auto;
}
.sgm-mobile-menu__link-text {
  flex: 1 1 auto;
  min-width: 0;
}
.sgm-mobile-menu__link-chevron {
  display: inline-flex;
  color: var(--sgm-mm-muted);
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.sgm-mobile-menu__item.is-open > .sgm-mobile-menu__link .sgm-mobile-menu__link-chevron {
  transform: rotate(90deg);
}

/* ── Accordion Sub-menu Toggle (placed between link and submenu by walker) ── */
.sgm-mobile-menu__submenu-toggle {
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--sgm-mm-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sgm-mobile-menu__submenu-toggle:hover {
  color: var(--sgm-mm-text);
}
.sgm-mobile-menu__submenu-toggle svg {
  transition: transform 0.2s ease;
}
.sgm-mobile-menu__item.is-open > .sgm-mobile-menu__submenu-toggle svg {
  transform: rotate(180deg);
}

/* ── Submenu ── */
.sgm-mobile-menu__submenu {
  margin-top: 2px;
  margin-left: 12px;
  padding: 4px 0 8px 14px;
  border-left: 2px solid #d7cabf;
}
.sgm-mobile-menu__submenu .sgm-mobile-menu__link {
  padding: 12px 14px;
  min-height: 46px;
  font-size: 15px;
  font-weight: 500;
  color: #3f3833;
  border-radius: 16px;
}
.sgm-mobile-menu__submenu .sgm-mobile-menu__link.is-active {
  box-shadow: inset 2px 0 0 var(--sgm-mm-accent);
}
.sgm-mobile-menu__submenu .sgm-mobile-menu__submenu-toggle {
  width: 40px;
  height: 40px;
  top: 3px;
  right: 4px;
}

/* ── Footer (Auth) ── */
.sgm-mobile-menu__footer {
  padding: 18px 20px calc(20px + var(--sgm-mm-safe-bottom));
  border-top: 1px solid var(--sgm-mm-border);
  background: #ffffff;
  flex: 0 0 auto;
}
.sgm-mobile-menu__auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sgm-mobile-menu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--sgm-mm-radius);
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sgm-mobile-menu__btn:active {
  transform: scale(0.97);
}
.sgm-mobile-menu__btn:focus-visible {
  outline: 2px solid var(--sgm-mm-accent);
  outline-offset: 2px;
}
.sgm-mobile-menu__btn--primary {
  background: #ffffff;
  color: #3a6f4d;
  border: 1.5px solid #3a6f4d;
  box-shadow: 0 2px 8px rgba(58, 111, 77, 0.08), 0 1px 2px rgba(58, 111, 77, 0.04);
}
.sgm-mobile-menu__btn--primary:hover {
  background: #f2f8f4;
  border-color: #2c5a3d;
  color: #2c5a3d;
}
.sgm-mobile-menu__btn--secondary {
  background: #ffffff;
  color: #3a6f4d;
  border: 1.5px solid #c8dcd0;
}
.sgm-mobile-menu__btn--secondary:hover {
  background: #f2f8f4;
  border-color: #3a6f4d;
  color: #2c5a3d;
}
.sgm-mobile-menu__btn--danger {
  background: #ffffff;
  color: #3a6f4d;
  border: 1.5px solid #c8dcd0;
}
.sgm-mobile-menu__btn--danger:hover {
  background: #f2f8f4;
  border-color: #3a6f4d;
  color: #2c5a3d;
}
.sgm-mobile-menu__legal {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--sgm-mm-border);
  text-align: center;
}
.sgm-mobile-menu__user-subline {
  margin: 0;
  font-size: 12px;
  color: var(--sgm-mm-muted);
  line-height: 1.5;
}

/* ── Scroll lock body class (tilføjet af JS) ── */
.sgm-mobile-menu-scroll-lock {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
  overscroll-behavior: none;
}

/* ── Reduceret bevægelse: Ingen animationer ── */
@media (prefers-reduced-motion: reduce) {
  .sgm-mobile-menu__panel,
  .sgm-mobile-menu__overlay,
  .sgm-mobile-menu__link-chevron,
  .sgm-mobile-menu__submenu-toggle svg,
  .sgm-mobile-menu__btn,
  .sgm-mobile-menu__close,
  .sgm-mobile-menu__trigger {
    transition: none !important;
    animation: none !important;
  }
}

/* ── Tablet / Desktop: Hvis den alligevel placeres der ── */
@media (min-width: 1025px) {
  .sgm-mobile-menu__panel {
    width: min(420px, 42vw);
  }
}

/* ─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─ */
/* 🍩 ⠀iOS-STYLE MOBILE BOTTOM SHEET AUTH (ny!)                         */
/* ─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─ */

/* LUKKET state: sheet er skjult */
.sgm-mb-sheet {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  visibility: hidden;
}
.sgm-mb-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 23, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.sgm-mb-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(108%);
  transition: transform .38s cubic-bezier(.22,1,.36,1);
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -16px 48px rgba(31, 26, 23, .18);
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 10px 22px 26px;
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  touch-action: pan-y;
  will-change: transform;
}
/* HANDLE (iOS "tynd grå streg i toppen") */
.sgm-mb-sheet__handle {
  width: 44px;
  height: 5px;
  background: #d9cdc1;
  border-radius: 999px;
  margin: 6px auto 12px;
  pointer-events: none;
  touch-action: none;
}
/* ── Header (titel + luk) ── */
.sgm-mb-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.sgm-mb-sheet__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1f1a17;
  font-family: Georgia, "Playfair Display", serif;
  line-height: 1.2;
}
.sgm-mb-sheet__close {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: none;
  background: #f6f1eb;
  color: #2d2723;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  padding: 0;
}
.sgm-mb-sheet__close:hover,
.sgm-mb-sheet__close:active {
  background: #ebe0d4;
  transform: translateY(-1px);
}
/* ── Tabs ── */
.sgm-mb-sheet__tabs {
  display: flex;
  gap: 6px;
  background: #f6f1eb;
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 18px;
}
.sgm-mb-sheet__tab {
  flex: 1 1 0;
  padding: 11px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: #6b5e54;
  cursor: pointer;
  transition: all .22s ease;
  text-align: center;
}
.sgm-mb-sheet__tab.is-active {
  background: #b68770;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(182,135,112,.3);
}
/* ── Fejl / Success ── */
.sgm-mb-sheet__feedback {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 16px;
  min-height: 0;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  transition: all .2s ease;
}
.sgm-mb-sheet__feedback.is-error,
.sgm-mb-sheet__feedback.is-success {
  height: auto;
  padding: 12px 14px;
}
.sgm-mb-sheet__feedback.is-error {
  background: #fde7e7;
  color: #a0212a;
  border: 1px solid #f7c6c6;
}
.sgm-mb-sheet__feedback.is-success {
  background: #e1f0e3;
  color: #2a7541;
  border: 1px solid #c5e1c9;
}
/* ── Forms ── */
.sgm-mb-sheet__form {
  display: none;
}
.sgm-mb-sheet__form.is-active {
  display: block;
}
.sgm-mb-sheet__field {
  display: block;
  margin-bottom: 14px;
}
.sgm-mb-sheet__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2d2723;
  margin-bottom: 7px;
  letter-spacing: .2px;
}
.sgm-mb-sheet__form input[type="text"],
.sgm-mb-sheet__form input[type="email"],
.sgm-mb-sheet__form input[type="password"] {
  width: 100%;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1.5px solid #e6ddd4;
  background: #fff;
  font-size: 15px;
  color: #1f1a17;
  box-sizing: border-box;
  transition: all .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.sgm-mb-sheet__form input:focus {
  outline: none;
  border-color: #b68770;
  box-shadow: 0 0 0 4px rgba(182,135,112,.12);
}
.sgm-mb-sheet__remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 18px;
  color: #6b5e54;
  font-size: 14px;
}
.sgm-mb-sheet__remember input {
  width: 18px; height: 18px;
  accent-color: #b68770;
}
/* ── Submit knap ── */
.sgm-mb-sheet__submit {
  display: block;
  width: 100%;
  padding: 15px 22px;
  border: none;
  border-radius: 14px;
  background: #2d2723;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .22s ease;
  letter-spacing: .2px;
}
.sgm-mb-sheet__submit:hover,
.sgm-mb-sheet__submit:active {
  background: #1f1a17;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31,26,23,.2);
}
.sgm-mb-sheet__submit:disabled {
  opacity: .55;
  cursor: progress;
  transform: none !important;
  box-shadow: none !important;
}
.sgm-mb-sheet__submit--alt {
  background: #b68770;
  color: #fff;
}
.sgm-mb-sheet__submit--alt:hover,
.sgm-mb-sheet__submit--alt:active {
  background: #a37360;
  box-shadow: 0 10px 24px rgba(182,135,112,.28);
}
.sgm-mb-sheet__links {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #6b5e54;
}
.sgm-mb-sheet__links a {
  color: #b68770;
  text-decoration: none;
  font-weight: 600;
}
.sgm-mb-sheet__links a:hover { text-decoration: underline; }

/* ── ÅBNET state: sheet vises ── */
.sgm-mb-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}
.sgm-mb-sheet.is-open .sgm-mb-sheet__overlay {
  opacity: 1;
  pointer-events: auto;
}
.sgm-mb-sheet.is-open .sgm-mb-sheet__panel {
  transform: translateY(0);
}

/* ── Body scroll-lock (fra JS) ── */
.sgm-mb-sheet-scroll-lock {
  overflow: hidden !important;
  touch-action: none;
  overscroll-behavior: none;
}

/* ── Animationer slået fra hvis bruger ønsker ── */
@media (prefers-reduced-motion: reduce) {
  .sgm-mb-sheet__panel, .sgm-mb-sheet__overlay,
  .sgm-mb-sheet__tab, .sgm-mb-sheet__submit, .sgm-mb-sheet__close {
    transition: none !important;
    animation: none !important;
  }
}

/* På større skærme: sheet bliver IKKE vist, men det er OK da det alligevel er til mobil */
@media (min-width: 901px) {
  .sgm-mb-sheet__panel {
    left: 50%;
    transform: translate(-50%, 108%);
    max-width: 440px;
    border-radius: 28px;
    bottom: 24px;
  }
  .sgm-mb-sheet.is-open .sgm-mb-sheet__panel { transform: translate(-50%, 0); }
}


/* =========================================================
   💬 SØGNING FEEDBACK: Floating FAB + Modal (ingen auto-popup!)
   ========================================================= */
.sgm-fb-root {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  inset: 0;
}

/* ── FLOATING KNAP (nederst HØJRE) ── */
.sgm-fb-fab {
  position: absolute;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px 13px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2d2723 0%, #49392f 100%);
  color: #f6f1eb;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 28px rgba(45, 39, 35, 0.28), 0 2px 8px rgba(0,0,0,0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sgm-fb-fab:hover,
.sgm-fb-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(45, 39, 35, 0.34), 0 3px 10px rgba(0,0,0,0.18);
  outline: none;
}
.sgm-fb-fab:active { transform: translateY(0) scale(0.98); }
.sgm-fb-fab svg {
  color: #ffd090;
  flex-shrink: 0;
}
/* På mobil: mindre tekst, kun ikon i sidste ende hvis plads trangt */
@media (max-width: 420px) {
  .sgm-fb-fab { padding: 12px 16px 12px 13px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .sgm-fb-fab span { font-size: 13px; }
}

/* ── OVERLAY ── */
.sgm-fb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 23, 21, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.sgm-fb-root.is-open .sgm-fb-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* ── DIALOG ── */
.sgm-fb-dialog {
  position: absolute;
  right: 20px;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  left: 20px;
  transform: translateY(24px) scale(0.98);
  transform-origin: right bottom;
  opacity: 0;
  pointer-events: none;
  background: #fffdfa;
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(45, 39, 35, 0.32), 0 8px 24px rgba(0,0,0,0.16);
  padding: 22px 22px 18px;
  max-width: 480px;
  max-height: calc(88vh - 100px);
  overflow: auto;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  border: 1px solid rgba(182, 135, 112, 0.18);
}
@media (min-width: 540px) {
  .sgm-fb-dialog {
    left: auto;
    width: 460px;
  }
}
.sgm-fb-root.is-open .sgm-fb-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* ── LUK ── */
.sgm-fb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #87756a;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.sgm-fb-close:hover,
.sgm-fb-close:focus-visible {
  background: #f3ebe2;
  color: #2d2723;
  outline: none;
}

/* ── HEAD ── */
.sgm-fb-head { margin-bottom: 14px; padding-right: 28px; }
.sgm-fb-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: #2d2723;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.sgm-fb-sub {
  margin: 0;
  font-size: 13.5px;
  color: #6b5e54;
  line-height: 1.45;
}

/* ── SPØRGSMÅL ── */
.sgm-fb-q { margin: 0 0 14px; }
.sgm-fb-q__text {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2d2723;
  line-height: 1.4;
}
.sgm-fb-q__btns {
  display: flex;
  gap: 10px;
}
.sgm-fb-q__btns label { position: relative; flex: 1; cursor: pointer; }
.sgm-fb-q__btns input {
  position: absolute;
  left: -99999px;
  opacity: 0;
  pointer-events: none;
}
.sgm-fb-chip {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid #e6ddd4;
  background: #fffdfa;
  color: #6b5e54;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sgm-fb-chip--yes:hover { border-color: #b68770; color: #b68770; }
.sgm-fb-chip--no:hover  { border-color: #b66060; color: #b66060; }
.sgm-fb-q__btns input:focus-visible + .sgm-fb-chip { outline: 3px solid #ffd090; outline-offset: 2px; }
.sgm-fb-q__btns input:checked + .sgm-fb-chip--yes { background: #f3e2d6; color: #8a593e; border-color: #b68770; }
.sgm-fb-q__btns input:checked + .sgm-fb-chip--no  { background: #f7dede; color: #943b3b; border-color: #c77676; }

/* ── TEKSTFELT ── */
.sgm-fb-q--txt .sgm-fb-q__text { display: block; margin-bottom: 6px; }
.sgm-fb-textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid #e6ddd4;
  background: #fffdfa;
  color: #2d2723;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sgm-fb-textarea::placeholder { color: #a89788; }
.sgm-fb-textarea:hover { border-color: #d8c8bb; }
.sgm-fb-textarea:focus {
  outline: none;
  border-color: #b68770;
  box-shadow: 0 0 0 4px rgba(182, 135, 112, 0.16);
}

/* ── FEEDBACK / STATUS ── */
.sgm-fb-msg {
  min-height: 0;
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  background: transparent;
  color: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.sgm-fb-msg.is-msg-success {
  background: #eaf4e4;
  color: #456a2b;
  font-weight: 600;
}
.sgm-fb-msg.is-msg-error {
  background: #fbe7e7;
  color: #933a3a;
  font-weight: 600;
}

/* ── ACTIONS ── */
.sgm-fb-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(230, 221, 212, 0.7);
}
.sgm-fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 14px;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.sgm-fb-btn:active { transform: scale(0.97); }
.sgm-fb-btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.sgm-fb-btn--ghost {
  background: #f3ebe2;
  color: #6b5e54;
}
.sgm-fb-btn--ghost:hover { background: #ead8c6; }
.sgm-fb-btn--primary {
  background: linear-gradient(135deg, #2d2723 0%, #4b382b 100%);
  color: #fff6ea;
  box-shadow: 0 6px 18px rgba(45, 39, 35, 0.22);
}
.sgm-fb-btn--primary:hover { background: linear-gradient(135deg, #352c28 0%, #563f30 100%); }

/* ── Scroll lock body ── */
.sgm-fb-open {
  overflow: hidden !important;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .sgm-fb-dialog, .sgm-fb-overlay, .sgm-fb-fab, .sgm-fb-chip, .sgm-fb-btn {     
    transition: none !important;
    animation: none !important;
  }
}

/* ⭐⭐⭐ SMART FILTER SECTIONS — Bryder de 17 kategorier op i 4 forståelige grupper ⭐⭐⭐ */
.sgm-filter-section {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 20px 4px 6px 2px !important;
  margin: 0 0 6px 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(160, 122, 99, 0.18) !important;
  user-select: none !important;
}
.sgm-filter-section:first-of-type {
  padding-top: 8px !important;
  border-top: 0 !important;
}
.sgm-filter-section__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #f6ece0 0%, #e7d5be 100%) !important;
  font-size: 16px !important;
  line-height: 1 !important;
  box-shadow: inset 0 0 0 1px rgba(160, 122, 99, 0.15) !important;
}
.sgm-filter-section__label {
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  color: #6e5644 !important;
  text-transform: uppercase !important;
}
@media (max-width: 767px) {
  .sgm-filter-section {
    padding: 18px 2px 6px 0px !important;
    margin-left: 2px !important;
  }
  .sgm-filter-section__icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 17px !important;
    border-radius: 10px !important;
  }
  .sgm-filter-section__label {
    font-size: 13.5px !important;
  }
}

/* ════════════════════════════════════════════════════════════
   🌾🌻⭐ ULTRA KOMPAKT SMART SIDEBAR (INGEN SCROLLBAR!)
   🌻⭐ Mål: ALTID 2-kol checkboxes, 3-kol på >480px,
            mindre ALT, ingen overflow scroll, ingen max-h,
            SMARTE defaults: alle accordions LUKKET = 0 scroll!
   ════════════════════════════════════════════════════════════ */

/* (1) FJERN HÉD SCROLLBAR OG MAX-HØJDE!
       Filteret vokser frit, men pga. smart defaults + 2/3-kol +
       lukkede accordions, er det UNDER skærmens højde ALLIGEVEL! */
[data-sgm-archive-sidebar="true"] .sgm-simple-filter-panel,
.sgmv2-recipe-filter.sgm-simple-filter-panel {
    max-height: none !important;
    overflow: visible !important;
    padding: 12px 10px 14px 10px !important;
}

/* (2) 🥖🧺 ULTRA 2-KOL (ALLE skærme ≥ 321px), 3-KOL p˚> 460px (!) */
[data-sgm-archive-sidebar="true"] .sgm-simple-filter-checkboxes,
.sgmv2-recipe-filter .sgm-simple-filter-checkboxes {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px 7px !important;
    padding: 0 !important;
}
@media (min-width: 460px) {
    [data-sgm-archive-sidebar="true"] .sgm-simple-filter-checkboxes,
    .sgmv2-recipe-filter .sgm-simple-filter-checkboxes {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 4px 6px !important;
    }
}

/* (3) Accordion headers: ULTRA-LAV! 34 px højde (ikke 56!) */
[data-sgm-archive-sidebar="true"] .sgm-filter-group__accordion-header,
.sgmv2-recipe-filter .sgm-filter-group__accordion-header {
    min-height: 34px !important;
    padding: 5px 10px !important;
    border-radius: 9px !important;
}
[data-sgm-archive-sidebar="true"] .sgm-filter-group--accordion.is-open > .sgm-filter-group__accordion-header,
.sgmv2-recipe-filter .sgm-filter-group--accordion.is-open > .sgm-filter-group__accordion-header {
    border-radius: 9px 9px 0 0 !important;
}
[data-sgm-archive-sidebar="true"] .sgm-filter-group__accordion-label,
.sgmv2-recipe-filter .sgm-filter-group__accordion-label {
    font-size: 13px !important;
    font-weight: 600 !important;
}
[data-sgm-archive-sidebar="true"] .sgm-filter-group__accordion-count,
.sgmv2-recipe-filter .sgm-filter-group__accordion-count {
    font-size: 10.5px !important;
    padding: 0 6px !important;
    min-width: 18px !important;
    height: 18px !important;
    margin-left: 5px !important;
    line-height: 18px !important;
}
[data-sgm-archive-sidebar="true"] .sgm-filter-group__accordion-icon svg,
.sgmv2-recipe-filter .sgm-filter-group__accordion-icon svg {
    width: 13px !important;
    height: 13px !important;
}
[data-sgm-archive-sidebar="true"] .sgm-filter-group__accordion-body,
.sgmv2-recipe-filter .sgm-filter-group__accordion-body {
    padding: 5px 5px 7px 5px !important;
}
[data-sgm-archive-sidebar="true"] .sgm-filter-group,
[data-sgm-archive-sidebar="true"] .sgm-filter-group--accordion,
.sgmv2-recipe-filter [data-sgmv2-filter-group],
.sgmv2-recipe-filter .sgm-filter-group--accordion {
    margin: 3px 0 !important;
    border-radius: 9px !important;
}

/* (4) Section headers: MINIATUR (24px ikon, 11px font) */
[data-sgm-archive-sidebar="true"] .sgm-filter-section,
.sgmv2-recipe-filter .sgm-filter-section {
    padding: 9px 2px 0 0 !important;
    margin: 12px 2px 3px 2px !important;
    border-bottom: 0 !important;
}
[data-sgm-archive-sidebar="true"] .sgm-filter-section__icon,
.sgmv2-recipe-filter .sgm-filter-section__icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
    margin-right: 7px !important;
}
[data-sgm-archive-sidebar="true"] .sgm-filter-section__label,
.sgmv2-recipe-filter .sgm-filter-section__label {
    font-size: 11px !important;
    letter-spacing: 0.35px !important;
}

/* (5) Checkbox items: SÅ LAVE SOM MULIGT (29 px!) = -36% fra original */
[data-sgm-archive-sidebar="true"] .sgm-simple-filter-checkbox,
.sgmv2-recipe-filter .sgm-simple-filter-checkbox {
    padding: 4px 7px !important;
    border-radius: 7px !important;
    min-height: 29px !important;
    gap: 5px !important;
    margin: 0 !important;
}
[data-sgm-archive-sidebar="true"] .sgm-simple-filter-checkbox__input,
.sgmv2-recipe-filter .sgm-simple-filter-checkbox__input {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    margin-right: 4px !important;
    border-width: 1.5px !important;
    border-radius: 3px !important;
}
[data-sgm-archive-sidebar="true"] .sgm-simple-filter-checkbox__label,
.sgmv2-recipe-filter .sgm-simple-filter-checkbox__label {
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
}
[data-sgm-archive-sidebar="true"] .sgm-simple-filter-checkbox__count,
.sgmv2-recipe-filter .sgm-simple-filter-checkbox__count {
    font-size: 10px !important;
    padding: 1px 5px !important;
    min-width: 18px !important;
    line-height: 1.3 !important;
    border-radius: 7px !important;
}

/* (6) Filter TITEL: mindre (16-17px i stedet for 22px!) */
[data-sgm-archive-sidebar="true"] .sgm-simple-filter-title,
.sgmv2-recipe-filter .sgmv2-filter-title {
    font-size: 17px !important;
    margin: 0 0 8px !important;
    padding-bottom: 5px !important;
}

/* (7) V2 topbar (Clear filters): MINIMALT hvis den er der */
.sgmv2-filter-topbar {
    padding: 7px 10px !important;
    margin: 0 0 10px 0 !important;
    gap: 7px !important;
    border-radius: 10px !important;
}
.sgmv2-filter-topbar__count-num {
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
}
.sgmv2-filter-topbar__count-text {
    font-size: 12px !important;
}
.sgmv2-icon-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
}
.sgmv2-clear-filters--inline {
    padding: 5px 11px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}

/* (8) Mobil (≤ 320px): 1 kolonne (ulovlig 2-kol ved ultra-små skærme) */
@media (max-width: 320px) {
    [data-sgm-archive-sidebar="true"] .sgm-simple-filter-checkboxes,
    .sgmv2-recipe-filter .sgm-simple-filter-checkboxes {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   UNIVERSEL HJÆLPE-TOOLTIP (❓ ikon) – Senior-venligt design
   Brug: data-sgm-help="Din hjælpe-tekst her" på ethvert element
   Auto-genereret af JS: ❓-knap + popover boks
   (GLOBAL CSS — sikrer at tooltips virker på single-recipe osv.)
   ============================================================ */
.sgm-help-wrap {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    vertical-align: middle;
    z-index: 10;
    max-width: 100%;
}
/* Sikrer at originale elementer (div labels, spans, links) IKKE tager full width når de er inde i wrap */
.sgm-help-wrap > :first-child {
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    flex: 0 0 auto;
    margin: 0 !important;
}
.sgm-help-btn {
    position: relative;
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
    margin-left: 6px !important; /* MARGIN: mellem tekst og ❓ */
    flex: 0 0 auto;
    border: 1.5px solid #d8c2ad !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #fffbf2 0%, #fff3df 100%) !important;
    color: #8a6550 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: help !important;
    box-shadow: 0 2px 5px rgba(160, 122, 99, 0.12) !important;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
    user-select: none;
    font-family: Georgia, "Times New Roman", serif !important;
}
.sgm-help-btn::before {
    content: "?";
    display: inline;
}
.sgm-help-btn:hover,
.sgm-help-btn:focus-visible,
.sgm-help-btn.is-open {
    background: linear-gradient(135deg, #a07a63 0%, #8a6550 100%) !important;
    color: #fff8ee !important;
    border-color: #8a6550 !important;
    box-shadow: 0 4px 10px rgba(160, 122, 99, 0.28) !important;
    transform: translateY(-1px) scale(1.04) !important;
    outline: none !important;
}
/* Tooltip-boksen */
.sgm-help-popover {
    position: fixed !important; /* FIXED (portal i body) så IKKE bliver clippet af overflow-hidden! */
    z-index: 9999999 !important; /* HØJESTE mulige */
    bottom: auto;
    left: 0;
    top: 0;
    transform: translateY(6px);
    min-width: 260px;
    max-width: 380px;
    width: max-content;
    padding: 14px 18px 15px;
    background: linear-gradient(180deg, #fffdf7 0%, #fff8ec 100%) !important;
    border: 1.5px solid #e2cdb6 !important;
    border-radius: 16px !important;
    box-shadow:
        0 10px 28px rgba(120, 85, 55, 0.18),
        0 2px 6px rgba(120, 85, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
    color: #5c3f2b !important;
    font-size: 14.5px !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
    letter-spacing: 0.005em !important;
    text-align: left !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.28s !important;
}
/* Pil — positioneret via --sgm-arrow-left fra JS (= cx - left i px) */
.sgm-help-popover::after {
    content: "" !important;
    position: absolute !important;
    top: 100% !important;
    left: var(--sgm-arrow-left, 50%) !important;
    transform: translateX(-50%) rotate(45deg);
    width: 16px !important;
    height: 16px !important;
    background: #fff8ec !important;
    border-right: 1.5px solid #e2cdb6 !important;
    border-bottom: 1.5px solid #e2cdb6 !important;
    border-left: none !important;
    border-top: none !important;
    border-radius: 0 0 4px 0 !important;
    margin-top: -8px;
    box-shadow: none !important;
    z-index: 1;
}
/* Flip: Under elementet hvis der ikke er plads over */
.sgm-help-popover.is-below {
    transform: translateY(-6px);
}
.sgm-help-popover.is-below::after {
    top: auto !important;
    bottom: 100% !important;
    transform: translateX(-50%) rotate(-135deg);
    margin-top: 0;
    margin-bottom: -8px;
    background: #fffdf7 !important;
}
/* Tooltip åben */
.sgm-help-popover.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s !important;
}
/* Indhold p-tags (ingen kant/margin i den popover vi generer) */
.sgm-help-popover p {
    margin: 0 !important;
    padding: 0 !important;
    color: #5c3f2b !important;
}
.sgm-help-popover strong {
    color: #6d4a35 !important;
    font-weight: 800 !important;
}
/* Mobil: Gør tooltip lidt bredere, men inden viewport */
@media (max-width: 560px) {
    .sgm-help-popover {
        min-width: 220px;
        max-width: calc(100vw - 40px);
        width: calc(100vw - 40px);
        left: 50%;
    }
}
/* Sikrer at tooltips på block-labels virker (inline-flex wrap rykker sig ind) */
/* NB: Disse håndteres af generisk .sgm-help-wrap > :first-child ovenfor! */
/* ---------- Specieltilfælde: "GEM TIL SENERE" + "JEG HAR LAVET DENNE" knapper (2 KOLONNER side om side!) ---------- */
.sgm-single-recipe__engagement-actions {
    position: relative;
    width: 100%;
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 8px;
}
/* Hver wrap (knap + ❓) tager ~halvparten af pladsen, wrap til næste række ved lille skærm */
.sgm-single-recipe__engagement-actions > .sgm-help-wrap {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    flex: 1 1 calc(50% - 8px);
    min-width: 220px;
}
.sgm-single-recipe__engagement-actions > .sgm-help-wrap > :first-child {
    /* Første barn = selve knappen (tag al plads i wrap) */
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 18px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}
.sgm-single-recipe__engagement-actions > .sgm-help-wrap > .sgm-help-btn {
    /* ❓-knap: absolut højre, centrér vertikalt i wrap = på midten af knap */
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-left: 0 !important;
}

/* Mobil < 560px: gå til 1 kolonne (fuld bredde) for at knapperne er store nok (seniorvenlig) */
@media (max-width: 560px) {
  .sgm-single-recipe__engagement-actions {
    gap: 12px;
  }
  .sgm-single-recipe__engagement-actions > .sgm-help-wrap {
    flex: 1 1 100% !important;
    min-width: 0;
  }
}

/* ====== v0.3.30: GEM OPSKRIFT KNAP + IS-HIDDEN + PROFIL TABS ====== */

/* Knap: Gem/Gemt til senere (GUL 💛 aktiv farve) */
.sgm-widget.sgm-single-recipe .sgm-single-recipe__saved-button {
  background-color: #f5efe8 !important;
  color: #6d4a35 !important;
  border: 2px solid #eadfd6 !important;
  box-shadow: none !important;
  transition: all .18s ease-out !important;
}
.sgm-widget.sgm-single-recipe .sgm-single-recipe__saved-button:hover,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__saved-button:focus-visible {
  background-color: #fff6dd !important;
  border-color: #f1d98f !important;
  color: #6d4a35 !important;
}
.sgm-widget.sgm-single-recipe .sgm-single-recipe__saved-button.is-active {
  background: linear-gradient(180deg, #fff3c7 0%, #ffe59a 100%) !important;
  color: #6d4a35 !important;
  border-color: #e8c76a !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 2px 6px rgba(160,122,99,.12) !important;
}
.sgm-widget.sgm-single-recipe .sgm-single-recipe__saved-button[disabled],
.sgm-widget.sgm-single-recipe .sgm-single-recipe__saved-button.is-disabled {
  opacity: .5 !important;
  cursor: not-allowed !important;
  filter: grayscale(.45);
}

.is-hidden-until-needed { display: none !important; }

/* ========== PROFIL: OPSKRIFTS TABS (vil lave / har lavet) — CHIPS/PILLS style ========== */
.sgm-profile__recipes-tabs-wrap {
  margin-top: 40px;
  padding-top: 12px;
}
/* Override: Når tabs er INDEN I en kolonne (4. kol ved siden af andre 3) — ingen top-margin/padding! */
.sgm-profile__column--recipes .sgm-profile__recipes-tabs-wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.sgm-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 0 !important;
  margin-bottom: 28px;
}
.sgm-profile__column--recipes .sgm-profile-tabs {
  margin-bottom: 18px !important;
  gap: 10px !important;
}
.sgm-profile-tab {
  position: relative;
  padding: 16px 28px;
  border-radius: 999px;
  border: 2px solid #b38a68;
  background-color: #c19a76;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #fff8ef;
  cursor: pointer;
  margin-bottom: 0;
  transition: all .2s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(109, 74, 53, .14);
}
/* Smal 4. kolonne: mindre piller (mere kompakte) */
.sgm-profile__column--recipes .sgm-profile-tab {
  padding: 12px 18px !important;
  font-size: 15px !important;
  gap: 8px !important;
  flex: 1 1 calc(50% - 5px) !important;
  justify-content: center;
  text-align: center;
  min-width: 0;
}
.sgm-profile-tab:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(109, 74, 53, .22);
}
.sgm-profile-tab.is-active {
  background-color: #996515;
  border-color: #7a5210;
  color: #ffdae9;
  box-shadow: 0 3px 10px rgba(153, 101, 21, .35), inset 0 0 0 1px rgba(255,255,255,.08);
}
.sgm-profile-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  background-color: rgba(255, 248, 239, .92);
  color: #6d4a35;
}
.sgm-profile-tab.is-active .sgm-profile-tab__count {
  background: linear-gradient(180deg, #fff3c7 0%, #ffe59a 100%);
  color: #6d4a35;
  border: 1px solid #e8c76a;
}
.sgm-profile-tab-panel {
  display: none;
  animation: sgmFadeIn .25s ease-out;
}
.sgm-profile-tab-panel.is-active {
  display: block !important;
}
.sgm-profile-tab-panel[hidden] {
  display: none !important;
}

@keyframes sgmFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* (mobilvenlig tabs - wrap til flere rader + mindre padding) */
@media (max-width: 640px) {
  .sgm-profile-tabs {
    gap: 12px;
    margin-bottom: 20px;
  }
  .sgm-profile-tab {
    padding: 13px 18px;
    font-size: 15px;
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    text-align: center;
    gap: 8px;
  }
  .sgm-profile-tab__count {
    min-width: 26px;
    height: 22px;
    padding: 0 7px;
    font-size: 12px;
  }
}

/* ======================================================================
   v0.3.34: FORUM COMPOSE "Opret nyt emne" — TEMA MATCH DESIGN
   ====================================================================== */

/* ---------- 1) Wrap + base spacing (SKALERET RESPONSIVT — INGEN "cut off"!) ---------- */
/* Anti-cutoff regler GÆLDER for BÅDE compose OG single forum! */
.sgm-widget.sgm-forum-compose,
.sgm-widget.sgm-forum-topic-single {
  /* Sikrer at ALT holder sig inden for Elementor-kolonnen! */
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}
/* Compose-widget = selve "kortet" har baggrund/kant/padding direkte */
.sgm-widget.sgm-forum-compose {
  /* Default padding mellemstørrelse (1200-1400px = mest almindelig laptop) */
  padding: 30px 30px 36px !important;
  background: linear-gradient(180deg, #fbf7f2 0%, #f8f2ea 100%) !important;
  border: 1px solid #eadfd6 !important;
  border-radius: 28px !important;
  box-shadow: 0 6px 24px rgba(160, 122, 99, .08), inset 0 0 0 1px rgba(255, 255, 255, .6);
}
/* ALT INDEN I = box-sizing INKL. padding+border i width (vores #1 anti-cutoff fix!) */
.sgm-widget.sgm-forum-compose,
.sgm-widget.sgm-forum-compose *,
.sgm-widget.sgm-forum-compose *::before,
.sgm-widget.sgm-forum-compose *::after,
.sgm-widget.sgm-forum-topic-single,
.sgm-widget.sgm-forum-topic-single *,
.sgm-widget.sgm-forum-topic-single *::before,
.sgm-widget.sgm-forum-topic-single *::after {
  box-sizing: border-box !important;
}
/* Store skærme >1440px+: MERE padding (plads nok) */
@media (min-width: 1440px) {
  .sgm-widget.sgm-forum-compose {
    padding: 32px 36px 40px !important;
  }
}
/* Laptop medium 1024-1439px: MINDRE padding (cut off zone!) */
@media (max-width: 1439px) and (min-width: 1024px) {
  .sgm-widget.sgm-forum-compose {
    padding: 28px 26px 32px !important;
  }
}
/* Tablet / sidebar 768-1023px: Endnu mindre (typisk i smal kolonne!) */
@media (max-width: 1023px) and (min-width: 768px) {
  .sgm-widget.sgm-forum-compose {
    padding: 24px 20px 28px !important;
  }
}

/* ---------- 2) Overskrifter: MØRK LÆSBAR FARVE (IKKE HVID/LYS!) — ingen overflow! ---------- */
.sgm-widget.sgm-forum-compose .sgm-section-heading {
  margin-bottom: 26px !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}
.sgm-widget.sgm-forum-compose .sgm-section-heading__eyebrow {
  color: #a07a63 !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  font-size: 13px !important;
}
.sgm-widget.sgm-forum-compose .sgm-section-heading__title {
  color: #5c3f2b !important;     /* mørk brun = TEMA (IKKE hvid!) */
  font-weight: 700 !important;
  margin-top: 8px !important;
  text-shadow: none !important;
  /* Wrap ord hvis titel ER for lang! */
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  /* Responsiv font-size: SKALERER med skærm (36px max, 24px min) */
  font-size: clamp(24px, 3.4vw, 36px) !important;
  line-height: 1.1 !important;
}

/* ---------- 3) Form rækker: Mere afstand, labels MØRK — MAX WIDTH PÅ ALT! ---------- */
.sgm-widget.sgm-forum-compose .sgm-forum-form,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form {
  gap: 24px !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}
.sgm-widget.sgm-forum-compose .sgm-forum-form__row,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__row {
  gap: 10px !important;
  max-width: 100% !important;
  width: 100% !important;
}
.sgm-widget.sgm-forum-compose .sgm-filter-label,
.sgm-widget.sgm-forum-topic-single .sgm-filter-label {
  color: #6d4a35 !important;    /* mørk brun label */
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding-left: 2px;
  display: block !important;
  max-width: 100% !important;
}

/* ---------- 4) Text input + textarea: TEMA styling + MAX WIDTH (ingen cutoff!) ---------- */
.sgm-widget.sgm-forum-compose .sgm-filter-input[type="text"],
.sgm-widget.sgm-forum-compose .sgm-filter-input:not([type]),
.sgm-widget.sgm-forum-compose .sgm-forum-form__textarea,
.sgm-widget.sgm-forum-topic-single .sgm-filter-input[type="text"],
.sgm-widget.sgm-forum-topic-single .sgm-filter-input:not([type]),
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__textarea {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  border: 2px solid #eadfd6 !important;
  border-radius: 18px !important;
  background: #fffdfa !important;
  color: #1f1a17 !important;
  padding: 14px 18px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
  box-shadow: inset 0 1px 2px rgba(160, 122, 99, .06);
}
.sgm-widget.sgm-forum-compose .sgm-filter-input[type="text"]::placeholder,
.sgm-widget.sgm-forum-compose .sgm-forum-form__textarea::placeholder,
.sgm-widget.sgm-forum-topic-single .sgm-filter-input[type="text"]::placeholder,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__textarea::placeholder {
  color: #a08675 !important;
  opacity: .85 !important;
}
.sgm-widget.sgm-forum-compose .sgm-filter-input[type="text"]:focus,
.sgm-widget.sgm-forum-compose .sgm-filter-input:not([type]):focus,
.sgm-widget.sgm-forum-compose .sgm-forum-form__textarea:focus,
.sgm-widget.sgm-forum-topic-single .sgm-filter-input[type="text"]:focus,
.sgm-widget.sgm-forum-topic-single .sgm-filter-input:not([type]):focus,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__textarea:focus {
  border-color: #b38a68 !important;
  background: #fff !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(179, 138, 104, .12), inset 0 1px 2px rgba(160, 122, 99, .04) !important;
}
.sgm-widget.sgm-forum-compose .sgm-forum-form__textarea,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__textarea {
  min-height: 160px !important;
  line-height: 1.6 !important;
}

/* ---------- 6) v0.3.46 RICH TEXT EDITOR (TinyMCE / wp_editor) TEMA MATCH FOR FORUM! ---------- */
/* Wrapper rundt om HEL editor + toolbar, skal have samme kant som textarea */
.sgm-widget.sgm-forum-compose .sgm-forum-form__row--editor > .wp-editor-wrap,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__row--editor > .wp-editor-wrap {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  border: 2px solid #eadfd6 !important;
  border-radius: 18px !important;
  background: #fffdfa !important;
  overflow: hidden !important;            /* Sikre at gradient/kanter følger 18px radius! */
  box-shadow: inset 0 1px 2px rgba(160, 122, 99, .06);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}
/* Focus state (wrapper får outline, men IKKE dublet kant): */
.sgm-widget.sgm-forum-compose .sgm-forum-form__row--editor > .wp-editor-wrap.has-focus,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__row--editor > .wp-editor-wrap.has-focus,
.sgm-widget.sgm-forum-compose .sgm-forum-form__row--editor > .wp-editor-wrap:focus-within,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__row--editor > .wp-editor-wrap:focus-within {
  border-color: #b38a68 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(179, 138, 104, .12), inset 0 1px 2px rgba(160, 122, 99, .04) !important;
}

/* FJERN WordPress editorens DEFAULT sorte/grå kanter - vi styrer dem udefra! */
.sgm-widget.sgm-forum-compose .wp-editor-wrap .wp-editor-container,
.sgm-widget.sgm-forum-topic-single .wp-editor-wrap .wp-editor-container {
  border: 0 !important;
  border-top: 1px solid #eadfd6 !important;     /* separator mellem toolbar + edit area */
  background: transparent !important;
}
.sgm-widget.sgm-forum-compose .wp-editor-wrap textarea.wp-editor-area,
.sgm-widget.sgm-forum-topic-single .wp-editor-wrap textarea.wp-editor-area {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fffdfa !important;
  padding: 16px 20px !important;
  min-height: 160px !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

/* ---------- TOOLBAR (Visual mode TinyMCE) ---------- */
.sgm-widget.sgm-forum-compose .mce-toolbar-grp,
.sgm-widget.sgm-forum-topic-single .mce-toolbar-grp,
.sgm-widget.sgm-forum-compose .mce-toolbar-grp > div,
.sgm-widget.sgm-forum-topic-single .mce-toolbar-grp > div {
  background: linear-gradient(180deg, #fffdfa 0%, #f7f1e9 100%) !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  padding: 8px 10px !important;
}
.sgm-widget.sgm-forum-compose .mce-toolbar-grp .mce-btn,
.sgm-widget.sgm-forum-topic-single .mce-toolbar-grp .mce-btn {
  background: #fffdfa !important;
  border: 1px solid #eadfd6 !important;
  border-radius: 10px !important;
  color: #5c3f2b !important;
  box-shadow: none !important;
  margin: 2px 3px !important;
  transition: all .15s ease !important;
}
/* ⚠️ v0.3.47: IKONER på TinyMCE knapper SKAL VÆRE HVIDE når knappen er mørk (hover/aktiv)!
   Default state = lys beige knap + mørkebrune ikoner (kontrast OK)
   Hover/aktiv state = mørkbrun knap + HVIDE ikoner (kontrast OK!)
   TinyMCE ikoner bruger BÅDE color (font-ikoner) OG background-image (SVG-sprite),
   derfor skal vi bruge BÅDE color OG filter for at dække ALLE ikon typer.
*/
.sgm-widget.sgm-forum-compose .mce-toolbar-grp .mce-btn i,
.sgm-widget.sgm-forum-compose .mce-toolbar-grp .mce-btn .mce-ico,
.sgm-widget.sgm-forum-topic-single .mce-toolbar-grp .mce-btn i,
.sgm-widget.sgm-forum-topic-single .mce-toolbar-grp .mce-btn .mce-ico {
  color: inherit !important;          /* Arver color fra parent .mce-btn */
  opacity: 1 !important;
}
.sgm-widget.sgm-forum-compose .mce-toolbar-grp .mce-btn [class^="mce-i-"]::before,
.sgm-widget.sgm-forum-topic-single .mce-toolbar-grp .mce-btn [class^="mce-i-"]::before {
  color: inherit !important;
}
/* For SVG-background-ikoner (ikke font): lav dem hvide via filter ved hover/aktiv */
.sgm-widget.sgm-forum-compose .mce-toolbar-grp .mce-btn:hover .mce-ico,
.sgm-widget.sgm-forum-compose .mce-toolbar-grp .mce-btn.mce-active .mce-ico,
.sgm-widget.sgm-forum-topic-single .mce-toolbar-grp .mce-btn:hover .mce-ico,
.sgm-widget.sgm-forum-topic-single .mce-toolbar-grp .mce-btn.mce-active .mce-ico {
  filter: brightness(0) invert(1) !important;  /* Gør SVG ikon 100% HVID! (sort+invert=hvid) */
}
.sgm-widget.sgm-forum-compose .mce-toolbar-grp .mce-btn:hover,
.sgm-widget.sgm-forum-topic-single .mce-toolbar-grp .mce-btn:hover,
.sgm-widget.sgm-forum-compose .mce-toolbar-grp .mce-btn.mce-active,
.sgm-widget.sgm-forum-topic-single .mce-toolbar-grp .mce-btn.mce-active {
  background: linear-gradient(180deg, #996515 0%, #7a4f0e 100%) !important;  /* MØRK BRUN baggrund */
  border-color: #7a4f0e !important;
  color: #ffffff !important;                     /* HVIDE ikoner/font + HØJ KONTRAST! */
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(153, 101, 21, .3) !important;
}
/* Dropdowns (Format, Font-family osv.) */
.sgm-widget.sgm-forum-compose .mce-listbox button,
.sgm-widget.sgm-forum-topic-single .mce-listbox button,
.sgm-widget.sgm-forum-compose .mce-btn-group .mce-btn,
.sgm-widget.sgm-forum-topic-single .mce-btn-group .mce-btn {
  border-radius: 10px !important;
}
.sgm-widget.sgm-forum-compose .mce-menu,
.sgm-widget.sgm-forum-topic-single .mce-menu {
  border: 2px solid #eadfd6 !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 40px rgba(31, 26, 23, .15) !important;
  background: #fffdfa !important;
  padding: 6px !important;
}
.sgm-widget.sgm-forum-compose .mce-menu-item,
.sgm-widget.sgm-forum-topic-single .mce-menu-item {
  border-radius: 8px !important;
  color: #5c3f2b !important;
  font-size: 14px !important;
}
.sgm-widget.sgm-forum-compose .mce-menu-item:hover,
.sgm-widget.sgm-forum-topic-single .mce-menu-item:hover,
.sgm-widget.sgm-forum-compose .mce-menu-item.mce-selected,
.sgm-widget.sgm-forum-topic-single .mce-menu-item.mce-selected {
  background: #f1d595 !important;
}

/* ---------- EDITOR INDHOLDS AREA (iframe + text-mode) ---------- */
.sgm-widget.sgm-forum-compose .mce-edit-area,
.sgm-widget.sgm-forum-topic-single .mce-edit-area {
  background: #fffdfa !important;
  border: 0 !important;
}
.sgm-widget.sgm-forum-compose .mce-edit-area iframe,
.sgm-widget.sgm-forum-topic-single .mce-edit-area iframe {
  background: #fffdfa !important;
}

/* ---------- TEXT-MODE (quicktags toolbar) ---------- */
.sgm-widget.sgm-forum-compose .quicktags-toolbar,
.sgm-widget.sgm-forum-topic-single .quicktags-toolbar {
  background: linear-gradient(180deg, #fffdfa 0%, #f7f1e9 100%) !important;
  border-bottom: 1px solid #eadfd6 !important;
  padding: 6px 8px !important;
}
.sgm-widget.sgm-forum-compose .quicktags-toolbar input,
.sgm-widget.sgm-forum-topic-single .quicktags-toolbar input {
  background: #fffdfa !important;
  border: 1px solid #eadfd6 !important;
  border-radius: 8px !important;
  color: #5c3f2b !important;
  font-size: 13px !important;
  margin: 2px 2px !important;
  padding: 3px 8px !important;
}
.sgm-widget.sgm-forum-compose .quicktags-toolbar input:hover,
.sgm-widget.sgm-forum-topic-single .quicktags-toolbar input:hover {
  background: #f1d595 !important;
  border-color: #d9b96f !important;
}

/* ---------- Editor-switch TABS (Visuel/Text) knapper øverst ---------- */
.sgm-widget.sgm-forum-compose .wp-editor-wrap .wp-editor-tabs,
.sgm-widget.sgm-forum-topic-single .wp-editor-wrap .wp-editor-tabs {
  padding: 6px 8px 0 !important;
}
.sgm-widget.sgm-forum-compose .wp-switch-editor,
.sgm-widget.sgm-forum-topic-single .wp-switch-editor {
  background: #f7f1e9 !important;
  border: 1px solid #eadfd6 !important;
  border-radius: 10px 10px 0 0 !important;
  color: #5c3f2b !important;
  height: 34px !important;
  line-height: 32px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  margin: 0 3px 0 0 !important;
  top: 0 !important;
}
.sgm-widget.sgm-forum-compose .wp-switch-editor.switch-tmce-active,
.sgm-widget.sgm-forum-topic-single .wp-switch-editor.switch-tmce-active,
.sgm-widget.sgm-forum-compose .wp-switch-editor.switch-html-active,
.sgm-widget.sgm-forum-topic-single .wp-switch-editor.switch-html-active {
  background: #fffdfa !important;
  border-color: #eadfd6 !important;
  color: #996515 !important;                     /* brun accent */
  font-weight: 600 !important;
  position: relative !important;
  z-index: 10 !important;
}

/* ---------- Mobil-optimalisering TinyMCE ---------- */
@media (max-width: 520px) {
  .sgm-widget.sgm-forum-compose .wp-editor-wrap .wp-switch-editor,
  .sgm-widget.sgm-forum-topic-single .wp-editor-wrap .wp-switch-editor {
    height: 30px !important;
    line-height: 28px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }
  .sgm-widget.sgm-forum-compose .mce-toolbar-grp,
  .sgm-widget.sgm-forum-topic-single .mce-toolbar-grp {
    padding: 4px 6px !important;
  }
  .sgm-widget.sgm-forum-compose .mce-toolbar-grp .mce-btn,
  .sgm-widget.sgm-forum-topic-single .mce-toolbar-grp .mce-btn {
    margin: 1px 2px !important;
  }
}

/* ---------- 5) Fil-upload knap: TEMA STYLE + MAX WIDTH (ingen cutoff!) + GRADIENT RADIUS! ---------- */
.sgm-widget.sgm-forum-compose .sgm-forum-form__file-input[type="file"],
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__file-input[type="file"] {
  position: relative;
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  color: transparent !important;
  border: 2px dashed #d7cabf !important;
  border-radius: 18px !important;
  background: #fffdfa !important;
  min-height: 52px;
  cursor: pointer;
  transition: all .18s ease;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
/* Fil-knap INDERST: Sikrer gradient runde kanter! (14px minus 2px kant = 12px) */
.sgm-widget.sgm-forum-compose .sgm-forum-form__file-input[type="file"]::file-selector-button,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__file-input[type="file"]::file-selector-button {
  margin: 10px 14px 10px 10px;   /* knappen centreres VERTIKALT i feltet! */
  padding: 8px 20px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #6d4a35 !important;
  background: linear-gradient(180deg, #fff3c7 0%, #ffe59a 100%) !important;
  border: 2px solid #e8c76a !important;
  border-radius: 12px !important;         /* ✅ Indre radius: 14px - 2px = 12px! */
  cursor: pointer !important;
  transition: all .18s ease !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
.sgm-widget.sgm-forum-compose .sgm-forum-form__file-input[type="file"]::file-selector-button:hover,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__file-input[type="file"]::file-selector-button:hover {
  filter: brightness(1.04) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(232, 199, 106, .35) !important;
}
.sgm-widget.sgm-forum-compose .sgm-forum-form__file-input[type="file"]:hover,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__file-input[type="file"]:hover {
  border-color: #e8c76a !important;
  background: #fffae9 !important;
}
/* Sikrer fil-rækken INTET overflow af max-width! */
.sgm-widget.sgm-forum-compose .sgm-forum-form__row:has(.sgm-forum-form__file-input[type="file"]),
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__row:has(.sgm-forum-form__file-input[type="file"]) {
  position: relative;
  box-sizing: border-box !important;
}

/* ---------- 6) HINT TEKSTER: MØRKERE (var næsten usynlige!) + WRAP ---------- */
.sgm-widget.sgm-forum-compose .sgm-forum-form__hint,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__hint {
  color: #7a5f4e !important;     /* MØRKERE end #7d6f65 (skjult i billedet!) */
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  padding: 2px 4px !important;
  margin-top: 2px !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

/* ---------- 7) KATEGORI PICKER: 2 kol — MAX WIDTH! + ≤991px → 1 kol (smal!) ---------- */
.sgm-widget.sgm-forum-compose .sgm-forum-category-picker,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-picker {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  column-count: 2;
  column-gap: 18px !important;
  overflow: hidden !important;
}
@media (max-width: 767px) {
  .sgm-widget.sgm-forum-compose .sgm-forum-category-picker,
  .sgm-widget.sgm-forum-topic-single .sgm-forum-category-picker {
    column-count: 1 !important;
  }
}
/* NED I 1 KOL HOS TABLET/MELLEM (smal Elementor kol = cutoff!) */
@media (max-width: 991px) and (min-width: 768px) {
  .sgm-widget.sgm-forum-compose .sgm-forum-category-picker,
  .sgm-widget.sgm-forum-topic-single .sgm-forum-category-picker {
    column-count: 1 !important;
    column-gap: 0 !important;
  }
}

/* Kategori GROUP (hver toggle-kasse): MAX WIDTH! + break-inside (ikke del kolonner!) */
.sgm-widget.sgm-forum-compose .sgm-forum-category-group,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-group {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;           /* inline-grid kan floade + give overflow */
  border: 2px solid #eadfd6 !important;
  border-radius: 22px !important;
  /* ❌ FJERNET: background: #fffdfa (!important) — den skabte "hvide hjørner"!
     Baggrund skal KUN være på __toggle (gradienten matcher kanterne!) */
  background: transparent !important;
  margin: 0 0 18px !important;         /* mindre gap = mindre højde */
  overflow: hidden !important;         /* KLIPPER alle børn til 22px radius! */
  box-shadow: 0 2px 8px rgba(160, 122, 99, .06);
  transition: all .2s ease;
  break-inside: avoid-column;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  /* Sikrer gradient kanter clipses — DOUBLE overflow safeguard! */
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  isolation: isolate;
}
.sgm-widget.sgm-forum-compose .sgm-forum-category-group:hover,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-group:hover {
  border-color: #e0c9b3 !important;
  box-shadow: 0 3px 12px rgba(160, 122, 99, .10);
}

/* Toggle-knap for kategori GROUP: PASSENDE INDRE BORDER-RADIUS! (22-2px kant = 20px) */
.sgm-widget.sgm-forum-compose .sgm-forum-category-group__toggle,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-group__toggle {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 18px 20px !important;
  gap: 14px !important;
  background: linear-gradient(180deg, #fff9ee 0%, #faf0e1 100%) !important;   /* BEIGE gradient */
  transition: background-color .2s ease;
  /* ✅ NY: Indre radius matcher ydre! (lukket: alle 4 hjørner runde) */
  border-radius: 20px !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
/* ✅ NÅR ÅBEN: kun TOP-hjørner runde (bund = flad mod panel!) */
.sgm-widget.sgm-forum-compose .sgm-forum-category.is-open .sgm-forum-category-group__toggle,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-group.is-open .sgm-forum-category-group__toggle {
  background: linear-gradient(180deg, #fff3c7 0%, #ffe7a5 100%) !important;   /* GUL gradient når åben 💛 */
  border-bottom: 1px solid #e8c76a;
  border-radius: 20px 20px 0 0 !important;   /* TOP runde, BUND flad! */
}
.sgm-widget.sgm-forum-compose .sgm-forum-category-group__header,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-group__header {
  box-sizing: border-box !important;
  min-width: 0 !important;              /* flex-barn: TILLAD at blive smalt! */
  max-width: 100% !important;
  overflow: hidden !important;
}
.sgm-widget.sgm-forum-compose .sgm-forum-category-group__title,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-group__title {
  color: #5c3f2b !important;     /* mørk brun titel (ikke brun på sort!) */
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  box-sizing: border-box !important;
  /* WRAPPER hvis for lang! */
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}
.sgm-widget.sgm-forum-compose .sgm-forum-category-group__description,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-group__description {
  color: #6d4a35 !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
  margin-top: 4px !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}
/* + ikonet: MØRKERE (ikke #8c7365 gråt, men brungul!) + FIXED size */
.sgm-widget.sgm-forum-compose .sgm-forum-category-group__icon,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-group__icon {
  flex: 0 0 auto !important;
  width: 18px !important;
  height: 18px !important;
  box-sizing: border-box !important;
}
.sgm-widget.sgm-forum-compose .sgm-forum-category-group__icon::before,
.sgm-widget.sgm-forum-compose .sgm-forum-category-group__icon::after,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-group__icon::before,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-group__icon::after {
  background: #996515 !important;
  width: 12px !important;
  height: 2.5px !important;
}
/* Panel (lukkede kategorier): Mere padding + MAX WIDTH */
.sgm-widget.sgm-forum-compose .sgm-forum-category-group__panel,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-group__panel {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 16px 20px 20px !important;
  overflow: hidden !important;
}
.sgm-widget.sgm-forum-compose .sgm-forum-category-group__items,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-group__items {
  gap: 10px !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* ---------- 8) KATEGORI OPTION (hvert valg: checkbox + radio primær) — RADIUS PÅ GRADIENT! ---------- */
.sgm-widget.sgm-forum-compose .sgm-forum-category-option,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-option {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 12px 16px !important;
  gap: 14px !important;
  border-radius: 18px !important;
  border: 2px solid #eadfd6 !important;
  background: #fffdfa !important;
  transition: all .18s ease;
  overflow: hidden !important;           /* ✅ Sikrer gradient clips 18px! */
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
.sgm-widget.sgm-forum-compose .sgm-forum-category-option:hover,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-option:hover {
  border-color: #e0c9b3 !important;
  background: #fff9ee !important;
}
.sgm-widget.sgm-forum-compose .sgm-forum-category-option.is-parent,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-option.is-parent {
  background: #fff9ee !important;
  border-color: #e4d1bb !important;
}
.sgm-widget.sgm-forum-compose .sgm-forum-category-option__name,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-option__name {
  color: #1f1a17 !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
/* Checkbox + radio (runde) */
.sgm-widget.sgm-forum-compose .sgm-forum-category-option__checkbox,
.sgm-widget.sgm-forum-compose .sgm-forum-category-option__radio,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-option__checkbox,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-option__radio {
  width: 20px !important;
  height: 20px !important;
  border: 2px solid #c1a893 !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  /* Rundhed på selve checkbox/radio = match gradient! */
  border-radius: 6px !important;
}
.sgm-widget.sgm-forum-compose .sgm-forum-category-option__checkbox:checked,
.sgm-widget.sgm-forum-compose .sgm-forum-category-option__radio:checked,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-option__checkbox:checked,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-option__radio:checked {
  border-color: #996515 !important;
  box-shadow: inset 0 0 0 4px #996515 !important;
  background: #fff !important;
  border-radius: 6px !important;
}
/* "Primær" label (højre side) */
.sgm-widget.sgm-forum-compose .sgm-forum-category-option__primary > span:last-child,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-option__primary > span:last-child {
  color: #a07a63 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}
.sgm-widget.sgm-forum-compose .sgm-forum-category-option__choice,
.sgm-widget.sgm-forum-compose .sgm-forum-category-option__primary,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-option__choice,
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-option__primary {
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
/* NÅR option er valgt: Sikrer gradient er clipped 100% til 16px radius! */
.sgm-widget.sgm-forum-compose .sgm-forum-category-option:has(.sgm-forum-category-option__checkbox:checked),
.sgm-widget.sgm-forum-compose .sgm-forum-category-option:has(.sgm-forum-category-option__radio:checked),
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-option:has(.sgm-forum-category-option__checkbox:checked),
.sgm-widget.sgm-forum-topic-single .sgm-forum-category-option:has(.sgm-forum-category-option__radio:checked) {
  border-color: #b38a68 !important;
  background: linear-gradient(180deg, #fff9ee 0%, #fff3c7 100%) !important;
  box-shadow: 0 2px 8px rgba(153, 101, 21, .12);
  /* 18px - 2px border = 16px inner radius for gradient */
  border-radius: 18px !important;
  overflow: hidden !important;
}

/* ---------- 9) ACTIONS (knap + feedback): KOMPAKT — GRADIENT RADIUS MATCHER! ---------- */
.sgm-widget.sgm-forum-compose .sgm-forum-form__actions,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__actions {
  padding-top: 6px !important;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
/* Submit knap: Gradient (her #996515 solid) clipped TIL INDRE radius! */
.sgm-widget.sgm-forum-compose .sgm-forum-form__actions .sgm-search-hero__button[type="submit"],
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__actions .sgm-search-hero__button[type="submit"] {
  min-height: 46px !important;
  padding: 11px 30px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 14px !important;       /* ✅ Indre radius: 16px - 2px kant = 14! */
  background-color: #996515 !important;
  color: #ffdae9 !important;
  border: 2px solid #ffdae9 !important;
  transition: all .18s ease !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
.sgm-widget.sgm-forum-compose .sgm-forum-form__actions .sgm-search-hero__button[type="submit"]:hover,
.sgm-widget.sgm-forum-compose .sgm-forum-form__actions .sgm-search-hero__button[type="submit"]:focus-visible,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__actions .sgm-search-hero__button[type="submit"]:hover,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__actions .sgm-search-hero__button[type="submit"]:focus-visible {
  background-color: #b37a1b !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(153, 101, 21, .28) !important;
  color: #ffdae9 !important;
}
.sgm-widget.sgm-forum-compose .sgm-forum-form__actions .sgm-search-hero__button[type="submit"][disabled],
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__actions .sgm-search-hero__button[type="submit"][disabled] {
  opacity: .55 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ---------- 10) AUTH-GATE (hvis man ikke er logget ind): GRADIENT/RADIUS 100% MATCH! ---------- */
.sgm-widget.sgm-forum-compose .sgm-forum-auth-gate,
.sgm-widget.sgm-forum-topic-single .sgm-forum-auth-gate {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 20px 22px;
  display: grid;
  gap: 18px;
  background: #fff9ee !important;
  border-radius: 18px !important;        /* ✅ Indre: 20px - 2px = 18px */
  border: 2px dashed #e0c9b3 !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
.sgm-widget.sgm-forum-compose .sgm-forum-auth-gate__actions .sgm-search-hero__button,
.sgm-widget.sgm-forum-topic-single .sgm-forum-auth-gate__actions .sgm-search-hero__button {
  min-height: 46px !important;
  padding: 11px 26px !important;
  font-size: 14.5px !important;
  border-radius: 14px !important;       /* ✅ Indre radius = 16px-2px = 14px */
  box-sizing: border-box !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}

/* ---------- Upload-filer (når de er valgt): pille style ---------- */
.sgm-widget.sgm-forum-compose .sgm-forum-form__files,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__files {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
}
.sgm-widget.sgm-forum-compose .sgm-forum-form__file,
.sgm-widget.sgm-forum-topic-single .sgm-forum-form__file {
  min-height: 32px !important;
  padding: 0 14px !important;
  font-size: 12.5px !important;
  background: linear-gradient(180deg, #fff3c7 0%, #ffe59a 100%) !important;
  border: 1px solid #e8c76a !important;
  color: #5c3f2b !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* ---------- Mobil tilpasninger (kompakt + LIDT MINDRE padding end før!) ---------- */
@media (max-width: 720px) {
  .sgm-widget.sgm-forum-compose {
    padding: 22px 18px 30px !important;
    border-radius: 22px !important;
  }
  .sgm-widget.sgm-forum-compose .sgm-section-heading__title,
  .sgm-widget.sgm-forum-topic-single .sgm-section-heading__title {
    font-size: 28px !important;
  }
  .sgm-widget.sgm-forum-compose .sgm-forum-form__actions,
  .sgm-widget.sgm-forum-topic-single .sgm-forum-form__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .sgm-widget.sgm-forum-compose .sgm-forum-form__actions .sgm-search-hero__button[type="submit"],
  .sgm-widget.sgm-forum-topic-single .sgm-forum-form__actions .sgm-search-hero__button[type="submit"] {
    width: 100% !important;
  }
}
@media (max-width: 520px) {
  .sgm-widget.sgm-forum-compose {
    padding: 18px 14px 26px !important;
  }
  .sgm-widget.sgm-forum-compose .sgm-section-heading__title,
  .sgm-widget.sgm-forum-topic-single .sgm-section-heading__title {
    font-size: 24px !important;
  }
  .sgm-widget.sgm-forum-compose .sgm-forum-category-group__toggle,
  .sgm-widget.sgm-forum-topic-single .sgm-forum-category-group__toggle {
    padding: 14px 16px !important;
  }
  .sgm-widget.sgm-forum-compose .sgm-forum-category-group__title,
  .sgm-widget.sgm-forum-topic-single .sgm-forum-category-group__title {
    font-size: 17px !important;
  }
  .sgm-widget.sgm-forum-compose .sgm-forum-form__file-input[type="file"]::file-selector-button,
  .sgm-widget.sgm-forum-topic-single .sgm-forum-form__file-input[type="file"]::file-selector-button {
    padding: 8px 14px !important;
    margin: 10px 10px 10px 8px;
    font-size: 13px !important;
  }
}

/* ======================================================================
   v0.3.37: FORUM SINGLE INDLÆG — TEMA MATCH (kort, knapper, kommentarer)
   ====================================================================== */

/* ---------- S0) TILBAGE-knap: Kompakt beige pille med pil ← ---------- */
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__back-button {
  /* Layout: inline-flex = kun lige så bred som dens indhold (IKKE 100%!) */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  /* Afstand til næste element (header) */
  margin-bottom: 22px !important;
  padding: 10px 22px !important;
  min-height: 42px !important;
  /* Højde/bredde */
  max-width: 100% !important;
  width: auto !important;
  box-sizing: border-box !important;
  /* Tema: beige sekundær gradient (samme som lukket kategori) */
  background: linear-gradient(180deg, #fff9ee 0%, #faf0e1 100%) !important;
  color: #5c3f2b !important;
  border: 2px solid #e4d1bb !important;
  border-radius: 16px !important;       /* ydre 16 */
  /* Typografi */
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em !important;
  /* Transition + inner radius sikkerhed */
  transition: all .18s ease !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
/* Indre gradient sikrer korrekt clipped ved 14px = 16-2px kant (ikke nødvendig, men for sikkerhed) */
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__back-button:hover,
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__back-button:focus-visible {
  transform: translateY(-1px) !important;
  filter: brightness(1.02) !important;
  border-color: #d7c0a8 !important;
  box-shadow: 0 3px 12px rgba(160, 122, 99, .16) !important;
  color: #5c3f2b !important;
  text-decoration: none !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__back-button:active {
  transform: translateY(0) !important;
  filter: brightness(0.99) !important;
  box-shadow: 0 1px 4px rgba(160, 122, 99, .10) !important;
}
/* Pil ← ikon: lidt større, karakteristisk */
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__back-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #996515 !important;    /* mørkere accent brun på pilen */
  flex: 0 0 auto !important;
  transform: translateY(-0.5px); /* Optisk centreret pga. font */
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__back-label {
  display: inline !important;
  color: inherit !important;
  /* Wrap ord hvis label ER for lang (mobil!) */
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  max-width: 100% !important;
}
/* Mobil: lidt mindre padding + mindre font */
@media (max-width: 520px) {
  .sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__back-button {
    padding: 9px 16px !important;
    min-height: 40px !important;
    margin-bottom: 18px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    gap: 6px !important;
  }
  .sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__back-icon {
    font-size: 15px !important;
  }
}

/* ---------- S1) Selve INDLÆGS-KORT (gradient + kant + skygge, ligesom Compose!) ---------- */
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__card {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
  /* Default padding mellemstørrelse */
  padding: 30px 30px 36px !important;
  background: linear-gradient(180deg, #fbf7f2 0%, #f8f2ea 100%) !important;
  border: 1px solid #eadfd6 !important;
  border-radius: 28px !important;
  box-shadow: 0 6px 24px rgba(160, 122, 99, .08), inset 0 0 0 1px rgba(255, 255, 255, .6);
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  margin-bottom: 28px !important;
}
/* Store skærme >1440px+: MERE padding (plads nok) */
@media (min-width: 1440px) {
  .sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__card {
    padding: 32px 36px 40px !important;
  }
}
/* Laptop medium 1024-1439px: MINDRE padding (cut off zone!) */
@media (max-width: 1439px) and (min-width: 1024px) {
  .sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__card {
    padding: 28px 26px 32px !important;
  }
}
/* Tablet / sidebar 768-1023px: Endnu mindre (typisk i smal kolonne!) */
@media (max-width: 1023px) and (min-width: 768px) {
  .sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__card {
    padding: 24px 20px 28px !important;
  }
}
/* Mobil compact */
@media (max-width: 720px) {
  .sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__card {
    padding: 22px 18px 30px !important;
    border-radius: 22px !important;
    margin-bottom: 20px !important;
  }
}
@media (max-width: 520px) {
  .sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__card {
    padding: 18px 14px 26px !important;
  }
}

/* ---------- S2) HEADER (author, avatar, stats, REDIGER/SLET knapper) ---------- */
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
  margin-bottom: 20px !important;
  max-width: 100% !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__author {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  max-width: 100% !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__avatar {
  flex: 0 0 auto !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid #e4d1bb !important;
  background: #fffdfa !important;
  box-shadow: 0 2px 8px rgba(160, 122, 99, .10);
  isolation: isolate;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__avatar-image,
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__avatar-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__avatar-placeholder {
  background: linear-gradient(135deg, #faf0e1 0%, #eadfd6 100%) !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__author-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
/* EYEBROW (kategori øverst) = samme style som Compose! */
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__eyebrow {
  color: #a07a63 !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  font-size: 13px !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  transition: color .18s ease;
}
.sgm-widget.sgm-forum-topic-single a.sgm-forum-topic-single__eyebrow:hover {
  color: #996515 !important;
  text-decoration: underline !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__author-name {
  color: #5c3f2b !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

/* HEADER ACTIONS (stats + knapper) */
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__stats {
  color: #7a5f4e !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  background: #fff9ee !important;
  border: 1px solid #eadfd6 !important;
  border-radius: 12px !important;
  white-space: nowrap !important;
}
/* 🔴 MANAGE KNAPPER: Rediger (BEIGE sekundær) + Slet (BRUN/FARE) — IKKE SORT LÆNGERE! */
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__manage {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  max-width: 100% !important;
}
/* FÆLLES for begge knapper: kompakt 46px højde (ligesom Compose submit!) */
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__manage .sgm-search-hero__button {
  min-height: 46px !important;
  padding: 11px 22px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
  transition: all .18s ease !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  max-width: 100% !important;
}
/* 🟡 REDIGER knap = BEIGE sekundær (samme som Compose category lukket gradient!) */
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__manage .sgm-search-hero__button.is-secondary {
  border-radius: 14px !important;      /* 16px - 2px = 14 */
  background: linear-gradient(180deg, #fff9ee 0%, #faf0e1 100%) !important;
  color: #5c3f2b !important;
  border: 2px solid #e4d1bb !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__manage .sgm-search-hero__button.is-secondary:hover,
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__manage .sgm-search-hero__button.is-secondary:focus-visible {
  transform: translateY(-1px) !important;
  filter: brightness(1.02) !important;
  border-color: #d7c0a8 !important;
  box-shadow: 0 3px 12px rgba(160, 122, 99, .18) !important;
  color: #5c3f2b !important;
}
/* 🔴 SLET knap = FARE BRUN/RØD (mørk, ikke sort/hvid!) */
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__manage .sgm-search-hero__button.is-danger {
  border-radius: 14px !important;      /* 16px - 2px = 14 */
  background: linear-gradient(180deg, #f4dada 0%, #eac4c4 100%) !important;
  color: #7a3f3f !important;
  border: 2px solid #d8a5a5 !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__manage .sgm-search-hero__button.is-danger:hover,
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__manage .sgm-search-hero__button.is-danger:focus-visible {
  transform: translateY(-1px) !important;
  filter: brightness(1.03) !important;
  border-color: #c98f8f !important;
  box-shadow: 0 3px 12px rgba(200, 100, 100, .22) !important;
  color: #7a3f3f !important;
}

/* ---------- S3) TITEL, INDHOLD, KATEGORIER chips, GALLERI ---------- */
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__title {
  color: #5c3f2b !important;     /* mørk brun = TEMA (IKKE hvid!) */
  font-weight: 700 !important;
  margin: 0 0 16px !important;
  text-shadow: none !important;
  /* Wrap ord hvis titel ER for lang! */
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  /* Responsiv font-size: SKALERER med skærm (36px max, 22px min) */
  font-size: clamp(22px, 3.4vw, 36px) !important;
  line-height: 1.12 !important;
  max-width: 100% !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__content {
  color: #2e241e !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  margin-bottom: 18px !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__content > *:first-child {
  margin-top: 0 !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__content > *:last-child {
  margin-bottom: 0 !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__content p {
  color: inherit !important;
  line-height: inherit !important;
  margin-bottom: 14px !important;
}
/* Media gallery (billeder vedlægget) */
.sgm-widget.sgm-forum-topic-single .sgm-forum-media {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 12px !important;
  margin: 0 0 20px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-media__item {
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  border: 2px solid #eadfd6 !important;
  background: #fffdfa !important;
  transition: all .2s ease;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-media__item:hover {
  border-color: #e0c9b3 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(160, 122, 99, .14) !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-media__image {
  width: 100% !important;
  height: 100% !important;
  min-height: 150px !important;
  max-height: 240px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 16px !important;    /* indre = 18 - 2 = 16 */
  overflow: hidden !important;
}
/* Kategori-chips nederst i indlægget */
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__categories {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 4px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-topic-single__categories[hidden] {
  display: none !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 16px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fff9ee 0%, #faf0e1 100%) !important;
  color: #5c3f2b !important;
  border: 1.5px solid #e4d1bb !important;
  transition: all .18s ease;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-chip:hover {
  transform: translateY(-1px) !important;
  border-color: #d7c0a8 !important;
  box-shadow: 0 2px 8px rgba(160, 122, 99, .12) !important;
}

/* ---------- S4) EDIT FORM: Eksisterende billeder editor (thumbnail + Fjern checkbox!) ---------- */
.sgm-widget.sgm-forum-topic-single .sgm-forum-edit-images {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  margin-top: 4px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-edit-image {
  box-sizing: border-box !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 12px !important;
  background: #fffdfa !important;
  border: 2px solid #eadfd6 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-edit-image__preview {
  width: 100% !important;
  max-height: 180px !important;
  object-fit: cover !important;
  border-radius: 16px !important;      /* 18 - 2 = 16 */
  border: 1.5px solid #eadfd6 !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #faf0e1 0%, #eadfd6 100%) !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-edit-image__toggle {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  background: linear-gradient(180deg, #fff9ee 0%, #faf0e1 100%) !important;
  border: 1.5px solid #e4d1bb !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  transition: all .18s ease;
  overflow: hidden !important;
  isolation: isolate;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-edit-image__toggle:hover {
  border-color: #d7c0a8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(160, 122, 99, .12) !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-edit-image__toggle input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  border: 2px solid #c1a893 !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  border-radius: 6px !important;
  accent-color: #996515 !important;
  cursor: pointer !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-edit-image__toggle input[type="checkbox"]:checked {
  border-color: #996515 !important;
  box-shadow: inset 0 0 0 3px #996515 !important;
  background: #fff !important;
  border-radius: 6px !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-edit-image__toggle > span:last-child {
  color: #5c3f2b !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  cursor: pointer !important;
}
/* RESPONSIV: 1 kol ≤520px */
@media (max-width: 520px) {
  .sgm-widget.sgm-forum-topic-single .sgm-forum-edit-images {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- S5) KOMMENTARER sektion (overskrift + liste) ---------- */
.sgm-widget.sgm-forum-topic-single .sgm-forum-comments {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-bottom: 28px !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comments__header {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-bottom: 20px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #eadfd6 !important;
  max-width: 100% !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comments__title {
  color: #5c3f2b !important;
  font-weight: 700 !important;
  font-size: clamp(20px, 2.8vw, 28px) !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comments__count {
  color: #a07a63 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  background: #fff9ee !important;
  border: 1px solid #eadfd6 !important;
  border-radius: 12px !important;
  white-space: nowrap !important;
}
/* Kommentar LISTE */
.sgm-widget.sgm-forum-topic-single .sgm-forum-comments__list {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
/* Tom state: ingen kommentarer endnu */
.sgm-widget.sgm-forum-topic-single [data-sgm-forum-comments-empty="true"] {
  padding: 24px !important;
  text-align: center !important;
  background: linear-gradient(180deg, #fff9ee 0%, #faf0e1 100%) !important;
  border: 1.5px dashed #e4d1bb !important;
  border-radius: 20px !important;
  color: #6d4a35 !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  overflow: hidden !important;
  isolation: isolate;
}
/* Enkelt KOMMENTAR kort */
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 22px 24px !important;
  background: #fffdfa !important;
  border: 1px solid #eadfd6 !important;
  border-radius: 22px !important;
  box-shadow: 0 3px 12px rgba(160, 122, 99, .05);
  transition: all .2s ease;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment:hover {
  border-color: #e0c9b3 !important;
  box-shadow: 0 4px 16px rgba(160, 122, 99, .09) !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  max-width: 100% !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__author {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  max-width: 100% !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__avatar {
  flex: 0 0 auto !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid #e4d1bb !important;
  background: linear-gradient(135deg, #faf0e1 0%, #eadfd6 100%) !important;
  box-shadow: 0 2px 6px rgba(160, 122, 99, .10);
  isolation: isolate;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__avatar img,
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__avatar span {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__author-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__author-name {
  color: #5c3f2b !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__date {
  color: #a07a63 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__body {
  color: #2e241e !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__body > *:last-child {
  margin-bottom: 0 !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 10px !important;
  margin-top: 2px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__gallery-item {
  overflow: hidden !important;
  border-radius: 14px !important;
  border: 1.5px solid #eadfd6 !important;
  background: #fff9ee !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  transition: all .18s ease;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__gallery-item:hover {
  transform: translateY(-1px) !important;
  border-color: #e0c9b3 !important;
  box-shadow: 0 3px 10px rgba(160, 122, 99, .12) !important;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-comment__gallery-item img {
  width: 100% !important;
  min-height: 110px !important;
  max-height: 180px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
/* Kommentar compact mobil */
@media (max-width: 520px) {
  .sgm-widget.sgm-forum-topic-single .sgm-forum-comment {
    padding: 18px 16px !important;
    border-radius: 18px !important;
  }
  .sgm-widget.sgm-forum-topic-single .sgm-forum-comments {
    margin-bottom: 22px !important;
  }
}

/* ---------- S6) REPLY sektion (Skriv et svar + form) ---------- */
.sgm-widget.sgm-forum-topic-single .sgm-forum-reply {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 26px 28px 32px !important;
  background: linear-gradient(180deg, #fbf7f2 0%, #f8f2ea 100%) !important;
  border: 1px solid #eadfd6 !important;
  border-radius: 28px !important;
  box-shadow: 0 6px 24px rgba(160, 122, 99, .08), inset 0 0 0 1px rgba(255, 255, 255, .6);
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
.sgm-widget.sgm-forum-topic-single .sgm-forum-reply__title {
  color: #5c3f2b !important;
  font-weight: 700 !important;
  margin: 0 0 20px !important;
  font-size: clamp(20px, 2.8vw, 28px) !important;
  line-height: 1.15 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}
/* Reply mobil compact */
@media (max-width: 720px) {
  .sgm-widget.sgm-forum-topic-single .sgm-forum-reply {
    padding: 22px 18px 28px !important;
    border-radius: 22px !important;
  }
}
@media (max-width: 520px) {
  .sgm-widget.sgm-forum-topic-single .sgm-forum-reply {
    padding: 18px 14px 26px !important;
  }
  .sgm-widget.sgm-forum-topic-single .sgm-forum-reply__title {
    font-size: 22px !important;
  }
}

/* ======================================================================
   v0.3.40: FORUM EMDNE LISTE — TEMA MATCH (kort + søgknap + thumbnails!)
   ====================================================================== */

/* ---------- L0) Wrap: Anti-cutoff regler (ligesom compose/single) ---------- */
.sgm-widget.sgm-forum-topic-list {
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}
.sgm-widget.sgm-forum-topic-list,
.sgm-widget.sgm-forum-topic-list *,
.sgm-widget.sgm-forum-topic-list *::before,
.sgm-widget.sgm-forum-topic-list *::after {
  box-sizing: border-box !important;
}
/* Overskrifter: Sikre TEMA farver (mørkebrun!) */
.sgm-widget.sgm-forum-topic-list .sgm-section-heading__eyebrow {
  color: #a07a63 !important;
  letter-spacing: 0.16em !important;
  font-weight: 700 !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-section-heading__title {
  color: #5c3f2b !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  text-shadow: none !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  font-size: clamp(26px, 3.4vw, 42px) !important;
  margin-bottom: 24px !important;
}

/* ---------- L1) TOOLBAR (søgefelt + SØG-knap) ---------- */
.sgm-widget.sgm-forum-topic-list .sgm-forum-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-bottom: 18px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
/* SØG-input: samme styling som compose! */
.sgm-widget.sgm-forum-topic-list .sgm-forum-toolbar .sgm-filter-input[type="search"] {
  flex: 1 1 260px !important;
  min-width: 220px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border: 2px solid #eadfd6 !important;
  border-radius: 18px !important;
  background: #fffdfa !important;
  color: #1f1a17 !important;
  padding: 13px 18px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  min-height: 46px !important;
  transition: all .18s ease !important;
  box-shadow: inset 0 1px 2px rgba(160, 122, 99, .06);
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-toolbar .sgm-filter-input[type="search"]::placeholder {
  color: #a08675 !important;
  opacity: .85 !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-toolbar .sgm-filter-input[type="search"]:focus {
  border-color: #b38a68 !important;
  background: #fff !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(179, 138, 104, .12), inset 0 1px 2px rgba(160, 122, 99, .04) !important;
}
/* ✅ SØG-knap: IKKE SORT LÆNGERE → brungul med pink-kant (lige som Compose submit!) */
.sgm-widget.sgm-forum-topic-list .sgm-forum-toolbar .sgm-search-hero__button[type="submit"] {
  flex: 0 0 auto !important;
  min-height: 46px !important;
  padding: 11px 30px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 14px !important;     /* 16px - 2px = 14 */
  background-color: #996515 !important;
  color: #ffdae9 !important;
  border: 2px solid #ffdae9 !important;
  transition: all .18s ease !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  cursor: pointer !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-toolbar .sgm-search-hero__button[type="submit"]:hover,
.sgm-widget.sgm-forum-topic-list .sgm-forum-toolbar .sgm-search-hero__button[type="submit"]:focus-visible {
  background-color: #b37a1b !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(153, 101, 21, .28) !important;
  color: #ffdae9 !important;
}

/* ---------- L2) Meta (antallet emner, kategori chip) ---------- */
.sgm-widget.sgm-forum-topic-list .sgm-forum-toolbar__meta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 6px 0 24px !important;
  max-width: 100% !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-toolbar__count,
.sgm-widget.sgm-forum-topic-list .sgm-forum-toolbar__category {
  color: #7a5f4e !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  background: #fff9ee !important;
  border: 1px solid #eadfd6 !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-toolbar__category {
  background: linear-gradient(180deg, #fff9ee 0%, #faf0e1 100%) !important;
  border-color: #e4d1bb !important;
  color: #5c3f2b !important;
  font-weight: 700 !important;
}

/* ---------- L3) LISTE (items gap + max-width) ---------- */
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-list__items {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ---------- L4) KORT (hvert emne) TEMA MATCH ---------- */
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 24px 26px 22px !important;
  /* Beige gradient (samme som compose wrap!) */
  background: linear-gradient(180deg, #fbf7f2 0%, #f8f2ea 100%) !important;
  border: 1px solid #eadfd6 !important;
  border-radius: 24px !important;
  box-shadow: 0 3px 14px rgba(160, 122, 99, .06), inset 0 0 0 1px rgba(255, 255, 255, .55);
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  transition: all .22s ease !important;
  overflow: hidden !important;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card:hover {
  transform: translateY(-2px) !important;
  border-color: #e0c9b3 !important;
  box-shadow: 0 6px 22px rgba(160, 122, 99, .12), inset 0 0 0 1px rgba(255, 255, 255, .65) !important;
}
/* META (eyebrow + forfatter/stats) */
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  max-width: 100% !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__eyebrow {
  color: #a07a63 !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  font-size: 12.5px !important;
  text-transform: uppercase !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__stats {
  color: #7a5f4e !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  white-space: nowrap !important;
}
/* TITEL + link (IKKE sort default!) */
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__title {
  margin: 0 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  line-height: 1.2 !important;
  font-size: clamp(20px, 2.2vw, 28px) !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__title a {
  color: #5c3f2b !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: color .18s ease !important;
  max-width: 100% !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__title a:hover,
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__title a:focus-visible {
  color: #996515 !important;
  text-decoration: underline !important;
}
/* EXCERPT */
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__excerpt {
  color: #2e241e !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

/* ---------- L5) ❗❗ VEDHÆFTEDE BILLEDER = MEGET MINDRE! (compact thumbnails) ---------- */
.sgm-widget.sgm-forum-topic-list .sgm-forum-media.sgm-forum-media--compact {
  display: grid !important;
  /* 1 thumbnail pr række, max 140px bred (HÅRDT BEGRÆNSET = MEGET MINDRE end original auto-fill!) */
  grid-template-columns: repeat(auto-fill, minmax(90px, 140px)) !important;
  grid-auto-rows: 110px !important;      /* ❗❗ FAST MAX HØJDE 110px = MEGET MINDRE! (var 240px!) */
  gap: 10px !important;
  margin: 6px 0 4px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-media.sgm-forum-media--compact .sgm-forum-media__item {
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  border: 1.5px solid #eadfd6 !important;
  background: #fffdfa !important;
  transition: all .2s ease;
  isolation: isolate;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  height: 100% !important;
  max-height: 110px !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-media.sgm-forum-media--compact .sgm-forum-media__item:hover {
  border-color: #e0c9b3 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(160, 122, 99, .12) !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-media.sgm-forum-media--compact .sgm-forum-media__image {
  width: 100% !important;
  height: 100% !important;
  max-height: 107px !important;     /* 110px - 1.5px×2 = 107px */
  min-height: 0 !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

/* ---------- L6) Kategori chips i kort (hvis >1 kategori) ---------- */
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__categories {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 4px 0 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 6px 14px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fff9ee 0%, #faf0e1 100%) !important;
  color: #5c3f2b !important;
  border: 1.5px solid #e4d1bb !important;
  box-sizing: border-box !important;
}

/* ---------- L7) FOOTER (dato + læs-link) ---------- */
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-top: 2px !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(234, 223, 214, .65) !important;
  max-width: 100% !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__date {
  color: #a07a63 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
  white-space: nowrap !important;
  max-width: 100% !important;
}
/* "Læs emne" link = accent gulbrun, UNDERLINE */
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__link {
  color: #006400 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 2px !important;
  transition: all .18s ease !important;
  letter-spacing: 0.01em !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__link:hover,
.sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__link:focus-visible {
  color: #996515 !important;
  filter: brightness(1.05) !important;
  text-shadow: 0 0 0 transparent !important;
  transform: translateX(1px) !important;
}

/* ---------- L8) Empty-state ---------- */
.sgm-widget.sgm-forum-topic-list .sgm-empty-state {
  padding: 26px 24px !important;
  text-align: center !important;
  background: linear-gradient(180deg, #fff9ee 0%, #faf0e1 100%) !important;
  border: 1.5px dashed #e4d1bb !important;
  border-radius: 20px !important;
  color: #6d4a35 !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  overflow: hidden !important;
  isolation: isolate;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* ---------- L9) RESPONSIVE liste (mobil compact) ---------- */
@media (max-width: 720px) {
  .sgm-widget.sgm-forum-topic-list .sgm-forum-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .sgm-widget.sgm-forum-topic-list .sgm-forum-toolbar .sgm-search-hero__button[type="submit"] {
    width: 100% !important;
  }
  .sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card {
    padding: 20px 18px 18px !important;
    border-radius: 20px !important;
    gap: 10px !important;
  }
  .sgm-widget.sgm-forum-topic-list .sgm-section-heading__title {
    font-size: 28px !important;
  }
}
@media (max-width: 520px) {
  .sgm-widget.sgm-forum-topic-list .sgm-section-heading__title {
    font-size: 24px !important;
  }
  .sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card {
    padding: 18px 16px 16px !important;
    border-radius: 18px !important;
  }
  .sgm-widget.sgm-forum-topic-list .sgm-forum-topic-card__stats {
    white-space: normal !important;
    font-size: 12.5px !important;
  }
  /* Billeder ENDNU MINDRE på mobil (90px!) */
  .sgm-widget.sgm-forum-topic-list .sgm-forum-media.sgm-forum-media--compact {
    grid-template-columns: repeat(auto-fill, minmax(80px, 110px)) !important;
    grid-auto-rows: 90px !important;
  }
  .sgm-widget.sgm-forum-topic-list .sgm-forum-media.sgm-forum-media--compact .sgm-forum-media__item {
    max-height: 90px !important;
  }
  .sgm-widget.sgm-forum-topic-list .sgm-forum-media.sgm-forum-media--compact .sgm-forum-media__image {
    max-height: 87px !important;
  }
}

/* =========================================================
 * 🧶 SGM COMMUNITY RECIPES (v0.4.0) - TEMA CSS
 * =========================================================
 * Design matcher eksisterende beige/brun tema:
 * - Primærbrun: #a07a63
 * - Lyserbrun: #b89277
 * - Beige baggrund: #fdfaf6
 * - Lys beige: #f6f0e8
 * - Børstet brunt border: #e8d9c8
 * - Grøn success: #2d8a4f
 * - Rød error: #b3261e
 * - INNER RADIUS REGEL: Alt overholdes!
 * ========================================================= */

/* --- Box-sizing sikring (INGEN cutoff!) --- */
.sgm-cr, .sgm-cr *, .sgm-cr *::before, .sgm-cr *::after {
  box-sizing: border-box;
}

/* --- Shared spacing + card defaults --- */
.sgm-cr {
  --cr-border-color: #e8d9c8;
  --cr-bg-beige: #fdfaf6;
  --cr-bg-lys-beige: #f6f0e8;
  --cr-brun: #a07a63;
  --cr-brun-lys: #b89277;
  --cr-moerk: #5a4432;
  --cr-success: #2d8a4f;
  --cr-error: #b3261e;
  --cr-radius-xl: 28px;
  --cr-radius-lg: 22px;
  --cr-radius-md: 16px;
  --cr-radius-sm: 12px;
  --cr-radius-pill: 999px;
  --cr-shadow-sm: 0 2px 8px rgba(90, 68, 50, 0.06);
  --cr-shadow-md: 0 6px 20px rgba(90, 68, 50, 0.10);
  --cr-shadow-lg: 0 12px 32px rgba(90, 68, 50, 0.14);
}

/* --- Card (egen container beige, INNER RADIUS korrekt!) --- */
.sgm-cr .sgm-card {
  background: var(--cr-bg-beige);
  border: 1px solid var(--cr-border-color);
  border-radius: var(--cr-radius-xl);
  padding: 28px;
  box-shadow: var(--cr-shadow-sm);
  overflow: hidden; /* INNER RADIUS REGEL #1! */
  background-clip: padding-box; /* INNER RADIUS REGEL #2! */
}
.sgm-cr .sgm-card > .sgm-card,
.sgm-cr .sgm-cr-single__card > .sgm-card {
  /* inner padding = outer minus border (INNER RADIUS REGEL #3!) */
  border-radius: calc(var(--cr-radius-xl) - 1px);
}

/* =========================
 * GRID / LIST (oversigt)
 * ========================= */
.sgm-cr-list__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 20px 0;
  color: #7b6854;
  font-size: 14px;
}
.sgm-cr-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sgm-cr-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sgm-cr-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .sgm-cr-grid, .sgm-cr-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .sgm-cr-grid, .sgm-cr-grid--cols-2, .sgm-cr-grid--cols-4 { grid-template-columns: 1fr; }
}

/* ---- Recipe kort (grid card) ---- */
.sgm-cr-card {
  background: #fff;
  border: 1px solid var(--cr-border-color);
  border-radius: var(--cr-radius-lg);
  overflow: hidden;
  background-clip: padding-box;
  box-shadow: var(--cr-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sgm-cr-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cr-shadow-md);
}
.sgm-cr-card__link { display: block; text-decoration: none; color: inherit; }
.sgm-cr-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cr-bg-lys-beige);
}
.sgm-cr-card__media--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.sgm-cr-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.sgm-cr-card:hover .sgm-cr-card__img { transform: scale(1.04); }
.sgm-cr-card__body { padding: 18px 20px 20px 20px; }
.sgm-cr-card__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sgm-cr-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--cr-moerk);
  line-height: 1.3;
  margin: 0 0 8px 0;
}
.sgm-cr-card__excerpt {
  font-size: 14px;
  color: #6b5a47;
  line-height: 1.55;
  margin: 0 0 14px 0;
  min-height: 44px;
}
.sgm-cr-card__footer { display: flex; align-items: center; }

/* =========================
 * AUTHOR CARD (shared!)
 * ========================= */
.sgm-cr-author { display: flex; align-items: center; gap: 10px; }
.sgm-cr-author__avatar img {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--cr-border-color);
  object-fit: cover;
}
.sgm-cr-author__name { font-size: 14px; color: var(--cr-moerk); font-weight: 600; line-height: 1.2; }
.sgm-cr-author__date { font-size: 12px; color: #8b7a65; line-height: 1.1; margin-top: 2px; display: block; }

/* =========================
 * CHIPS (kategorier!)
 * ========================= */
.sgm-cr .sgm-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--cr-bg-lys-beige);
  color: var(--cr-moerk);
  border: 1px solid var(--cr-border-color);
  border-radius: var(--cr-radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  transition: all .15s ease;
  cursor: default;
}
.sgm-cr .sgm-chip--outline {
  background: transparent;
  color: var(--cr-brun);
  border-color: var(--cr-brun-lys);
}
.sgm-cr .sgm-chip--sm { padding: 2px 10px; font-size: 11px; }
.sgm-cr .sgm-chip--selectable {
  cursor: pointer;
  user-select: none;
}
.sgm-cr .sgm-chip--selectable input { display: none; }
.sgm-cr .sgm-chip--selectable:has(input:checked) {
  background: var(--cr-brun);
  border-color: var(--cr-brun);
  color: #fff;
}
.sgm-cr .sgm-chip--selectable:hover:not(:has(input:checked)) {
  background: #fff;
  border-color: var(--cr-brun);
  color: var(--cr-brun);
}

/* =========================
 * BADGES (status!)
 * ========================= */
.sgm-cr .sgm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--cr-radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.sgm-cr .sgm-badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  animation: sgm-cr-pulse 1.8s infinite ease-in-out;
}
@keyframes sgm-cr-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.18); }
}
.sgm-cr .sgm-badge--warn { background: #fff4e5; color: #996600; border: 1px solid #ffd48a; }
.sgm-cr .sgm-badge--success { background: #e6f4ea; color: #137333; border: 1px solid #ace1b9; }
.sgm-cr .sgm-badge--neutral { background: #f1f3f4; color: #444746; border: 1px solid #dadce0; }
.sgm-cr-badge { margin: 0; }

/* =========================
 * FORM (Composer + Edit + Suggest!)
 * ========================= */
.sgm-cr-composer__back,
.sgm-cr-single__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 20px;
  background: var(--cr-bg-lys-beige);
  color: var(--cr-brun);
  border: 1px solid var(--cr-border-color);
  border-radius: var(--cr-radius-pill);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all .15s ease;
}
.sgm-cr-composer__back:hover,
.sgm-cr-single__back:hover {
  background: #fff;
  border-color: var(--cr-brun);
  color: var(--cr-moerk);
}

.sgm-cr-review-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #fff9ec 0%, #fff4e0 100%);
  border: 1px solid #ffd48a;
  border-radius: var(--cr-radius-md);
  padding: 16px 18px;
  margin-bottom: 26px;
  overflow: hidden;
  background-clip: padding-box;
}
.sgm-cr-review-notice__icon { font-size: 24px; line-height: 1.1; flex-shrink: 0; }
.sgm-cr-review-notice__text { font-size: 14px; line-height: 1.55; color: #7b5a1c; }
.sgm-cr-review-notice__text strong { color: #5a3e10; display: block; margin-bottom: 3px; }

/* Form grid */
.sgm-cr-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  /* 🛡️ FORBYDER grid at "strække" kolonner til samme højde (ALTID start)
     → fixer 100% af "den anden bliver stor når jeg åbner en på samme linje" bug! */
  align-items: start;
  align-content: start;
}
@media (max-width: 800px) { .sgm-cr-form__grid { grid-template-columns: 1fr; } }
.sgm-cr-form__field--full { grid-column: 1 / -1; }
.sgm-cr-form__field--title { grid-column: 1 / -1; }

.sgm-cr-form__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--cr-moerk);
  margin-bottom: 8px;
  letter-spacing: .2px;
}
.sgm-cr-form__label-hint { font-weight: 400; color: #8b7a65; font-size: 12px; margin-left: 4px; }
.sgm-cr-form__input,
.sgm-cr-form__textarea {
  display: block;
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1.5px solid var(--cr-border-color);
  border-radius: var(--cr-radius-md);
  color: var(--cr-moerk);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sgm-cr-form__input:focus,
.sgm-cr-form__textarea:focus {
  outline: none;
  border-color: var(--cr-brun);
  box-shadow: 0 0 0 3px rgba(160, 122, 99, 0.15);
}
.sgm-cr-form__textarea { resize: vertical; min-height: 72px; }

.sgm-cr-form__chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   📦 NEW: COLLAPSIBLE TAXONOMY SECTIONS (<details>/<summary>)
   Bruges i Composer + Single Edit → ingen "voldsom" overflade længere!
   ========================================================================== */
.sgm-cr-tax {
  display: block;
  width: 100%;
  border: 1px solid var(--cr-border-color);
  border-radius: var(--cr-radius-lg);
  background: var(--cr-bg-lys-beige);
  margin: 0;
  box-shadow: var(--cr-shadow-sm);
  transition: box-shadow .18s ease, border-color .18s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ⛔ ULTIEM LUKKE-REGEL — INGEN STRECH, INGEN STORE HVIDE BOKSE LÆNGERE! ⛔
   1. Hvis <details> IKKE har [open] → indholdet er FULSTÆNDIG USYNLIGT (display:none)
   2. Lukket <details> kan MAX blive 80px høj (præcis summary højde + lidt)
   3. `align-self: start` på ALLE <details> → grid kan ALDRIG "strække" dem!
   Dette fixer 100% af "den anden boks på samme linje bliver stor" bug!
   ═══════════════════════════════════════════════════════════════════════════ */
details.sgm-cr-tax {
  align-self: start !important;
  justify-self: stretch;
  height: auto;
  min-height: 0;
  max-height: none;
}
details.sgm-cr-tax:not([open]) {
  max-height: 80px !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  background: var(--cr-bg-lys-beige);
}
details.sgm-cr-tax:not([open]) > .sgm-cr-tax__content {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
details.sgm-cr-tax[data-sgm-cr-open="0"] > .sgm-cr-tax__content {
  display: none !important;
  visibility: hidden !important;
}

/* ---- ÅBEN STATE (hele boksens udseende) → KUN data-sgm-cr-open på <details> ---- */
details.sgm-cr-tax[data-sgm-cr-open="1"] {
  border-color: var(--cr-brun);
  background: var(--cr-bg-lys-beige);
  box-shadow: var(--cr-shadow-md);
}
details.sgm-cr-tax[data-sgm-cr-open="1"]:hover {
  border-color: var(--cr-moerk);
}

/* ---- Summary (header på hvert tax felt) ---- */
.sgm-cr-tax__summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  background: var(--cr-bg-lys-beige);
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 14px;
  line-height: 1.3;
  border-top-left-radius: var(--cr-radius-lg);
  border-top-right-radius: var(--cr-radius-lg);
  transition: background .18s ease, padding .18s ease, border-color .18s ease;
}
.sgm-cr-tax__summary::-webkit-details-marker { display: none; }

/* ÅBEN STATE: mørkere baggrund på summary + skel linje mellem header og content */
details.sgm-cr-tax[data-sgm-cr-open="1"] > summary.sgm-cr-tax__summary {
  background: #efe4d4;
  border-bottom: 1px solid var(--cr-border-color);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.sgm-cr-tax__summary:hover {
  background: #f4e7d2;
}
details.sgm-cr-tax[data-sgm-cr-open="1"] > summary.sgm-cr-tax__summary:hover {
  background: #eadfc9;
}

.sgm-cr-tax__title {
  font-weight: 800;
  color: var(--cr-moerk);
  letter-spacing: 0.02em;
  flex: 0 1 auto;
}
.sgm-cr-tax__title-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.sgm-cr-tax__helper {
  color: var(--cr-brun-lys);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  opacity: .9;
}
@media (max-width: 768px) {
  .sgm-cr-tax__helper { font-size: 10px; }
}

/* ---- Meta højre side (count + label + pil) ---- */
.sgm-cr-tax__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.sgm-cr-tax__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--cr-radius-pill);
  background: var(--cr-brun);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: background .18s ease;
}
/* ÅBEN → count baggrund = mørkere brun */
details.sgm-cr-tax[data-sgm-cr-open="1"] .sgm-cr-tax__count {
  background: var(--cr-moerk);
}
/* Når count er 0 → neutral, gråtone */
.sgm-cr-tax__count:empty,
.sgm-cr-tax__count[data-empty="true"] { background: #c9b8a4; }

.sgm-cr-tax__count-label {
  color: var(--cr-brun);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   🎯 +/− PIL → KUN data-sgm-cr-open PÅ <SUMMARY> styrer om det er + eller −
   (100% JS styrt → ingen CSS [open] fejl!)
   ═══════════════════════════════════════════════════════════════════════════ */
summary.sgm-cr-tax__summary > .sgm-cr-tax__meta::after {
  content: "+";
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--cr-radius-pill);
  background: #fff;
  color: var(--cr-moerk);
  border: 1px solid var(--cr-border-color);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  transition: transform .2s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
/* ÅBEN → MINUS-tegnet (CSS unicode \2212 = MINUS SIGN → ingen browser parse fejl!) */
summary.sgm-cr-tax__summary[data-sgm-cr-open="1"] > .sgm-cr-tax__meta::after {
  content: "\2212" !important;
  background: var(--cr-moerk) !important;
  color: #fff !important;
  border-color: var(--cr-moerk) !important;
  transform: rotate(180deg) !important;
}

/* GAMMEL summary::after FLYttet vi væk længe siden — NUKE alt der er tilbage (ingen spøgelses ikoner!) */
.sgm-cr-tax__summary::after,
details.sgm-cr-tax > summary.sgm-cr-tax__summary::after,
details.sgm-cr-tax[open] > summary.sgm-cr-tax__summary::after,
details.sgm-cr-tax[data-sgm-cr-open="1"] > summary.sgm-cr-tax__summary::after {
  display: none !important;
  visibility: hidden !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  pointer-events: none !important;
}

/* ---- Content (chips inden i <details>) ---- */
.sgm-cr-tax__content {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border-bottom-left-radius: var(--cr-radius-lg);
  border-bottom-right-radius: var(--cr-radius-lg);
}
.sgm-cr-tax__content > .sgm-cr-form__chips {
  gap: 7px;
}

/* ---- Sørg for at details går godt i 2-kolonne grid (både Composer og Single) ---- */
.sgm-cr-form__grid > .sgm-cr-tax:nth-child(odd)  { grid-column: 1 / 2; }
.sgm-cr-form__grid > .sgm-cr-tax:nth-child(even) { grid-column: 2 / 3; }

/* Responsive brud: <768px → 1 kolonne for takso felter */
@media (max-width: 768px) {
  .sgm-cr-form__grid > .sgm-cr-tax,
  .sgm-cr-form__grid > .sgm-cr-tax:nth-child(odd),
  .sgm-cr-form__grid > .sgm-cr-tax:nth-child(even) {
    grid-column: 1 / -1 !important;
  }
  .sgm-cr-tax__summary { padding: 12px 16px; }
  .sgm-cr-tax__content { padding: 14px 16px; }
  .sgm-cr-tax__count-label { display: none; }
}

/* --- IMAGE UPLOAD (shared!) --- */
.sgm-cr-image-upload {
  position: relative;
  border: 2px dashed var(--cr-border-color);
  border-radius: var(--cr-radius-md);
  padding: 18px;
  background: var(--cr-bg-lys-beige);
  transition: all .18s ease;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sgm-cr-image-upload:hover {
  border-color: var(--cr-brun);
  background: #fff;
}
.sgm-cr-image-upload__preview {
  position: relative;
  width: 100%;
  max-width: 400px;
}
.sgm-cr-image-upload__preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--cr-radius-md) - 2px);
  border: 1px solid var(--cr-border-color);
  background-clip: padding-box;
}
.sgm-cr-image-upload__remove {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.95);
  border: 1.5px solid var(--cr-error);
  color: var(--cr-error);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: all .15s ease;
}
.sgm-cr-image-upload__remove:hover {
  background: var(--cr-error);
  color: #fff;
}
.sgm-cr-image-upload__empty {
  text-align: center;
  color: #8b7a65;
  width: 100%;
}
.sgm-cr-image-upload__empty-icon { font-size: 42px; margin-bottom: 8px; }
.sgm-cr-image-upload__empty-text { font-size: 13px; font-weight: 600; }
.sgm-cr-image-upload__input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* TinyMCE editor container (match tema!) */
.sgm-cr-form__editor {
  background: #fff;
  border: 1.5px solid var(--cr-border-color);
  border-radius: var(--cr-radius-md);
  padding: 0;
  overflow: hidden;
  background-clip: padding-box;
  transition: border-color .15s ease;
}
.sgm-cr-form__editor:has(.mce-tinymce) {
  padding: 0;
}
.sgm-cr-form__editor:focus-within {
  border-color: var(--cr-brun);
  box-shadow: 0 0 0 3px rgba(160, 122, 99, 0.12);
}
.sgm-cr-form__editor iframe { min-height: 260px; }
.sgm-cr-form__editor textarea {
  border: none !important;
  border-radius: 0 !important;
  padding: 16px;
  min-height: 260px;
  width: 100%;
  font: inherit;
  color: var(--cr-moerk);
}

/* Form actions */
.sgm-cr-form__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px dashed var(--cr-border-color);
}
.sgm-cr-form__feedback { flex: 1 1 100%; order: 3; }

/* Feedback (error/success) shared */
.sgm-cr .sgm-feedback {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--cr-radius-md);
  overflow: hidden;
  background-clip: padding-box;
  margin: 0;
}
.sgm-cr .sgm-feedback--success {
  background: #e6f4ea;
  border: 1px solid #ace1b9;
  color: #137333;
}
.sgm-cr .sgm-feedback--error {
  background: #fce8e6;
  border: 1px solid #f5b7b1;
  color: var(--cr-error);
}
.sgm-cr .sgm-feedback__text { font-size: 14px; font-weight: 600; line-height: 1.5; }
.sgm-cr .sgm-feedback[hidden] { display: none !important; }

/* =========================
 * SINGLE OPSKRIFT
 * ========================= */
.sgm-cr-single__card { padding: 36px; }
@media (max-width: 600px) { .sgm-cr-single__card { padding: 22px; border-radius: 22px; } }

.sgm-cr-single__header { margin-bottom: 26px; }
.sgm-cr-single__chips-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.sgm-cr-single__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--cr-moerk);
  line-height: 1.15;
  margin: 0 0 18px 0;
}
@media (max-width: 600px) { .sgm-cr-single__title { font-size: 24px; } }
.sgm-cr-single__author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--cr-border-color);
}
.sgm-cr-single__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.sgm-cr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--cr-radius-pill);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  background: transparent;
  font-family: inherit;
}
.sgm-cr-btn svg, .sgm-cr-btn span { flex-shrink: 0; }
.sgm-cr-btn--ghost {
  background: var(--cr-bg-lys-beige);
  border-color: var(--cr-border-color);
  color: var(--cr-moerk);
}
.sgm-cr-btn--ghost:hover {
  background: #fff;
  border-color: var(--cr-brun);
  color: var(--cr-brun);
}
.sgm-cr-btn--ghost-danger {
  background: #fce8e6;
  border-color: #f5b7b1;
  color: var(--cr-error);
}
.sgm-cr-btn--ghost-danger:hover {
  background: #fff;
  border-color: var(--cr-error);
}
.sgm-cr-btn.is-loading,
.sgm-cr .sgm-btn.is-loading {
  opacity: 0.7;
  cursor: progress !important;
  pointer-events: none;
}

.sgm-cr-single__media {
  margin: 28px 0;
  border-radius: var(--cr-radius-lg);
  overflow: hidden;
  background-clip: padding-box;
  box-shadow: var(--cr-shadow-md);
}
.sgm-cr-single__media img {
  display: block;
  width: 100%;
  height: auto;
}
.sgm-cr-single__excerpt {
  background: linear-gradient(135deg, var(--cr-bg-lys-beige) 0%, #f8f3ea 100%);
  padding: 18px 22px;
  border-left: 4px solid var(--cr-brun);
  border-radius: 0 var(--cr-radius-md) var(--cr-radius-md) 0;
  margin: 0 0 28px 0;
  color: #5a4432;
  font-size: 15px;
  line-height: 1.65;
  overflow: hidden;
  background-clip: padding-box;
}
.sgm-cr-single__excerpt p:last-child { margin: 0; }

/* WP Content (the_content from WordPress!) */
.sgm-cr-single__content.sgm-wp-content {
  font-size: 16px;
  line-height: 1.75;
  color: #443a2d;
}
.sgm-cr-single__content.sgm-wp-content p { margin: 0 0 18px 0; }
.sgm-cr-single__content.sgm-wp-content h2 { font-size: 22px; color: var(--cr-moerk); font-weight: 700; margin: 36px 0 14px; }
.sgm-cr-single__content.sgm-wp-content h3 { font-size: 18px; color: var(--cr-moerk); font-weight: 700; margin: 28px 0 10px; }
.sgm-cr-single__content.sgm-wp-content ul,
.sgm-cr-single__content.sgm-wp-content ol { padding-left: 24px; margin: 0 0 20px 0; }
.sgm-cr-single__content.sgm-wp-content li { margin: 0 0 8px 0; }
.sgm-cr-single__content.sgm-wp-content blockquote {
  background: var(--cr-bg-lys-beige);
  border-left: 4px solid var(--cr-brun-lys);
  padding: 16px 22px;
  margin: 26px 0;
  border-radius: 0 var(--cr-radius-md) var(--cr-radius-md) 0;
  color: #5a4432;
  font-style: italic;
}

/* Edit form i single (skjult default) */
.sgm-cr-form--edit,
.sgm-cr-form--suggest {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px dashed var(--cr-border-color);
}
.sgm-cr-form--edit[hidden],
.sgm-cr-form--suggest[hidden] { display: none !important; }

.sgm-cr-suggest-intro {
  background: linear-gradient(135deg, #eef4ff 0%, #e6edff 100%);
  border: 1px solid #b3c5ff;
  border-radius: var(--cr-radius-md);
  padding: 18px 22px;
  margin: 0 0 24px 0;
  overflow: hidden;
  background-clip: padding-box;
}
.sgm-cr-suggest-intro h3 { margin: 0 0 6px 0; color: #1a468f; font-size: 18px; }
.sgm-cr-suggest-intro p { margin: 0; color: #2a3655; font-size: 14px; line-height: 1.5; }

/* =========================
 * FORSLAGSLISTE (Suggestion cards!)
 * ========================= */
.sgm-cr-single__suggestions {
  margin-top: 38px;
  padding: 28px;
  background: linear-gradient(180deg, #fff 0%, var(--cr-bg-beige) 100%);
  border: 1px solid var(--cr-border-color);
  border-radius: var(--cr-radius-xl);
  overflow: hidden;
  background-clip: padding-box;
}
.sgm-cr-single__suggestions-title {
  margin: 0 0 22px 0;
  font-size: 20px;
  color: var(--cr-moerk);
  display: flex; align-items: center; gap: 10px;
}
.sgm-cr-suggestions-list { display: flex; flex-direction: column; gap: 16px; }
.sgm-cr-suggestion {
  background: #fff;
  border: 1.5px solid var(--cr-border-color);
  border-left-width: 4px;
  border-left-color: var(--cr-brun-lys);
  border-radius: var(--cr-radius-md);
  padding: 18px 20px;
  overflow: hidden;
  background-clip: padding-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sgm-cr-suggestion[data-status="accepted"] {
  border-left-color: var(--cr-success);
  background: linear-gradient(135deg, #fff 0%, #f3fbf5 100%);
}
.sgm-cr-suggestion[data-status="rejected"] {
  border-left-color: #9aa0a6;
  opacity: 0.75;
}
.sgm-cr-suggestion__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.sgm-cr-suggestion__user { display: flex; align-items: center; gap: 10px; }
.sgm-cr-suggestion__user img {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--cr-border-color);
}
.sgm-cr-suggestion__user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.sgm-cr-suggestion__user-meta time { font-size: 12px; color: #8b7a65; margin-top: 3px; }
.sgm-cr-suggestion__fields { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.sgm-cr-suggestion__note {
  background: var(--cr-bg-lys-beige);
  border-radius: calc(var(--cr-radius-sm));
  padding: 12px 14px;
  font-size: 14px;
  color: #443a2d;
  line-height: 1.6;
  margin: 12px 0 14px 0;
}
.sgm-cr-suggestion__note p:last-child { margin: 0; }
.sgm-cr-suggestion__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* =========================
 * MIN PROFIL (mine opskrifter!)
 * ========================= */
.sgm-my-cr__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 30px 0;
}
@media (max-width: 800px) { .sgm-my-cr__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sgm-my-cr__stat {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--cr-border-color);
  border-radius: var(--cr-radius-md);
  text-align: center;
  overflow: hidden;
  background-clip: padding-box;
  box-shadow: var(--cr-shadow-sm);
}
.sgm-my-cr__stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--cr-moerk);
  line-height: 1.1;
}
.sgm-my-cr__stat-label {
  font-size: 12px;
  color: #8b7a65;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: .2px;
}
.sgm-my-cr__stat--publish .sgm-my-cr__stat-num { color: var(--cr-success); }
.sgm-my-cr__stat--pending .sgm-my-cr__stat-num { color: #b06000; }

/* Liste */
.sgm-my-cr__list { display: flex; flex-direction: column; gap: 16px; }
.sgm-my-cr__item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--cr-border-color);
  border-radius: var(--cr-radius-md);
  overflow: hidden;
  background-clip: padding-box;
  box-shadow: var(--cr-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sgm-my-cr__item:hover { box-shadow: var(--cr-shadow-md); transform: translateY(-2px); }
@media (max-width: 720px) {
  .sgm-my-cr__item { grid-template-columns: 1fr; text-align: left; }
}
.sgm-my-cr__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--cr-radius-md) - 2px);
  overflow: hidden;
  background: var(--cr-bg-lys-beige);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  background-clip: padding-box;
}
.sgm-my-cr__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sgm-my-cr__placeholder { color: #c8b8a4; }
.sgm-my-cr__body { display: flex; flex-direction: column; min-width: 0; }
.sgm-my-cr__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sgm-my-cr__title { margin: 0 0 8px 0; font-size: 18px; font-weight: 700; color: var(--cr-moerk); line-height: 1.3; }
.sgm-my-cr__title a { color: inherit; text-decoration: none; }
.sgm-my-cr__title a:hover { color: var(--cr-brun); }
.sgm-my-cr__excerpt {
  font-size: 14px;
  color: #6b5a47;
  line-height: 1.5;
  margin: 0 0 auto 0;
}
.sgm-my-cr__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--cr-border-color);
}
.sgm-my-cr__date { font-size: 12px; color: #8b7a65; }
.sgm-my-cr__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- 🗑️ DELETE KNAP (fare-style hover) ---- */
.sgm-cr .sgm-btn--sm.sgm-my-cr__btn-delete {
  color: #9a3d2e;
  border-color: #f1cfc7;
  background: #fff5f2;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.sgm-cr .sgm-btn--sm.sgm-my-cr__btn-delete:hover {
  background: #d94832 !important;
  color: #fff !important;
  border-color: #d94832 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 72, 50, 0.2);
}
.sgm-cr .sgm-btn--sm.sgm-my-cr__btn-delete.is-loading {
  opacity: .65;
  cursor: progress !important;
  pointer-events: none;
  transform: none !important;
  background: #f7dfd7 !important;
  color: #9a3d2e !important;
}
/* Card-der skal slettes → fade/translate transition */
.sgm-my-cr__item {
  will-change: opacity, transform, max-height;
}

/* =========================
 * Empty state
 * ========================= */
.sgm-cr-list__empty,
.sgm-my-cr__empty {
  padding: 48px 28px;
  text-align: center;
  background: var(--cr-bg-beige);
  border: 1.5px dashed var(--cr-border-color);
  border-radius: var(--cr-radius-lg);
}
.sgm-cr .sgm-empty-state__icon { font-size: 56px; margin-bottom: 12px; }
.sgm-cr .sgm-empty-state__title {
  margin: 0 0 6px 0;
  font-size: 20px;
  color: var(--cr-moerk);
  font-weight: 700;
}
.sgm-cr .sgm-empty-state__desc {
  margin: 0 auto 20px auto;
  max-width: 480px;
  font-size: 14px;
  color: #6b5a47;
  line-height: 1.55;
}

/* =========================
 * Section heading (shared med andre widgets!)
 * ========================= */
.sgm-cr .sgm-section-heading {
  margin-bottom: 22px;
  display: block;
}
.sgm-cr .sgm-section-heading__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.sgm-cr .sgm-section-heading__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cr-brun);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sgm-cr .sgm-section-heading__title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--cr-moerk);
  line-height: 1.2;
}
@media (max-width: 600px) { .sgm-cr .sgm-section-heading__title { font-size: 22px; } }

/* =========================
 * BTN SHARED (for de ny knapper)
 * ========================= */
.sgm-cr .sgm-btn--pill {
  border-radius: var(--cr-radius-pill) !important;
  padding: 11px 20px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.sgm-cr .sgm-btn--sm { padding: 8px 14px !important; font-size: 13px !important; }
.sgm-cr .sgm-btn--xl {
  padding: 15px 26px !important;
  font-size: 16px !important;
  border-radius: var(--cr-radius-pill) !important;
}

/* =========================
 * SGM PAGINATION (shared!)
 * ========================= */
.sgm-cr .sgm-pagination {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.sgm-cr .sgm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1.5px solid var(--cr-border-color);
  border-radius: var(--cr-radius-pill);
  color: var(--cr-moerk);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all .15s ease;
}
.sgm-cr .sgm-pagination .page-numbers:hover {
  border-color: var(--cr-brun);
  color: var(--cr-brun);
  transform: translateY(-1px);
}
.sgm-cr .sgm-pagination .page-numbers.current {
  background: var(--cr-brun);
  border-color: var(--cr-brun);
  color: #fff;
  box-shadow: 0 4px 10px rgba(160, 122, 99, 0.25);
}

/* ════════════════════════════════════════════════════════════
   PAGINERING (kaffe/vanilje design, match FilterEngine V2)
   Bruges af Inspiration widget (server-side pagination).
   ════════════════════════════════════════════════════════════ */
.sgmv2-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 0 12px;
    position: relative;
    z-index: 1;
}
.sgmv2-pagination__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.sgmv2-pagination__list li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.sgmv2-pagination__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 13px !important;
    min-height: 36px !important;
    max-height: 38px !important;
    min-width: 36px !important;
    background: linear-gradient(180deg, #fffbf2 0%, #ffeac8 100%) !important;
    color: #5c3f2b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border: 1px solid #ddc198 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all .22s cubic-bezier(.2,.7,.2,1) !important;
    box-shadow:
        0 2px 5px rgba(160, 122, 99, 0.10),
        inset 0 1px 0 rgba(255,255,255,.95) !important;
    position: relative !important;
    z-index: 1 !important;
    line-height: 1.1 !important;
    overflow: visible !important;
    opacity: 1 !important;
    text-decoration: none !important;
}
.sgmv2-pagination__btn--prev,
.sgmv2-pagination__btn--next {
    padding: 7px 15px !important;
    gap: 6px;
    font-size: 13px !important;
}
.sgmv2-pagination__btn:hover:not(:disabled):not(.is-current) {
    background: linear-gradient(135deg, #a07a63 0%, #8a6550 100%) !important;
    color: #ffffff !important;
    border-color: #a07a63 !important;
    transform: translateY(-1.5px) !important;
    box-shadow:
        0 6px 14px rgba(160, 122, 99, 0.30),
        inset 0 1px 0 rgba(255,255,255,.15) !important;
}
.sgmv2-pagination__btn.is-current {
    background: linear-gradient(135deg, #a07a63 0%, #8a6550 100%) !important;
    color: #ffffff !important;
    border-color: #a07a63 !important;
    font-weight: 800 !important;
    box-shadow:
        0 4px 11px rgba(160, 122, 99, 0.28),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
    transform: translateY(-1px) !important;
    cursor: default !important;
}
.sgmv2-pagination__btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: saturate(0.5) !important;
}
.sgmv2-pagination__dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    color: #8a6550 !important;
    font-weight: 800 !important;
    font-size: 14px;
    user-select: none;
    line-height: 1;
    letter-spacing: 1px;
}
.sgmv2-pagination__btn:focus-visible {
    outline: none !important;
    box-shadow:
        0 0 0 3.5px rgba(160,122,99,.28),
        0 2px 7px rgba(160,122,99,.14) !important;
}

/* Mobil < 480px: Kompakt paginering */
@media (max-width: 480px) {
    .sgmv2-pagination {
        gap: 5px;
        padding: 22px 0 8px;
    }
    .sgmv2-pagination__list {
        gap: 4px;
    }
    .sgmv2-pagination__btn {
        padding: 6px 10px !important;
        min-height: 38px !important;
        min-width: 38px !important;
        font-size: 13.5px !important;
        border-radius: 10px !important;
    }
    .sgmv2-pagination__btn--prev,
    .sgmv2-pagination__btn--next {
        padding: 6px 13px !important;
        flex: 0 0 auto;
        font-size: 13px !important;
    }
}

/* ════════════════════════════════════════════════════════════
   BUTIKSKORT (Store Map) — Design match Strikkeglad farveunivers
   ════════════════════════════════════════════════════════════ */

/* --- Kort layout (grid: venstre = info, højre = følg-knap) --- */
.sgm-store-map__item-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    width: 100%;
}

/* --- Venstre klikbare zone (vælg butik på kort) — fjern browser defaults --- */
.sgm-store-map__item-select {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    font-family: inherit;
    line-height: inherit;
}
.sgm-store-map__item-select:hover,
.sgm-store-map__item-select:focus-visible {
    background: transparent !important;
    color: inherit !important;
    outline: none !important;
}

/* --- Højre actions kolonne (Følg butik knap) --- */
.sgm-store-map__item-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- FØLG BUTIK knap — Match sgmv2-pagination beige/brune kort --- */
.sgm-store-map__item-action {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    min-height: 36px !important;
    max-height: 38px !important;
    background: linear-gradient(180deg, #fffbf2 0%, #ffeac8 100%) !important;
    color: #5c3f2b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border: 1px solid #ddc198 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all .22s cubic-bezier(.2,.7,.2,1) !important;
    box-shadow:
        0 2px 5px rgba(160, 122, 99, 0.10),
        inset 0 1px 0 rgba(255,255,255,.95) !important;
    position: relative !important;
    z-index: 1 !important;
    line-height: 1.1 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-family: inherit !important;
    overflow: visible !important;
    opacity: 1 !important;
    text-decoration: none !important;
}
/* Hover (inaktiv) → mørkebrun */
.sgm-store-map__item-action:hover:not(.is-active),
.sgm-store-map__item-action:focus-visible:not(.is-active) {
    background: linear-gradient(135deg, #a07a63 0%, #8a6550 100%) !important;
    color: #ffffff !important;
    border-color: #a07a63 !important;
    transform: translateY(-1px) !important;
    box-shadow:
        0 6px 14px rgba(160, 122, 99, 0.30),
        inset 0 1px 0 rgba(255,255,255,.15) !important;
}
/* Aktiv (følger allerede) → mørkebrun solid */
.sgm-store-map__item-action.is-active {
    background: linear-gradient(135deg, #a07a63 0%, #8a6550 100%) !important;
    color: #ffffff !important;
    border-color: #a07a63 !important;
    font-weight: 800 !important;
    cursor: default !important;
    box-shadow:
        0 4px 11px rgba(160, 122, 99, 0.28),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
}
.sgm-store-map__item-action:focus-visible {
    outline: none !important;
    box-shadow:
        0 0 0 3.5px rgba(160,122,99,.28),
        0 2px 7px rgba(160,122,99,.14) !important;
}

/* --- Sikre at info-tekst (titel/meta/eyebrow) ER MØRKE (IKKE hvid på brun) --- */
.sgm-widget .sgm-store-map__item-eyebrow {
    color: #b68770 !important;
}
.sgm-widget .sgm-store-map__item-title,
.sgm-widget .sgm-store-map__item-title * {
    color: #1f1a17 !important;
}
.sgm-widget .sgm-store-map__item-meta,
.sgm-widget .sgm-store-map__item-meta * {
    color: #5c514b !important;
}

/* --- Sikre at kortbaggrund altid er beige/cremet (IKKE gyldenbrun) --- */
.sgm-widget .sgm-store-map__item,
.sgm-widget .sgm-store-map__item.is-active,
.sgm-widget .sgm-store-map__item:hover,
.sgm-widget .sgm-store-map__item:focus-visible {
    background: #fbf8f4 !important;
    border-color: #e6ddd4 !important;
    color: #1f1a17 !important;
}
.sgm-widget .sgm-store-map__item.is-active {
    background: #f6f1eb !important;
    border-color: #d9cdc2 !important;
    box-shadow: 0 4px 14px rgba(160,122,99,.10) !important;
}

/* --- REGION-OVERSIGT ("Andre" kort) — Sikre ingen gyldenbrun, match kort design --- */
.sgm-widget .sgm-store-region__item,
.sgm-widget .sgm-store-region__item.is-active,
.sgm-widget .sgm-store-region__item:hover,
.sgm-widget .sgm-store-region__item:focus-visible {
    background: #fbf8f4 !important;
    border-color: #e6ddd4 !important;
    color: #1f1a17 !important;
}
.sgm-widget .sgm-store-region__item.is-active {
    background: #f6f1eb !important;
    border-color: #d9cdc2 !important;
    box-shadow: 0 4px 14px rgba(160,122,99,.10) !important;
}
.sgm-widget .sgm-store-region__item:hover,
.sgm-widget .sgm-store-region__item:focus-visible {
    background: #f6f1eb !important;
    border-color: #d9cdc2 !important;
    outline: none !important;
}
/* Tekst farver region-kort */
.sgm-widget .sgm-store-region__item-eyebrow {
    color: #b68770 !important;
}
.sgm-widget .sgm-store-region__item-title,
.sgm-widget .sgm-store-region__item-title * {
    color: #1f1a17 !important;
}
.sgm-widget .sgm-store-region__item-meta,
.sgm-widget .sgm-store-region__item-meta * {
    color: #5c514b !important;
}
/* Overskrift "Andre" og "5 butikker" */
.sgm-widget .sgm-store-region__title,
.sgm-widget .sgm-store-region__title * {
    color: #1f1a17 !important;
    font-weight: 700 !important;
}
.sgm-widget .sgm-store-region__count {
    color: #6f625a !important;
}
/* ⭐⭐⭐ NY: Region-kort SKAL matche sidebar kort (logo + info + følg-knap), ingen presset tekst! */
.sgm-widget .sgm-store-region__item.sgm-store-map__item {
    width: 100% !important;
    padding: 14px 16px 14px 16px !important;
    margin: 0 !important;
}
/* Sikre at item-shell (sidebar layout) også virker i region grid */
.sgm-widget .sgm-store-region__item.sgm-store-map__item .sgm-store-map__item-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.sgm-widget .sgm-store-region__item.sgm-store-map__item .sgm-store-map__item-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}
.sgm-widget .sgm-store-region__item.sgm-store-map__item .sgm-store-map__item-content {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}
.sgm-widget .sgm-store-region__item.sgm-store-map__item .sgm-store-map__item-actions {
    display: flex;
    justify-content: flex-end;
    padding-left: 0;
    margin-left: auto;
}

/* ================================================================================
   📱⭐⭐⭐ KOMPLET MOBIL VERSION AF BUTIKSKORTET (Store Map) — 3 breakpoints
   ================================================================================ */

/* ─────────────────────────────────────────────────────────
   📟 TABLET (≤1024px) — Stack layout, 2×1 grid, mindre kort
   ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Layout stack: [Sidebar (filter + TOP 4)] → [Map] → [Andre bundgrid] */
  .sgm-store-map__layout {
    grid-template-columns: 1fr !important;
    gap: 20px 0 !important;       /* Luft mellem sidebar stack + kort (når de stables lodret) */
  }

  .sgm-store-map__sidebar {
    position: static !important;  /* INGEN sticky på tablet/mobil (fylder hele bredden!) */
    padding-right: 0 !important;
    gap: 12px 0 !important;       /* Mindre gap mellem filter-panel + TOP 4 kort */
  }

  .sgm-store-map__resizer {
    display: none !important;     /* Skjul den lodrette træk-handtag på mobil */
  }

  .sgm-store-map__map {
    margin-left: 0 !important;
    height: 580px !important;     /* Mindre kort på tablet (720→580px) */
    min-height: 580px !important;
    border-radius: 22px !important; /* Mindre radius */
  }

  /* Filter form: lidt mere kompakt gap */
  .sgm-filter-form {
    gap: 12px !important;
  }

  /* TOP 4 sidebar kort + bundkort region (Andre): 2 kolonner på tablet */
  .sgm-store-region__list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .sgm-store-region + .sgm-store-region {
    margin-top: 18px !important;
  }
  .sgm-store-region__browser {
    margin-top: 18px !important;
  }
}

/* ─────────────────────────────────────────────────────────
   📱 MOBIL (≤767px) — 1 kolonne, touch-venligt, compact kort
   ───────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .sgm-store-map__layout {
    grid-template-columns: 1fr !important;
    gap: 14px 0 !important;       /* Mindre luft mellem sektioner på smal skærm */
  }

  .sgm-store-map__sidebar {
    position: static !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    gap: 10px 0 !important;
  }

  /* KORT: mindre højde + mindre radius (pænere på smal skærm!) */
  .sgm-store-map__map {
    margin-left: 0 !important;
    height: 420px !important;     /* 720 → 420px: passer perfekt i 1 hånds-tag på mobil */
    min-height: 420px !important;
    border-radius: 18px !important;
  }

  /* FILTER-PANEL: mindre side-padding (mere plads til tekst på smal skærm!) */
  .sgm-filter-panel {
    padding: 0 12px 12px 12px !important;  /* sider 16→12px, bund 16→12px (TOP ER 0! = alignment OK) */
    border-radius: 18px !important;        /* mindre radius */
  }

  /* HEADER (Find butik + Skjul filtre): mindre padding, mindre font */
  .sgm-filter-panel__header,
  .sgm-store-map .sgm-filter-panel__header,
  .sgm-event-map .sgm-filter-panel__header {
    padding: 22px 14px 12px 14px !important;  /* top22, sider14, ned12 = mere luft men ikke overkill */
    gap: 8px !important;
  }
  .sgm-filter-panel__title {
    font-size: 19px !important;  /* 20→19px: lidt mindre titel */
  }
  .sgm-filter-panel__toggle {
    font-size: 10px !important;  /* 11→10px */
    padding: 7px 13px !important; /* 8/16 → 7/13px: mindre chip-knap */
  }
  /* MINDRE gap mellem header og body */
  .sgm-store-map .sgm-filter-panel__body,
  .sgm-event-map .sgm-filter-panel__body {
    margin-top: 6px !important;  /* 8→6px */
  }

  /* FILTER-GRID (2x2 på desktop) → ALTID 1 KOLONNE på mobil! */
  .sgm-store-map__filters {
    grid-template-columns: 1fr !important;
    gap: 12px 12px !important;
  }
  .sgm-filter-form {
    gap: 12px !important;
  }
  .sgm-filter-group {
    gap: 5px !important;
  }
  /* Labels (Postnummer/By/Kategori): lidt mindre på mobil */
  .sgm-filter-label {
    font-size: 9.5px !important;
    letter-spacing: 0.10em !important;
  }
  /* Spacer label til Nulstil filter: SKJUL på mobil (den skal bare stå under Kategori i 1 kol!) */
  .sgm-filter-label--spacer {
    display: none !important;
  }

  /* Geo-søg (Postnummer/by input + brun Søg knap):
     Sørg for at knappen IKKE bliver for smal på mobil */
  .sgm-store-map__geo-row {
    height: 44px !important;
    gap: 6px !important;
  }
  .sgm-store-map__manual-geo-btn {
    flex: 0 0 38% !important;  /* knap minimum 38% bredde */
    padding: 0 14px !important;
    font-size: 13px !important;
  }

  /* Nulstil filter knap: 100% bredde allerede, men bekræft touch højde */
  .sgm-store-map__reset-btn {
    height: 44px !important;
    font-size: 13px !important;
  }

  /* ── BUTIKSKORT (sidebar TOP 4 + bundlisten "Andre") ── */
  /* Gør kort MERE COMPACTE (pas bedre på smal skærm!) */
  .sgm-store-map__item {
    padding: 10px !important;  /* standard 10/12 → 10px */
  }
  .sgm-store-map__item-body {
    gap: 10px !important;
  }
  /* Logo: stadig 44px men lige lidt mere afstand */
  .sgm-store-map__item-image {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
  }
  /* "Følg butik" knap: kompakt men stadig touch-vænlig (≥36px) */
  .sgm-store-map__item-action {
    min-height: 36px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  /* ── BUNDGRID "Andre": 1 KOLONNE (ingen spild af plads!) ── */
  .sgm-store-region__list {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  /* Overordnet "Andre" sektion: lidt mindre afstand til øverste del */
  .sgm-store-region__browser,
  .sgm-store-map__region-browser {
    margin-top: 16px !important;
  }
  .sgm-store-region + .sgm-store-region {
    margin-top: 16px !important;
  }
  /* Region-kort padding: mere kompakt (fra 14/16 til 12px) */
  .sgm-widget .sgm-store-region__item.sgm-store-map__item,
  .sgm-store-region__item {
    padding: 12px !important;
    border-radius: 16px !important;
  }
  /* Region titel (Andre) + tæller: lidt mindre */
  .sgm-store-region__title {
    font-size: 17px !important;
  }
  .sgm-store-region__count {
    font-size: 11px !important;
  }

  /* SIDEBAR LISTE (TOP 4): gap mindre */
  .sgm-store-map__list {
    gap: 7px !important;
  }

  /* AKTIVE FILTER CHIPS: mere compact */
  .sgm-applied-filters {
    padding: 10px 0 8px 0 !important;
    gap: 8px !important;
  }
  .sgm-applied-filters__chips {
    gap: 5px !important;
  }
  .sgm-smart-chip {
    min-height: 26px !important;
    padding: 2px 3px 2px 8px !important;
    font-size: 12px !important;
  }

  /* TAGS: lidt mindre */
  .sgm-store-map__tag {
    min-height: 28px !important;
    padding: 3px 8px !important;
    font-size: 12.5px !important;
  }
}

/* ─────────────────────────────────────────────────────────
   📱 LILLE MOBIL (≤480px) — Ultra-compact, 360px skærme
   ───────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  /* KORT: ENDNU MINDRE højde (mest muligt overskud til lister!) */
  .sgm-store-map__map {
    height: 360px !important;
    min-height: 360px !important;
    border-radius: 16px !important;
  }

  .sgm-store-map__layout {
    gap: 12px 0 !important;
  }

  /* FILTER-PANEL: endnu mindre side-padding */
  .sgm-filter-panel {
    padding: 0 10px 10px 10px !important;
    border-radius: 16px !important;
  }

  /* HEADER: endnu mindre padding + mindre skrift */
  .sgm-filter-panel__header,
  .sgm-store-map .sgm-filter-panel__header,
  .sgm-event-map .sgm-filter-panel__header {
    padding: 20px 12px 10px 12px !important;
    gap: 6px !important;
  }
  .sgm-filter-panel__title {
    font-size: 18px !important;  /* 20→18px: passer 100% på 360px skærm */
  }
  .sgm-filter-panel__toggle {
    font-size: 9.5px !important;
    letter-spacing: 0.10em !important;
    padding: 6px 12px !important;
  }

  /* Geo-søg knap: endnu mindre (ikke for smal!) */
  .sgm-store-map__manual-geo-btn {
    flex: 0 0 36% !important;
    padding: 0 10px !important;
    font-size: 12.5px !important;
  }

  /* ── BUTIKSKORT (logo + titel + meta + knap) ── */
  .sgm-store-map__item {
    padding: 9px !important;
    border-radius: 14px !important;
  }
  .sgm-store-map__item-body {
    gap: 8px !important;
  }
  .sgm-store-map__item-image {
    width: 38px !important;   /* LOGO MINDRE (42→38px) = mere tekst plads */
    height: 38px !important;
  }
  .sgm-store-map__item-eyebrow {
    font-size: 9.5px !important;
  }
  .sgm-store-map__item-title {
    font-size: 14px !important;
  }
  .sgm-store-map__item-meta {
    font-size: 11.5px !important;
  }
  /* Følg butik knap: MINDRE men stadig touch-vænlig (36px!) */
  .sgm-store-map__item-action {
    min-height: 34px !important;
    padding: 5px 10px !important;
    font-size: 11.5px !important;
  }

  /* ── REGION ("Andre") bundkort ── */
  .sgm-store-region__list {
    gap: 8px !important;
  }
  .sgm-widget .sgm-store-region__item.sgm-store-map__item,
  .sgm-store-region__item {
    padding: 10px !important;
    border-radius: 14px !important;
  }
  .sgm-store-region__title {
    font-size: 16px !important;
  }
  .sgm-store-region__count {
    font-size: 10.5px !important;
  }
  .sgm-store-region__browser,
  .sgm-store-map__region-browser {
    margin-top: 14px !important;
  }

  /* SIDEBAR TOP 4: mindre gap */
  .sgm-store-map__list {
    gap: 6px !important;
  }

  /* Filter-form gaps: endnu mindre (maximerer plads!) */
  .sgm-store-map__filters {
    gap: 10px 10px !important;
  }
  .sgm-filter-form {
    gap: 10px !important;
  }
  .sgm-filter-group {
    gap: 4px !important;
  }
  .sgm-filter-label {
    font-size: 9px !important;
  }
}

/* ============================================================
   RECIPE REQUEST WIDGET v0.9.6
   ============================================================ */
.sgm-rr { position: relative; width: 100%; max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.sgm-rr *, .sgm-rr *::before, .sgm-rr *::after { box-sizing: border-box; }
.sgm-rr__inner {
  background: linear-gradient(180deg, #fffaf0 0%, #fff3d8 100%);
  border: 1px solid rgba(217,164,65,0.25);
  border-radius: 22px;
  padding: 36px 42px;
  box-shadow: 0 24px 60px rgba(180,120,40,0.12);
  backdrop-filter: blur(4px);
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 640px) { .sgm-rr__inner { padding: 26px 20px; border-radius: 18px; } }
.sgm-rr__eyebrow { margin: 0 0 8px 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #92400e; opacity: 0.85; }
.sgm-rr__heading { margin: 0 0 16px 0; font-size: 30px; line-height: 1.15; font-weight: 700; color: #3f2a14; letter-spacing: -0.01em; }
@media (max-width: 640px) { .sgm-rr__heading { font-size: 24px; } }
.sgm-rr__intro { margin: 0 0 24px 0; font-size: 15px; line-height: 1.6; color: #5c4528; }
.sgm-rr__intro p { margin: 0 0 10px 0; }
.sgm-rr__intro p:last-child { margin-bottom: 0; }
.sgm-rr__hint {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(146,64,14,0.15);
  border-left: 4px solid #d97706;
  border-radius: 10px;
  margin: 0 0 22px 0;
}
.sgm-rr__hint-text { flex: 1 1 260px; color: #5c4528; font-size: 13.5px; line-height: 1.55; }
.sgm-rr__hint-text p { margin: 0; }
.sgm-rr__hint-btn { min-height: 40px; padding: 8px 18px; flex-shrink: 0; }
.sgm-rr__form { position: relative; }
.sgm-rr__row { margin: 0 0 14px 0; }
.sgm-rr__row:last-child { margin-bottom: 0; }
.sgm-rr__row--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .sgm-rr__row--grid { grid-template-columns: 1fr; } }
.sgm-rr__field { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.sgm-rr__label { font-size: 12.5px; font-weight: 600; color: #6b4a2a; letter-spacing: 0.01em; }
.sgm-rr__input,
.sgm-rr__select,
.sgm-rr__textarea {
  width: 100%; margin: 0; padding: 12px 15px;
  font-size: 14.5px; line-height: 1.5;
  color: #3f2a14; background: #ffffff;
  border: 1.5px solid rgba(217,164,65,0.35);
  border-radius: 10px;
  font-family: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  -webkit-appearance: none; appearance: none;
}
.sgm-rr__textarea { min-height: 110px; resize: vertical; }
.sgm-rr__input:focus, .sgm-rr__select:focus, .sgm-rr__textarea:focus {
  outline: none; border-color: #b45309;
  box-shadow: 0 0 0 4px rgba(180,83,9,0.12);
  transform: translateY(-1px);
}
.sgm-rr__select {
  background-image:
    linear-gradient(45deg, transparent 50%, #78350f 50%),
    linear-gradient(135deg, #78350f 50%, transparent 50%),
    linear-gradient(to right, #e8d5b1, #e8d5b1);
  background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 14px) calc(1em + 2px), calc(100% - 2.5em) 0.5em;
  background-size: 6px 6px, 6px 6px, 1.5px 60%;
  background-repeat: no-repeat;
  padding-right: 42px;
}
.sgm-rr__row--actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; }
.sgm-rr__submit {
  min-height: 52px; padding: 14px 28px !important;
  font-size: 15.5px !important; font-weight: 700 !important;
  border-radius: 999px !important;
