/* ========================================================================
 * SG Recipe Filter Engine V2 – Frontend CSS
 * Strikkeglad Master (v0.3.12+)
 *
 * ULTRA-KOMPAKT V2: Ingen max-h / ingen scrollbar.
 * Alt layout / compact styres af GLOBAL ULTRA-pakken i bunden af widgets.css
 * (den gælder for BÅDE V1 + V2, så ingen dobbelt-defs!)
 *
 * Kun V2-SPECIFIKKE ting (loading, disabled, chips, readonly, topbar) her.
 * ======================================================================== */

/* ───────────────── Loading state ──────── */
.sgmv2-is-loading {
    opacity: 0.82;
    position: relative;
    transition: opacity 180ms ease-out;
    pointer-events: auto;
}
.sgmv2-is-loading .sgm-simple-archive__grid::after {
    content: "";
    display: block;
    grid-column: 1 / -1;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, #a07a63 50%, transparent 100%);
    background-size: 200% 100%;
    animation: sgmv2-loading-bar 1.2s ease-in-out infinite;
    margin: 12px 0 0;
}
@keyframes sgmv2-loading-bar {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ───────────────── Disabled / 0-count filter options ──────── */
.sgmv2-is-disabled,
.sgm-simple-filter-checkbox.is-disabled {
    opacity: 0.48;
    cursor: not-allowed;
}
.sgmv2-is-disabled input[type="checkbox"],
.sgm-simple-filter-checkbox.is-disabled input[type="checkbox"] {
    cursor: not-allowed;
}
.sgmv2-is-disabled .sgm-simple-filter-checkbox__label,
.sgm-simple-filter-checkbox.is-disabled .sgm-simple-filter-checkbox__label {
    color: #8a7d70;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
/* KRAV 7: AKTIVE (checked) MÅ ALDRIG VÆRE DISABLED! */
.sgmv2-is-disabled.is-checked,
.sgm-simple-filter-checkbox.is-disabled.is-checked {
    opacity: 1 !important;
    cursor: pointer;
}
.sgmv2-is-disabled.is-checked input[type="checkbox"],
.sgm-simple-filter-checkbox.is-disabled.is-checked input[type="checkbox"] {
    cursor: pointer;
}

/* ───────────────── Active Filters (chips) ──────── */
.sgmv2-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 4px 0 12px;
}
.sgmv2-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 12px;
    /* 🎨 PREMIUM: Lys beige gradient + hvid kant, INGEN mørkebrun! */
    background: linear-gradient(135deg, #ffffff 0%, #fff8ee 40%, #f9e7cb 100%) !important;
    border: 1px solid #e0caa8 !important;
    color: #5c3f2b !important; /* 🔴 MØRK BRUN, INGEN overskrivning! */
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700 !important; /* 🔴 Fed! */
    cursor: pointer;
    transition: all 180ms cubic-bezier(.2,.7,.2,1);
    box-shadow:
        0 2px 6px rgba(160,122,99,.10),
        inset 0 1px 0 rgba(255,255,255,.95);
    position: relative;
    overflow: visible !important;
}
.sgmv2-chip:hover {
    background: linear-gradient(135deg, #a07a63 0%, #8a6550 100%) !important;
    color: #ffffff !important; /* 🔴 HVID TEKST PÅ HOVER! */
    border-color: #a07a63 !important;
    transform: translateY(-1px);
    box-shadow:
        0 5px 12px rgba(160,122,99,.30),
        inset 0 1px 0 rgba(255,255,255,.12);
}
.sgmv2-chip__label {
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    padding: 1px 0;
    color: inherit !important;
    font-weight: 700 !important;
}
/* Chip IKON venstre (🔍 for søgning, ☑️ for taxonomy filter) */
.sgmv2-chip__icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(92, 63, 43, 0.13) !important;
    color: #5c3f2b !important;
    border-radius: 7px;
    flex-shrink: 0;
    line-height: 1;
    transition: all .18s ease;
}
.sgmv2-chip:hover .sgmv2-chip__icon {
    background: rgba(255,255,255,.25) !important;
    color: #ffffff !important;
}
/* Tag/filter-navn NU FJERNET FOR TAXONOMY! SØGNING BRUGER IKON I STEDET! */
.sgmv2-chip__label small {
    display: none !important; /* 🔴 FJERNET ALTAF! Ingen "størrelsekategori" osv. */
}
.sgmv2-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 2px;
    /* 🎨 Pæn rund knap, IKKE mørk kugle! */
    background: rgba(92, 63, 43, 0.11) !important;
    color: #5c3f2b !important; /* 🔴 MØRK BRUN! */
    border-radius: 50%;
    font-size: 15px;
    font-weight: 800 !important;
    line-height: 1;
    transition: all .18s ease;
    flex-shrink: 0;
    border: 1px solid rgba(92, 63, 43, 0.18) !important;
}
.sgmv2-chip:hover .sgmv2-chip__remove {
    background: rgba(255,255,255,.28) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.32) !important;
    transform: rotate(90deg) scale(1.08);
}

/* ───────────────── Result count ──────── */
.sgmv2-result-count {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 14px;
    color: #5c4534;
    font-size: 15px;
    line-height: 1.4;
}
.sgmv2-result-count .sgmv2-count-label {
    color: #7c6554;
    font-weight: 500;
}
.sgmv2-count-number {
    font-size: 20px;
    font-weight: 800;
    color: #a07a63;
    letter-spacing: 0.2px;
}

/* ───────────────── V2 Layout (testside shortcode) ──────── */
.sgmv2-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 24px;
    max-width: 100%;
}
@media (max-width: 1024px) {
    .sgmv2-layout { grid-template-columns: 1fr; }
}
.sgmv2-layout__sidebar > * + * { margin-top: 16px; }
.sgmv2-layout--test {
    padding: 16px 0 32px;
}

/* ───────────────── No results ──────── */
.sgmv2-no-results {
    grid-column: 1 / -1;
    padding: 28px 24px;
    text-align: center;
    background: #fff8ec;
    border: 1px dashed #e0c69e;
    border-radius: 16px;
    color: #5c4534;
}
.sgmv2-no-results h3 {
    margin: 0 0 6px;
    font-size: 19px;
    color: #a07a63;
}
.sgmv2-no-results p {
    margin: 0;
    font-size: 14px;
    color: #6d523e;
}

/* ───────────────── Readonly Mode (Mulighed A, R ≤ 1 → ingen ubrugte klik) ──────── */
.sgmv2-readonly-mode { position: relative; }
.sgmv2-readonly-mode::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 14px 14px 0 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(160,122,99,.18),
        rgba(160,122,99,.18) 6px,
        rgba(160,122,99,.05) 6px,
        rgba(160,122,99,.05) 12px
    );
    pointer-events: none;
}

/* Readonly-disabled: Forskellig visuelt fra "count=0 disabled" (ingen line-through!) */
.sgmv2-readonly-disabled,
.sgmv2-readonly-mode .sgmv2-readonly-disabled {
    opacity: 0.58;
    cursor: not-allowed !important;
    filter: saturate(0.55);
}
.sgmv2-readonly-disabled .sgm-simple-filter-checkbox__label,
.sgmv2-readonly-mode .sgmv2-readonly-disabled .sgm-simple-filter-checkbox__label {
    text-decoration: none !important; /* VIGTIGT: ingen gennemstregning (ingen "forkert" følelse) */
    color: #7a6856;
}
.sgmv2-readonly-disabled::after {
    content: "🔒";
    margin-left: 10px;
    font-size: 13px;
    vertical-align: middle;
}
/* Override: Allerede markerte (aktive) KAN IKKE VÆRE readonly disabled! */
.sgmv2-readonly-disabled.is-checked,
.sgmv2-readonly-mode .sgmv2-readonly-disabled.is-checked {
    opacity: 1 !important;
    filter: none !important;
    cursor: pointer !important;
}
.sgmv2-readonly-disabled.is-checked::after,
.sgmv2-readonly-mode .sgmv2-readonly-disabled.is-checked::after {
    content: "";
    display: none;
}

/* ───────────────── V2 specifik accordion base (ingen polstring override
                     – den rigtige compact kommer fra global ULTRA-pak widgets.css) */
[data-sgmv2-filter-group] .sgm-filter-group__accordion-header {
    padding: 14px 18px;
    border-radius: 14px;
}
[data-sgmv2-filter-group] .sgm-filter-group__accordion-header:hover {
    background: #f7ecda;
}

/* ════════════════════════════════════════════════════════════
   ULTRA KOMPAKT V2 (ingen scrollbar! Ingen max-h)
   Alt compact layout = widgets.css bunden (der gælder for V1+V2)
   ════════════════════════════════════════════════════════════ */
.sgmv2-recipe-filter.sgm-simple-filter-panel {
    max-height: none !important;
    overflow: visible !important;
}

/* ════════════════════════════════════════════════════════════
   PREMIUM RYD-KNAP + TOPBAR DESIGN (med CHIPS!)
   ════════════════════════════════════════════════════════════ */
.sgmv2-filter-topbar {
    display: flex;
    flex-direction: column; /* 🔧 Header (count + ryd alle) OVER + Chips UNDER */
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 16px;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #fff5e1 0%, #fbe6eb 45%, #fff1db 100%);
    border: 1px solid #e6d4b7;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(160, 122, 99, 0.10);
    transition: all .22s ease;
    position: relative;
    overflow: hidden;
}
.sgmv2-filter-topbar__header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* count venstre, ryd-alle højre */
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.sgmv2-filter-topbar__chips.sgmv2-active-filters {
    padding: 2px 0 2px; /* Reducer padding, da den allerede er i en gradient-box! */
    z-index: 1;
    position: relative;
}
.sgmv2-filter-topbar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #a07a63 50%, transparent 100%);
    opacity: .65;
}
.sgmv2-filter-topbar.is-active {
    box-shadow: 0 8px 22px rgba(160, 122, 99, 0.16);
    transform: translateY(-1px);
}
.sgmv2-filter-topbar__count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #5c4534;
    font-weight: 500;
    line-height: 1;
    position: relative;
    z-index: 1;
}
.sgmv2-filter-topbar__count-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    background: linear-gradient(135deg, #a07a63 0%, #8a6550 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(160, 122, 99, 0.25);
    letter-spacing: 0.2px;
}
.sgmv2-filter-topbar__count-text {
    font-size: 14.5px;
    font-weight: 600;
    color: #6d543f;
}

/* ───── Pæn Ryd-alle knap (PREMIUM UDSEENDE - Ingen pink! 100% kontrast! MINDRE!) ───── */
.sgmv2-clear-filters--inline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 14px 7px 11px !important;
    min-height: 34px !important;
    max-height: 36px !important;
    /* 🎨 Pæn beige-gradient, IKKE hvid+pink! */
    background: linear-gradient(180deg, #fffbf2 0%, #ffeac8 100%) !important;
    color: #5c3f2b !important; /* 🔴 MØRK BRUN, INGEN OVERSKRIVNING! */
    font-size: 13px !important;
    font-weight: 800 !important; /* 🔴 MEGET FED! */
    letter-spacing: 0.1px !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.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
    opacity: 1 !important; /* Sikre IKKE pink/gammel opacity bug! */
}
.sgmv2-clear-filters--inline svg {
    color: #5c3f2b !important; /* 🔴 MØRK BRUN IKON! */
    width: 14px !important;
    height: 14px !important;
    margin-right: 6px !important;
    transition: all .22s ease !important;
    opacity: 1 !important;
    stroke: currentColor !important;
    fill: none !important;
}
.sgmv2-clear-filters--inline::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, #fff4d8 0%, #ffdba9 100%) !important;
    opacity: 0 !important;
    transition: opacity .22s ease !important;
    z-index: -1 !important;
}
.sgmv2-clear-filters--inline:hover {
    background: linear-gradient(135deg, #a07a63 0%, #8a6550 100%) !important;
    color: #ffffff !important; /* 🔴 HVID TEKST PÅ HOVER! */
    border-color: #a07a63 !important;
    transform: translateY(-1.5px) !important;
    box-shadow:
        0 6px 14px rgba(160, 122, 99, 0.34),
        0 1px 0 rgba(255,255,255,0.15) inset !important;
}
.sgmv2-clear-filters--inline:hover svg {
    color: #ffffff !important;
    transform: scale(1.08) !important;
    stroke: currentColor !important;
}
.sgmv2-clear-filters--inline:hover::before {
    opacity: 0 !important;
}
.sgmv2-clear-filters--inline:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 7px rgba(160, 122, 99, 0.22) !important;
}
/* Ryd-knap FOKUS (tilgængelighed) */
.sgmv2-clear-filters--inline:focus-visible {
    outline: none !important;
    color: #5c3f2b !important;
    box-shadow:
        0 0 0 3.5px rgba(160, 122, 99, 0.28),
        0 2px 7px rgba(160, 122, 99, 0.14) !important;
}

/* ── Topbar actions wrapper ── */
.sgmv2-filter-topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}
/* Compact ikon-knapper (Collapse / Expand) */
.sgmv2-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #fff;
    color: #8a6550;
    border: 1px solid #e3c9a4;
    border-radius: 12px;
    cursor: pointer;
    transition: all .22s cubic-bezier(.2,.7,.2,1);
    box-shadow: 0 2px 6px rgba(160, 122, 99, 0.06);
    position: relative;
    z-index: 1;
}
.sgmv2-icon-btn:hover {
    background: #a07a63;
    color: #fff;
    border-color: #a07a63;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 14px rgba(160, 122, 99, 0.24);
}
.sgmv2-icon-btn:active {
    transform: translateY(0);
}
.sgmv2-icon-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(160, 122, 99, 0.22);
}

/* ── Mobil < 480px (pæn wrap) */
@media (max-width: 480px) {
    .sgmv2-filter-topbar {
        padding: 12px 13px;
        gap: 12px !important;
    }
    .sgmv2-filter-topbar__header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .sgmv2-filter-topbar__count {
        justify-content: center;
    }
    .sgmv2-filter-topbar__actions {
        width: 100%;
        justify-content: space-between;
    }
    .sgmv2-clear-filters--inline {
        flex: 1;
        min-height: 42px;
    }
}

/* ════════════════════════════════════════════════════════════
   🔍 PREMIUM SØGEFELT (kaffe/vanilje design tokens)
   ════════════════════════════════════════════════════════════ */
.sgmv2-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 0 12px 0 44px;
    margin: 0 0 16px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf1 100%);
    border: 1.5px solid #e7d3b1;
    border-radius: 14px;
    box-shadow:
        0 3px 10px rgba(160, 122, 99, 0.09),
        inset 0 1px 0 rgba(255,255,255,.9);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        transform .2s ease;
}
.sgmv2-search-wrapper:hover {
    border-color: #d6b98e;
    box-shadow:
        0 5px 15px rgba(160, 122, 99, 0.14),
        inset 0 1px 0 rgba(255,255,255,.9);
}
.sgmv2-search-wrapper:focus-within {
    border-color: #a07a63;
    box-shadow:
        0 0 0 3.5px rgba(160, 122, 99, 0.18),
        0 5px 18px rgba(160, 122, 99, 0.19);
    background: linear-gradient(180deg, #ffffff 0%, #fff3dc 100%);
}
.sgmv2-search-wrapper.has-value {
    border-color: #c9a77b;
}

/* ── Forstørrelsesglas IKON (venstre side, fixed!) ── */
.sgmv2-search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #b48e6f;
    pointer-events: none;
    transition: color .2s ease, transform .2s ease;
}
.sgmv2-search-wrapper:focus-within .sgmv2-search-icon {
    color: #8a6550;
    transform: translateY(-50%) scale(1.06);
}

/* ── Input selve (mellem ikon → × knap) ── */
.sgmv2-search-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 10px 0;
    background: transparent;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    color: #5c4534;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.3;
    -webkit-appearance: none;
    appearance: none;
}
.sgmv2-search-input::placeholder {
    color: #b5977d;
    font-weight: 500;
    opacity: .95;
}
.sgmv2-search-input::-webkit-search-decoration,
.sgmv2-search-input::-webkit-search-cancel-button,
.sgmv2-search-input::-webkit-search-results-button,
.sgmv2-search-input::-webkit-search-results-decoration {
    display: none !important;
    -webkit-appearance: none;
}
/* FireFox klarer input af type search selv, fjern blå kant */
.sgmv2-search-input::-moz-focus-inner {
    border: 0 !important;
    padding: 0 !important;
}

/* ── × RYD-KNAP (højre side) ── */
.sgmv2-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    margin-left: 4px;
    padding: 0;
    background: #f4ead7;
    color: #9e7b60;
    border: 1px solid #e6d2ad;
    border-radius: 50%;
    cursor: pointer;
    transition:
        all .2s cubic-bezier(.2,.7,.2,1);
}
.sgmv2-search-clear:hover {
    background: linear-gradient(135deg, #a07a63 0%, #8a6550 100%);
    color: #fff;
    border-color: #8a6550;
    transform: translateY(-1px) rotate(90deg);
    box-shadow: 0 4px 10px rgba(160, 122, 99, 0.30);
}
.sgmv2-search-clear:active {
    transform: translateY(0) rotate(0);
    box-shadow: 0 1px 4px rgba(160, 122, 99, 0.2);
}
.sgmv2-search-clear:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 3px rgba(160, 122, 99, 0.22),
        0 2px 6px rgba(160, 122, 99, 0.12);
}

/* ── Mobil: Mindre søgefelt (40px højde, padding mindre) ── */
@media (max-width: 420px) {
    .sgmv2-search-wrapper {
        min-height: 42px;
        padding-left: 38px;
        padding-right: 8px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    .sgmv2-search-icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }
    .sgmv2-search-input {
        min-height: 40px;
        font-size: 14px;
    }
    .sgmv2-search-clear {
        width: 28px;
        height: 28px;
    }
}

/* ════════════════════════════════════════════════════════════
   🆕 PAGINERING (kaffe/vanilje design, match ryd-alle knapper)
   ════════════════════════════════════════════════════════════ */
.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;
}
.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, mindre mellemrum, skjul enkelte numre */
@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;
    }
}

/* ============================================================
   SINGLE RECIPE: Vurdering (locked / active states + pulse)
   ============================================================ */
/* ---------- DEFAULT (Tom) stjerne udseende ---------- */
.sgm-single-recipe__rating-star,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-star {
    color: #e0d2c4 !important;
    background-color: #fffdfa !important;
    border-color: #eadfd6 !important;
}
.sgm-single-recipe__rating-summary-star,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-star {
    color: #e0d2c4 !important;
    background-color: #fffdfa !important;
    border-color: #eadfd6 !important;
}
/* ---------- AKTIVE (udfyldte) stjerner) ---------- */
.sgm-single-recipe__rating-star.is-active,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-star.is-active {
    color: #a07a63 !important;
    background-color: rgba(160, 122, 99, 0.16) !important;
    border-color: #d4bca8 !important;
}
.sgm-single-recipe__rating-summary-star.is-active,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-star.is-active {
    color: #a07a63 !important;
    background-color: rgba(160, 122, 99, 0.16) !important;
    border-color: #d4bca8 !important;
}
.sgm-single-recipe__rating-summary-star.is-half,
.sgm-single-recipe__engagement .sgm-single-recipe__rating-summary-star.is-half {
    background: linear-gradient(90deg, rgba(160,122,99,0.16) 0%, rgba(160,122,99,0.16) 50%, #fffdfa 50%, #fffdfa 100%) !important;
    color: #a07a63 !important;
}
/* ---------- Låste stjerner (ikke completed / ikke logget ind) ---------- */
.sgm-single-recipe__rating.is-locked .sgm-single-recipe__rating-star,
.sgm-single-recipe__rating.is-logged-out .sgm-single-recipe__rating-star {
    opacity: 0.75 !important;
    color: #c9bab1 !important;
    filter: grayscale(0.55) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
}
.sgm-single-recipe__rating.is-locked .sgm-single-recipe__rating-note,
.sgm-single-recipe__rating.is-logged-out .sgm-single-recipe__rating-note {
    color: #8a6550 !important;
    font-weight: 600 !important;
}
/* ---------- aktive (klikbare hover) ---------- */
.sgm-single-recipe__rating.is-active .sgm-single-recipe__rating-star:hover:not(.is-active) {
    cursor: pointer !important;
    color: #a07a63 !important;
    background-color: rgba(160, 122, 99, 0.18) !important;
    border-color: #d4bca8 !important;
    transform: scale(1.08) !important;
}
/* ---------- "Vær den første" placeholder tekst i makers kolonnen ---------- */
.sgm-single-recipe__makers-empty,
.sgm-single-recipe__engagement .sgm-single-recipe__makers-empty {
    margin: 0 !important;
    padding: 12px 16px !important;
    font-size: 13.5px !important;
    color: #8a6550 !important;
    font-style: italic !important;
    background: rgba(160, 122, 99, 0.08) !important;
    border: 1px dashed rgba(160, 122, 99, 0.35) !important;
    border-radius: 16px !important;
    line-height: 1.5 !important;
}
/* Pulse-highlight animation på JEG HAR LAVET DENNE knap (når man klikker stjerne mens låst) */
@keyframes sgm-pulse-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(160, 122, 99, 0.62);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 16px rgba(160, 122, 99, 0);
        transform: scale(1.025);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(160, 122, 99, 0);
        transform: scale(1);
    }
}
.sgm-pulse-highlight {
    animation: sgm-pulse-highlight 1.2s ease-in-out 2 !important;
    animation-fill-mode: both !important;
}
