.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-section-heading {
  margin-bottom: 24px;
}

.sgm-section-heading__eyebrow,
.sgm-card__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #59645b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-section-heading__eyebrow--categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sgm-section-heading__eyebrow-link {
  color: #59645b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 0.15s ease, text-decoration 0.15s ease, color 0.15s ease;
}

.sgm-section-heading__eyebrow-link.is-primary {
  color: #59645b;
}

.sgm-section-heading__eyebrow-link--static,
.sgm-section-heading__eyebrow-link--static:hover,
.sgm-section-heading__eyebrow-link--static:focus-visible {
  cursor: default !important;
  text-decoration: none !important;
  opacity: 1 !important;
  pointer-events: none !important;
  color: inherit !important;
}

.sgm-widget.sgm-single-recipe .sgm-section-heading__eyebrow-link--static:link,
.sgm-widget.sgm-single-recipe .sgm-section-heading__eyebrow-link--static:visited,
.sgm-widget.sgm-single-recipe .sgm-section-heading__eyebrow-link--static:hover {
  cursor: default !important;
  text-decoration: none !important;
  pointer-events: none !important;
}

.sgm-section-heading__eyebrow-link:hover,
.sgm-section-heading__eyebrow-link:focus-visible {
  text-decoration: underline;
  opacity: 0.85;
  outline: none;
}

.sgm-section-heading__eyebrow-sep {
  display: inline-block;
  color: #d7cabf;
  font-weight: 700;
  line-height: 1;
  margin: 0 2px;
  user-select: none;
}

.sgm-section-heading__title,
.sgm-card__title {
  margin: 0;
}

.sgm-widget.sgm-search-hero,
.sgm-search-hero {
  position: relative;
  overflow: visible !important;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.sgm-search-hero__form {
  overflow: visible !important;
  display: grid;
  gap: 16px;
}

.sgm-search-hero__bar {
  position: relative;
  overflow: visible !important;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px 12px 18px;
  background: #f1ede8;
  border-radius: 999px;
}

.sgm-search-hero__field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.sgm-search-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  color: #3f3833;
  flex-shrink: 0;
}

.sgm-search-hero__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.sgm-search-hero__input {
  width: 100%;
  min-height: 62px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3b342f;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  box-shadow: none;
}

.sgm-search-hero input.sgm-search-hero__input,
.sgm-search-hero input.sgm-search-hero__input:hover,
.sgm-search-hero input.sgm-search-hero__input:focus,
.sgm-search-hero input.sgm-search-hero__input:active {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.sgm-search-hero__input::placeholder {
  color: #59645b;
}

.sgm-search-hero__input:focus {
  outline: none;
  box-shadow: none;
}

.sgm-search-hero__suggestions {
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  right: -14px;
  z-index: 999;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e6ddd4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(31, 26, 23, 0.12);
}

.sgm-search-hero__suggestions[hidden],
.sgm-search-hero__suggestions:empty {
  display: none !important;
}

.sgm-search-hero__suggestion-section {
  display: grid;
  gap: 8px;
}

.sgm-search-hero__suggestion-heading {
  color: #7d6f65;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sgm-search-hero__suggestion-list {
  display: grid;
  gap: 8px;
}

.sgm-search-hero__suggestion {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #efe8e1;
  border-radius: 16px;
  background: #fbf8f4;
  color: #1f1a17;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sgm-search-hero__suggestion.is-recipe {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.sgm-search-hero__suggestion:hover,
.sgm-search-hero__suggestion:focus-visible {
  background: #f6f1eb;
  border-color: #e6ddd4;
  outline: none;
}

.sgm-search-hero__suggestion:active {
  transform: translateY(1px);
}

.sgm-search-hero__suggestion-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sgm-search-hero__suggestion-thumb {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 14px;
  background: #f1e9e1;
  border: 1px solid #efe2d7;
}

.sgm-search-hero__suggestion-thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sgm-search-hero__suggestion-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.sgm-search-hero__suggestion-meta {
  color: #5c514b;
  font-size: 13px;
  line-height: 1.4;
}

.sgm-search-hero__suggestion-footer {
  color: #7d6f65;
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 4px 0;
}

.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__chips-wrap {
  display: grid;
  gap: 10px;
}

.sgm-search-hero__chips-heading {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-search-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
  transform-origin: top left;
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.32s ease,
    filter 0.3s ease;
  max-height: 120px;
  overflow: hidden;
  will-change: opacity, transform;
}

.sgm-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ebe6df;
  color: #5b524b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    opacity 0.28s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.sgm-search-hero.is-search-engaged .sgm-search-hero__chips {
  opacity: 0;
  transform: translateY(-26px) scale(0.96);
  max-height: 0;
  margin-top: -8px;
  filter: blur(4px);
  pointer-events: none;
}

.sgm-search-hero.is-search-engaged .sgm-chip {
  opacity: 0;
  transform: translateY(-18px) scale(0.94);
}

.sgm-search-hero__chips .sgm-chip:nth-child(2) {
  transition-delay: 0.02s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(3) {
  transition-delay: 0.04s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(4) {
  transition-delay: 0.06s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(5) {
  transition-delay: 0.08s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(6) {
  transition-delay: 0.1s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(7) {
  transition-delay: 0.12s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(8) {
  transition-delay: 0.14s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(9) {
  transition-delay: 0.16s;
}

.sgm-search-hero__chips .sgm-chip:nth-child(10) {
  transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  .sgm-search-hero__chips,
  .sgm-chip {
    transition: none;
  }
}

.sgm-chip:hover,
.sgm-chip:focus-visible {
  background: #dfd8d0;
  color: #1f1a17;
  outline: none;
}

/* ================================================================
   📱 IPHONE / MOBIL SØGFIX (max-width: 767px)
   - Forslagene kommer OVER søgeboksen i stedet for UNDER
   - Fjerner iOS accessory bar (pil op/ned + flu-ben/dismiss knap)
     så meget som muligt via input styling
   - position: FIKSERET til bundet af synlig vindue (visualViewport)
   ============================================================== */
@media (max-width: 767px) {
  /* Input feltet: iPhone specifikke tricks mod accessory bar (pil op/ned + dismiss) */
  .sgm-search-hero__input {
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: text;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
  }

  /* Når søg er i gang = mobil modal-mode: lås baggrund for scroll MEN
     BRUG IKKE position:fixed! Det ødelægger form submit flow når layoutet hopper.
     Brug bare overflow:hidden + html lås, så siden ikke kan rulles mens søg er åben. */
  html:has(body.sgm-search-open),
  body.sgm-search-open {
    overflow: hidden !important;
    overscroll-behavior: contain !important;
  }
  body.sgm-search-open {
    touch-action: pan-y !important;
  }

  /* CHIPS skjules når søg er aktiv (standard men sikret her) */
  .sgm-search-hero.is-search-focused .sgm-search-hero__chips-wrap {
    display: none !important;
  }

  /* 📱 Mobil suggestions: POSITIONERING STYRES UDENDE af JAVASCRIPT inline-style!
     (fordi vi flytter suggestions DIV'en direkte ind i document.body
      for at undgå "containing block"-problemer med forældre-der-har-transform).
     Her står KUN defaults (baggrund, skygger, border-radius, animation). */
  .sgm-search-hero__suggestions {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 20px !important;
    box-shadow:
      0 28px 70px rgba(31, 26, 23, 0.18),
      0 -2px 12px rgba(31, 26, 23, 0.06) !important;
    background: #fffaf6 !important;
    animation: sgm-search-popover 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  @keyframes sgm-search-popover {
    from { opacity: 0; transform: translateY(8px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
  }

  /* Sørg for at bar er fixed til bundet hvis søg er åbent */
  .sgm-search-hero.is-search-focused .sgm-search-hero__bar {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 999998;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }

  /* Større/tændere knap for ældre fingre */
  .sgm-search-hero__button {
    min-height: 52px !important;
    min-width: 130px !important;
  }

  .sgm-search-hero__suggestion {
    min-height: 52px;
    padding: 14px 16px;
  }
  .sgm-search-hero__suggestion-thumb {
    width: 54px !important;
    height: 54px !important;
  }
  .sgm-search-hero__suggestion-title {
    font-size: 17px !important;
    line-height: 1.2;
  }
  .sgm-search-hero__suggestion-meta {
    font-size: 13px !important;
  }
}

/* --- Lille mobil ekstra (≤420px) --- */
@media (max-width: 420px) {
  .sgm-search-hero__bar {
    padding: 10px 12px 10px 14px !important;
    gap: 10px !important;
  }
  .sgm-search-hero__input {
    font-size: 20px !important;
    min-height: 52px !important;
  }
  .sgm-search-hero__button {
    min-height: 48px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
    min-width: 110px !important;
  }
}

/* ================================================================
   🏆 NUCLEÆR SØG-FORSLAG STANDALONE OVERRIDE
   (parent UAFHÆNGIG — virker uanset om suggestions er i
    form, .sgm-widget ELLER direkte i <body>)
    Alle links + tekster: ingen blå farve, ingen underline.
    ============================================================== */
.sgm-suggestions-body-root,
.sgm-search-hero__suggestions,
.sgm-search-hero__suggestion,
.sgm-search-hero__suggestion-section,
.sgm-search-hero__suggestion-heading,
.sgm-search-hero__suggestion-list,
.sgm-search-hero__suggestion-content,
.sgm-search-hero__suggestion-footer {
  -webkit-tap-highlight-color: transparent;
}
.sgm-search-hero__suggestion,
.sgm-search-hero__suggestion:visited,
.sgm-search-hero__suggestion:any-link,
.sgm-suggestions-body-root a.sgm-search-hero__suggestion,
.sgm-widget a.sgm-search-hero__suggestion,
.sgm-search-hero a.sgm-search-hero__suggestion {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
  background: #fff8f0 !important;
  width: 100% !important;
  text-align: left !important;
  text-decoration: none !important;
  color: inherit !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: background 0.16s ease-out !important;
}
.sgm-search-hero__suggestion:hover,
.sgm-search-hero__suggestion:active,
.sgm-search-hero__suggestion:focus-visible {
  background: #faeee0 !important;
  text-decoration: none !important;
  color: inherit !important;
}
.sgm-search-hero__suggestion-thumb {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #f0e7dc !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
}
.sgm-search-hero__suggestion-thumb-image,
.sgm-search-hero__suggestion-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 16px !important;
}
.sgm-search-hero__suggestion-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 4px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
.sgm-search-hero__suggestion-title,
.sgm-search-hero__suggestion-title:any-link,
.sgm-suggestions-body-root .sgm-search-hero__suggestion-title,
.sgm-search-hero__suggestion a.sgm-search-hero__suggestion-title {
  display: block !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 19px !important;
  line-height: 1.18 !important;
  color: #1f1a17 !important;
  text-align: left !important;
  text-decoration: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  word-break: break-word !important;
}
.sgm-search-hero__suggestion-meta,
.sgm-suggestions-body-root .sgm-search-hero__suggestion-meta {
  display: block !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em !important;
  color: #6b594c !important;
  text-align: left !important;
  text-decoration: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  text-transform: none !important;
}
.sgm-search-hero__suggestion-section {
  padding: 14px 16px 8px 16px !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.sgm-search-hero__suggestion-heading,
.sgm-suggestions-body-root .sgm-search-hero__suggestion-heading {
  display: block !important;
  font-family: "Inter", -apple-system, sans-serif !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #867265 !important;
  text-align: left !important;
  padding: 0 0 8px 0 !important;
  margin: 0 0 6px 0 !important;
  border-bottom: 1px solid #efe6dc !important;
  background: transparent !important;
  text-decoration: none !important;
}
.sgm-search-hero__suggestion-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 2px 0 6px 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: transparent !important;
}
.sgm-search-hero__suggestion-footer {
  display: block !important;
  padding: 10px 16px 16px 16px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 500 !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  color: #756458 !important;
  text-align: left !important;
  background: transparent !important;
  text-decoration: none !important;
  border-top: 1px solid #efe6dc !important;
  margin-top: 4px !important;
}
/* Mobil specifik forstørrelse af forslag (sektionen er allerede wrapper i .sgm-widget): */
@media (max-width: 767px) {
  .sgm-search-hero__suggestion,
  .sgm-suggestions-body-root .sgm-search-hero__suggestion {
    min-height: 52px !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
  }
  .sgm-search-hero__suggestion-thumb {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
  }
  .sgm-search-hero__suggestion-title {
    font-size: 18px !important;
  }
  .sgm-search-hero__suggestion-meta {
    font-size: 13px !important;
  }
  .sgm-suggestions-body-root {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
}

.sgm-category-grid,
.sgm-card-grid {
  display: grid;
  gap: 24px;
}

.sgm-empty-state {
  padding: 32px;
  border: 1px solid #e6ddd4;
  border-radius: 24px;
  background: #f6f1eb;
  color: #5c514b;
}

.sgm-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sgm-popular-categories .sgm-category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.sgm-popular-categories__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.sgm-popular-categories__heading-copy {
  min-width: 0;
}

.sgm-popular-categories__cta {
  min-width: 0;
  flex-shrink: 0;
}

.sgm-popular-categories .sgm-category-card__title {
  padding-top: 12px;
  font-size: 18px;
}

.sgm-popular-categories .sgm-category-card__meta {
  padding-top: 6px;
  padding-bottom: 14px;
  font-size: 10px;
}

.sgm-popular-categories .sgm-category-card__link {
  display: flex;
  height: 100%;
}

.sgm-popular-categories .sgm-category-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sgm-popular-categories .sgm-category-card__image {
  flex: 0 0 auto;
}

.sgm-popular-categories .sgm-category-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.sgm-popular-categories .sgm-category-card__meta {
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sgm-yarn-archive__filters {
  margin-bottom: 24px;
}

.sgm-yarn-archive__filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.sgm-yarn-archive__filter-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  white-space: nowrap;
}

.sgm-yarn-archive__filter-actions .sgm-search-hero__button {
  min-width: 132px;
}

.sgm-yarn-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.sgm-yarn-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sgm-widget-surface);
  border: 1px solid var(--sgm-widget-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease;
  height: 100%;
}

.sgm-yarn-card:hover,
.sgm-yarn-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.sgm-yarn-card__media {
  background: var(--sgm-widget-surface-alt);
}

.sgm-yarn-card__media img,
.sgm-yarn-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.sgm-yarn-card__body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 6px;
}

.sgm-yarn-card__eyebrow {
  color: var(--sgm-widget-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgm-yarn-card__title {
  color: var(--sgm-widget-heading);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.sgm-yarn-single {
  max-width: 1400px;
  margin: 0 auto;
}

.sgm-yarn-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
  align-items: start;
  justify-content: start;
}

.sgm-yarn-single__media {
  border: 1px solid var(--sgm-widget-border);
  border-radius: 28px;
  overflow: hidden;
  background: var(--sgm-widget-surface-alt);
  width: 100%;
  max-width: 880px;
  justify-self: start;
}

.sgm-yarn-single__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  box-sizing: border-box;
  padding: 22px;
  object-fit: contain;
}

.sgm-yarn-single__image--placeholder {
  background: linear-gradient(135deg, #ead8ca 0%, #f8f3ed 100%);
}

.sgm-yarn-single__content {
  min-width: 0;
}

.sgm-yarn-single__eyebrow {
  color: var(--sgm-widget-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sgm-yarn-single__title {
  margin: 10px 0 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.05;
}

.sgm-yarn-single__description {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--sgm-widget-border);
  background: var(--sgm-widget-surface-alt);
  color: var(--sgm-widget-text);
  font-size: 14px;
  line-height: 1.6;
}

.sgm-yarn-single__description p {
  margin: 0;
}

.sgm-yarn-single__details {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--sgm-widget-border);
  background: var(--sgm-widget-surface);
}

.sgm-yarn-single__details-title {
  margin-bottom: 10px;
  color: var(--sgm-widget-heading);
  font-size: 14px;
  font-weight: 900;
}

.sgm-yarn-single__details-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  margin: 0;
}

.sgm-yarn-single__details-grid dt {
  margin: 0;
  color: var(--sgm-widget-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgm-yarn-single__details-grid dd {
  margin: 0;
  color: var(--sgm-widget-heading);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.sgm-yarn-single__body,
.sgm-yarn-single__recipes,
.sgm-yarn-single__matches {
  margin-top: 32px;
}

.sgm-yarn-single__body {
  max-width: 920px;
  padding: 24px 28px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 24px;
  background: var(--sgm-widget-surface-alt);
  color: var(--sgm-widget-text);
  line-height: 1.75;
}

.sgm-yarn-single__body > *:first-child {
  margin-top: 0;
}

.sgm-yarn-single__body > *:last-child {
  margin-bottom: 0;
}

.sgm-yarn-single__section-title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.15;
}

.sgm-yarn-single__matches-title {
  margin-bottom: 14px;
}

.sgm-yarn-single__match-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.sgm-yarn-match-card {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--sgm-widget-border);
  background: var(--sgm-widget-surface);
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.18s ease;
}

.sgm-yarn-match-card:hover,
.sgm-yarn-match-card:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.sgm-yarn-match-card__media img,
.sgm-yarn-match-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--sgm-widget-surface-alt);
}

.sgm-yarn-match-card__body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 6px;
}

.sgm-yarn-match-card__eyebrow {
  color: var(--sgm-widget-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgm-yarn-match-card__title {
  color: var(--sgm-widget-heading);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.sgm-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sgm-category-card,
.sgm-card {
  overflow: hidden;
  background: #f6f1eb;
  border-radius: 24px;
  transition: transform 0.18s ease;
}

.sgm-category-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sgm-category-card__link:focus-visible {
  outline: none;
}

.sgm-category-card__link:focus-visible .sgm-category-card,
.sgm-category-card__link:hover .sgm-category-card {
  transform: translateY(-2px);
  transition: transform 0.18s ease;
}

.sgm-category-card__image,
.sgm-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: linear-gradient(135deg, #ead8ca 0%, #f8f3ed 100%);
}

.sgm-category-card__title,
.sgm-category-card__meta {
  margin: 0;
  padding: 0 18px;
}

.sgm-category-card__title {
  padding-top: 16px;
  font-size: 24px;
}

.sgm-category-card__meta {
  padding-top: 8px;
  padding-bottom: 18px;
  color: #7d6f65;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.sgm-card__media {
  position: relative;
  display: block;
}

.sgm-card__media img,
.sgm-card__media .sgm-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.sgm-card__number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #5c4a3d;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: 0.02em;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(80, 58, 40, 0.18), 0 1px 3px rgba(80, 58, 40, 0.12);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.sgm-card__body {
  padding: 18px;
}

.sgm-card__title a {
  color: inherit;
  text-decoration: none;
}

.sgm-card__excerpt {
  margin-top: 12px;
  color: #5c514b;
}

.sgm-card__footer {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(180, 154, 137, 0.22);
  justify-items: start;
}

.sgm-card__meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sgm-card__meta-pill,
.sgm-card__rating-pill {
  text-decoration: none;
  color: inherit;
}

.sgm-card__meta-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(180, 154, 137, 0.28);
  border-radius: 16px;
  background: #faf6f1;
}

.sgm-card__meta-label {
  color: #b48769;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sgm-card__meta-value {
  color: #2f2622;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.sgm-card__meta-pill--inline {
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.sgm-card__meta-pill--inline .sgm-card__meta-label {
  white-space: nowrap;
}

.sgm-card__rating-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(180, 154, 137, 0.28);
  border-radius: 18px;
  background: #fffaf5;
}

.sgm-card__rating-pill--inline {
  flex-wrap: wrap;
}

.sgm-card__rating-stars {
  display: flex;
  gap: 6px;
}

.sgm-card__rating-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(180, 154, 137, 0.55);
  border-radius: 999px;
  color: #d2b09b;
  font-size: 13px;
  line-height: 1;
}

.sgm-card__rating-star.is-active {
  border-color: #c89273;
  background: rgba(200, 146, 115, 0.12);
  color: #c89273;
}

.sgm-card__rating-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sgm-card__rating-pill--inline .sgm-card__rating-copy {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sgm-card__rating-title {
  color: #b48769;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sgm-card__rating-text {
  color: #5c514b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.sgm-card__meta-pill:hover,
.sgm-card__meta-pill:focus-visible,
.sgm-card__rating-pill:hover,
.sgm-card__rating-pill:focus-visible {
  border-color: rgba(180, 120, 83, 0.45);
  background: #fff;
  transform: translateY(-1px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sgm-archive-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.sgm-archive-page {
  padding: 24px 24px 72px;
}

.sgm-archive-page__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.sgm-archive-page__hero {
  margin-bottom: 28px;
}

.sgm-archive-page__title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 0.98;
}

.sgm-archive-page__description {
  max-width: 760px;
  margin-top: 14px;
  color: #5c514b;
  font-size: 18px;
  line-height: 1.7;
}

.sgm-archive-page__description p {
  margin: 0;
}

.sgm-archive-page__description p + p {
  margin-top: 14px;
}

.sgm-designer-archive__hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
}

.sgm-designer-archive__media {
  display: block;
}

.sgm-designer-archive__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  object-fit: cover;
  object-position: center;
}

.sgm-designer-archive__content {
  display: grid;
  gap: 16px;
}

.sgm-designer-archive__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.sgm-designer-archive__button {
  min-width: 240px;
}

.sgm-archive-sidebar {
  position: sticky;
  top: 24px;
  height: auto !important;
  max-height: none !important; /* ⭐ INGEN fast højde → sidebar UDVIDER SIG! */
  min-height: 0 !important;
}

.sgm-filter-panel {
  /* 🎯 VIGTIGT: INGEN padding i TOP! (skal flugte EKSAKT med kortets øverste kant!) */
  padding: 0 16px 16px 16px !important;
  border-radius: 18px;
  background: #f6f1eb;
  height: auto !important;
  max-height: none !important; /* ⭐ INGEN fast højde! */
  overflow-y: visible !important; /* ⭐ INGEN SKROLLBAR → ALT SYNLIGT! */
  overflow-x: hidden !important;
  overscroll-behavior: auto;
  scrollbar-width: none !important; /* ⭐ SKJUL scrollbar for Firefox! */
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
/* ⭐ SKJUL scrollbar i Chrome/Safari/Edge */
.sgm-filter-panel::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.sgm-filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 28px 22px 18px 22px !important;
}
/* ⭐ Højere specificity = sikrer at Elementor/tema IKKE overskriver padding! */
.sgm-store-map .sgm-filter-panel__header,
.sgm-event-map .sgm-filter-panel__header {
  padding: 28px 22px 18px 22px !important;
}

.sgm-filter-panel__title {
  margin: 0;
  font-size: 20px;  /* Lidt større titel! */
  line-height: 1.1;
  color: #1f1a17 !important;
}

.sgm-filter-panel__toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e6ddd4;
  border-radius: 999px;
  background: transparent;
  color: #7d6f65;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
  line-height: 1;
}

.sgm-filter-panel__toggle:hover,
.sgm-filter-panel__toggle:focus-visible {
  background: #ebe6df;
  border-color: #d9cdc2;
  color: #1f1a17;
  outline: none;
}

.sgm-widget.sgm-store-map .sgm-filter-panel__toggle,
.sgm-widget.sgm-event-map .sgm-filter-panel__toggle {
  background: transparent !important;
  border-color: #e6ddd4 !important;
  color: #1f1a17 !important;
  opacity: 1 !important;
}

.sgm-widget.sgm-store-map .sgm-filter-panel__toggle:hover,
.sgm-widget.sgm-store-map .sgm-filter-panel__toggle:focus-visible,
.sgm-widget.sgm-event-map .sgm-filter-panel__toggle:hover,
.sgm-widget.sgm-event-map .sgm-filter-panel__toggle:focus-visible {
  background: #1f1a17 !important;
  border-color: #1f1a17 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

.sgm-store-map .sgm-filter-panel__body,
.sgm-event-map .sgm-filter-panel__body {
  /* Lidt mindre gap (header har allerede padding nedad!) */
  margin-top: 8px;
}

.sgm-store-map.is-filters-collapsed .sgm-filter-panel__body,
.sgm-event-map.is-filters-collapsed .sgm-filter-panel__body {
  display: none;
}

.sgm-filter-form {
  display: grid;
  gap: 14px;
}

.sgm-filter-group {
  display: grid;
  gap: 6px;
}

.sgm-filter-label {
  color: #7d6f65;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.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;
}

/* ================================================================================
   🏷️ AKTIVE FILTER CHIPS (OVERST i panelet!) med NULSTIL-KNAP
   ================================================================================ */
.sgm-applied-filters {
  display: grid;
  gap: 10px;
  padding: 12px 0 10px 0;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(176, 138, 116, 0.12);
}
.sgm-applied-filters--empty .sgm-applied-filters__chips {
  display: none !important;
}
.sgm-applied-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 6px;
  align-items: center;
}

/* ===============================================
   Smart chip (aktive filtre - fra render_smart_filter_chips_html)
   =============================================== */
.sgm-applied-filters__chips .sgm-smart-filters {
  width: 100%;
}
.sgm-applied-filters__chips .sgm-smart-filters__header {
  display: none; /* Vi viser ikke "Filtrerer på:" headline inne i sidebar applied! */
}
.sgm-applied-filters__chips .sgm-smart-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sgm-applied-filters__chips .sgm-smart-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 4px 3px 10px;
  background: #faf6f1;
  border: 1px solid #e6ddd4;
  border-radius: 999px;
  color: #4e433d;
  font-size: 12.5px;
  line-height: 1.3;
  transition: all 0.15s ease;
}
.sgm-applied-filters__chips .sgm-smart-chip:hover {
  background: #f3ece3;
  border-color: #d7bfac;
}
.sgm-applied-filters__chips .sgm-smart-chip__emoji {
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.sgm-applied-filters__chips .sgm-smart-chip__prefix {
  color: #8c7365;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.sgm-applied-filters__chips .sgm-smart-chip__value {
  font-weight: 600;
  color: #1f1a17;
  white-space: nowrap;
}
.sgm-applied-filters__chips .sgm-smart-chip__remove {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(47, 39, 35, 0.1);
  color: #4e433d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 22px;
  transition: background 0.15s ease, color 0.15s ease;
}
.sgm-applied-filters__chips .sgm-smart-chip__remove:hover,
.sgm-applied-filters__chips .sgm-smart-chip__remove:focus-visible {
  background: #c73030;
  color: #fff;
  outline: none;
}

/* ---- NULSTIL FILTER KNAP ---- */
.sgm-reset-filters-btn {
  appearance: none;
  -webkit-appearance: none;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 14px 5px 12px;
  background: transparent;
  color: #8c7365;
  border: 1px solid #e6ddd4;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.16s ease;
  line-height: 1.2;
}
.sgm-reset-filters-btn:hover,
.sgm-reset-filters-btn:focus-visible {
  border-color: #b08a74;
  color: #1f1a17;
  background: #faf6f1;
  outline: none;
}
.sgm-reset-filters-btn--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.sgm-reset-filters-btn__icon {
  display: inline-flex;
  color: inherit;
  flex: 0 0 auto;
}

/* ================================================================================
   🎯 FILTER GRUPPE ACCORDION (FOLDET IND DEFAULT!)
   KLIK på header for at folde ud. HUSK at BEHOLDE checkbox + count!
   ================================================================================ */
/* ⭐ Form = FLEX column + GAP, så filtergrupper FÅR MELLEMRUM (ingen overlap!) */
.sgm-filter-form {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important; /* ⭐ MELLEMRUM MELLEM HVER FILTERGRUPPE! */
}
/* EKSTRA sikkerhed: Margin på hver enkelt gruppe, hvis display bliver overskrevet! */
.sgm-filter-form > .sgm-filter-group,
.sgm-filter-form > .sgm-filter-group--accordion {
  margin: 0 !important;
  width: 100% !important;
}
.sgm-filter-form > .sgm-filter-group + .sgm-filter-group,
.sgm-filter-form > .sgm-filter-group--accordion + .sgm-filter-group--accordion,
.sgm-filter-form > .sgm-filter-group + .sgm-filter-group--accordion,
.sgm-filter-form > .sgm-filter-group--accordion + .sgm-filter-group {
  margin-top: 4px !important; /* LIDT ekstra mellemrum i bunden */
}
/* Gammel "plain" (uden accordion) + ny accordion = ens afstand */
.sgm-filter-group,
.sgm-filter-group--accordion {
  border: 1px solid rgba(140, 106, 84, 0.22) !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 14px 14px 14px 14px !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow: hidden !important;
  transition: border-color 0.16s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 3px rgba(31, 26, 23, 0.06) !important;
}
/* Accordion: ingen padding på boks - HELE padding er i header + body! */
.sgm-filter-group--accordion {
  padding: 0 !important;
  gap: 0 !important;
}
.sgm-filter-group:hover,
.sgm-filter-group--accordion:hover {
  border-color: rgba(140, 106, 84, 0.4) !important;
  box-shadow: 0 2px 8px rgba(31, 26, 23, 0.08) !important;
}

/* --- (GAMMEL) Gruppe label for plain groups uden accordion --- */
.sgm-filter-group__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 6px 0;
  border-bottom: 1px solid rgba(176, 138, 116, 0.1);
  margin-bottom: 2px;
  padding-bottom: 10px;
}
.sgm-filter-group__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #1f1a17;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-transform: none;
}

/* --- (NY ACCORDION!) Header knap - PÆN KAFFE-BRUN BAGGRUND + HVID TEKST! --- */
/* ⭐ RADIUS: MATCHER DEN YDRE BOKS (16px!) → INGEN halvcirkel-bue længere! */
.sgm-filter-group__accordion-header {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100% !important;
  border: 0 !important;
  background: linear-gradient(180deg, #8a6f57 0%, #735a46 100%) !important;
  padding: 15px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  cursor: pointer !important;
  color: #ffffff !important;
  text-align: left !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  box-shadow: none !important;
  font-family: inherit !important;
  border-radius: 16px !important; /* 👈 SAMME radius som den hvide ydre boks! (INGEN halvcirkel!) */
  margin: 0 !important;
}
.sgm-filter-group__accordion-header:hover,
.sgm-filter-group__accordion-header:focus-visible {
  background: linear-gradient(180deg, #7a5e47 0%, #664f3d 100%) !important;
  outline: none !important;
  box-shadow: inset 0 0 0 999px rgba(0,0,0,0.06) !important;
}
/* ⭐ NÅR GRUPPEN ER ÅBEN → SLET BUND-RADIUS! Glidende overgang mellem brunt top + hvid krop! */
.sgm-filter-group--accordion.is-open > .sgm-filter-group__accordion-header {
  border-radius: 16px 16px 0 0 !important; /* 👈 TOP runde, BUND FLAD! */
  box-shadow: none !important;
}
.sgm-filter-group__accordion-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  text-decoration: none !important;
}

/* (3) Tæller hvor mange der er valgt i hhv. kategorien! */
.sgm-filter-group__accordion-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 26px !important;
  height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #7a5b48 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  box-shadow: 0 1px 2px rgba(31, 26, 23, 0.15) !important;
}

/* --- Accordion pil (roterer 180deg ved open! + ALTID HVID!) --- */
.sgm-filter-group__accordion-icon {
  flex: 0 0 auto !important;
  color: #ffffff !important;
  width: 20px !important;
  height: 20px !important;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), color 0.2s ease !important;
}
.sgm-filter-group__accordion-header[aria-expanded="true"] .sgm-filter-group__accordion-icon {
  transform: rotate(180deg) !important;
  color: #ffffff !important;
  opacity: 0.95 !important;
}

/* --- Accordion Body (skjult default! med smooth transition!) --- */
.sgm-filter-group__accordion-body {
  padding: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: sgmAccordionOpen 0.2s ease both;
  box-sizing: border-box;
  width: 100%;
}
.sgm-filter-group__accordion-body[hidden] {
  display: none !important;
}
.sgm-filter-group__accordion-body.is-open {
  will-change: auto;
}
@keyframes sgmAccordionOpen {
  from {
    opacity: 0.4;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Filter chips (inden i body!) ---- */
.sgm-filter-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px 8px;
  width: 100%;
}
.sgm-filter-chips--collapsible {
  gap: 7px 8px;
}
/* Grid kolonner - responsive! */
@media (min-width: 360px) {
  .sgm-filter-chips { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 540px) {
  .sgm-filter-chips { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 840px) {
  .sgm-filter-chips { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .sgm-filter-chips { grid-template-columns: 1fr 1fr 1fr; }
}

/* ------------- CHIP MED SYNLIG CHECKBOX VENSTRE + COUNT HØJRE! ------------- */
.sgm-filter-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  height: 100%;
  padding: 7px 11px 7px 11px;
  border-radius: 10px;
  border: 1px solid #e6ddd4;
  background: #fff;
  color: #4e433d;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
  line-height: 1.2;
  gap: 8px;
  box-sizing: border-box;
}
.sgm-filter-chip:hover {
  border-color: #c9b0a0;
  background: #faf6f1;
  color: #1f1a17;
  transform: translateY(-1px);
}
.sgm-filter-chip.is-hidden {
  display: none !important;
}

/* SYNLIG FIRKANT (CHECKBOX) VENSTRE I CHIPS! */
.sgm-filter-chip__input {
  position: relative !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  padding: 0 !important;
  margin: 0 2px 0 0 !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1.5px solid #c9b0a0;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  flex: 0 0 18px;
  transition: all 0.15s ease;
  clip: auto !important;
  overflow: visible !important;
  clip-path: none !important;
  white-space: normal !important;
}
.sgm-filter-chip__input::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 75% 75%;
  opacity: 0;
  transition: opacity 0.14s ease;
}
.sgm-filter-chip__input:checked {
  background: var(--sgm-widget-accent, #b08a74);
  border-color: var(--sgm-widget-accent, #b08a74);
}
.sgm-filter-chip__input:checked::after {
  opacity: 1;
}
.sgm-filter-chip__input:focus-visible {
  outline: 2px solid var(--sgm-widget-accent, #b08a74);
  outline-offset: 2px;
}

/* Aktiv / valgt chip: MØRK (tjekket state!) */
.sgm-filter-chip.is-checked {
  background: #2d2723;
  border-color: #2d2723;
  color: #fff;
  box-shadow: 0 2px 6px rgba(31, 26, 23, 0.16);
  transform: translateY(-1px);
}
.sgm-filter-chip.is-checked:hover {
  background: #1f1a17;
  border-color: #1f1a17;
}
.sgm-filter-chip.is-checked .sgm-filter-chip__input {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
}
.sgm-filter-chip.is-checked .sgm-filter-chip__input::after {
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d2723' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  opacity: 1;
}

.sgm-filter-chip__label {
  pointer-events: none;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
  font-size: 12.5px;
}

/* ⭐⭐⭐ LIVE FACETTERET COUNT ANIMATION! Når et tal opdateres LIVE! ⭐⭐⭐ */
.sgm-filter-chip.sgm-chip-count-updated {
  animation: sgmChipCountFlash 0.6s cubic-bezier(.2,1,.3,1) both !important;
  z-index: 1;
  position: relative;
}
@keyframes sgmChipCountFlash {
  0% {
    background: rgba(138, 111, 87, 0.12);
    border-color: #8a6f57;
    transform: scale(1);
  }
  30% {
    background: rgba(138, 111, 87, 0.26);
    border-color: #735a46;
    transform: scale(1.025);
    box-shadow: 0 2px 8px rgba(138, 111, 87, 0.22);
  }
  60% {
    background: rgba(138, 111, 87, 0.18);
  }
  100% {
    background: #fff;
    border-color: #e6ddd4;
    transform: scale(1);
    box-shadow: none;
  }
}
.sgm-filter-chip.sgm-chip-count-updated .sgm-filter-chip__count {
  animation: sgmCountBadgeBounce 0.6s cubic-bezier(.2,1,.3,1) both !important;
  color: #735a46;
  background: rgba(138, 111, 87, 0.2);
  font-weight: 800;
}
@keyframes sgmCountBadgeBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); color: #5a4534; }
  100% { transform: scale(1); }
}

/* ── Antal opskrifter på hvert term-chip (Ravelry-style!) ── */
.sgm-filter-chip__count {
  pointer-events: none;
  margin-left: auto;
  padding: 1px 6px 1px 6px;
  min-width: 20px;
  text-align: center;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 700;
  border-radius: 5px;
  background: rgba(176, 138, 116, 0.14);
  color: var(--sgm-widget-accent, #825f4c);
  white-space: nowrap;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}
/* Når chip er valgt → mørk baggrund, så count bliver lys */
.sgm-filter-chip.is-checked .sgm-filter-chip__count {
  background: rgba(255, 255, 255, 0.18);
  color: #f0e1d0;
}

/* ---- "Vis 17 mere" knap - PÆN BRUN MED HVID TEKST! ---- */
.sgm-filter-group__sub-toggle {
  display: flex;
  align-items: center;
  padding-top: 2px;
}
.sgm-filter-group__sub-toggle-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  padding: 10px 18px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #8a6f57 0%, #735a46 100%) !important;
  box-shadow: 0 1px 3px rgba(31, 26, 23, 0.14) !important;
  transition: all 0.16s ease !important;
  font-family: inherit !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  text-decoration: none !important;
}
.sgm-filter-group__sub-toggle-btn:hover,
.sgm-filter-group__sub-toggle-btn:focus-visible {
  background: linear-gradient(180deg, #7a5e47 0%, #664f3d 100%) !important;
  color: #ffffff !important;
  outline: none !important;
  box-shadow: 0 2px 6px rgba(31, 26, 23, 0.2) !important;
  transform: translateY(-1px) !important;
}

/* GAMLE (gamle chips uden accordion! beholdes for backward compat) */
.sgm-filter-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sgm-filter-group__toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e6ddd4;
  background: #fff;
  color: #4e433d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  transition: all 0.16s ease;
}
.sgm-filter-group__toggle:hover,
.sgm-filter-group__toggle:focus-visible {
  border-color: #b08a74;
  color: #1f1a17;
  background: #faf6f1;
  outline: none;
}
.sgm-filter-group__toggle[aria-expanded="true"] .sgm-filter-group__toggle-icon {
  transform: rotate(180deg);
}
.sgm-filter-group__toggle-icon {
  transition: transform 0.18s ease;
  font-size: 13px;
  line-height: 1;
}
.sgm-filter-group__extra-count {
  color: #8c7365;
  font-size: 12px;
  font-weight: 500;
  padding-left: 2px;
  line-height: 1.4;
}

.sgm-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}
.sgm-filter-chips--collapsible {
  position: relative;
}

.sgm-filter-submit {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
}

.sgm-recipe-archive .sgm-filter-submit.sgm-search-hero__button {
  appearance: none;
  -webkit-appearance: none;
  min-height: 54px;
  padding: 0 24px;
  border: 0 !important;
  border-radius: 999px;
  background: #2d2723;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none !important;
}

.sgm-recipe-archive .sgm-filter-submit.sgm-search-hero__button:hover,
.sgm-recipe-archive .sgm-filter-submit.sgm-search-hero__button:active,
.sgm-recipe-archive .sgm-filter-submit.sgm-search-hero__button:focus-visible {
  border: 0 !important;
  background: #1f1a17;
  color: #fff;
  outline: none;
  box-shadow: none !important;
}

.sgm-archive-results {
  position: relative;
}

.sgm-store-map__layout {
  display: grid;
  grid-template-columns: minmax(360px, var(--sgm-store-sidebar-width, 40%)) 28px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.sgm-store-map__sidebar {
  position: sticky;
  top: var(--sgm-store-sticky-top, 96px);
  display: grid;
  /* 🎯 VIGTIGT: INGEN top-padding/margin! (flugt EKSAT med kortets TOP-KANT) */
  gap: 16px 0;
  padding-top: 0 !important;
  margin-top: 0 !important;
  padding-right: 14px;
}

.sgm-store-map__resizer {
  position: sticky;
  top: var(--sgm-store-sticky-top, 96px);
  height: calc(var(--sgm-store-map-height, 720px));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
}

.sgm-store-map__resizer-grip {
  width: 6px;
  height: 84px;
  border-radius: 999px;
  background: #e6ddd4;
  box-shadow: inset 0 0 0 1px rgba(31, 26, 23, 0.06);
  opacity: 0.9;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.sgm-store-map__resizer:hover .sgm-store-map__resizer-grip,
.sgm-store-map__resizer:focus-visible .sgm-store-map__resizer-grip,
.sgm-store-map.is-resizing .sgm-store-map__resizer-grip,
.sgm-event-map.is-resizing .sgm-store-map__resizer-grip {
  background: #d9cdc2;
  opacity: 1;
}

.sgm-store-map__resizer:focus-visible {
  outline: none;
}

.sgm-store-map__map {
  border-radius: 28px;
  overflow: hidden;
  background: #f6f1eb;
  height: var(--sgm-store-map-height, 720px);
  min-height: var(--sgm-store-map-height, 720px);
  margin-left: 14px;
}

.sgm-store-map__canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.sgm-store-map .leaflet-container,
.sgm-event-map .leaflet-container {
  background: #d9e7ee;
}

.sgm-store-map .leaflet-container img,
.sgm-event-map .leaflet-container img,
.sgm-store-map .leaflet-tile,
.sgm-event-map .leaflet-tile {
  max-width: none !important;
}

.sgm-store-map .leaflet-tile,
.sgm-event-map .leaflet-tile {
  outline: 1px solid transparent;
  /* 🎯 Skjul LILLA region-grænser: fjern magenta/lilla toner + lav mættede farver gråtone (næsten usynlig!) */
  filter: hue-rotate(-18deg) saturate(0.35) contrast(1.04) !important;
}

.sgm-store-map__tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ⭐⭐⭐ NY: RENT 2×2 FILTER-GRID (4 felter, ens højde, ingen rodet layout!) */
.sgm-store-map__filters {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* ⚖️ 50/50 (venstre/højre) = ens bredde */
  gap: 16px 20px;                   /* Luft mellem række=16px, kolonne=20px */
  align-items: stretch;             /* 🎯 VIGTIGST: Alle 4 bokse = SAMME HØJDE (stretch!) */
}
/* Fjern gammel 'first-child' regel (den rodet det til!) */
.sgm-store-map__filters > .sgm-filter-group:first-child {
  grid-column: auto;
}
.sgm-store-map__filters .sgm-filter-group,
.sgm-store-map__filters .sgm-store-map__filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
/* Spacer label (kun for Nulstil filter, så knappen flugter lodret med Kategori) */
.sgm-filter-label--spacer {
  visibility: hidden;
  height: 0;
  line-height: 0;
  padding: 0 !important;
  margin: 0 !important;
}
/* Postnummer/by række = input (venstre) + brun søgknap (højre) */
.sgm-store-map__geo-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: 44px;
}
.sgm-store-map__geo-row .sgm-store-map__manual-geo-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px !important;
  margin: 0;
}
.sgm-store-map__manual-geo-btn {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 20px;
  background: #355b45;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
  white-space: nowrap;
}
.sgm-store-map__manual-geo-btn:hover,
.sgm-store-map__manual-geo-btn:focus-visible {
  background: #8f6a54;
  outline: none;
}
/* Nulstil filter knap (sort) */
.sgm-store-map__reset-btn {
  width: 100% !important;
  height: 44px !important;
  padding: 0 16px !important;
  min-height: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Forøg højde på ALLE input/select til 44px (ens med geo-knap!) */
.sgm-store-map__filter-group .sgm-filter-input,
.sgm-store-map__filter-group .sgm-filter-select {
  height: 44px !important;
  min-height: 44px;
}
/* Tags (3. række, 100% bredde) */
.sgm-store-map__filter-group--tags {
  grid-column: 1 / -1;
}

.sgm-store-map__tag {
  display: flex;
  gap: 8px;
  align-items: center;
  width: auto;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #e6ddd4;
  border-radius: 999px;
  background: #fff;
  color: #1f1a17;
  font-size: 13px;
  line-height: 1.2;
}

.sgm-store-map__tag input {
  margin: 0;
}

.sgm-store-map__results {
  display: grid;
  gap: 14px;
}

.sgm-store-map__results .sgm-archive-results__meta {
  justify-content: space-between;
  align-items: center;
}

.sgm-store-map__selected {
  display: none;
  padding: 16px;
  border: 1px solid #e6ddd4;
  border-radius: 20px;
  background: #fbf8f4;
}

.sgm-store-map__selected.is-active {
  display: grid;
  gap: 12px;
}

.sgm-store-map__selected-title {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2;
}

.sgm-store-map__meta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.sgm-store-map__directions-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e6ddd4;
  border-radius: 999px;
  background: transparent;
  color: #1f1a17;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sgm-store-map__directions-inline.is-hidden {
  display: none;
}

.sgm-store-map__directions-inline:hover,
.sgm-store-map__directions-inline:focus-visible {
  background: #1f1a17;
  border-color: #1f1a17;
  color: #ffffff;
  outline: none;
}

.sgm-store-map__clear-selection {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e6ddd4;
  border-radius: 999px;
  background: transparent !important;
  border-color: #e6ddd4 !important;
  color: #1f1a17 !important;
  opacity: 1 !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sgm-store-map__clear-selection.is-hidden {
  display: none;
}

.sgm-store-map__clear-selection:hover,
.sgm-store-map__clear-selection:focus-visible {
  background: #1f1a17 !important;
  border-color: #1f1a17 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  outline: none;
}

.sgm-store-map__list {
  display: grid;
  gap: 8px;
}

.sgm-store-map__region-browser {
  margin-top: 22px;
}

.sgm-store-region {
  display: grid;
  gap: 14px;
}

.sgm-store-region + .sgm-store-region {
  margin-top: 22px;
}

.sgm-store-region__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sgm-store-region__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

.sgm-store-region__count {
  color: #7d6f65;
  font-size: 12px;
  font-weight: 700;
}

.sgm-store-region__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sgm-store-region__item {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--sgm-widget-border);
  background: var(--sgm-widget-surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sgm-store-region__item:hover,
.sgm-store-region__item:focus-visible {
  background: var(--sgm-widget-surface-alt);
  border-color: var(--sgm-widget-border);
  outline: none;
}

.sgm-store-region__item:active {
  transform: translateY(1px);
}

.sgm-store-region__item.is-active {
  border-color: rgba(180, 120, 83, 0.45);
  background: var(--sgm-widget-surface-alt);
}

.sgm-store-region__item-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sgm-store-region__item-eyebrow {
  color: var(--sgm-widget-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgm-store-region__item-title {
  color: var(--sgm-widget-heading);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.sgm-store-region__item-meta {
  color: var(--sgm-widget-muted);
  font-size: 12px;
  line-height: 1.4;
}

.sgm-store-map__item {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e6ddd4;
  border-radius: 14px;
  background: #fbf8f4 !important;
  color: #1f1a17 !important;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

@media (max-width: 1024px) {
  .sgm-store-region__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sgm-store-region__list {
    grid-template-columns: 1fr;
  }
}

.sgm-store-map__item-body {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.sgm-store-map__item-image {
  width: 44px;
  height: 44px;
  border-radius: 999px !important;
  background: #f6f1eb;
  border: 1px solid #e6ddd4;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.sgm-store-map__item-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sgm-store-map__item-content {
  min-width: 0;
}

.sgm-store-map__item.is-active {
  background: #f6f1eb !important;
  border-color: #e6ddd4;
  color: #1f1a17 !important;
}

.sgm-store-map__item.is-active .sgm-store-map__item-eyebrow {
  color: #59645b;
}

.sgm-store-map__item.is-active .sgm-store-map__item-meta {
  color: #5c514b;
}

.sgm-store-map__item:hover,
.sgm-store-map__item:focus-visible {
  background: #f6f1eb !important;
  border-color: #e6ddd4;
  color: #1f1a17 !important;
  outline: none;
}

.sgm-store-map__item:active {
  transform: translateY(1px);
}

.sgm-store-map__item-eyebrow {
  margin-bottom: 4px;
  color: #59645b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgm-store-map__item:hover .sgm-store-map__item-eyebrow,
.sgm-store-map__item:focus-visible .sgm-store-map__item-eyebrow {
  color: #59645b;
}

.sgm-store-map__item-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.sgm-store-map__item-meta {
  margin-top: 4px;
  color: #5c514b;
  font-size: 13px;
  line-height: 1.3;
}

.sgm-store-map__item:hover .sgm-store-map__item-meta,
.sgm-store-map__item:focus-visible .sgm-store-map__item-meta {
  color: #5c514b;
}

.sgm-store-map__button {
  width: auto;
  min-width: 0;
  margin-top: 0;
  justify-self: start;
}

.sgm-store-map .sgm-search-hero__button,
.sgm-event-map .sgm-search-hero__button {
  background: #f6f1eb;
  color: #1f1a17;
  border: 1px solid #e6ddd4;
  min-height: 36px;
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.sgm-store-map .sgm-search-hero__button:hover,
.sgm-store-map .sgm-search-hero__button:focus-visible,
.sgm-event-map .sgm-search-hero__button:hover,
.sgm-event-map .sgm-search-hero__button:focus-visible {
  background: #ebe6df;
  color: #1f1a17;
  border-color: #d9cdc2;
}

.sgm-store-map .sgm-filter-panel__toggle:hover,
.sgm-store-map .sgm-filter-panel__toggle:focus-visible,
.sgm-event-map .sgm-filter-panel__toggle:hover,
.sgm-event-map .sgm-filter-panel__toggle:focus-visible {
  background: #1f1a17;
  border-color: #1f1a17;
  color: #ffffff;
  outline: none;
}

.sgm-store-map.is-loading .sgm-store-map__list,
.sgm-event-map.is-loading .sgm-store-map__list {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sgm-archive-results__meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.sgm-archive-results__count {
  color: #7d6f65;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ⛔ GAMMEL loading regel FJERNET (fik UI til at låse med pointer-events:none!)
   Erstattet af den nye L7590+ med !important som KAN IKKE låse! */

.sgm-archive-results__loadmore {
  display: flex;
  justify-content: center;
  padding: 22px 12px 8px;
}

.sgm-archive-results__loadmore-text {
  color: #7d6f65;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.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-forum-categories__grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sgm-forum-category-card,
.sgm-forum-topic-card,
.sgm-forum-topic-single__card,
.sgm-forum-comments,
.sgm-forum-reply,
.sgm-forum-compose {
  background: var(--sgm-widget-surface, #f6f1eb);
  border: 1px solid var(--sgm-widget-border, rgba(180, 154, 137, 0.18));
  border-radius: 24px;
}

.sgm-forum-category-card,
.sgm-forum-topic-card {
  display: block;
  padding: 22px;
  color: var(--sgm-widget-text, #1f1a17);
  text-decoration: none;
}

.sgm-forum-category-card {
  display: grid;
  gap: 14px;
}

.sgm-forum-category-card__header {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sgm-forum-category-card__count,
.sgm-forum-topic-card__eyebrow,
.sgm-forum-topic-single__eyebrow {
  display: inline-flex;
  color: var(--sgm-widget-accent, #b08a74);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-forum-category-card__title,
.sgm-forum-topic-card__title,
.sgm-forum-topic-single__title,
.sgm-forum-comments__title,
.sgm-forum-reply__title {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.15;
  color: var(--sgm-widget-heading, #1f1a17);
}

.sgm-forum-category-card__description,
.sgm-forum-topic-card__excerpt {
  margin: 10px 0 0;
  color: var(--sgm-widget-text, #5c514b);
}

.sgm-forum-category-card__children {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sgm-forum-category-card__child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--sgm-widget-chip-border, rgba(180, 154, 137, 0.18));
  background: var(--sgm-widget-surface-alt, rgba(255, 255, 255, 0.72));
  color: var(--sgm-widget-chip-text, #4e433d);
  text-decoration: none;
}

.sgm-forum-category-card__child-name {
  font-size: 13px;
  font-weight: 700;
}

.sgm-forum-category-card__child-count {
  color: var(--sgm-widget-muted, #8c7365);
  font-size: 12px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   🍳 NY: OPSKRIFTS KATEGORIER WIDGET (ingen søgefelt - ren oversigt!)
   ═══════════════════════════════════════════════════════════ */

/* --- Kolonner styring via wrapper modifier class --- */
.sgm-recipe-categories.sgm-recipe-categories--cols-2 .sgm-recipe-categories__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.sgm-recipe-categories.sgm-recipe-categories--cols-3 .sgm-recipe-categories__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.sgm-recipe-categories.sgm-recipe-categories--cols-4 .sgm-recipe-categories__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* --- Billede wrapper + styling --- */
.sgm-recipe-category-card__imgwrap {
  position: relative;
  width: 100%;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  margin: -4px 0 2px;
  background: rgba(160, 122, 99, 0.08);
}
.sgm-recipe-category-card__imgwrap .sgm-recipe-category-card__img,
.sgm-recipe-category-card__imgwrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
  margin: 0 !important;
  transition: transform 0.25s ease;
}
.sgm-recipe-category-card:hover .sgm-recipe-category-card__imgwrap img {
  transform: scale(1.04);
}

/* --- Opskrifts-specifikke justeringer af arvede forum-card styles --- */
.sgm-recipe-categories .sgm-recipe-category-card {
  padding: 18px !important;
  gap: 10px !important;
}
.sgm-recipe-categories .sgm-recipe-category-card__header {
  position: relative;
}
.sgm-recipe-categories .sgm-forum-category-card__count {
  margin-top: 10px;
}
.sgm-recipe-categories .sgm-recipe-category-card__title {
  margin: 6px 0 0 !important;
  font-size: clamp(16px, 1.7vw, 22px) !important;
  line-height: 1.2;
}
.sgm-recipe-categories .sgm-recipe-category-card__description {
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0.9;
}
.sgm-recipe-categories .sgm-recipe-category-card__children {
  gap: 8px !important;
}

/* --- Responsiv mobil: fold kolonner ned --- */
@media (max-width: 900px) {
  .sgm-recipe-categories.sgm-recipe-categories--cols-4 .sgm-recipe-categories__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  .sgm-recipe-categories.sgm-recipe-categories--cols-3 .sgm-recipe-categories__grid,
  .sgm-recipe-categories.sgm-recipe-categories--cols-4 .sgm-recipe-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .sgm-recipe-category-card__imgwrap {
    height: 120px;
  }
}
@media (max-width: 500px) {
  .sgm-recipe-categories .sgm-recipe-categories__grid {
    grid-template-columns: 1fr !important;
  }
  .sgm-recipe-category-card__imgwrap {
    height: 140px;
  }
}

.sgm-forum-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
}

.sgm-forum-toolbar .sgm-filter-input {
  flex: 1;
}

.sgm-forum-toolbar__meta,
.sgm-forum-topic-card__meta,
.sgm-forum-topic-card__footer,
.sgm-forum-topic-single__meta,
.sgm-forum-comments__header,
.sgm-forum-form__actions,
.sgm-forum-auth-gate__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.sgm-forum-toolbar__meta {
  margin-bottom: 18px;
}

.sgm-forum-toolbar__count,
.sgm-forum-toolbar__category,
.sgm-forum-topic-card__stats,
.sgm-forum-topic-card__date,
.sgm-forum-comments__count,
.sgm-forum-topic-single__stats,
.sgm-forum-topic-single__author-name,
.sgm-forum-comment__date {
  color: var(--sgm-widget-muted, #7d6f65);
  font-size: 13px;
}

.sgm-forum-topic-card__title a,
.sgm-forum-topic-card__link,
.sgm-forum-topic-single__eyebrow {
  color: inherit;
  text-decoration: none;
}

.sgm-forum-topic-card__link {
  font-weight: 700;
}

.sgm-forum-topic-card__categories,
.sgm-forum-topic-single__categories {
  margin-top: 2px;
}

.sgm-forum-compose,
.sgm-forum-topic-single__card,
.sgm-forum-comments,
.sgm-forum-reply {
  padding: 28px;
}

.sgm-forum-topic-single {
  display: grid;
  gap: 20px;
}

.sgm-forum-topic-single__card {
  display: grid;
  gap: 22px;
}

.sgm-forum-topic-single__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.sgm-forum-topic-single__author {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.sgm-forum-topic-single__avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
}

.sgm-forum-topic-single__avatar-image,
.sgm-forum-topic-single__avatar-placeholder {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.sgm-forum-topic-single__avatar-image {
  object-fit: cover;
}

.sgm-forum-topic-single__avatar-placeholder {
  background: var(--sgm-widget-chip-bg, rgba(180, 154, 137, 0.22));
}

.sgm-forum-topic-single__author-copy {
  display: grid;
  gap: 8px;
}

.sgm-forum-topic-single__stats {
  padding-top: 6px;
}

.sgm-forum-topic-single__header-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.sgm-forum-topic-single__manage {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sgm-forum-topic-single__title {
  margin: 0;
}

.sgm-forum-topic-single__content {
  color: var(--sgm-widget-text, #4f4540);
  font-size: 17px;
  line-height: 1.8;
}

.sgm-forum-topic-single__content > *:first-child {
  margin-top: 0;
}

.sgm-forum-topic-single__content > *:last-child {
  margin-bottom: 0;
}

.sgm-forum-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.sgm-forum-media--compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.sgm-forum-media--comment {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.sgm-forum-media__link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--sgm-widget-border, rgba(180, 154, 137, 0.16));
  background: var(--sgm-widget-surface-alt, rgba(255, 255, 255, 0.72));
}

.sgm-forum-media__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sgm-forum-form {
  display: grid;
  gap: 22px;
}
/* ✅ Sikrer at `hidden` attribut ALTID vinder over display: grid (ingen clash med class-specificity!) */
.sgm-forum-form[hidden] {
  display: none !important;
}

.sgm-forum-form__row {
  display: grid;
  gap: 8px;
}

.sgm-forum-form__hint {
  margin: 0;
  color: var(--sgm-widget-muted, #7d6f65);
  font-size: 13px;
  line-height: 1.5;
}

.sgm-forum-form__textarea {
  min-height: 140px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--sgm-widget-chip-border, rgba(180, 154, 137, 0.22));
  border-radius: 16px;
  background: var(--sgm-widget-surface-alt, rgba(255, 255, 255, 0.72));
  color: var(--sgm-widget-heading, #1f1a17);
  resize: vertical;
}

.sgm-forum-form__file-input {
  padding: 12px 14px;
  line-height: 1.4;
}

.sgm-forum-form__files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sgm-forum-form__file {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--sgm-widget-chip-bg, rgba(180, 154, 137, 0.14));
  color: var(--sgm-widget-text, #4f4540);
  font-size: 12px;
  font-weight: 700;
}

.sgm-forum-category-picker {
  column-count: 2;
  column-gap: 16px;
}

.sgm-forum-category-group {
  display: inline-grid;
  width: 100%;
  gap: 0;
  padding: 0;
  margin: 0 0 16px;
  border: 1px solid var(--sgm-widget-chip-border, rgba(180, 154, 137, 0.16));
  border-radius: 20px;
  background: var(--sgm-widget-surface-alt, rgba(255, 255, 255, 0.44));
  overflow: hidden;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.sgm-forum-category-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sgm-forum-category-group__header {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sgm-forum-category-group__title {
  margin: 0;
  color: var(--sgm-widget-heading, #1f1a17);
  font-size: 18px;
  line-height: 1.25;
}

.sgm-forum-category-group__description {
  margin: 0;
  color: var(--sgm-widget-muted, #7d6f65);
  font-size: 13px;
  line-height: 1.5;
}

.sgm-forum-category-group__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.sgm-forum-category-group__icon::before,
.sgm-forum-category-group__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--sgm-widget-muted, #8c7365);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.sgm-forum-category-group__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sgm-forum-category-group.is-open .sgm-forum-category-group__icon::after {
  opacity: 0;
}

.sgm-forum-category-group__panel {
  padding: 0 16px 16px;
}

@media (max-width: 767px) {
  .sgm-forum-category-picker {
    column-count: 1;
  }
}

.sgm-forum-category-group__items {
  display: grid;
  gap: 10px;
}

.sgm-forum-category-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--sgm-widget-chip-border, rgba(180, 154, 137, 0.2));
  border-radius: 18px;
  background: var(--sgm-widget-surface-alt, rgba(255, 255, 255, 0.64));
  transition: border-color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.sgm-forum-category-option.is-parent {
  border-color: var(--sgm-widget-chip-border, rgba(176, 138, 116, 0.26));
  background: var(--sgm-widget-chip-bg, rgba(176, 138, 116, 0.08));
}

.sgm-forum-category-option.is-child {
  padding-left: 18px;
}

.sgm-forum-category-option.is-inactive {
  opacity: 0.72;
}

.sgm-forum-category-option__choice,
.sgm-forum-category-option__primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sgm-forum-category-option__name {
  font-weight: 700;
  color: var(--sgm-widget-heading, #1f1a17);
}

.sgm-forum-category-option__checkbox,
.sgm-forum-category-option__radio {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid var(--sgm-widget-chip-border, rgba(180, 154, 137, 0.55));
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 4px transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
}

.sgm-forum-category-option__checkbox:checked,
.sgm-forum-category-option__radio:checked {
  border-color: var(--sgm-widget-accent, #b08a74);
  box-shadow: inset 0 0 0 4px var(--sgm-widget-accent, #b08a74);
}

.sgm-forum-category-option__checkbox:disabled,
.sgm-forum-category-option__radio:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.sgm-forum-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sgm-forum-category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--sgm-widget-chip-bg, rgba(180, 154, 137, 0.14));
  color: var(--sgm-widget-chip-text, #5c514b);
  font-size: 12px;
  font-weight: 700;
}

.sgm-forum-category-chip.is-primary {
  background: var(--sgm-widget-chip-bg, rgba(176, 138, 116, 0.18));
  color: var(--sgm-widget-chip-text, #8d624c);
}

.sgm-forum-form__feedback {
  font-size: 13px;
  color: var(--sgm-widget-muted, #7d6f65);
}

.sgm-forum-form__feedback.is-error {
  color: #9b2c2c;
}

.sgm-forum-form__feedback.is-success {
  color: #2f6f3f;
}

.sgm-forum-form--edit {
  padding-top: 12px;
  border-top: 1px solid var(--sgm-widget-border, rgba(180, 154, 137, 0.16));
}

.sgm-forum-edit-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.sgm-forum-edit-image {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: var(--sgm-widget-surface-alt, rgba(255, 255, 255, 0.64));
  border: 1px solid var(--sgm-widget-border, rgba(180, 154, 137, 0.16));
}

.sgm-forum-edit-image__preview {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
}

.sgm-forum-edit-image__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sgm-widget-chip-text, #5c514b);
  font-size: 13px;
}

.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-forum-comments__list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.sgm-forum-comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: var(--sgm-widget-surface-alt, rgba(255, 255, 255, 0.58));
}

.sgm-forum-comment__avatar-image {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.sgm-forum-comment__body {
  display: grid;
  gap: 8px;
}

.sgm-forum-comment__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.sgm-forum-comment__content p {
  margin: 0;
}

.sgm-forum-reply__title {
  margin-bottom: 18px;
}

.sgm-single-recipe__hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: stretch;
  margin-bottom: 0;
}

/* ====== SINGLE RECIPE GALLERI INLINE (under main image på venstre kolonne) ====== */
.sgm-single-recipe__hero .sgm-single-recipe__media {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.sgm-single-recipe__hero .sgm-single-recipe__hero-thumbnails--inline {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  width: 100%;
  display: block;
}
.sgm-single-recipe__hero .sgm-single-recipe__intro {
  grid-column: 2 / 3;
  grid-row: 1 / 3;   /* højre kolonne fylder både række 1 og 2 (media + galleri højde) */
}

.sgm-single-recipe__intro {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: 22px;
}

/* ================================================================================
   🧶 SINGLE OPSKRIFT: GLOBAL MOBILVENLIG ORD-OVERFØRSEL + BREDDE BESKYTTELSE
   Forhindrer at lange danske ord (strikkefamilie, snoningsmønster osv.) klippes af
   og sørger for at ALLE tekst-containere holder sig inden for skærmens bredde!
   ================================================================================ */
.sgm-widget.sgm-single-recipe,
.sgm-single-recipe__intro,
.sgm-single-recipe__title,
.sgm-single-recipe__excerpt,
.sgm-single-recipe__hero-intro,
.sgm-single-recipe__hero-intro p,
.sgm-single-recipe__designer-box,
.sgm-single-recipe__designer-box-inner,
.sgm-single-recipe__designer-content,
.sgm-single-recipe__designer-content p,
.sgm-single-recipe__designer-content li,
.sgm-single-recipe__section-title,
.sgm-single-recipe__content,
.sgm-single-recipe__content p,
.sgm-single-recipe__content li,
.sgm-single-recipe__list,
.sgm-single-recipe__list li,
.sgm-single-recipe__step-text,
.sgm-single-recipe__item-subtext,
.sgm-single-recipe__resource-note,
.sgm-single-recipe__resource-value,
.sgm-single-recipe__fact-value,
.sgm-single-recipe__fact-label,
.sgm-detail-card__value,
.sgm-detail-card__label,
.sgm-size-table__cell,
.sgm-size-table__note,
.sgm-single-recipe__author-name,
.sgm-single-recipe__author-secondary-name,
.sgm-single-recipe__author-label,
.sgm-single-recipe__summary-item,
.sgm-single-recipe__engagement,
.sgm-single-recipe__engagement-col,
.sgm-single-recipe__makers-label,
.sgm-single-recipe__rating-note,
.sgm-single-recipe__rating-summary-text,
.sgm-single-recipe__rating-summary-title {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: anywhere !important;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
  text-align: left !important;
}

/* Undtagelse: Kategorier og Vurdering MÅ stadig være centreret (ikke brødtekst!) */
.sgm-widget.sgm-single-recipe .sgm-section-heading__eyebrow--categories,
.sgm-widget.sgm-single-recipe .sgm-section-heading__eyebrow--categories *,
.sgm-single-recipe__engagement .sgm-single-recipe__rating,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-label,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-title,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-note,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-text {
  width: auto !important;
  max-width: none !important;
  word-wrap: normal !important;
  overflow-wrap: normal !important;
  hyphens: manual;
  text-align: center !important;
}

.sgm-single-recipe__title {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 720px;
}

.sgm-single-recipe__excerpt {
  max-width: 620px;
  margin-top: 16px;
  color: #5c514b;
  font-size: 19px;
  line-height: 1.72;
}

.sgm-single-recipe__hero-intro {
  max-width: 820px;
  margin-top: 28px;
  color: #4f4540;
  font-size: clamp(20px, 1.7vw, 22px);
  line-height: 1.82;
  letter-spacing: -0.01em;
}

.sgm-single-recipe__hero-intro > *:first-child {
  margin-top: 0;
}

.sgm-single-recipe__hero-intro > *:last-child {
  margin-bottom: 0;
}

.sgm-single-recipe__hero-intro p {
  margin: 0;
}

.sgm-single-recipe__hero-intro p + p {
  margin-top: 18px;
}

.sgm-single-recipe__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sgm-single-recipe__summary-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3ede7;
  color: #5c514b;
  font-size: 12px;
  font-weight: 600;
}

.sgm-single-recipe__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* 💑 Engagement: Lavet af + Vurderinger (Kompakt fælles boks under knapperne!) */
.sgm-single-recipe__engagement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 24px;
  align-items: stretch;
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 28px;
  background: #fdf4f8;
  border: 1px solid #ffdae9;
}

.sgm-single-recipe__engagement-col {
  display: grid;
  align-content: start;
  min-width: 0;
}

.sgm-single-recipe__engagement-col + .sgm-single-recipe__engagement-col {
  border-left: 1px solid #ffdae9;
  padding-left: 24px;
}

/* ====== KNAP I BOKSEN: "Jeg/Du har lavet denne" FULD BREDDE i bunden af engagement ====== */
.sgm-single-recipe__engagement-actions {
  grid-column: 1 / -1;  /* fylder BEGGE kolonner */
  width: 100%;
  padding-top: 4px;
}
.sgm-single-recipe__engagement-actions .sgm-single-recipe__secondary-action {
  width: 100% !important;       /* knap fuld bredde i boksen */
  min-height: 48px !important;
  justify-content: center !important;
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
  margin: 0;
}

/* --- Indeni __engagement: Overrid original makers (ingen margin-top, ingen gap auto!) --- */
.sgm-single-recipe__engagement .sgm-single-recipe__makers {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.sgm-single-recipe__engagement .sgm-single-recipe__makers-label {
  color: #00401a;
  font-size: 11px;
  opacity: 0.78;
}
.sgm-single-recipe__engagement .sgm-single-recipe__makers-preview,
.sgm-single-recipe__engagement .sgm-single-recipe__makers-all {
  gap: 8px;
}
.sgm-single-recipe__engagement .sgm-single-recipe__maker-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
}
.sgm-single-recipe__engagement .sgm-single-recipe__makers-more-toggle {
  color: #00401a;
  font-size: 13px;
  opacity: 0.85;
}
.sgm-single-recipe__engagement .sgm-single-recipe__makers-more-toggle:hover,
.sgm-single-recipe__engagement .sgm-single-recipe__makers-more-toggle:focus-visible {
  color: #996515;
  opacity: 1;
}

/* --- Indeni __engagement: Overrid rating-row til mere kompakt --- */
.sgm-single-recipe__engagement .sgm-single-recipe__rating-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 20px;
  align-items: start;
  margin: 0;
  padding: 0;
}
.sgm-single-recipe__engagement .sgm-single-recipe__rating,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.sgm-single-recipe__engagement .sgm-single-recipe__rating-label,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-title {
  color: #00401a;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.78;
  margin-bottom: 0;
}
/* Mere kompakte stjerner */
.sgm-single-recipe__engagement .sgm-single-recipe__rating-stars {
  gap: 4px;
}
.sgm-single-recipe__engagement .sgm-single-recipe__rating-star,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-star {
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 30px;
}
.sgm-single-recipe__engagement .sgm-single-recipe__rating-note,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-text {
  color: #00401a;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.88;
  margin: 0;
  padding: 0;
}

/* Responsivt: under 720px → 1 kolonne i alt */
@media (max-width: 720px) {
  .sgm-single-recipe__engagement {
    grid-template-columns: 1fr;
    padding: 18px 18px;
    gap: 16px;
  }
  .sgm-single-recipe__engagement-col + .sgm-single-recipe__engagement-col {
    border-left: none;
    border-top: 1px solid #ffdae9;
    padding-left: 0;
    padding-top: 16px;
  }
  .sgm-single-recipe__engagement-actions {
    padding-top: 8px;
    border-top: 1px solid #ffdae9;
    margin-top: 4px;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.sgm-single-recipe__primary-action,
.sgm-single-recipe__secondary-action {
  min-width: 180px !important;
  min-height: 40px !important;
  padding: 8px 18px !important;
  font-size: 12.5px !important;
  letter-spacing: 0.05em !important;
}

.sgm-single-recipe__author {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  min-height: 96px;
  padding: 18px 22px 18px 18px;
  border: 1px solid #ece4dd;
  border-radius: 24px;
  background: var(--sgm-widget-surface-alt);
}

.sgm-single-recipe__author-avatars {
  display: flex;
  align-items: center;
  padding-left: 2px;
}

.sgm-single-recipe__author-avatar {
  display: block;
  width: 52px;
  height: 52px;
  min-width: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  clip-path: circle(50%);
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border: 1px solid var(--sgm-widget-border);
  background: var(--sgm-widget-surface);
}

.sgm-single-recipe__author-avatar--secondary {
  margin-left: -14px;
}

.sgm-single-recipe__author-copy {
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: start;
  min-height: 52px;
  padding-left: 4px;
}

.sgm-single-recipe__author-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.sgm-single-recipe__author-label {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-single-recipe__author-inline-label {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-single-recipe__author-name {
  font-size: 16px;
  line-height: 1.2;
}

.sgm-single-recipe__author-secondary-name {
  color: var(--sgm-widget-muted);
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
}

a.sgm-single-recipe__author-secondary-name:hover,
a.sgm-single-recipe__author-secondary-name:focus-visible {
  color: var(--sgm-widget-accent);
  text-decoration: underline;
}

.sgm-single-recipe__author-meta-link {
  color: #7c6d63;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

a.sgm-single-recipe__author-meta-link:hover,
a.sgm-single-recipe__author-meta-link:focus-visible {
  color: var(--sgm-widget-accent);
  text-decoration: underline;
}

.sgm-single-recipe__makers {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.sgm-single-recipe__makers-label {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-single-recipe__makers-preview,
.sgm-single-recipe__makers-all {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sgm-single-recipe__maker-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #eadfd6;
  background: var(--sgm-widget-surface-alt);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.sgm-single-recipe__maker-avatar:hover,
.sgm-single-recipe__maker-avatar:focus-visible {
  border-color: #d9cabc;
  outline: none;
  transform: translateY(-1px);
}

.sgm-single-recipe__maker-avatar img,
.sgm-single-recipe__maker-avatar-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sgm-single-recipe__makers-more {
  display: grid;
  gap: 12px;
}

.sgm-single-recipe__makers-more-toggle {
  color: var(--sgm-widget-heading);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.sgm-single-recipe__makers-more-toggle::-webkit-details-marker {
  display: none;
}

.sgm-single-recipe__makers-more-toggle:hover,
.sgm-single-recipe__makers-more-toggle:focus-visible {
  color: #8f6f5d;
  outline: none;
}

.sgm-single-recipe__rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  margin-top: 0;
}

.sgm-single-recipe__rating {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.sgm-single-recipe__rating-label {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-single-recipe__rating-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sgm-single-recipe__rating-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 999px;
  background: var(--sgm-widget-surface-alt);
  color: #c9b8ab;
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.sgm-single-recipe__rating-star:hover,
.sgm-single-recipe__rating-star:focus-visible {
  color: #59645b;
  border-color: #d8c7ba;
  outline: none;
}

.sgm-single-recipe__rating-star.is-active {
  background: #fff7ef;
  color: #59645b;
  border-color: #d8c7ba;
}

.sgm-single-recipe__rating-star span {
  font-size: 18px;
  line-height: 1;
}

.sgm-single-recipe__rating-note {
  color: var(--sgm-widget-muted);
  font-size: 13px;
  line-height: 1.4;
}

.sgm-single-recipe__rating-summary {
  display: grid;
  gap: 6px;
  margin-top: 0;
  align-content: start;
}

.sgm-single-recipe__rating-summary-title {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sgm-single-recipe__rating-summary-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sgm-single-recipe__rating-summary-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--sgm-widget-border);
  border-radius: 999px;
  background: var(--sgm-widget-surface-alt);
  color: #c9b8ab;
  font-size: 18px;
  line-height: 1;
}

.sgm-single-recipe__rating-summary-star.is-active {
  background: #fff7ef;
  color: #59645b;
  border-color: #d8c7ba;
}

.sgm-single-recipe__rating-summary-star.is-half {
  color: #c9b8ab;
  border-color: #d8c7ba;
  background: var(--sgm-widget-surface-alt);
}

.sgm-single-recipe__rating-summary-star.is-half::before {
  content: "\2605";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #59645b;
  clip-path: inset(0 50% 0 0);
}

.sgm-single-recipe__rating-summary-text {
  color: var(--sgm-widget-text);
  font-size: 14px;
  line-height: 1.45;
}

.sgm-single-recipe__media img,
.sgm-single-recipe__media .sgm-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.9;
  border-radius: 32px;
  object-fit: cover;
}

.sgm-single-recipe__hero-thumbnails {
  width: 100%;
}

.sgm-single-recipe__hero-bottom {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
  margin: 14px 0 26px;
}

.sgm-single-recipe__hero-bottom-side {
  display: flex;
  width: 100%;
  justify-content: flex-end;
}

.sgm-single-recipe__thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sgm-single-recipe__thumbnail {
  width: 96px;
  height: 96px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 18px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.sgm-single-recipe__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sgm-single-recipe__thumbnail.is-active {
  border-color: #7f6a5b;
}

.sgm-single-recipe__thumbnail:hover,
.sgm-single-recipe__thumbnail:focus-visible {
  border-color: #b68770;
  outline: none;
}

.sgm-single-recipe__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 0 0 52px;
  padding: 28px 24px;
  border-radius: 28px;
  background: #f4eee8;
}

.sgm-single-recipe__fact {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-items: center;
  text-align: center !important;
  width: 100%;
}

.sgm-single-recipe__fact > * {
  width: 100%;
  text-align: center !important;
  justify-self: center;
}

.sgm-single-recipe__fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eadfd6;
  color: #59645b;
  width: 50px !important;
}

.sgm-single-recipe__fact-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.sgm-single-recipe__fact-label {
  color: #9a8578;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  width: 100%;
  text-align: center !important;
}

.sgm-single-recipe__fact-value {
  color: #2b2420;
  font-size: 15px;
  line-height: 1.45;
  display: block;
  width: 100%;
  text-align: center !important;
}

.sgm-single-recipe__main {
  display: grid;
  gap: 42px;
}

.sgm-single-recipe__section + .sgm-single-recipe__section {
  margin-top: 0;
}

.sgm-single-recipe__section-title {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.02;
}

.sgm-single-recipe__section-title--script {
  font-family: "Furlong I", Furlong, Georgia, "Times New Roman", serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

.sgm-single-recipe__designer-box {
  display: block;
  margin-top: 24px;
}
.sgm-single-recipe__designer-box-inner {
  padding: 30px 32px;
  border-radius: 28px;
  background: #faf5f0;
  border: 1px solid #e9ddd2;
}
.sgm-single-recipe__designer-title {
  margin: 0 0 16px;
  font-family: "Furlong I", Furlong, Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.08;
  color: #1f1a17;
}
.sgm-single-recipe__designer-content {
  color: #4a3f38;
  font-size: 15px;
  line-height: 1.75;
}
.sgm-single-recipe__designer-content > *:first-child {
  margin-top: 0;
}
.sgm-single-recipe__designer-content > *:last-child {
  margin-bottom: 0;
}
.sgm-single-recipe__designer-content p {
  margin: 0 0 12px;
}
.sgm-single-recipe__designer-content a:link,
.sgm-single-recipe__designer-content a:visited {
  color: var(--sgm-widget-accent, #b68770);
  text-decoration: none;
  border-bottom: 1px solid rgba(182, 135, 112, 0.4);
}
.sgm-single-recipe__designer-content a:hover,
.sgm-single-recipe__designer-content a:active,
.sgm-single-recipe__designer-content a:focus {
  color: #1f1a17;
  border-bottom-color: #1f1a17;
}

.sgm-single-recipe__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sgm-detail-card {
  min-height: 132px;
  padding: 22px 24px;
  border-radius: 24px;
  background: #f8f2ec;
}

.sgm-detail-card__label {
  display: block;
  margin-bottom: 8px;
  color: #7d6f65;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgm-detail-card__value {
  font-size: 22px;
  line-height: 1.3;
}

.sgm-single-recipe__resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sgm-single-recipe__resource-card {
  padding: 28px 30px;
  border-radius: 28px;
  background: #fbf6f1;
  border: 1px solid #efe5dc;
}

.sgm-single-recipe__resource-title {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.08;
}

.sgm-single-recipe__resource-rows {
  display: grid;
}

.sgm-single-recipe__resource-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid #eee3d8;
}

.sgm-single-recipe__resource-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.sgm-single-recipe__resource-main {
  display: grid;
  gap: 4px;
}

.sgm-single-recipe__resource-name {
  color: #2b2420;
  font-size: 16px;
  line-height: 1.35;
}

.sgm-single-recipe__resource-note {
  color: #7c6d63;
  font-size: 14px;
  line-height: 1.55;
}

.sgm-single-recipe__resource-value {
  color: #6c5d54;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}

.sgm-single-recipe__content {
  max-width: 860px;
  color: #2b2420;
  line-height: 1.8;
}

.sgm-single-recipe__content :where(h1, h2, h3, h4, h5, h6),
.sgm-single-recipe__content :where(.sgm-method-heading) {
  font-family: "Furlong I", Furlong, Georgia, "Times New Roman", serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

.sgm-single-recipe__content > *:first-child {
  margin-top: 0;
}

.sgm-single-recipe__list {
  margin: 0;
  padding-left: 22px;
  color: #2b2420;
  line-height: 1.85;
}

.sgm-single-recipe__list li + li {
  margin-top: 8px;
}

.sgm-single-recipe__item-meta {
  display: inline-block;
  margin-left: 8px;
  color: #7d6f65;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sgm-single-recipe__item-subtext {
  margin-top: 6px;
  color: #5c514b;
  line-height: 1.7;
}

.sgm-single-recipe__list--ordered {
  padding-left: 26px;
}

.sgm-single-recipe__list--ordered li::marker {
  color: #59645b;
  font-weight: 700;
}

.sgm-single-recipe__step-title {
  display: block;
  margin-bottom: 6px;
}

.sgm-single-recipe__step-text {
  color: #5c514b;
  line-height: 1.75;
}

.sgm-size-table {
  overflow: hidden;
  border: 1px solid #eee3d8;
  border-radius: 30px;
  background: #fbf6f1;
}

.sgm-size-table__row {
  display: grid;
  grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.sgm-size-table__row + .sgm-size-table__row {
  border-top: 1px solid #eee3d8;
}

.sgm-size-table__cell {
  padding: 18px 20px;
  color: #2b2420;
  line-height: 1.5;
}

.sgm-size-table__cell + .sgm-size-table__cell {
  border-left: 1px solid #eee3d8;
}

.sgm-size-table__row--head .sgm-size-table__cell {
  color: #59645b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #f5eee7;
}

.sgm-size-table__note {
  padding: 14px 20px 18px;
  border-top: 1px dashed #e6ddd4;
  color: #5c514b;
  line-height: 1.7;
}

.sgm-widget {
  color: var(--sgm-widget-text);
}

.sgm-widget .sgm-section-heading__title,
.sgm-widget .sgm-card__title,
.sgm-widget .sgm-card__title a,
.sgm-widget .sgm-filter-panel__title,
.sgm-widget .sgm-store-map__item-title,
.sgm-widget .sgm-single-recipe__resource-title,
.sgm-widget .sgm-single-recipe__author-name,
.sgm-widget .sgm-detail-card__value,
.sgm-widget .sgm-single-recipe__fact-value {
  color: var(--sgm-widget-heading);
}

.sgm-widget .sgm-single-recipe__title,
.sgm-widget .sgm-single-recipe__section-title {
  color: #1f1a17;
}

.sgm-widget .sgm-search-hero__suggestion-title {
  color: var(--sgm-widget-suggestion-title);
}

.sgm-widget .sgm-section-heading__eyebrow,
.sgm-widget .sgm-card__eyebrow,
.sgm-widget .sgm-filter-label,
.sgm-widget .sgm-store-map__item-eyebrow,
.sgm-widget .sgm-single-recipe__author-label,
.sgm-widget .sgm-single-recipe__fact-label,
.sgm-widget .sgm-detail-card__label,
.sgm-widget .sgm-search-hero__suggestion-heading,
.sgm-widget .sgm-single-recipe__item-meta,
.sgm-widget .sgm-section-heading__eyebrow-link:link,
.sgm-widget .sgm-section-heading__eyebrow-link:visited {
  color: var(--sgm-widget-accent);
}

.sgm-widget .sgm-section-heading__eyebrow-link:hover,
.sgm-widget .sgm-section-heading__eyebrow-link:focus-visible {
  color: var(--sgm-widget-accent);
  text-decoration: underline;
}

.sgm-widget .sgm-section-heading__eyebrow-sep {
  color: var(--sgm-widget-border);
  opacity: 0.75;
}

.sgm-widget .sgm-card__excerpt,
.sgm-widget .sgm-card__meta,
.sgm-widget .sgm-card__meta-item,
.sgm-widget .sgm-store-map__item-meta,
.sgm-widget .sgm-archive-results__count,
.sgm-widget .sgm-empty-state,
.sgm-widget .sgm-single-recipe__excerpt,
.sgm-widget .sgm-single-recipe__summary-item,
.sgm-widget .sgm-single-recipe__resource-note,
.sgm-widget .sgm-single-recipe__resource-value,
.sgm-widget .sgm-single-recipe__item-subtext,
.sgm-widget .sgm-single-recipe__step-text,
.sgm-widget .sgm-size-table__note,
.sgm-widget .sgm-size-table__row--head .sgm-size-table__cell {
  color: var(--sgm-widget-muted);
}

.sgm-widget .sgm-search-hero__suggestion-meta {
  color: var(--sgm-widget-suggestion-meta);
}

.sgm-widget .sgm-search-hero__bar,
.sgm-widget .sgm-search-hero__suggestions,
.sgm-widget .sgm-search-hero__suggestion,
.sgm-widget .sgm-chip,
.sgm-widget .sgm-card,
.sgm-widget .sgm-category-card,
.sgm-widget .sgm-filter-panel,
.sgm-widget .sgm-store-map__item,
.sgm-widget .sgm-store-map__selected,
.sgm-widget .sgm-single-recipe__resource-card,
.sgm-widget .sgm-single-recipe__fact,
.sgm-widget .sgm-detail-card,
.sgm-widget .sgm-single-recipe__author,
.sgm-widget .sgm-size-table,
.sgm-widget .sgm-size-table__row--head .sgm-size-table__cell {
  background: var(--sgm-widget-surface);
  border-color: var(--sgm-widget-border);
}

.sgm-widget .sgm-card,
.sgm-widget .sgm-category-card,
.sgm-widget .sgm-filter-panel,
.sgm-widget .sgm-store-map__item,
.sgm-widget .sgm-store-map__selected,
.sgm-widget .sgm-single-recipe__resource-card,
.sgm-widget .sgm-single-recipe__fact,
.sgm-widget .sgm-detail-card,
.sgm-widget .sgm-size-table {
  border-radius: var(--sgm-widget-radius);
}

.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-widget .sgm-filter-panel__toggle,
.sgm-widget .sgm-chip {
  background: var(--sgm-widget-chip-bg);
  color: var(--sgm-widget-chip-text);
  border-color: var(--sgm-widget-chip-border);
}

.sgm-widget .sgm-filter-panel__toggle:hover,
.sgm-widget .sgm-filter-panel__toggle:focus-visible,
.sgm-widget .sgm-chip:hover,
.sgm-widget .sgm-chip:focus-visible {
  background: var(--sgm-widget-chip-hover-bg);
  color: var(--sgm-widget-chip-hover-text);
  border-color: var(--sgm-widget-chip-hover-border);
}

.sgm-widget .sgm-store-map__item.is-active {
  background: var(--sgm-widget-surface-alt);
  border-color: var(--sgm-widget-border);
}

.sgm-widget .sgm-store-map__item:hover,
.sgm-widget .sgm-store-map__item:focus-visible {
  background: var(--sgm-widget-surface-alt);
  border-color: var(--sgm-widget-border);
}

.sgm-widget .sgm-search-hero__suggestion:hover,
.sgm-widget .sgm-search-hero__suggestion:focus-visible {
  background: var(--sgm-widget-suggestion-hover-bg);
  border-color: var(--sgm-widget-chip-border);
}

.sgm-widget .sgm-search-hero__suggestion:hover .sgm-search-hero__suggestion-title,
.sgm-widget .sgm-search-hero__suggestion:focus-visible .sgm-search-hero__suggestion-title {
  color: var(--sgm-widget-suggestion-hover-title);
}

.sgm-widget .sgm-search-hero__suggestion:hover .sgm-search-hero__suggestion-meta,
.sgm-widget .sgm-search-hero__suggestion:focus-visible .sgm-search-hero__suggestion-meta {
  color: var(--sgm-widget-suggestion-hover-meta);
}

.sgm-widget .sgm-single-recipe__list,
.sgm-widget .sgm-single-recipe__content,
.sgm-widget .sgm-size-table__cell {
  color: var(--sgm-widget-text);
}

.sgm-widget .sgm-single-recipe__list--ordered li::marker {
  color: var(--sgm-widget-accent);
}

/* ================================================================================
   🧶 SINGLE OPSKRIFT (KUN DENNE) - OVERSKRIFTER / BRØDTEKST / KNAPPER / BOKSE
   Standard farver specifikt for opskrift-siden. Ændrer IKKE andre widgets!
   ================================================================================ */

/* --- 1. Overskrifter (H1, H2, H3 i opskrift) + Brødtekst: #00401a --- */
.sgm-widget.sgm-single-recipe .sgm-single-recipe__title,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__section-title,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-title,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__resource-title,
.sgm-widget.sgm-single-recipe .sgm-detail-card__value,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__fact-value,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content p,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content li,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__step-text,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__item-subtext,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__excerpt,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__hero-intro,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content p,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content li,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__resource-note,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__resource-value,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__list,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__list li,
.sgm-widget.sgm-single-recipe .sgm-size-table__cell,
.sgm-widget.sgm-single-recipe .sgm-size-table__note,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__author-name,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__author-secondary-name {
  color: #00401a !important;
}

/* Fact / Detail kort labels (Pinde, Konstruktion, Garn osv.) → FULD opacity 1.0!
   Samme farveintensitet som values (nedenunder) — ingen blending med baggrund!
   + 🎯 TEKST CENTERET (screenshot viste venstre-align!) */
.sgm-widget.sgm-single-recipe .sgm-single-recipe__fact-label,
.sgm-widget.sgm-single-recipe .sgm-detail-card__label {
  color: #00401a !important;
  opacity: 1 !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  justify-self: center;
}

/* Fact VALUES (4 mm, 22 m/24p, DK osv.) → også CENTERET! */
.sgm-widget.sgm-single-recipe .sgm-single-recipe__fact-value,
.sgm-widget.sgm-single-recipe .sgm-detail-card__value {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  justify-self: center;
}

/* Hele fact boxen (ikon + label + value): alle børn skal centreres! */
.sgm-widget.sgm-single-recipe .sgm-single-recipe__fact,
.sgm-widget.sgm-single-recipe .sgm-detail-card {
  justify-items: center !important;
  align-items: center !important;
  text-align: center !important;
}
.sgm-widget.sgm-single-recipe .sgm-single-recipe__fact > *,
.sgm-widget.sgm-single-recipe .sgm-detail-card > * {
  text-align: center !important;
  justify-self: center;
}
.sgm-widget.sgm-single-recipe .sgm-single-recipe__fact-icon {
  width: 50px !important;
  justify-self: center;
}

/* Muted/brun hjælpe-tekst i andre bokse (faktisk 'sekundær' info): behold 0.8 opacity */
.sgm-widget.sgm-single-recipe .sgm-single-recipe__author-label,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__makers-label,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__rating-label,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__summary-item {
  color: #00401a !important;
  opacity: 0.8;
}

/* Kategorier over hovedtitel (link tekst): #00401a */
.sgm-widget.sgm-single-recipe .sgm-section-heading__eyebrow-link:link,
.sgm-widget.sgm-single-recipe .sgm-section-heading__eyebrow-link:visited,
.sgm-widget.sgm-single-recipe .sgm-section-heading__eyebrow-link:hover,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__author-meta-link:link,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__author-meta-link:visited {
  color: #00401a !important;
}

/* Links inde i brødtekst og designer bokse: #00401a m. lyserød underline */
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content a:link,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content a:visited,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content a:link,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content a:visited {
  color: #00401a !important;
  border-bottom-color: #ffdae9 !important;
}
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content a:hover,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content a:active,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content a:hover,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__content a:active {
  color: #00401a !important;
  border-bottom-color: #996515 !important;
}

/* --- 2. KNAPPER (kun i Single Recipe Widget actions): ---
   Baggrund: #996515 (mørkeguld/brun)
   Tekst + kant: #ffdae9 (lyserød)
*/
.sgm-widget.sgm-single-recipe .sgm-single-recipe__actions .sgm-search-hero__button,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__primary-action,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__secondary-action {
  background-color: #355b45 !important;
  color: #ffdae9 !important;
  border: 2px solid #ffdae9 !important;
  box-shadow: none !important;
}
.sgm-widget.sgm-single-recipe .sgm-single-recipe__actions a.sgm-search-hero__button:link,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__actions a.sgm-search-hero__button:visited {
  color: #ffdae9 !important;
}
.sgm-widget.sgm-single-recipe .sgm-single-recipe__actions .sgm-search-hero__button:hover,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__actions .sgm-search-hero__button:focus-visible,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__actions .sgm-search-hero__button:active {
  background-color: #355b45 !important;
  color: #ffdae9 !important;
  border-color: #ffdae9 !important;
}

/* --- 3. BOKSE (Kun i Single Recipe opskrift): ---
   Baggrund: #fdf4f8 (lys rosa-beige)
   Kant: #ffdae9 (lys pink)
*/
.sgm-widget.sgm-single-recipe .sgm-detail-card,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__fact,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__resource-card,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__author,
.sgm-widget.sgm-single-recipe .sgm-size-table,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-box-inner,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__summary-item,
.sgm-widget.sgm-single-recipe .sgm-size-table__row--head .sgm-size-table__cell {
  background-color: #fdf4f8 !important;
  border-color: #ffdae9 !important;
}

/* Size table: alle rækker divider linjer */
.sgm-widget.sgm-single-recipe .sgm-size-table__row + .sgm-size-table__row,
.sgm-widget.sgm-single-recipe .sgm-single-recipe__resource-row {
  border-top-color: #ffdae9 !important;
}

/* ================================================================================
   SLUT: Single Opskrift Specifikke Farver
   ================================================================================ */

@media (max-width: 1024px) {
  .sgm-category-grid,
  .sgm-card-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sgm-archive-layout {
    grid-template-columns: 1fr;
  }

  .sgm-archive-sidebar {
    position: static !important;
    top: 0 !important;
    height: auto !important;
    max-height: none !important;
  }
  .sgm-archive-sidebar .sgm-filter-panel {
    max-height: none !important;
    overflow-y: visible !important;
    scrollbar-width: none !important;
  }

  .sgm-designer-archive__hero {
    grid-template-columns: 1fr;
  }

  .sgm-designer-archive__media {
    max-width: 320px;
  }

  .sgm-store-map__layout {
    grid-template-columns: 1fr;
  }

  .sgm-store-map__sidebar {
    position: static;
    padding-right: 0;
  }

  .sgm-store-map__resizer {
    display: none;
  }

  .sgm-store-map__map {
    margin-left: 0;
  }

  .sgm-store-map__filters {
    grid-template-columns: 1fr;
  }

  .sgm-store-map__filters > .sgm-filter-group:first-child {
    grid-column: auto;
  }

  .sgm-store-map__button {
    width: 100%;
    justify-self: stretch;
  }


  .sgm-single-recipe__hero,
  .sgm-single-recipe__resource-grid {
    grid-template-columns: 1fr;
  }

  /* 🟢 NULSTIL grid column/row for galleri INLINE på ≤1024px (HTML rækkefølge: media → galleri → intro!) */
  .sgm-single-recipe__hero .sgm-single-recipe__media,
  .sgm-single-recipe__hero .sgm-single-recipe__hero-thumbnails--inline,
  .sgm-single-recipe__hero .sgm-single-recipe__intro {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .sgm-single-recipe__hero-thumbnails {
    width: 100%;
  }

  .sgm-single-recipe__hero-bottom {
    grid-template-columns: 1fr;
  }

  .sgm-single-recipe__hero-bottom-side {
    justify-content: flex-start;
  }

  .sgm-single-recipe__intro {
    padding-top: 0;
  }

  .sgm-single-recipe__facts,
  .sgm-single-recipe__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sgm-search-hero__bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 28px;
  }

  .sgm-search-hero__field {
    min-height: 0;
  }

  .sgm-search-hero__input {
    min-height: 44px;
    font-size: 18px;
  }

  .sgm-search-hero__button {
    width: 100%;
    min-width: 0;
  }

  .sgm-category-grid,
  .sgm-card-grid--three {
    grid-template-columns: 1fr;
  }

  .sgm-archive-results__meta {
    justify-content: flex-start;
  }

  /* ====== SINGLE OPSKRIFT: 3 små mobil-fixes ====== */
  /* 1) Kategorier: center aligned + MINDRE pludsplads (mere compact) + MERE AFSTAND TIL TITLEN */
  .sgm-section-heading__eyebrow--categories {
    justify-content: center !important;
    text-align: center !important;
    gap: 4px !important;          /* mindre afstand mellem kategorier */
    row-gap: 4px !important;      /* mindre mellemrum ved wrap (flere linjer) */
    margin-bottom: 18px !important; /* ➕ MERE AFSTAND til OVERSKRIFTEN nedenfor */
  }
  .sgm-section-heading__eyebrow--categories .sgm-section-heading__eyebrow-link {
    font-size: 10.5px !important; /* 12 → 10.5px: mindre tekst = kompaktere */
    letter-spacing: 0.12em !important;
  }
  .sgm-section-heading__eyebrow--categories .sgm-section-heading__eyebrow-sep {
    margin: 0 1px !important;     /* 0 2 → 0 1px: mindre afstand til punktum */
    font-size: 10px !important;
  }

  /* TITEL: 34px FAST (ikke clamp!) på mobil, CENTERET (pænere på mobil!)
     + STØRRE line-height for bedre læsbarhed når ord bryder over 2 linjer */
  .sgm-single-recipe__title {
    font-size: 34px !important;
    line-height: 1.16 !important;   /* øget: bedre mellemrum mellem linjer når title wrapper */
    text-align: center !important;
  }

  /* 🆕 NY: MOBILVENLIG DESIGNER BOKS (original 32px padding = 296px indhold → alt for smalt!)
     Nyt: 20px padding = 320px indhold på 360px skærm → +8% mere plads til tekst! */
  .sgm-single-recipe__designer-box-inner {
    padding: 20px !important;       /* 30px 32px → 20px (ENS padding alle 4 sider) */
    border-radius: 22px !important; /* mindre radius på mobil */
  }
  .sgm-single-recipe__designer-title {
    font-size: 22px !important;     /* 30px → 22px: mindre overskrift på smal skærm */
    line-height: 1.14 !important;
    margin-bottom: 12px !important;
  }
  .sgm-single-recipe__designer-content {
    font-size: 14.5px !important;   /* 15 → 14.5px (lidt mindre for bedre wrap) */
    line-height: 1.68 !important;   /* bedre linjeafstand til mobil læsning */
  }

  /* 🆕 NY: HERO INTRO + EXCERPT (de største tekst-blokke!)
     Bedre line-height, mindre font (hvis nødvendigt), og ABSOLUT ingen justify! */
  .sgm-single-recipe__hero-intro,
  .sgm-single-recipe__hero-intro p {
    font-size: 17.5px !important;   /* clamp(20px, ...) → 17.5px FAST på mobil */
    line-height: 1.76 !important;
    text-align: left !important;
  }
  .sgm-single-recipe__excerpt {
    font-size: 17px !important;
    line-height: 1.7 !important;
    text-align: left !important;
  }

  /* 🆕 NY: OVERSKRIFTER OG BRØDTEKST (ALT INDHOLD): FORHINDER EXTREME ORD-MELLEMRUM
     Tvinger ALT brød- og overskriftstekst til at være venstrejusteret (INGEN justify!)
     Fordi 'justify' på en smal boks (296px bred designer boks) skaber GRIMME store huller
     mellem ord, og ender med at sidste linje bliver skåret af! */
  .sgm-single-recipe,
  .sgm-single-recipe__content,
  .sgm-single-recipe__content p,
  .sgm-single-recipe__content li,
  .sgm-single-recipe__section-title,
  .sgm-single-recipe__list,
  .sgm-single-recipe__list li,
  .sgm-single-recipe__step-text,
  .sgm-single-recipe__item-subtext,
  .sgm-single-recipe__resource-note,
  .sgm-single-recipe__resource-value,
  .sgm-single-recipe__fact-value,
  .sgm-single-recipe__fact-label,
  .sgm-detail-card__value,
  .sgm-detail-card__label,
  .sgm-size-table__cell,
  .sgm-single-recipe__author-name,
  .sgm-single-recipe__summary-item,
  .sgm-single-recipe__hero-intro,
  .sgm-single-recipe__excerpt,
  .sgm-single-recipe__title,
  .sgm-single-recipe__designer-content,
  .sgm-single-recipe__designer-content p,
  .sgm-single-recipe__designer-title {
    text-align: left !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
  }

  .sgm-single-recipe__details {
    grid-template-columns: 1fr;
  }

  .sgm-single-recipe__facts,
  .sgm-size-table__row {
    grid-template-columns: 1fr;
  }

  /* 2) GALLERI (hero-bottom thumbnails): Sørg for det kommer RIGTIGT under
     hero main (ved at ændre order, hvis de har været sat forkert).
     Hero er allerede 1 spalt, hero-bottom også. Bare sørg for at
     thumbnails er 100% bredde og har orden order:0 */
  .sgm-single-recipe__hero {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .sgm-single-recipe__hero-bottom {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .sgm-single-recipe__hero-bottom-media {
    order: 1;
    width: 100%;
  }
  .sgm-single-recipe__hero-bottom-side {
    order: 2;
    width: 100%;
  }
  .sgm-single-recipe__thumbnails {
    width: 100%;
    justify-content: center !important;
  }

  /* 3) FAKTA BOKSE (Pinde/Konstruktion/Garn etc.): 1 pr række,
     større luft, selve bokse fylder 100% ud. (grid 1fr er allerede sat
     ovenfor, men sørg for at hvert fact-card også er 100% og centered
     tekst + større touch-venlig størrelse) */
  .sgm-single-recipe__facts {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 20px 16px !important;
    margin: 0 0 40px;
    border-radius: 24px !important;
  }
  .sgm-single-recipe__fact {
    width: 100%;
    padding: 16px;
    min-height: auto;
  }
  .sgm-single-recipe__fact-icon {
    width: 58px !important;
    height: 58px !important;
  }
  .sgm-single-recipe__fact-icon svg {
    width: 30px !important;
    height: 30px !important;
  }
  .sgm-single-recipe__fact-label {
    font-size: 12px !important;
  }
  .sgm-single-recipe__fact-value {
    font-size: 17px !important;
    line-height: 1.4 !important;
  }

  .sgm-size-table__cell + .sgm-size-table__cell {
    border-left: 0;
    border-top: 1px solid #eee3d8;
  }

  .sgm-single-recipe__resource-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .sgm-single-recipe__resource-value {
    text-align: left;
  }

  /* ====== SINGLE OPSKRIFT: VURDERING CENTERET (kun mobil) ====== */
  .sgm-single-recipe__engagement .sgm-single-recipe__rating,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary {
    justify-items: center !important;
    text-align: center !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-label,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-title {
    text-align: center !important;
    width: 100%;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-stars,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-stars {
    justify-content: center !important;
  }
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-note,
  .sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-text {
    text-align: center !important;
  }

  /* ============================================================================
     ⚡⚡⚡ ULTIMAT SINGLE OPSKRIFT MOBIL-FIX (SIDSTE REGEL! OVERSKRIVER ALT ANDET!) ⚡⚡⚡
     ============================================================================
     Før: - hero intro/excerpt/title havde fast max-width 820/620/720px → overflow!
          - aspect-ratio 4:4.9 → billede 492px højt på 402px mobil (63% af skærm!)
          - lav specificity → temaet overskrev med justify + overflow
     Efter: - ALTID 100% bredde på ALLE containere! (+ STÆRK 0,2,0 specificity!)
            - Hero billede: 16/10 bredformat → 251px højt! SPARE 241px højde!
            - Thumbnails 96→64px + ALT brødtekst: venstrejusteret + afstavet + bryder!
  */

  /* 🔥 1) CONTAINERE: INGEN 820/620/720px max-width længere! ALTID 100%! */
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__title,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__excerpt,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__hero-intro,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__intro,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-box,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-box-inner,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__content,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__content > *,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__content p,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__content li,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__section-title,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__list,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__list li,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__step-text,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__item-subtext,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__resource-card,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__hero-bottom-side {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
  }

  /* Undtagelse: designer boks inner MÅ stadig have 20px padding (ikke 0!) */
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-box-inner {
    padding: 20px !important;
  }

  /* 🔥 2) BRØDTEKST: CENTERET (pænere på mobil, ingen justify bug!) + ORD BRYDER KORREKT + AFSTAVET! */
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__hero-intro,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__hero-intro p,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__excerpt,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__content,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__content p,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__content li,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content p,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content li,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content a,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__list li,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__step-text,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__item-subtext,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-title,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__designer-content,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__resource-note,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__resource-value,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__fact-value,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__fact-label,
  .sgm-widget.sgm-single-recipe .sgm-detail-card__value,
  .sgm-widget.sgm-single-recipe .sgm-detail-card__label,
  .sgm-widget.sgm-single-recipe .sgm-size-table__cell,
  .sgm-widget.sgm-single-recipe .sgm-size-table__note,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__author-name,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__author-secondary-name,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__author-label,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__summary-item {
    text-align: center !important;
    word-break: break-word !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    -webkit-hyphens: auto !important;
    -moz-hyphens: auto !important;
    hyphens: auto !important;
    line-height: 1.68 !important;
  }

  /* 🔥 3) HERO BILLEDE: FJERN VANVITTIGT 4:4.9 → 16/10 BREDFORMAT!
     FØR (402px mobil): 492px højt (63% af hele skærmen!) → EFTER: 251px højt! SPARE 241px! */
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__media img,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__media .sgm-card__placeholder {
    aspect-ratio: 16 / 10 !important;
    border-radius: 24px !important;
    height: auto !important;
  }

  /* 🔥 4) GALLERI THUMBNAILS: 96px → 64px! Mere kompakt = hurtigere synligt! */
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__thumbnail {
    width: 64px !important;
    height: 64px !important;
    border-radius: 14px !important;
    flex: 0 0 auto !important;
  }
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__thumbnails {
    gap: 8px !important;
  }

  /* 🔥 5) TITLEN: Sikre at LÆNGE danske navne (f.eks. "Tæppe med snoningsmønster") ALDRIG løber ud! + CENTERET pænere på mobil! */
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__title {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    -webkit-hyphens: auto !important;
    hyphens: auto !important;
    font-size: 32px !important;  /* 34 → 32px (lidt mindre + bedre line-height!) */
    line-height: 1.18 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
  }

  /* ============================================================================
     ⚠️⚠️⚠️ NATIONALNOOD NUMMER 1 GRID OVERFLOW FIX (CLASSIC BUG SOM INGEN ANDRE REGEL!)
     ============================================================================
     ÅRSAG: CSS Grid items har DEFAULT `min-width: auto`!
     → Grid kolonne `1fr` skal være 402px bred på mobil, MEN dens barn (.intro) har
     en MAX WIDTH 820px → grid item bliver 820px (IKKE 402px!) → TEKST SKÆRES MIDT I!
     FIX: Sæt `min-width: 0` på ALLE grid containers OG items! (0 = "min bredde 0px")
     + overflow-x: hidden (for at være HELT sikker på at INTET løber ud!)
  */
  .sgm-widget.sgm-single-recipe,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__hero,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__hero-bottom,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__hero-bottom-media,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__hero-bottom-side,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__intro,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__media,
  .sgm-widget.sgm-single-recipe .sgm-single-recipe__hero-thumbnails--inline {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Grid CATCH-ALL (SIDSTE / STÆRKESTE REGEL I HELE MEDIA BLOKKEN!)
     For at være 100% sikker på at INTET kan løbe ud i højre kant → SÆT PÅ ALLE!
     Specificitet: 0,4,0 (stærkere end ALT andet!) */
  html body.single-sg_recipe main#primary #content .elementor .elementor-widget-wrap .elementor-widget-container .sgm-widget.sgm-single-recipe,
  html body.single-sg_recipe main#primary #content .elementor .elementor-widget-wrap .elementor-widget-container .sgm-widget.sgm-single-recipe * {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    -webkit-hyphens: auto !important;
    hyphens: auto !important;
    box-sizing: border-box !important;
  }

  /* Undtagelse for SVG, IMG og billeder skal IKKE croppes eller overtækkes af overflow-x: clip! */
  html body.single-sg_recipe main#primary #content .elementor .elementor-widget-wrap .elementor-widget-container .sgm-widget.sgm-single-recipe svg,
  html body.single-sg_recipe main#primary #content .elementor .elementor-widget-wrap .elementor-widget-container .sgm-widget.sgm-single-recipe img,
  html body.single-sg_recipe main#primary #content .elementor .elementor-widget-wrap .elementor-widget-container .sgm-widget.sgm-single-recipe iframe {
    min-width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    overflow: visible !important;
  }
}

.sgm-store-map__item-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.sgm-store-map__item-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.sgm-store-map__item-select:focus-visible {
  outline: none;
}

.sgm-store-map__item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sgm-store-map__item-action {
  min-width: 0;
  white-space: nowrap;
}

.sgm-store-map__item-action.is-active,
.sgm-single-recipe__secondary-action.is-active {
  background: var(--sgm-widget-button-bg);
  color: var(--sgm-widget-button-text);
  border-color: var(--sgm-widget-button-bg);
}

.sgm-single-recipe__secondary-action {
  border: 1px solid var(--sgm-widget-button-bg);
  background: var(--sgm-widget-button-bg);
  color: var(--sgm-widget-button-text);
}

.sgm-single-recipe__secondary-action:hover,
.sgm-single-recipe__secondary-action:focus-visible {
  background: var(--sgm-widget-button-hover-bg);
  color: var(--sgm-widget-button-hover-text);
  border-color: var(--sgm-widget-button-hover-bg);
}

.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: #a04141;
}

.sgm-account__feedback.is-success,
.sgm-profile__feedback.is-success {
  color: #3c7d58;
}

.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: #59645b !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: #355b45 !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: #355b45 !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: #59645b;
  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: #94392e;
  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: #59645b !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: #59645b !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: #355b45 !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: #59645b !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: #59645b !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: #59645b !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: #59645b !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: #355b45;
  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: #355b45;
  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: #59645b;
  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: #59645b; }
.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: #355b45;
  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: #355b45;
  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: #59645b !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: #59645b !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: #355b45 !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: #355b45 !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: #59645b !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: #59645b !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: #59645b !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: #59645b !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: #355b45 !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: #355b45 !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: #59645b !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: #59645b !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;
  }
}

/* =========================================================
 * 🧩 FORUM — COMPACT LAYOUT (sidebar / højre kolonne smal plads)
 * =========================================================
 * Aktiv pÃ¥: .sgm-forum-topic-list--layout-compact
 * FormÃ¥l: GÃ¸r alt 35% mere kompakt (mindre padding, mindre
 * skrift, 1-2 linjers toolbar i stedet for 4 separate rÃ¦kker).
 * ========================================================= */

/* A) HEADING (meget mindre, mindre mb) */
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-section-heading__title {
  font-size: clamp(18px, 2.2vw, 28px) !important;
  margin-bottom: 10px !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-section-heading__eyebrow {
  font-size: 11px !important;
  margin-bottom: 4px !important;
}

/* B) TOOLBAR: flex-wrap i 2 rÃ¦kker, 50% pr felt, mindre inputs, mindre button */
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px 10px !important;
  align-items: stretch !important;
  margin-bottom: 10px !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar .sgm-filter-input[type="search"] {
  grid-column: 1 / -1 !important;   /* SÃ¸g over HEL 1. rÃ¦kke */
  flex: 1 1 100% !important;
  min-width: 0 !important;
  min-height: 36px !important;
  padding: 8px 13px !important;
  font-size: 13.5px !important;
  border-radius: 14px !important;
  border-width: 1.5px !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar .sgm-filter-select.sgm-forum-toolbar__filter {
  min-height: 36px !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  border-radius: 14px !important;
  border: 1.5px solid #eadfd6 !important;
  background: #fffdfa !important;
  color: #1f1a17 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  transition: all .15s ease !important;
  box-shadow: inset 0 1px 2px rgba(160,122,99,.05);
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar .sgm-filter-select.sgm-forum-toolbar__filter: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-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar .sgm-search-hero__button[type="submit"] {
  grid-column: 1 / -1 !important; /* knap over HEL sidste rÃ¦kke */
  width: 100% !important;
  min-height: 36px !important;
  padding: 8px 20px !important;
  font-size: 13.5px !important;
  border-radius: 14px !important;
  border-width: 1.5px !important;
  margin: 0 !important;
}
@media (min-width: 721px) {
  /* Desktop WIDE kompakt: 2 kolonner, knap flex 50%: 2 rÃ¦kker i alt */
  .sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
  .sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar .sgm-filter-input[type="search"] {
    grid-column: 1 / 3 !important; /* sÃ¸g over 2/3 */
  }
  .sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar .sgm-filter-select.sgm-forum-toolbar__filter:nth-of-type(2) {
    grid-column: auto !important;
  }
  .sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar .sgm-search-hero__button[type="submit"] {
    grid-column: 3 / 4 !important; /* knap i 3. kol */
  }
}

/* C) META (4 emner + Kategori chip): mindre, mindre gap */
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar__meta {
  margin: 2px 0 12px !important;
  gap: 6px !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar__count,
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar__category {
  padding: 4px 10px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}

/* D) LISTE: gap 18 â†’ 10px mellem kort */
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-topic-list__items {
  gap: 10px !important;
}

/* E) KORT: padding 24/26 â†’ 14/16px, gap 12 â†’ 8px, radius 24 â†’ 18 */
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-topic-card {
  padding: 14px 16px 12px !important;
  gap: 8px !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 8px rgba(160,122,99,.05), inset 0 0 0 1px rgba(255,255,255,.6);
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-topic-card:hover {
  transform: translateY(-1px) !important;
}

/* E1) META i kort: mindre, gap mindre */
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-topic-card__meta {
  gap: 10px !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-topic-card__eyebrow {
  font-size: 10.5px !important;
  letter-spacing: 0.14em !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-topic-card__stats {
  font-size: 12px !important;
}

/* E2) TITEL: 20px clamp â†’ 16px clamp, line-height mindre */
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-topic-card__title {
  font-size: clamp(14px, 1.6vw, 18px) !important;
  line-height: 1.25 !important;
}

/* E3) EXCERPT: 15px â†’ 13px, linjehÃ¸jde 1.6 â†’ 1.5, trim til 18 ord? Nej font size nok */
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-topic-card__excerpt {
  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* E4) BILLEDER 110px â†’ 84px */
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-media.sgm-forum-media--compact {
  grid-template-columns: repeat(auto-fill, minmax(70px, 110px)) !important;
  grid-auto-rows: 84px !important;
  gap: 8px !important;
  margin: 2px 0 !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-media.sgm-forum-media--compact .sgm-forum-media__item {
  max-height: 84px !important;
  border-radius: 12px !important;
  border-width: 1px !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-media.sgm-forum-media--compact .sgm-forum-media__image {
  max-height: 82px !important;
  border-radius: 11px !important;
}

/* E5) Kategori chips: mindre */
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-topic-card__categories {
  gap: 6px !important;
  margin: 0 !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-category-chip {
  padding: 4px 10px !important;
  font-size: 11px !important;
  border-width: 1px !important;
}

/* E6) FOOTER (dato + LÃ¦s-link): mindre, pt mindre */
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-topic-card__footer {
  gap: 10px !important;
  padding-top: 7px !important;
  margin-top: 0 !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-topic-card__date {
  font-size: 11.5px !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-topic-card__link {
  font-size: 13px !important;
  text-underline-offset: 2px !important;
  text-decoration-thickness: 1.5px !important;
}

/* E7) Empty state: mindre padding */
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-empty-state {
  padding: 16px 14px !important;
  font-size: 13px !important;
  border-radius: 16px !important;
}

/* F) PAGINATION kompakt (mindre knapper) */
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-simple-pagination.sgm-forum-pagination {
  margin-top: 14px !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-simple-pagination .sgm-pagination-list {
  gap: 4px !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-simple-pagination .page-numbers {
  padding: 5px 10px !important;
  min-width: 30px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}
.sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-simple-pagination .sgm-pagination-list__label {
  display: inline !important;
}

/* G) Mobil COMPACT + mobil normal overlap: ikke ryk for meget */
@media (max-width: 720px) {
  /* PÃ¥ mobil: lader mobil-reglerne (fra L12362) vÃ¦re mest magtige for padding */
  .sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar .sgm-filter-input[type="search"],
  .sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar .sgm-filter-select.sgm-forum-toolbar__filter,
  .sgm-widget.sgm-forum-topic-list.sgm-forum-topic-list--layout-compact .sgm-forum-toolbar .sgm-search-hero__button[type="submit"] {
    grid-column: 1 / -1 !important;
  }
}

/* Slut COMPACT forum */

/* =========================================================
 * 🧶 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: #94392e !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: #59645b !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: #59645b !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;
  position: relative; overflow: hidden;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
  cursor: pointer;
}
.sgm-rr__submit:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(45,39,35,0.22); }
.sgm-rr__submit:active { transform: translateY(0); }
.sgm-rr__submit[aria-disabled="true"],
.sgm-rr__submit:disabled,
.sgm-rr__submit.sgm-rr__submit--loading {
  cursor: progress; opacity: 0.72; filter: saturate(0.85);
  pointer-events: none; box-shadow: none !important; transform: none !important;
}
.sgm-rr__submit--loading .sgm-rr__submit-label { display: none; }
.sgm-rr__submit--loading .sgm-rr__submit-loading { display: inline-flex !important; align-items: center; gap: 10px; }
.sgm-rr__submit--loading::after {
  content: ""; display: inline-block;
  width: 16px; height: 16px; margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.55); border-top-color: #fff;
  border-radius: 50%;
  animation: sgm-rr-spin 650ms linear infinite;
  vertical-align: middle;
}
@keyframes sgm-rr-spin { to { transform: rotate(360deg); } }
.sgm-rr__privacy { margin: 0; padding: 0; color: #8b6a4a; opacity: 0.85; line-height: 1.5; }
.sgm-rr__privacy small { font-size: 12px; }
.sgm-rr__error {
  margin-top: 16px; padding: 13px 17px;
  background: #fff1f2; border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 10px;
  color: #881337; font-size: 14px; line-height: 1.6;
  white-space: pre-wrap;
}
.sgm-rr__success {
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: 18px;
  padding: 30px 32px;
  text-align: center;
  animation: sgm-rr-pop 320ms cubic-bezier(.2,.9,.2,1.1);
  margin-top: 8px;
}
@keyframes sgm-rr-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.sgm-rr__success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; margin: 0 0 14px 0;
  background: #355b45; color: #fff;
  border-radius: 50%; font-size: 30px;
  box-shadow: 0 12px 30px rgba(22,163,74,0.35);
}
.sgm-rr__success-eyebrow { margin: 0 0 6px 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #166534; }
.sgm-rr__success-title { margin: 0 0 10px 0; font-size: 26px; font-weight: 700; color: #14532d; letter-spacing: -0.01em; }
@media (max-width: 640px) { .sgm-rr__success-title { font-size: 22px; } }
.sgm-rr__success-text {
  margin: 0 auto 18px auto; max-width: 520px;
  font-size: 14.5px; line-height: 1.6;
  color: #14532d; opacity: 0.9;
}
.sgm-rr__success-text p { margin: 0 0 10px 0; }
.sgm-rr__success-text p:last-child { margin-bottom: 0; }
.sgm-rr__success-link {
  display: inline-block; padding: 14px 26px;
  background: #fff; color: #14532d;
  text-decoration: none; border-radius: 999px;
  font-weight: 700; font-size: 14.5px;
  border: 1px solid #86efac;
  box-shadow: 0 8px 20px rgba(20,83,45,0.08);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.sgm-rr__success-link:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(20,83,45,0.18); color: #14532d; background: #f0fdf4; }
.sgm-rr--guest .sgm-rr__field--name input,
.sgm-rr--guest .sgm-rr__field--email input { border-color: rgba(146,64,14,0.35); }
@media (prefers-reduced-motion: reduce) {
  .sgm-rr__submit, .sgm-rr__input, .sgm-rr__success { transition: none !important; animation: none !important; }
  .sgm-rr__submit--loading::after { animation-duration: 1.3s; }
}

/* ============================================================================
   ⚡⚡⚡ NUKLEÆR SINGLE OPSKRIFT: RET AF RUNDE HJØRNER + THUMB CIRKLER + BILLEDDISPLAY
   Overtrumfer ALLE eksisterende regler, alle media queries, alle tema-overskrivninger.
   ============================================================================ */

/* -------- 1) HERO BILLEDE: FORCE AFROUNDE HJØRNER PÅ ALLE VIEWPORTS -------- */
html body .sgm-single-recipe .sgm-single-recipe__media,
html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__media {
  overflow: hidden !important;
  border-radius: 32px !important;
  box-shadow: 0 18px 46px rgba(31, 26, 23, 0.10);
}
html body .sgm-single-recipe .sgm-single-recipe__media img,
html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__media img,
html body .sgm-single-recipe .sgm-single-recipe__main-image,
html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__main-image,
html body .sgm-single-recipe .sgm-single-recipe__media .sgm-card__placeholder,
html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__media .sgm-card__placeholder {
  border-radius: 32px !important;
  aspect-ratio: 4 / 5 !important;
  object-fit: cover !important;
  display: block !important;
  overflow: hidden !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

/* Mobil ( < 820px ) : lidt mindre radius, stadig pænt format */
@media (max-width: 820px) {
  html body .sgm-single-recipe .sgm-single-recipe__media,
  html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__media {
    border-radius: 24px !important;
  }
  html body .sgm-single-recipe .sgm-single-recipe__media img,
  html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__media img,
  html body .sgm-single-recipe .sgm-single-recipe__main-image,
  html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__main-image {
    border-radius: 24px !important;
  }
}

/* -------- 2) GALLERI THUMBNAILS: FULDE CIRKLER (50% radius), INGEN Aflange OVALER! -------- */
/* Sikre FIRE ting for cirkler aldrig bliver ovale:
   a) Container ALTID firkantet (aspect-ratio 1/1 + width = height)
   b) border-radius 50%
   c) overflow hidden (billedet croppes, ikke strukket)
   d) img inde: objekt-fit cover + 100% w/h (ingen forvrængning!) */
html body .sgm-single-recipe .sgm-single-recipe__thumbnail,
html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__thumbnail,
.sgm-single-recipe__hero-thumbnails--inline .sgm-single-recipe__thumbnail {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 2px solid #eadfd6 !important;
  background: #fff9ee !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateZ(0);
  will-change: transform;
}
html body .sgm-single-recipe .sgm-single-recipe__thumbnail img,
html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__thumbnail img,
.sgm-single-recipe__hero-thumbnails--inline .sgm-single-recipe__thumbnail img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  display: block !important;
  overflow: hidden !important;
}
/* Aktiv thumbnail: mørkere kant (markér valgt) */
html body .sgm-single-recipe .sgm-single-recipe__thumbnail.is-active,
html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__thumbnail.is-active {
  border-color: #8a6b54 !important;
  box-shadow: 0 0 0 3px rgba(180, 119, 74, 0.18) !important;
}
/* Hover/fokus: Lysere brun kant + let zoom (pænere UX) */
html body .sgm-single-recipe .sgm-single-recipe__thumbnail:hover,
html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__thumbnail:hover,
html body .sgm-single-recipe .sgm-single-recipe__thumbnail:focus-visible,
html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__thumbnail:focus-visible {
  border-color: #b68770 !important;
  outline: none !important;
}
html body .sgm-single-recipe .sgm-single-recipe__thumbnail:hover img {
  transform: scale(1.06);
  transition: transform 0.25s ease;
}

/* --- Thumbnails på tablet/mobil: mindre størrelser, stadig PERFEKTE CIRKLER! --- */
@media (max-width: 1024px) {
  html body .sgm-single-recipe .sgm-single-recipe__thumbnail,
  html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__thumbnail {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
  }
}
@media (max-width: 640px) {
  html body .sgm-single-recipe .sgm-single-recipe__thumbnail,
  html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__thumbnail {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
  }
}

/* Sikre at selve thumbnails-wrap ALDRIG strekker items til ovaler (flex-stretch default!) */
html body .sgm-single-recipe .sgm-single-recipe__thumbnails,
html body.single-sg_recipe main .elementor .sgm-single-recipe .sgm-single-recipe__thumbnails {
  align-items: center !important;
  justify-content: flex-start !important;
}
/* Grid layout thumbnails (media query flow-column) også forced square */
html body .sgm-single-recipe .sgm-single-recipe__thumbnails[style*="grid"],
html body .sgm-single-recipe .sgm-single-recipe__thumbnails {
  align-content: start !important;
}

/* Undtagelse: hvis bruger har slået prefers-reduced-motion til → ingen hover zoom (a11y) */
@media (prefers-reduced-motion: reduce) {
  html body .sgm-single-recipe .sgm-single-recipe__thumbnail:hover img {
    transform: none !important;
    transition: none !important;
  }
}

/* ⚡⚡⚡ BILLEDSKARPHED (Rettet!): GLAT HØJ-KVALITET rendering, ingen pixel-nærmeste nabo
   Tidligere "crisp-edges" gjorde ALLE fotos PIXELEREDE (kun til pixelart/logo).
   Nu: browser default Lanczos/bicubic = blød, naturlig op/nedskalering af fotos
   + "high-quality" på understøttede browsere (Chromium 124+, Safari 16.5+) */
html body img,
html body .sgm-card__media img,
html body .sgm-my-cr__media img,
html body .sgm-single-recipe__media img,
html body .sgm-single-recipe__thumbnail img,
html body .elementor img.sgm-single-recipe__main-image {
  image-rendering: auto;
  image-rendering: high-quality;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
}
@media (min-resolution: 144dpi), (-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5) {
  html body img {
    image-rendering: auto;
    image-rendering: high-quality;
  }
}

/* Compact category widget: deliberately independent of legacy card/chip skins. */
.sgm-category-buttons { font-family: system-ui, sans-serif; }
.sgm-category-buttons .sgm-category-buttons__heading { margin: 0 0 10px; color: #355b45; font-size: 16px; }
.sgm-category-buttons .sgm-category-buttons__grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.sgm-category-buttons__grid > li { min-width: 0; margin: 0; padding: 0; }
.sgm-category-buttons .sgm-category-buttons__link { display: flex; align-items: center; justify-content: center; min-height: 44px; height: 100%; box-sizing: border-box; padding: 10px 12px; background: #fffefa; color: #355b45; border: 1px solid #d9ded5; border-radius: 7px; font: 600 15px/1.4 system-ui,sans-serif; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.sgm-category-buttons .sgm-category-buttons__link:hover { background: #edf2eb; border-color: #355b45; }
.sgm-category-buttons .sgm-category-buttons__link:focus-visible { outline: 3px solid #b77a19; outline-offset: 3px; }
@media(max-width:1024px) { .sgm-category-buttons .sgm-category-buttons__grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:767px) { .sgm-category-buttons .sgm-category-buttons__grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* Help guide: native disclosure, readable copy, and no JavaScript dependency. */
.sgm-help-guide { color:#263d2e; background:#fffefa; padding:clamp(20px,4vw,40px); border:1px solid #d7ded4; border-radius:20px; font-family:Arial,sans-serif; }
.sgm-help-guide h2 { color:#263d2e; font-size:clamp(26px,4vw,36px); line-height:1.25; margin:0 0 16px; }
.sgm-help-guide p, .sgm-help-guide li { color:#354639; font-size:18px; line-height:1.7; }
.sgm-help-guide__intro { max-width:70ch; margin:0 0 12px; }
.sgm-help-guide__hint { margin:0 0 24px; }
.sgm-help-guide__topics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.sgm-help-guide__topic { background:#fff; color:#263d2e; border:1px solid #cdd7c8; border-radius:12px; overflow:hidden; }
.sgm-help-guide__topic summary { padding:20px; min-height:52px; box-sizing:border-box; cursor:pointer; font-size:19px; font-weight:700; line-height:1.5; color:#263d2e; background:#f3f6ef; }
.sgm-help-guide__topic summary:hover { background:#e7eee1; color:#263d2e; }
.sgm-help-guide__body { padding:0 20px 22px; }
.sgm-help-guide__body ol { padding-left:26px; margin:16px 0; }
.sgm-help-guide__body li + li { margin-top:12px; }
.sgm-help-guide a.sgm-help-guide__link { display:inline-flex; align-items:center; min-height:48px; box-sizing:border-box; padding:12px 18px; border-radius:8px; background:#355b45; color:#fff; font-size:17px; font-weight:700; text-decoration:underline; }
.sgm-help-guide a.sgm-help-guide__link:hover { background:#264633; color:#fff; }
.sgm-help-guide :focus-visible { outline:3px solid #355b45; outline-offset:3px; }
@media(max-width:767px){.sgm-help-guide__topics{grid-template-columns:1fr;}}
/* Keep profile tab text readable even when a theme styles ordinary buttons. */
.sgm-widget.sgm-profile .sgm-profile-tab { background:#f3f6ef !important; color:#355b45 !important; border:1px solid #cdd7c8; min-height:48px; white-space:normal; }
.sgm-widget.sgm-profile .sgm-profile-tab:hover { background:#e7eee1 !important; color:#264633 !important; }
.sgm-widget.sgm-profile .sgm-profile-tab.is-active { background:#355b45 !important; color:#fff !important; }
.sgm-widget.sgm-profile .sgm-profile-tab__count { background:#fffefa !important; color:#355b45 !important; }
.sgm-widget.sgm-profile .sgm-profile-tab:focus-visible { outline:3px solid #355b45; outline-offset:3px; }
.sgm-profile__list-hint { font-size:16px; line-height:1.5; color:#354639; }
.sgm-profile-card__image.is-empty { display:flex; align-items:center; justify-content:center; color:#355b45; font-size:24px; }

.sgm-profile__more summary { min-height:48px; padding:12px; box-sizing:border-box; cursor:pointer; font-size:17px; font-weight:700; background:#f3f6ef; color:#355b45; border:1px solid #cdd7c8; border-radius:8px; }
.sgm-profile__more .sgm-profile__card-list { margin-top:12px; }
.sgm-profile__more summary:focus-visible { outline:3px solid #355b45; outline-offset:3px; }
