/* =============================================================
   EloBlocks – Frontend Styles v3.0
   ============================================================= */

.elo-sammenligning-wrapper,
.elo-annonce-wrapper {
    --elo-accent:     var(--eo-accent,      #16a34a);
    --elo-accent-lt:  var(--eo-accent-light,#4ade80);
    --elo-ink:        var(--eo-ink,         #0f1419);
    --elo-ink-soft:   var(--eo-ink-soft,    #3a3f47);
    --elo-muted:      var(--eo-muted,       #6b7280);
    --elo-bg:         var(--eo-bg,          #ffffff);
    --elo-subtle:     var(--eo-subtle,      #f5f5f3);
    --elo-paper:      var(--eo-paper,       #fafaf8);
    --elo-rule:       var(--eo-rule,        rgba(15,20,25,.09));
    --elo-rule-s:     var(--eo-rule-strong, rgba(15,20,25,.18));
    --elo-font:       var(--eo-sans,        "Plus Jakarta Sans", system-ui, sans-serif);
    --elo-radius:     var(--eo-radius,      14px);
    --elo-star:       #e5a93a;
    --elo-pip-groen:  #22c55e;
    --elo-pip-blaa:   #3b82f6;
    --elo-pip-orange: #f59e0b;
    --elo-gray-btn:   #9ca3af;

    /* 5 kolonner: Selskab | Tillæg | Månedlig | Årlig | CTA */
    --elo-grid: 1fr 90px 115px 130px 128px;

    /* Fast bredde/højde på logo-wrapper */
    --elo-logo-w: 72px;
    --elo-logo-h: 36px;
}

/* =============================================================
   SAMMENLIGNING
   ============================================================= */

.elo-sammenligning-wrapper {
    font-family: var(--elo-font);
    color: var(--elo-ink);
    width: 100%;
}

/* ── Filter ──────────────────────────────────────────────────── */
.elo-sammenligning-filters {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.elo-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.elo-filter-group label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--elo-muted);
}

.elo-filter-group select {
    appearance: none;
    -webkit-appearance: none;
    padding: 9px 32px 9px 12px;
    border: 1px solid var(--elo-rule-s);
    border-radius: 8px;
    font-family: var(--elo-font);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--elo-ink);
    background:
        var(--elo-bg)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%236b7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
        no-repeat right 10px center;
    cursor: pointer;
    min-width: 220px;
    transition: border-color .15s, box-shadow .15s;
}

.elo-filter-group select:focus {
    outline: none;
    border-color: var(--elo-accent);
    box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}

.elo-filter-badge { align-self: flex-end; padding-bottom: 2px; }

.elo-filter-badge__pill {
    display: inline-block;
    padding: 6px 12px;
    background: var(--elo-subtle);
    border: 1px solid var(--elo-rule-s);
    border-radius: 999px;
    font-family: var(--elo-font);
    font-size: 12px;
    font-weight: 600;
    color: var(--elo-muted);
}

/* ── Kolonneoverskrifter ─────────────────────────────────────── */
.elo-col-header {
    display: grid;
    grid-template-columns: var(--elo-grid);
    align-items: center;
    gap: 8px;
    padding: 0 16px 10px 20px;
    border-bottom: 2px solid var(--elo-ink);
}

.elo-ch {
    font-family: var(--elo-font);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--elo-muted);
}

/* ── Selskabsrækker ──────────────────────────────────────────── */
.elo-company-row {
    position: relative;
    background: transparent;
    border-bottom: 1px solid var(--elo-rule);
    transition: background .12s;
}

.elo-sammenligning-list .elo-company-row:first-child {
    border-top: 1px solid var(--elo-rule);
}

.elo-company-row:hover { background: var(--elo-paper); }

/* ── Rækkens indre grid ──────────────────────────────────────── */
.elo-row-inner {
    display: grid;
    grid-template-columns: var(--elo-grid);
    align-items: center;
    gap: 8px;
    padding: 13px 16px 13px 20px;
}

/* ── Kolonne 1: Logo-wrap + Firma info ──────────────────────── */
.elo-col-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

/*
   Logo-wrapper: fast størrelse på alle rækker →
   logoer af forskellig dimension fremstår ensartet.
*/
.elo-logo-wrap {
    flex-shrink: 0;
    width: var(--elo-logo-w);
    height: var(--elo-logo-h);
    display: flex;
    align-items: center;
    justify-content: center;
}

.elo-company-logo {
    display: block;
    max-width: var(--elo-logo-w);
    max-height: var(--elo-logo-h);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0 !important; /* tema-reset: forhindrer global img border-radius */
}

.elo-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 34px;
    border-radius: 8px;
    font-family: var(--elo-font);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.3px;
    line-height: 1;
}

/* Tekstblok */
.elo-company-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

/* Aftalenavn — primær tekst (firmanavn ses af logo) */
.elo-deal-name {
    font-family: var(--elo-font);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--elo-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.elo-company-sub {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.elo-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.elo-star-icon  { color: var(--elo-star); font-size: 11px; line-height: 1; }
.elo-rating-num { font-family: var(--elo-font); font-size: 11px; font-weight: 600; color: var(--elo-muted); }

.elo-meta-sep {
    font-size: 11px;
    color: var(--elo-rule-s);
    flex-shrink: 0;
}

.elo-bm-pip {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.elo-bm-pip--forbrugsafregnet { background: var(--elo-pip-groen); }
.elo-bm-pip--maanedsaconto    { background: var(--elo-pip-blaa); }
.elo-bm-pip--kvartalsaconto   { background: var(--elo-pip-orange); }

.elo-bm-text {
    font-family: var(--elo-font);
    font-size: 11px;
    color: var(--elo-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Datakolonner ────────────────────────────────────────────── */
.elo-col-data {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.elo-data-val {
    font-family: var(--elo-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--elo-ink);
    line-height: 1;
}

.elo-data-unit {
    font-family: var(--elo-font);
    font-size: 11px;
    color: var(--elo-muted);
    font-weight: 500;
}

/* Lille asterisk der indikerer gebyr er inkluderet i månedlig */
.elo-gebyr-note {
    font-size: 13px;
    font-weight: 700;
    color: var(--elo-muted);
    line-height: 1;
    cursor: default;
    margin-left: 1px;
}

/* ── Kolonne: Pris ───────────────────────────────────────────── */
.elo-col-pris {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.elo-pris-val {
    font-family: var(--elo-font);
    font-size: 15px;
    font-weight: 800;
    color: var(--elo-accent);
    line-height: 1;
    white-space: nowrap;
}

/* ── (i) Info-ikon — SVG, ingen Unicode ─────────────────────── */
.elo-info-svg {
    display: block;
    flex-shrink: 0;
    color: var(--elo-muted);
    transition: color .15s;
}

.elo-popup-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 2px;
    border-radius: 50%;
    transition: color .15s;
    color: var(--elo-muted);
}

.elo-popup-trigger:hover,
.elo-popup-trigger:focus,
.elo-popup-trigger.open {
    color: var(--elo-accent);
    outline: none;
}

/* ── Popup ───────────────────────────────────────────────────── */
.elo-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    width: 300px;
    pointer-events: none;
}

.elo-popup-trigger:hover .elo-popup,
.elo-popup-trigger:focus .elo-popup,
.elo-popup-trigger.open  .elo-popup { display: block; }

.elo-popup-inner {
    background: #111827;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

.elo-popup-title {
    display: block;
    font-family: var(--elo-font);
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 2px;
}

.elo-popup-meta {
    display: block;
    font-family: var(--elo-font);
    font-size: 11px;
    color: rgba(255,255,255,.45);
    margin-bottom: 10px;
}

.elo-popup-divider {
    display: block;
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: 6px 0;
}

.elo-popup-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
}

.elo-popup-row > span:first-child {
    font-family: var(--elo-font);
    font-size: 12px;
    color: rgba(255,255,255,.65);
    flex: 1;
    min-width: 0;
}

.elo-popup-row > span:last-child {
    font-family: var(--elo-font);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Gebyr-linje i popup — lidt dæmpet */
.elo-popup-row--gebyr > span:first-child { color: rgba(255,255,255,.5); }
.elo-popup-row--gebyr > span:last-child  { color: rgba(255,255,255,.7); }

.elo-popup-total-row > span:first-child {
    color: rgba(255,255,255,.9) !important;
    font-weight: 700;
}

.elo-popup-total-row > span:last-child {
    font-size: 14px !important;
    color: #4ade80 !important;
}

.elo-popup-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #111827;
    margin: 0 auto;
    position: relative;
    top: -1px;
}

/* ── CTA-knapper ─────────────────────────────────────────────── */
.elo-col-cta {
    display: flex;
    justify-content: flex-end;
}

.elo-tilbud-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    font-family: var(--elo-font);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity .15s, transform .1s;
    line-height: 1;
    min-width: 108px;
    text-align: center;
    color: #fff !important;
}

/* Grøn = partner — hardkodet så temaets --eo-accent ikke kan overskrive */
.elo-tilbud-btn:not(.elo-tilbud-btn--graa) {
    background: #16a34a;
}

.elo-tilbud-btn:not(.elo-tilbud-btn--graa):hover {
    opacity: .88;
    transform: translateY(-1px);
}

/* Grå = ikke-partner */
.elo-tilbud-btn--graa {
    background: var(--elo-gray-btn);
}

.elo-tilbud-btn--graa:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.elo-btn-arrow-svg {
    flex-shrink: 0;
    opacity: .85;
}

/* ── Månedlig kolonne (data + gebyr-trigger) ─────────────────── */
.elo-col-maaned {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

/* Lille (i) ved siden af månedlig pris — mere diskret end ved árlig */
.elo-popup-trigger--md .elo-info-svg {
    width: 13px;
    height: 13px;
    opacity: .7;
}

.elo-popup-trigger--md:hover .elo-info-svg,
.elo-popup-trigger--md:focus .elo-info-svg { opacity: 1; }

/* Popup der åbner til venstre (så den ikke løber ud af skærm) */
.elo-popup--left {
    left: auto;
    right: 0;
    transform: none;
}

.elo-popup--left .elo-popup-arrow {
    margin: 0 10px 0 auto;
}

/* ── CRO: Trust-pills (Billigst / Anbefalet) ─────────────────── */
.elo-deal-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.elo-trust-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--elo-font);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    line-height: 1.6;
    white-space: nowrap;
    pointer-events: none;
    flex-shrink: 0;
}

.elo-trust-pill--pris {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.elo-trust-pill--anbefalet {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ── CRO: Første/billigste ræk — subtil fremhævning ─────────── */
.elo-row--billigst {
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
}

.elo-row--billigst:hover { background: #e7faf0; }

/* ── CRO: Hover-cursor på hele rækken signalerer klikbarhed ──── */
.elo-company-row { cursor: default; }
.elo-col-cta a   { cursor: pointer; }

/* Knap-glow ved hover for mere CTA-tydelighed */
.elo-tilbud-btn:not(.elo-tilbud-btn--graa):hover {
    box-shadow: 0 4px 14px rgba(22,163,74,.35);
    opacity: 1;
    transform: translateY(-1px);
}
.elo-sammenligning-list { transition: opacity .2s; }
.elo-sammenligning-list.loading { opacity: .4; pointer-events: none; }

.elo-ingen-resultater {
    text-align: center;
    font-family: var(--elo-font);
    color: var(--elo-muted);
    padding: 28px 20px;
    font-size: 14px;
    background: var(--elo-paper);
    border: 1px solid var(--elo-rule);
    border-radius: 10px;
}

/* ── Disclaimer ──────────────────────────────────────────────── */
.elo-sammenligning-disclaimer { text-align: center; margin-top: 14px; margin-bottom: 0; }

.elo-disclaimer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--elo-font);
    font-size: 12px;
    color: var(--elo-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s;
}

.elo-disclaimer-link .elo-info-svg { width: 13px; height: 13px; }
.elo-disclaimer-link:hover { color: var(--elo-ink-soft); }


/* =============================================================
   RESPONSIVT — MOBIL
   Breakpoint 700px: skift til kortlayout
   ============================================================= */

@media (max-width: 700px) {
    .elo-sammenligning-filters { flex-direction: column; align-items: stretch; }
    .elo-filter-group select { min-width: unset; width: 100%; }
    .elo-col-header { display: none; }

    /* Popups på mobil: forankr til højre kant så de ikke forsvinder ud af skærm */
    .elo-col-pris .elo-popup,
    .elo-col-maaned .elo-popup {
        left: auto;
        right: 0;
        transform: none;
        width: min(300px, 88vw);
    }

    .elo-col-pris .elo-popup .elo-popup-arrow,
    .elo-col-maaned .elo-popup .elo-popup-arrow {
        margin: 0 14px 0 auto; /* pil rykkes mod højre i takt med forankringen */
    }

    /* Kortlayout: 2 rækker pr. selskab */
    .elo-row-inner {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 14px 16px;
    }

    /* Øverste sektion: logo + info */
    .elo-col-logo {
        gap: 12px;
        padding-bottom: 10px;
    }

    /* Undre sektion: data + knap — vandret på mobil */
    .elo-col-data,
    .elo-col-pris,
    .elo-col-cta { /* håndteres via datasection */ }

    /* Samlet data-bjælke */
    .elo-row-inner .elo-col-data,
    .elo-row-inner .elo-col-pris {
        display: none; /* skjules enkeltvist — vises samlet via .elo-mob-bar */
    }

    .elo-row-inner .elo-col-cta {
        margin-top: 10px;
        justify-content: stretch;
    }

    .elo-tilbud-btn {
        width: 100%;
        min-width: unset;
        padding: 11px 16px;
        font-size: 14px;
    }

    .elo-popup { left: 0; transform: none; width: min(300px, 90vw); }
}

/* Mobil-datapil: vises kun på mobil, genereres via CSS */
@media (max-width: 700px) {
    /*
       Da PHP allerede renderer kolonnerne i DOM,
       bruger vi en flex-row med alle data-cols.
       Vi overskriver displayet her.
    */
    .elo-row-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .elo-col-logo {
        padding-bottom: 10px;
        border-bottom: 1px solid var(--elo-rule);
        margin-bottom: 10px;
    }

    /* Vis datakolonnerne vandret i en linje */
    .elo-row-inner .elo-col-data,
    .elo-row-inner .elo-col-pris {
        display: flex;
    }

    /* Pak de 3 data-kolonner i én flex-rad */
    .elo-row-inner {
        display: flex;
        flex-direction: column;
    }

    /* Wrapper til de 3 datablokke + label */
    .elo-col-logo   { order: 1; }
    .elo-col-data:nth-of-type(2) { order: 2; }
    .elo-col-data:nth-of-type(3) { order: 3; }
    .elo-col-pris   { order: 4; }
    .elo-col-cta    { order: 5; }

    /* Lav en horisontal pill-bar af data-kolonnerne */
    .elo-row-inner .elo-col-data,
    .elo-row-inner .elo-col-pris {
        display: inline-flex;
    }

    /* Nulstil og lav en grid-linje: [Tillæg] [Månedlig] [Pris] */
    .elo-row-inner {
        display: grid;
        grid-template-areas:
            "logo logo logo logo logo"
            "d1   d2   .    pris pris"
            "cta  cta  cta  cta  cta";
        grid-template-columns: auto auto 1fr auto auto;
        grid-template-rows: auto auto auto;
        gap: 0;
        column-gap: 16px;
        align-items: center;
        padding: 14px 16px;
    }

    .elo-col-logo                { grid-area: logo;
                                   padding-bottom: 10px;
                                   border-bottom: 1px solid var(--elo-rule);
                                   margin-bottom: 10px; }
    .elo-col-data:nth-of-type(2) { grid-area: d1; }
    .elo-col-data:nth-of-type(3) { grid-area: d2; }
    .elo-col-pris                { grid-area: pris; justify-self: end; }
    .elo-col-cta                 { grid-area: cta; margin-top: 10px; justify-content: stretch; }
}


/* =============================================================
   ANNONCEWIDGET
   ============================================================= */

.elo-annonce-wrapper { font-family: var(--elo-font); color: var(--elo-ink); }

.elo-annonce-label {
    text-align: center;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 400;
    color: var(--elo-muted);
    margin: 0 0 10px;
}

.elo-annonce-grid {
    display: grid;
    grid-template-columns: repeat(var(--elo-annonce-cols, 4), 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.elo-annonce-card {
    background: var(--elo-bg);
    border: 1px solid var(--elo-rule);
    border-radius: 10px;
    padding: 10px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: box-shadow .15s;
    overflow: hidden;
}

.elo-annonce-card:hover { box-shadow: 0 2px 12px rgba(15,20,25,.08); }

.elo-annonce-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 22px;
}

.elo-annonce-logo { max-width: 90px; max-height: 26px; object-fit: contain; width: auto; height: auto; }

.elo-logo-placeholder--sm {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 26px;
    background: var(--elo-subtle);
    border-radius: 5px;
    font-size: 12px; font-weight: 700; color: var(--elo-muted);
}

.elo-rating--sm .elo-star-icon { font-size: 16px; color: #f7941d; }
.elo-rating--sm .elo-rating-num { font-size: 15px; font-weight: 800; color: #1a1a1a; }

.elo-annonce-data {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3px 4px;
    border-top: 1px solid var(--elo-rule); padding-top: 7px;
}

.elo-annonce-data-item { display: flex; flex-direction: column; gap: 2px; }

.elo-annonce-data-label {
    font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--elo-muted);
}

.elo-annonce-data-val { font-size: 13px; font-weight: 700; color: var(--elo-ink); }

.elo-annonce-pris {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    border-top: 1px solid var(--elo-rule); padding-top: 7px;
}

.elo-annonce-pris-label {
    font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--elo-muted);
}

.elo-annonce-pris-val { font-size: 24px; font-weight: 800; color: var(--elo-accent); line-height: 1.1; }

.elo-annonce-btn {
    display: block; text-align: center;
    background: var(--elo-accent); color: #fff !important;
    border-radius: 999px; padding: 10px 16px;
    margin: 0 12px 12px; margin-top: auto;
    font-size: 13px; font-weight: 700;
    text-decoration: none !important;
    transition: background .15s, transform .1s;
    line-height: 1;
}

.elo-annonce-btn:hover { background: #1aa84a; transform: translateY(-1px); }

@media (max-width: 900px) {
    .elo-annonce-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 500px) {
    .elo-annonce-grid { grid-template-columns: 1fr !important; }
}


/* =============================================================
   ANMELDELSESLISTE
   ============================================================= */

.elo-anmeldelsesliste {
    --elo-al-accent:   var(--eo-accent,      #16a34a);
    --elo-al-ink:      var(--eo-ink,         #0f1419);
    --elo-al-muted:    var(--eo-muted,       #6b7280);
    --elo-al-rule:     var(--eo-rule,        rgba(15,20,25,.09));
    --elo-al-font:     var(--eo-sans,        "Plus Jakarta Sans", system-ui, sans-serif);
    --elo-al-star:     #e5a93a;
    --elo-al-star-dim: #d1d5db;

    font-family: var(--elo-al-font);
    width: 100%;
}

.elo-al-row {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 0; border-bottom: 1px solid var(--elo-al-rule);
    cursor: pointer; transition: background .15s;
}

.elo-al-row:first-child { border-top: 1px solid var(--elo-al-rule); }
.elo-al-row:hover { background: rgba(15,20,25,.025); }

.elo-al-rank { font-size: 18px; font-style: italic; font-weight: 700; color: var(--elo-al-muted); min-width: 32px; flex-shrink: 0; line-height: 1; }
.elo-al-rank--top { color: var(--elo-al-accent); }

.elo-al-logo { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

/* Logo-boks: ensartet container der forhindrer temarundede hjørner fra at klippe logoet */
.elo-al-logo-box {
    width: 56px; height: 44px;
    border: 1px solid rgba(15,20,25,.10);
    border-radius: 10px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 5px;
    flex-shrink: 0;
    overflow: hidden;
}
.elo-al-logo-box img {
    max-width: 44px; max-height: 32px;
    width: auto; height: auto;
    object-fit: contain; display: block;
    border-radius: 0 !important; /* reset temas globale img border-radius */
}

.elo-al-logo-initials {
    width: 36px; height: 36px; border-radius: 6px;
    background: #e9f7ef; color: #1a6b3f;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.elo-al-name { flex: 1; font-size: 16px; font-weight: 600; color: var(--elo-al-ink); min-width: 0; }

.elo-al-rating { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.elo-al-stars { display: inline-flex; gap: 2px; line-height: 1; }
.elo-al-star { display: inline-flex; width: 16px; height: 16px; }
.elo-al-star svg { width: 16px; height: 16px; }
.elo-al-star--full  { color: var(--elo-al-star); }
.elo-al-star--half  { color: var(--elo-al-star); opacity: .45; }
.elo-al-star--empty { color: var(--elo-al-star-dim); }
.elo-al-rating-val  { font-size: 14px; font-weight: 600; color: var(--elo-al-ink); min-width: 24px; }

.elo-al-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 18px; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap; flex-shrink: 0;
    background: #1a1f26; color: #ffffff !important;
    transition: opacity .15s;
}

.elo-al-btn:hover, .elo-al-btn:visited, .elo-al-btn:focus, .elo-al-btn:active
    { opacity: .85; color: #ffffff !important; text-decoration: none !important; }

.elo-al-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.elo-al-btn--groen,
.elo-al-btn--groen:hover,
.elo-al-btn--groen:visited,
.elo-al-btn--groen:focus,
.elo-al-btn--groen:active { background: var(--elo-al-accent); color: #ffffff !important; }

.elo-anmeldelsesliste__tom { color: var(--elo-al-muted); font-size: 14px; }

@media (max-width: 640px) {
    .elo-al-row { flex-wrap: wrap; gap: 10px; }
    .elo-al-name { font-size: 14px; order: 2; flex-basis: calc(100% - 112px); }
    .elo-al-rank  { order: 1; }
    .elo-al-logo  { order: 1; }
    .elo-al-rating { order: 3; flex-basis: 100%; padding-left: 48px; }
    .elo-al-btn   { order: 4; flex-basis: 100%; justify-content: center; }
}

/* =============================================================
   ELOELSELSKABER  [eloelselskaber]
   Grid-overblik over alle selskaber (med og uden anmeldelser).
   ============================================================= */

.elo-es-wrapper {
    --elo-es-accent:  var(--eo-accent,  #16a34a);
    --elo-es-ink:     var(--eo-ink,     #0f1419);
    --elo-es-muted:   var(--eo-muted,   #6b7280);
    --elo-es-border:  rgba(15,20,25,.09);
    --elo-es-font:    var(--eo-sans,    "Plus Jakarta Sans", system-ui, sans-serif);
    --elo-es-star:    #e5a93a;

    font-family: var(--elo-es-font);
    width: 100%;
}

/* --- Header: tæller + sortering -------------------------------- */

.elo-es-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.elo-es-count {
    font-size: 15px;
    font-weight: 600;
    color: var(--elo-es-ink);
}

.elo-es-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.elo-es-sort-label {
    font-size: 14px;
    color: var(--elo-es-muted);
    font-weight: 500;
}

.elo-es-sort-btn {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--elo-es-border);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--elo-es-ink);
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    font-family: inherit;
}

.elo-es-sort-btn:hover {
    border-color: var(--elo-es-accent);
    color: var(--elo-es-accent);
}

.elo-es-sort-btn--active {
    background: var(--elo-es-accent);
    color: #fff !important;
    border-color: var(--elo-es-accent);
}

/* --- Grid ---------------------------------------------------- */

.elo-es-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .elo-es-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .elo-es-grid { grid-template-columns: 1fr; }
}

/* --- Kort ---------------------------------------------------- */

.elo-es-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 14px;
    background: #fff;
    border: 1px solid var(--elo-es-border);
    border-radius: 12px;
    cursor: pointer;
    transition: box-shadow .15s, border-color .15s;
    position: relative;
    min-width: 0;
}

.elo-es-card:hover {
    box-shadow: 0 2px 12px rgba(15,20,25,.08);
    border-color: rgba(15,20,25,.16);
}

/* --- Logo-boks (firkantet med border, forhindrer temaets
       globale img border-radius i at klippe logoet)      ------- */

.elo-es-logo-box {
    width: 64px;
    height: 50px;
    flex-shrink: 0;
    border: 1px solid var(--elo-es-border);
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    overflow: hidden;
}

.elo-es-logo-box img {
    max-width: 50px;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 0 !important; /* reset temas globale img border-radius */
}

.elo-es-logo-initials {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: #e9f7ef;
    color: #1a6b3f;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Info-kolonne ------------------------------------------- */

.elo-es-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.elo-es-naam {
    font-size: 15px;
    font-weight: 700;
    color: var(--elo-es-ink);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elo-es-stars-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--elo-es-muted);
}

.elo-es-star-icon {
    color: var(--elo-es-star);
    font-size: 14px;
    line-height: 1;
}

.elo-es-rating-text {
    font-weight: 600;
    color: var(--elo-es-ink);
}

.elo-es-rating-max {
    font-weight: 400;
    color: var(--elo-es-muted);
}

.elo-es-laes-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--elo-es-accent);
    text-decoration: none !important;
    white-space: nowrap;
}

.elo-es-laes-link:hover { text-decoration: underline !important; }

/* --- Rating-badge ------------------------------------------- */

.elo-es-badge {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.elo-es-badge--groen { background: #bbf7d0; color: #14532d; }
.elo-es-badge--gul   { background: #fef08a; color: #713f12; }
.elo-es-badge--graa  { background: #e5e7eb; color: #374151; }

/* --- Sortering via JS --------------------------------------- */

.elo-es-card[hidden] { display: none; }
