/* =========================
   HERO SECTION — full-bleed background image (per-post: a generated
   fade-into-lifestyle-photo graphic, set inline via $bg in the PHP
   shortcode) instead of a separate boxed photo column. #f4f8f7 stays as
   the fallback/underlying color for posts with no image, and shows through
   at the edges since the generated images intentionally fade toward it.
   ========================= */

.tt-hero {
    position: relative;
    margin: 5px 0 0;
    padding: 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    background-color: #f4f8f7;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
}

/* Readability overlay — the background image was relying entirely on
   each individual photo being pre-generated/edited with its own baked-in
   white fade on the left (where the text sits). Any background that
   DOESN'T have that built in (a plain stock-style photo, a busy/dark
   image) leaves the title/text unreadable on top of it. This CSS-only
   radial fade sits between the background-image and the text (z-index 0,
   below .tt-hero-inner's z-index 1) so every hero reads correctly
   regardless of the photo, instead of depending on image-generation
   discipline every time. Same #f4f8f7 tone as the element's own fallback
   background-color, not pure white, so it blends with it. */
.tt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(60% 200% at 32% 60%, rgb(244 248 247) 0%, rgb(244 248 247) 30%, rgb(255 255 255 / 91%) 55%, rgb(255 255 255 / 18%) 78%, rgba(244, 248, 247, 0) 92%);
}

.tt-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--tt-content-width, 900px);
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
}

/* =========================
   TEXT COLUMN
   ========================= */

.tt-hero-left {
    /* Constrains text to roughly the left half so it stays readable over
       the background's fade instead of spreading across the full width
       (the photo half of the background image has no fade to sit text on). */
    max-width: 710px;
}

/* Page-Template hero (plain pages like /metode/) — just the title, centered
   across the full content width instead of confined to the left column. */
.tt-hero--minimal .tt-hero-left {
    max-width: 100%;
    text-align: center;
}

.tt-hero--minimal .tt-hero-title {
    margin: 0;
}

/* Breadcrumb markup is identical at every width — desktop styles it as a
   small-caps eyebrow (category only, "Forside ›" hidden); the mobile
   override below switches it back to a plain breadcrumb trail. */
.tt-hero-breadcrumb {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tt-hero-breadcrumb a,
.tt-hero-breadcrumb .tt-hero-crumb-sep {
    color: var(--tt-primary, #009688);
    text-decoration: none;
}

.tt-hero-breadcrumb a:first-child,
.tt-hero-breadcrumb .tt-hero-crumb-sep {
    display: none;
}

.tt-hero-breadcrumb::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin-top: 8px;
    background: var(--tt-primary, #009688);
}

/* =========================
   TITLE
   ========================= */

.tt-hero-title {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
}

.tt-hero-title-accent {
    color: var(--tt-primary, #009688);
}

/* =========================
   TEXT ROWS
   ========================= */

.tt-hero-sub {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.55;
    color: #4b5563;
}

.tt-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #6b7280;
}

.tt-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Icon + author name stay on mobile, only the "Skrevet af:" label text
   drops — keeps the row to one line without losing the byline entirely. */
@media (max-width: 768px) {
    .tt-hero-meta {
        flex-wrap: nowrap;
    }
    .tt-hero-meta-label {
        display: none;
    }
}

.tt-hero-meta a {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
}

.tt-hero-meta a:hover {
    text-decoration: underline;
}

.tt-hero-annoncelinks {
    margin: 0;
    font-style: italic;
    font-size: 13px;
    line-height: 1.5;
    color: #9ca3af;
}

/* Shorter wording on mobile — the full commission explanation runs long
   at this width; the desktop/mobile pair is two separate <p>s (not one
   CSS-truncated string) so each stays fully readable, not clipped. */
.tt-hero-annoncelinks--mobile {
    display: none;
}

@media (max-width: 768px) {
    .tt-hero-annoncelinks--desktop {
        display: none;
    }
    .tt-hero-annoncelinks--mobile {
        display: block;
    }
}

/* ICONS */
.tt-hero-icon {
    display: inline-flex;
    color: var(--tt-primary, #009688);
}

.tt-hero-icon svg {
    display: block;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {
    
    .product-feed .dfrcs ul.dfrcs_compset li {
        margin-top: 0 !important;
    }
    
    h2.tt-overview-title, .tt-article-overview h3 {
	font-size: 16px !important;
	gap: 5px;
}
    
    .featured-toggle-trigger {
        place-self: center;
    }

    /* Background image crops to mostly the left (fade) portion at this
       width via cover + left-center positioning — a shorter min-height
       reads better than the desktop value once the photo half is out of
       frame anyway. Text goes full-width since there's no longer a boxed
       photo beside it to leave room for. */
    .tt-hero {
        min-height: 260px;
    }

    /* The readability overlay (see base .tt-hero::before) goes solid here
       instead of fading — text is full-width on mobile (.tt-hero-left has
       no max-width at this breakpoint), so there's no "photo half" left to
       preserve like there is on desktop. A soft fade still let busy/dark
       photos show through enough to fight with the text; solid guarantees
       it never happens regardless of the image. */
    .tt-hero::before {
        background: #f4f8f7;
    }

    .tt-hero-inner {
        padding: 0 20px;
    }

    .tt-hero-left {
        max-width: none;
    }

    p.featured-product-tagline {
        font-size: 15px;
        text-align: center;
    }

    .tt-hero-place {
        font-size: 12px;
    }

    /* Breadcrumb trail instead of the desktop eyebrow (see base rules) —
       "Forside ›" is shown again and the styling reverts to a plain,
       lower-emphasis line. */
    .tt-hero-breadcrumb {
        font-size: 13px;
        font-weight: 400;
        letter-spacing: normal;
        text-transform: none;
    }

    .tt-hero-breadcrumb a,
    .tt-hero-breadcrumb .tt-hero-crumb-sep {
        color: #6b7280;
    }

    .tt-hero-breadcrumb a:first-child,
    .tt-hero-breadcrumb .tt-hero-crumb-sep {
        display: inline;
    }

    .tt-hero-breadcrumb::after {
        display: none;
    }

    .tt-hero-title {
        font-size: 22px;
    }

    .tt-hero-sub {
        font-size: 13px;
    }

    .tt-hero-meta {
        font-size: 12px;
        gap: 14px;
    }

    .tt-hero-annoncelinks {
        font-size: 12px;
    }

    .tt-author-inline {
        top: auto;
        left: auto;
        transform: none;
        margin-top: 18px;
    }
    
    .product-preview-list h2 {
        margin-top: 20px !important;
    }
}


/* ================= FEATURED BOX ================= */

.featured-editorial-toggle {
    margin-top: 14px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    width: 100%;
}

.featured-toggle-trigger {
    background: none;
    border: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    color: #353535;
    cursor: pointer;
    width: 100%;
    display: flex;
    gap: 6px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.featured-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.featured-toggle-label svg {
    color: #6b7280;
    flex-shrink: 0;
}

.featured-toggle-subtitle {
    font-weight: 400;
    font-style: italic;
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 768px) {
    .featured-toggle-subtitle {
        display: none;
    }
}

.featured-toggle-svg {
    width: 20px;
    height: 14px;
    display: inline-block;
}

.featured-box-readmore-wrap {
    display: none;
}

.featured-toggle-icon {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.featured-toggle-trigger[aria-expanded="true"] .featured-toggle-icon {
    transform: rotate(180deg);
}

.featured-toggle-content {
    display: none;
    margin-top: 8px;
    font-size: 14px;
    line-height: 25px;
    color: #353535;
}

.featured-toggle-content p {
    margin: 0 !important;
    padding: 0 !important;
}

/* ================= FEATURED BOX RIBBON ================= */
/* 09-29: [featured_product_box] switched to a NEW, simpler markup/design
   given as exact working code (HTML+CSS) after every prior shape attempt
   (near-square+tail, then 3 rounds of a rounded-with-corner-notch design,
   then a hand-computed parallelogram with SVG-arc-rounded corners) missed
   the mark. Applied verbatim, only adapting selector names — no design
   judgment needed, this was already tested/validated by the user.
   09-30: [featured_company_box] (shortcode-featured-company-box.php,
   data-featured-company="1") switched to this same .featured-badge markup
   too, per direct request ("same design as the product template ribbon"),
   text changed back to "VI ANBEFALER" (was "VORES LÆSERE VÆLGER OFTEST").
   The .ribbon-anbefaler/.ribbon rules below are genuinely unused by either
   shortcode now — left in place rather than deleted, in case a future
   design reverts to needing them, but neither current markup references
   them any more. */
.featured-badge {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 40px 8px 30px;
    background: #fbecc8;
    color: #7a5410;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1;
    border-bottom: 1px solid #efd9a6;
    /* calc(100% - 26px) makes the diagonal cut scale with the badge's own
       width automatically (unlike the previous path()-based rounded-corner
       attempt, which needed hardcoded absolute pixel coordinates recomputed
       by hand for this exact text/font/padding) — robust to width changes
       without any manual recalculation. */
    clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
}

.featured-badge svg {
    color: #9a6b1c;
}

/* ---- [featured_company_box] only, from here down — see the comment above ---- */
.ribbon-anbefaler {
    display: inline-block;
}

.ribbon-anbefaler .ribbon h2 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    display: inline-block;
}

.ribbon-anbefaler .ribbon span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    line-height: 1;
    padding: 6px 30px;
    background: #fdf3e0;
    color: #92670f;
    border: 1px solid rgba(184, 134, 58, .35);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-radius: 8px;
}

.ribbon-anbefaler .ribbon span::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='%23b8863a' d='M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.6-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-16-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0z'/%3E%3C/svg%3E");
}

/* ================= PRODUCT OVERVIEW ================= */

/* ---------- Main title ---------- */

.tt-overview-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tt-overview-title span {
    color: #009688;
}
h2.tt-overview-title:first-child {
    margin-top: 10px;
}

/* ================= GRID ================= */

.tt-overview-grid {
    display: grid;
    grid-template-columns: minmax(420px, 2fr) minmax(360px, 1fr);
    gap: 32px;
    align-items: start;
}

/* ---------- Headings ---------- */

.tt-article-overview h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #009688;
}

a.tt-method-link {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-end;
    border-bottom: 2px solid;
    padding-bottom: 15px;
}

/* Heading icons */
.tt-overview-considerations h3::before { content: "🔍"; }

/* ================= CHECKLIST (GLOBAL) ================= */

.tt-article-overview ul {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
}

.tt-article-overview li {
    position: relative;
    padding-left: 32px;
    line-height: 1.5;
}

.tt-article-overview li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 2px;
    color: #009688 !important;
    font-weight: 700;
}

/* ================= KORT FORTALT ================= */

.tt-overview-summary {
    background: #f6f8f8;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid rgba(0, 150, 136, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.tt-overview-summary h3 {
    margin-top: 0;
}

/* ================= METHODOLOGY ================= */

/* Intro spacing */
.tt-overview-methodology > p:first-of-type {
    margin-bottom: 16px;
}

/* ---------- 2x2 checklist ---------- */

.tt-overview-methodology ul.tt-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 32px;
    margin: 16px 0 20px;
}

.tt-overview-methodology ul.tt-checklist li {
    margin-bottom: 0;
}

section.tt-article-overview p {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Method link */
.tt-method-link {
    display: inline-block;
    color: #009688;
    font-weight: 600;
    text-decoration: none;
}

.tt-method-link:hover {
    text-decoration: underline;
}

/* ================= RESPONSIVE ================= */

/* Stack main grid */
@media (max-width: 900px) {
    .tt-overview-grid {
        grid-template-columns: 1fr;
    }

    .tt-overview-summary {
        padding: 28px;
    }
}

/* Methodology list → 1 column on mobile */
@media (max-width: 600px) {
    .tt-overview-methodology ul.tt-checklist {
        grid-template-columns: 1fr;
    }
}

/* ================= DFRCS COLLAPSE ================= */

.dfrcs-toggle:hover {
    text-decoration: none;
}

.dfrcs .dfrcs-toggle {
    float: right;
}

/* Toggle button container */
.product-feed {
    position: relative;
}

/* Toggle button */
.dfrcs-toggle {
    display: inline-flex;
    gap: 6px;
    color: #009688;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
    align-items: center;
    background: none;
    border: 1px solid #009688;
}

/* Chevron arrow */
.dfrcs-toggle .toggle-chevron {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
}

/* Rotate chevron when expanded */
.dfrcs-toggle.is-open .toggle-chevron {
    transform: rotate(90deg);
}

.product-card-image {
    display: flex;
    align-items: center;
    gap:4px;
}

.product-card-highlight {
    font-size: 14px;
    text-align: left;
}

.product-usp li {
    position: relative;
    margin-bottom: 8px;
}

.product-highlight {
    background: #caa24d;
    color: white;
    font-size: 15px;
    width: fit-content;
    text-align: -webkit-center;
    padding: 12px;
    border-radius: 20px;
}

.product-usp ul {
    padding-left: 10% !important;
}

/* Activate 2-column layout only when more than 3 items */
.product-usp ul:has(li:nth-child(4)) {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    column-gap: 30px;
    row-gap: 8px;
}
@media (max-width: 768px) {
    .product-usp ul {
        display: block !important;
    }
}

/* =========================
 * PRODUCT USP – CHECK ICONS
 * ========================= */

.product-usp ul {
    list-style: none;
    padding-left: 0;
}

.product-usp li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.product-usp li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 2px;
    color: #009688 !important; /* same green as Fordele */
    font-weight: 700;
    font-size: 14px;
}

/* =========================
 * SPECS ACCORDION
 * ========================= */

.product-specs-accordion, .product-description-accordion {
    border: 1px solid rgba(0, 150, 136, 0.25);
    border-radius: 8px;
    margin-top: 24px;
    overflow: hidden;
}

/* Header */
.specs-accordion-header, .desc-accordion-header {
    width: 100%;
    background: #f6f8f8;
    border: none;
    padding: 16px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 16px;
    cursor: pointer;
}

        .specs-header {
            padding: 10px 15px;
            color: #3F3F3F;
            display: flex;
        }
        
        .specs-list li {
            list-style-type: none;
            position: relative;
            padding-left: 25px;
            margin-bottom: 8px;
        }
        
        .specs-list li:before {
            content: "▸";
            color: #009688;
            position: absolute;
            left: 0;
            font-size: 30px;
            margin-top: -9px !important;
        }

.specs-title, .desc-title {
    color: #111827;
    font-size: 22px;
    font-weight: normal;
}

/* Chevron */
.specs-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #3f3f3f;
    border-bottom: 2px solid #3f3f3f;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

/* Rotate when open */
.specs-accordion-header[aria-expanded="true"] .specs-chevron {
    transform: rotate(-135deg);
}

/* Content */
.specs-accordion-content, .desc-accordion-content {
    padding: 16px 18px 20px;
    background: #ffffff;
}

/* List */
.specs-list li {
    margin-bottom: 8px;
}


/* =========================
 * PREVIEW LIST – TITLE AREA
 * ========================= */

.preview-title-row-inner {
display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.preview-highlight {
    color: #3F3F3F;
    font-size: 16px;
    margin-bottom: 5px;
}

.preview-tagline {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

.preview-item-row {
    position: relative;
}

.preview-readmore-inline.desk {
    align-items: center;
    background: #eaf0ea;
    color: var( --e-global-color-3b5f0ab );
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    
.preview-title-row-inner {
        display: flex;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 5px;
        align-content: flex-start;
        flex-direction: column;
    }
    
    .preview-title-row {
        max-width: 100% !important;
    }


.preview-feed-row {
    place-self: unset !important;
}
    .preview-highlight {
        top: 10px;
        right: 12px;
        font-size: 11px;
        position: unset;
    }
    
    span.preview-separator {
    display: none;
}
    
    .preview-content-wrap {
    padding-right: 0; /* adjust if button height changes */
}

}

.product-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.product-title-star {
    flex-shrink: 0;
}

.product-title-star {
    width: 20px;   /* 👈 control size here */
    height: 20px;
}

.product-title-text {
    line-height: 1.3;
}



/* Header */
.faq-header {
    font-size: 34px !important;
    font-weight: 700 !important;
    margin-bottom: 16px;
}

/* === FAQ ITEM (CARD) === */
.faq-item {
    background: transparent;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
}

/* === QUESTION ROW === */
.faq-question {
    position: relative;
    padding: 22px 24px 22px 28px; /* space for green bar */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;              /* 👈 stretch full height */
    width: 4px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.25s ease;
}

/* Subtle card border */
.faq-item {
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid #e7e5e4; /* 👈 light border */
}

/* Divider under question when active */
.faq-item.active .faq-question {
    border-bottom: 1px solid #e7e5e4;
}

/* Active state – green bar only on title */
.faq-item.active .faq-question::before {
    background: #0f766e;
}

/* Question text */
.faq-question-text {
    margin: 0;
    font-size: 20px !important;
    font-weight: 600;
    color: #1f2933;
    line-height: 1.35;
    padding-right: 20px;
}

/* Optional: green text when active (matches reference nicely) */
.faq-item.active .faq-question-text {
    color: #3f3f3f;
}

/* Toggle icon */
.faq-toggle-icon {
    font-size: 18px;
    color: #1f2933;
    transition: transform 0.25s ease;
}

/* Rotate arrow when open */
.faq-item.active .faq-toggle-icon {
    transform: rotate(90deg);
}

/* === ANSWER === */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

/* Answer content */
.faq-answer-content {
    padding: 0 24px 24px 28px; /* align with question text */
    font-size: 16px;
    color: #374151;
    line-height: 1.6;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-header-wrap {
    margin-bottom: 24px;
}

.faq-header-title {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.faq-header-subtitle {
    margin: 6px 0;
    font-size: 16px;
    color: #6b7280;
}

/* === MOBILE === */
@media (max-width: 768px) {

    .faq-question {
        padding: 18px 18px 18px 22px;
    }

    .faq-question-text {
        font-size: 18px !important;
    }

    .faq-answer-content {
        padding: 0 18px 18px 22px;
    }
}


/* === EXPIRED SECTION === */


.dfrcs-expired-products .product-feed {
    display: none;
}

.dfrcs-expired-products .product-image-feed::before {
    content: "Ikke aktuelt i prissammenligning";
    font-size: 15px;

}

.dfrcs-expired-products .product-image-feed {
    flex-direction: column;
    align-items: center;
}


.product-description-accordion{
margin-top:20px;
}

