/*
 * Unified price-comparison card for [product_template]'s per-product boxes
 * ONLY (scoped to .product-template throughout — never touches [tt_compare]
 * usage elsewhere, e.g. the featured homepage box or any standalone
 * [tt_compare] embed outside a product box).
 *
 * Replaces the old two-step interaction (compact single-offer card with a
 * "Sammenlign priser med N butikker" pill -> click -> separate hidden panel
 * reveals) with one always-visible card: a hero price panel (cloned from the
 * list's own first offer row by product-compare-redesign.js — same data,
 * no duplicate PHP/markup) sitting above a collapsible "Alle forhandlere"
 * list that is expanded by default. Pure CSS/JS restyle of markup that was
 * already being rendered — no new network requests, no new PHP.
 *
 * Fordele/Ulemper (.pros-cons-container) got its own restyle further down
 * (09-24) — same light-tint/colored-border/leading-icon language as the
 * rest of this card, scoped the same way. Its base rule still lives in
 * tropictraffic-theme/style.css (untouched — only overridden here).
 */

/* Hide the old compact single-offer card (tt_compare-sourced or a manually
   entered custom feed — both get the hero treatment now, built by
   product-compare-redesign.js from whichever one is present) + its
   "Sammenlign priser..." pill. Direct-child selector so this can never also
   match .ttpc-full-panel (which lives outside .product-feed entirely, not
   inside it). */
.product-template .product-feed > .ttpc-widget {
    display: none !important;
}

/* Force the merchant-list panel visible — it was rendered `hidden` by
   default, and CSS-force-hidden again on mobile (`.ttpc-full-panel{display:
   none!important}` at <=768px in tt-price-compare's own CSS). Both
   are beaten here by selector specificity (2 classes > 1), not just
   !important, so this wins regardless of media width or the `hidden`
   attribute/property. */
.product-template .ttpc-full-panel {
    display: block !important;
    margin: 16px 0 0;
}
@media (max-width: 768px) {
    .product-template .ttpc-full-panel {
        display: block !important;
    }
}

/* ── Hero panel (JS-inserted clone of the list's first offer row) ───────────
   09-23 redesign: savings row (strikethrough orig + "Spar X kr." pill) ->
   teal "KØB FOR {price}" button -> divider -> favicon + "Hos {merchant}" ->
   green-checkmark trust line ("Pris tjekket i dag" / "Laveste pris vi har
   fundet"). Matches a mockup the user supplied directly, not
   [featured_product_box] this time (an earlier version of this file did
   mirror that component — see git history / the 09-22 memory entry for
   that prior design if this one is ever reverted). product-compare-
   redesign.js does the text rewriting + the favicon-into-merchant-row move
   after cloning (none of that is in the row's original markup/order). */
.tt-compare-hero {
    /* Containing block for .ttpc-offer-link's position:absolute;inset:0
       overlay (cloned in from the original row's markup by
       product-compare-redesign.js). The original row's own parent
       (<li class="ttpc-offer">) is position:relative, which is what kept
       that overlay contained to just the row — this new wrapper needs the
       same, or the overlay falls through to whatever the next positioned
       ancestor up the page happens to be (often none at all), letting it
       balloon out and cover unrelated parts of the page, intercepting
       clicks meant for something else entirely. */
    position: relative;
    background: #eaf6f4;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 16px 0 0;
    text-align: center;
    /* 09-30: no longer force-stretched to the grid row's full height (see
       .product-template > .tt-compare-hero below) — the box just takes its
       own natural content height now. justify-content:center is a no-op in
       that case (nothing taller to center within) but harmless to leave. */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* flex column instead of block so the shipping row can be placed AFTER the
   button via `order`, matching featured-price-panel's actual DOM (its
   .featured-merchant-row comes after .featured-buy-button) — the cloned
   markup's own element order is icon/merchant/meta/price/cta, block
   stacking would put shipping (meta) above the price instead. */
.tt-compare-hero .ttpc-offer-row {
    display: flex !important;
    flex-direction: column;
    /* Base .ttpc-offer-row (its original grid-row context) sets
       align-items:center, meant for a horizontal grid row — left as-is
       here it makes every column shrink-wrap to its own content width and
       center itself, instead of filling the hero's width, which is why the
       shipping row's border-top was only as wide as its own text. */
    align-items: stretch;
    /* Base rule also sets gap:16px for its grid columns — in this
       flex-column layout that added 16px between every row on top of this
       file's own per-element margins, doubling up the spacing. */
    gap: 2px;
    padding: 0 !important;
}
/* ── Savings row (order 1) — strikethrough original price + a "Spar X kr."
   pill, only present at all when there's a genuine discount (both are the
   same PHP-conditional elements the old design used, just restyled + the
   badge's text rewritten from a percentage to a currency amount by
   product-compare-redesign.js). 09-30: when there's no discount,
   buildHero() now sets `visibility:hidden` (was `display:none`) on this
   column instead — per direct request, its own space stays reserved
   (blank) rather than collapsing, matching the trust-line's own reserved
   treatment below. `visibility:hidden` alone isn't enough on its own
   though: with no discount, this column's only child content is the
   (always CSS-hidden, see .ttpc-price below) live-price span — nothing
   left to give it real height — hence the explicit min-height, matching
   this row's own measured populated height (25px) so the reserved gap is
   the right size instead of collapsing anyway. */
.tt-compare-hero .ttpc-col-price {
    order: 1;
    display: flex;
    /* 09-25: tt-price-compare's own base <=600px rule sets this bare
       (unscoped) selector to flex-direction:column — a property this rule
       never used to need to state explicitly since nothing else was setting
       it. That base rule doesn't lose the cascade on this property just
       because this selector is more specific overall; specificity is
       decided per-property, and this rule was silently missing one. Made
       explicit here so the base mobile rule can't win it by default —
       caught when .ttpc-orig and the badge stacked into two lines on mobile
       instead of sitting side by side like every wider viewport. */
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 10px;
    min-height: 25px;
}
/* The live price used to be shown here directly; now it only appears
   inside the button text (JS-written), so this copy is redundant. */
.tt-compare-hero .ttpc-price { display: none; }
.tt-compare-hero .ttpc-price-row { order: 2; margin: 0; justify-content: flex-end; }
/* Stock status ("På lager") isn't part of this design — not shown at all,
   matching the mockup. */
.tt-compare-hero .ttpc-mobile-stock { display: none !important; }
.tt-compare-hero .ttpc-discount-badge {
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.tt-compare-hero .ttpc-orig {
    order: 1;
    display: block;
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

/* ── Button (order 2) — "KØB FOR {price}". 09-23: teal to match the mockup.
   09-25 first round: switched to orange to unify with every other CTA on
   this card (offer-list, "Klar til at købe?", the sticky banner). 09-25
   later same day: reverted back to teal per direct request — this button
   (and the sticky banner's, and the featured box's own button) go back to
   dark green/teal; the offer-list and "Klar til at købe?" buttons keep
   their orange since that's the site's base/shared button color, never
   actually changed by today's unification pass. */
.tt-compare-hero .ttpc-col-cta { order: 2; margin: 0; }
.tt-compare-hero .ttpc-cta {
    display: flex !important;
    width: 100%;
    box-sizing: border-box; /* base .ttpc-cta has no box-sizing of its own (content-box default) — without this, width:100% + this padding overflows the hero's column */
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: #0f6b63 !important;
    padding: 14px 16px;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 8px;
    /* Base .ttpc-cta is white-space:nowrap (fine for its normal short "Køb
       nu" text) — this button's text is "Køb for {price}", which can run
       long enough to need a second line in a ~220px-wide sidebar. */
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}
.tt-compare-hero .ttpc-cta:hover { background-color: #0c554e !important; }
/* Swap the cart icon for a plain arrow-after, matching .featured-buy-button
   (same inline SVG, so no extra request). */
.tt-compare-hero .ttpc-cta svg { display: none; }
/* The mobile compact-list rule (ttpc-widget.css, <=600px) caps
   .ttpc-cta-text at 92px for its small round buttons — this button's much
   longer "Køb for {price}" text needs the full row width instead. */
.tt-compare-hero .ttpc-cta-text {
    max-width: none;
}
.tt-compare-hero .ttpc-cta-text::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 4px;
    vertical-align: -5px;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23ffffff' d='M310.6 233.4l-160-160c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9L196.1 256 94.1 358.1c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l160-160c9.5-9.4 9.5-24.6 0-34z'/%3E%3C/svg%3E");
}

/* ── Trust line (order 0) — "Laveste pris vi kunne finde", moved to sit
   first in the hero, matching [featured_product_box]'s own
   .featured-trust-line position. The old standalone "Hos {merchant}" row
   (favicon + name, with this trust line tucked underneath it) is gone —
   merchant now lives as the 3rd item in the trust row further down instead
   (see product-compare-redesign.js's buildHero() and
   .price-trust-item--merchant below). The favicon column itself
   (.ttpc-col-icon) is no longer moved anywhere or displayed at all — the
   merchant trust-row item uses a generic store icon instead (matching
   [featured_product_box]'s own choice there) — so it needs an explicit
   display:none now; it used to only ever render because this file's own
   `display:flex !important` rule showed it after JS moved it into the old
   merchant column, and without that move it would otherwise fall back to
   the base plugin's default (visible) styling and appear, unstyled, as a
   stray first item in the offer row. */
.tt-compare-hero .ttpc-col-icon { display: none !important; }
.tt-compare-hero .ttpc-inline-badge { display: none; }
.tt-compare-hero .tt-hero-trust-line {
    order: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #16a34a;
    justify-content: center;
}
.tt-compare-hero .tt-hero-trust-line::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%2316a34a' d='M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E");
}
/* Non-cheapest offers: the line stays in the DOM (buildHero() always builds
   it now) but goes invisible — `visibility:hidden` rather than
   `display:none`/leaving it out, so it keeps occupying its own layout
   space (18px) instead of collapsing to zero height, matching the
   .ttpc-col-price reserved-space treatment above. */
.tt-compare-hero .tt-hero-trust-line--reserved {
    visibility: hidden;
}
/* Admin-only controls (Compset Admin move/remove/refresh) make no sense on
   a decorative clone — product-compare-redesign.js strips them, this is
   just a defensive backstop. */
.tt-compare-hero .ttpc-offer-admin-bar,
.tt-compare-hero .ttpc-admin-toolbar { display: none !important; }

/* ── Price-panel trust row (shipping + delivery/"secure shopping") ───────
   09-28: shared, UNSCOPED component — used by both .tt-compare-hero (built
   in product-compare-redesign.js's buildHero(), see there) and
   [featured_product_box]'s .featured-price-panel (rendered directly in
   shortcode-featured-product-box.php), same as how product-voucher.css's
   .product-voucher-box already works across both contexts. Two items
   separated by a divider: shipping (real data if this offer has it, else
   the static "Hurtig levering" fallback — never a false "Fri fragt" claim
   for an offer we don't actually know ships free) and delivery time (real
   data if available, else the site's own "Sikker handel" trust claim,
   which is true regardless of this specific offer's data). */
/* 09-29: icon-top/text-below layout (was icon-left-text-right, divider
   between items), originally recolored green (#16a34a) per a reference
   mockup. The divider element is still inserted in the DOM by both
   buildHero() and the PHP template (removing it there isn't needed) — just
   hidden here, since this stacked layout reads fine as evenly-gapped
   columns without a vertical rule between them.
   09-30: that green was never actually reaching [featured_product_box]'s
   real <svg> icons — each <path fill="currentColor"> resolves against the
   CSS `color` property, not the `fill` property this rule sets on the
   parent <svg>, so `.price-trust-item svg { fill: #16a34a }` has always
   been a no-op there; those icons render in .price-trust-row's own
   inherited gray (#4b5563) instead. .tt-compare-hero's ::before
   background-image icons DID render the hardcoded green in their data URI,
   which is what made the two panels visibly mismatch once compared side by
   side. Recolored hero's icons to the same gray so both match the
   featured box's actual (not the originally-intended) look — left the
   featured box exactly as it already renders. */
.price-trust-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    margin-top: 10px;
    font-size: 12px;
    color: #4b5563;
}
.price-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    max-width: 80px;
    text-align: center;
}
/* 09-29: was `white-space: nowrap` on the whole item (single-line only) —
   longer text (a long merchant name, an unusually long shipping/delivery
   string) now wraps up to 2 lines instead of overflowing/forcing the row
   wider, with a 3rd-line-or-longer overflow ellipsized. Targets whichever
   element is last inside a trust item, since that differs by item type:
   a plain <span> for shipping/delivery/secure, an <a class="featured-
   merchant-name"> for the merchant item. */
.price-trust-item > *:last-child {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 09-29: was a fixed 18x18 square on every icon — since each source SVG has
   a different aspect ratio (truck 640x512, clock 512x512, lock 448x512,
   store ~22x20), squeezing each into an identical square box (default
   preserveAspectRatio letterboxing) let the non-square ones (truck
   especially) render visibly smaller than the square clock icon, despite
   the same box size. Fixed by matching HEIGHT across all of them instead
   and letting each icon's own width follow its natural aspect ratio —
   the standard way to keep a mixed icon set visually consistent. Same
   per-modifier width values applied to both the real <svg> icons (used by
   [featured_product_box]) and the ::before background-image icons (used
   by .tt-compare-hero) below, since both draw the exact same source
   shapes. */
.price-trust-item svg {
    height: 18px;
    flex-shrink: 0;
    fill: #4b5563;
}
.price-trust-item--shipping svg  { width: 22px; }
.price-trust-item--delivery svg  { width: 18px; }
.price-trust-item--secure svg    { width: 16px; }
.price-trust-item--merchant svg  { width: 22px; }

.price-trust-item--shipping::before,
.price-trust-item--delivery::before,
.price-trust-item--secure::before,
.price-trust-item--merchant::before {
    /* .tt-compare-hero's version has no PHP-rendered <svg> to reuse (it's
       plain text pulled from the cloned offer row, see buildHero()) — these
       ::before icons cover that case; [featured_product_box]'s version
       renders a real inline <svg> instead (same convention the rest of that
       file already uses), so these rules simply never match there (an
       inline <svg> sibling already occupies the icon slot). */
    content: "";
    display: inline-block;
    height: 18px;
    flex-shrink: 0;
    background: no-repeat center / contain;
}
.price-trust-item--shipping::before { width: 22px; }
.price-trust-item--delivery::before { width: 18px; }
.price-trust-item--secure::before   { width: 16px; }
.price-trust-item--merchant::before { width: 22px; }
.price-trust-item--shipping::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath fill='%234b5563' d='M48 0C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h32c17.7 0 32-14.3 32-32s-14.3-32-32-32v-96l-80-80H448V48c0-26.5-21.5-48-48-48H48zm368 160h50.7l61.3 61.3V288H416V160zM160 464a48 48 0 1 1 0-96 48 48 0 0 1 0 96zm368 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96z'/%3E%3C/svg%3E");
}
.price-trust-item--delivery::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%234b5563' d='M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.5 33.3-6.5s4.5-25.9-6.5-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z'/%3E%3C/svg%3E");
}
.price-trust-item--secure::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%234b5563' d='M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zM224 400c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm79.2-176H144.8v-72c0-44 35.2-80 79.2-80s79.2 36 79.2 80v72z'/%3E%3C/svg%3E");
}
/* Generic storefront glyph — same path [featured_product_box] renders as a
   real inline <svg> ($svg_store, shortcode-featured-product-box.php) — used
   here instead of the real merchant favicon, matching that file's own
   09-29 decision to use a generic icon for this item rather than a
   per-merchant one. */
.price-trust-item--merchant::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 3 20 16'%3E%3Cpath fill='%234b5563' d='M12 3L2 10H4V19H10V13H14V19H20V10H22L12 3Z'/%3E%3C/svg%3E");
}
/* .ttpc-merchant-name now lives inside this trust-row item (moved there by
   buildHero(), not rebuilt) instead of its old standalone "Hos {merchant}"
   line — reset the base plugin's own styling for that class (sized/colored
   for the old headline-style line) back down to plain trust-row text,
   matching [featured_product_box]'s unstyled .featured-merchant-name in the
   same position. */
.tt-compare-hero .price-trust-item--merchant .ttpc-merchant-name {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: #4b5563;
    white-space: normal;
    text-align: center;
}
/* 09-29: [featured_product_box] already renders a REAL inline <svg> (see
   $svg_truck/$svg_clock/$svg_lock in shortcode-featured-product-box.php) —
   the ::before rules above are meant only for .tt-compare-hero's JS-built
   version, which has no PHP svg to reuse. The old comment on those rules
   assumed no double-render "since an inline svg sibling already occupies
   the icon slot" — that was wrong: ::before doesn't check for siblings, so
   both rendered together all along. Went unnoticed while icons were
   small/gray/inline; became obvious once the icon-top layout (this same
   session, just above) stacked two icons per item. Suppressed here rather
   than removing the real <svg> from the PHP template, since that inline
   svg is this file's own established icon convention. */
.featured-price-panel .price-trust-item::before {
    content: none;
}
.price-trust-divider {
    display: none;
}
/* .tt-compare-hero-specific: full order sequence is now trust-line(0,
   product-compare-redesign.css) -> price(1) -> cta(2) -> this row(3,
   now includes merchant as its 3rd item, see .price-trust-item--merchant
   above) -> voucher label+code(4, see product-voucher.css) — matching
   [featured_product_box]'s own top-to-bottom order exactly.
   .featured-price-panel needs no equivalent rule: it has no `order` system
   at all, so the PHP template's own literal position (right after
   .featured-buy-button) is enough there. */
.tt-compare-hero .price-trust-row {
    order: 3;
}

/* ── Collapsible "Alle forhandlere" list ─────────────────────────────────── */
.product-template .ttpc-full-panel-header {
    cursor: pointer;
    user-select: none;
    border-bottom: none !important;
    background: #eaf6f4 !important;
    padding: 14px 18px !important;
}
/* 09-25: when the panel is expanded, the savings line (.ttpc-widget-top)
   sits directly below this header with its own top spacing removed (see
   that rule further down) — drop this header's own bottom padding so the
   two read as one continuous block instead of double-spaced. Collapsed
   state keeps the uniform padding above, since nothing follows it then. */
.product-template .ttpc-full-panel:not(.tt-compare-collapsed) .ttpc-full-panel-header {
    padding: 14px 18px 0 18px !important;
}
/* Single-merchant, no-savings listing: .ttpc-widget-top (savings/sort row)
   never renders at all, so the header above would otherwise have zero
   bottom padding with nothing filling the gap before .ttpc-offers
   starts right under it. Restore the padding only in that exact case. */
.product-template .ttpc-full-panel:not(.tt-compare-collapsed) .ttpc-full-panel-header:has(+ .ttpc-offers) {
    padding-bottom: 14px !important;
}
.product-template .ttpc-full-panel-title {
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.product-template .ttpc-full-panel-title::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1' y='9' width='3.2' height='6' fill='%23009688'/%3E%3Crect x='6.4' y='5' width='3.2' height='10' fill='%23009688'/%3E%3Crect x='11.8' y='2' width='3.2' height='13' fill='%23009688'/%3E%3C/svg%3E");
}
/* Icon-only chevron button — hide the "Skjul" text via font-size:0 (the
   SVG's own width/height attributes keep it unaffected) rather than
   touching the shared PHP markup. The button's text content is 2 stray
   text nodes either side of the SVG (whitespace from the PHP template) —
   flex centering treats those as anonymous flex items too, and their
   collapsed-but-not-quite-zero width was throwing the SVG a few px off
   center, so the SVG is positioned absolutely instead, ignoring them. */
.product-template .ttpc-collapse-full {
    position: relative;
    font-size: 0 !important;
    padding: 0 !important;
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    display: inline-block !important;
}
.product-template .ttpc-collapse-full .ttpc-toggle-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 13px;
    transform: translate(-50%, -50%);
    transition: transform .2s ease;
}
.product-template .ttpc-full-panel.tt-compare-collapsed .ttpc-collapse-full .ttpc-toggle-arrow {
    transform: translate(-50%, -50%) rotate(180deg);
}
.product-template .ttpc-full-panel.tt-compare-collapsed .ttpc-widget-top,
.product-template .ttpc-full-panel.tt-compare-collapsed .ttpc-offers,
.product-template .ttpc-full-panel.tt-compare-collapsed .ttpc-widget-footer {
    display: none !important;
}

/* LOAD MORE MERCHANTS — more than 3 offers fold to 3 by default; the
   product-compare-redesign.js toggle button adds .tt-offers-expanded to
   the panel to reveal the rest, at which point this rule simply stops
   matching (the offer rows fall back to their own normal display value,
   no need to know/hardcode it here). */
.product-template .ttpc-full-panel:not(.tt-offers-expanded) .ttpc-offers:not(.ttpc-offers--removed) > .ttpc-offer:nth-child(n+4) {
    display: none;
}
.ttpc-offers-toggle-container {
    text-align: center;
    margin-top: 12px;
    padding: 0 18px 16px;
}
/* Mirrors .preview-toggle-button exactly (tropictraffic-theme/style.css) —
   same "VIS ALLE (N)" / "Vis færre" teal button already used by the
   preview list above the main comparison, now reused here too. */
.ttpc-offers-toggle-button {
    background: #eaf6f4;
    color: #0f6b63;
    border: none;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}
.ttpc-offers-toggle-button:hover {
    background: #d7efe9;
}
.ttpc-offers-toggle-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.ttpc-offers-toggle-button.is-expanded .ttpc-offers-toggle-chevron {
    transform: rotate(180deg);
}
/* The whole-panel collapse control (tt-price-compare's own "Skjul"
   button + chevron) is redundant now that load-more is the only fold/expand
   control on this panel (see product-compare-redesign.js init() — the
   header click listener that used to toggle .tt-compare-collapsed was
   removed for the same reason). */
.product-template .ttpc-collapse-full {
    display: none !important;
}
.product-template .ttpc-full-panel-header {
    cursor: default;
}
/* Savings pill sits flush under the title now — same teal tint as the
   header above it, no border/gap between them — instead of appearing as a
   separate element down in the white offer-list area below. */
.product-template .ttpc-widget-top {
    background: #eaf6f4 !important;
    border-bottom: none !important;
    padding: 0 18px 14px !important;
    justify-content: flex-start;
}
/* 09-24: dropped the small pill-chip look (background/border/border-radius)
   in favor of bold heading-style text — same weight/format as "Klar til at
   købe?" (.cheapest-offer-heading further down) — since the pill read as too
   flat/plain sitting in the already-teal-tinted header block above it. Base
   rule (the plain green pill) is untouched for [tt_compare] elsewhere. */
.product-template .ttpc-savings-header {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    gap: 8px;
    font-size: 13px;
    font-weight: normal;
    color: #4b5563;
    /* 09-28: this subtext and .ttpc-full-panel-title above it share the
       same container padding, but the title's own leading icon (16px) +
       gap (10px) push its TEXT 26px further right than that padding alone
       — this line had no icon of its own (removed 09-25 below) to match
       that offset, so it read as misaligned with the title's icon instead
       of its text. */
    margin-left: 26px;
}
/* 09-25: dropped the leading tag icon too — plain text reads cleaner
   directly under the "Sammenlign prisen..." header above it, which has
   its own leading icon already; two icons stacked right on top of each
   other read as visually noisy. */
.product-template .ttpc-savings-header svg {
    display: none;
}

/* ── "Alle forhandlere" list row buttons — 09-25: initially left orange
   (the base .ttpc-cta color, unchanged), just the cart icon swapped for a
   plain arrow-after (identical technique/SVG already used on
   .tt-compare-hero's own button above and .featured-buy-button). 09-28
   first round: recolored to the same dark teal as every other button on
   this card. 09-28 later same day: reverted back to orange per direct
   request — the base plugin's own default color for [tt_compare]
   elsewhere already was orange, so this now matches it again explicitly
   (the !important is still needed to beat the base rule's own
   specificity-tied color declaration, not because this differs from it). */
.product-template .ttpc-full-panel .ttpc-cta {
    background-color: #f97316 !important;
}
.product-template .ttpc-full-panel .ttpc-cta:hover {
    background-color: #ea6c0a !important;
}
.product-template .ttpc-full-panel .ttpc-cta svg {
    display: none;
}
.product-template .ttpc-full-panel .ttpc-cta-text::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 14px;
    margin-left: 2px;
    vertical-align: -2px;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23ffffff' d='M310.6 233.4l-160-160c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9L196.1 256 94.1 358.1c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l160-160c9.5-9.4 9.5-24.6 0-34z'/%3E%3C/svg%3E");
}

/* 09-24: mobile offer rows were truncating merchant names ("Med...",
   "Hels...", "Copenhage...") — the base plugin's own <=600px layout puts
   the name into .ttpc-mobile-merchant inside the meta grid column, but that
   column is only whatever's left over after the price/CTA columns (both
   "auto", sized to their own content) take their share — on a narrow card
   that's ~27px, nowhere near enough for a full name regardless of any
   max-width rule. Fix: stack the row into two lines instead of one —
   name gets its own full-width line above icon-less price+CTA — so the
   name column is never fighting the price/button for horizontal space.
   Scoped to .product-template; [tt_compare] elsewhere keeps the base
   single-line layout untouched. */
/* 09-25: mockup-corrected version of the round above — that attempt put the
   WHOLE price column (current price + badge + strikethrough, still grouped
   together) on its own row above the button. The actual mockup wants a real
   2x2 grid instead: name top-left(ish)/discount top-right on row 1, current
   price bottom-left/button bottom-right on row 2 — i.e. the discount badge
   moves OUT of the current-price line and pairs with the strikethrough
   instead. Badge and strikethrough aren't siblings in the base markup
   (badge is nested inside .ttpc-price-row alongside the current price), so
   product-compare-redesign.js physically moves them into a new
   `.ttpc-discount-wrap` wrapper on this breakpoint only (reversed on
   desktop) — see `moveDiscountForMobile()` there for why a DOM move was
   needed instead of a CSS-only fix. Also carries over the tighter
   name-to-price gap from the previous round. */
/* 09-25: every selector below is scoped through .ttpc-full-panel, not just
   .product-template — .tt-compare-hero clones an .ttpc-offer-row's markup
   verbatim (same class names: ttpc-col-price, ttpc-price-row, ttpc-orig,
   ttpc-discount-badge, ttpc-col-cta...) and sits as .ttpc-full-panel's
   SIBLING inside .product-template, not its descendant. An earlier version
   of this block used the bare .product-template ancestor, which matched
   .tt-compare-hero's own (differently-styled, already-correct) copies of
   these classes too and broke its layout on mobile — caught when the
   hero's strikethrough price came out full-width/right-aligned instead of
   centered next to the badge. The JS side (moveDiscountForMobile in
   product-compare-redesign.js) already scoped its own querySelectorAll to
   .ttpc-full-panel .ttpc-offer-row for this exact reason; this just brings
   the CSS in line with it. */
@media (max-width: 600px) {
    .product-template .ttpc-full-panel .ttpc-offer-row {
        grid-template-columns: 40px 1fr auto;
        grid-template-areas:
            "icon name     discount"
            "icon price    cta";
        row-gap: 2px;
        column-gap: 10px;
    }
    .product-template .ttpc-full-panel .ttpc-col-icon { grid-area: icon; }
    .product-template .ttpc-full-panel .ttpc-col-meta {
        grid-area: name;
        overflow: visible;
    }
    .product-template .ttpc-full-panel .ttpc-mobile-merchant {
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    /* Exposes .ttpc-price-row and (if the JS created it) .ttpc-discount-wrap
       as independent grid items, each placeable in its own area — a plain
       .ttpc-col-price would otherwise force them to share one cell. */
    .product-template .ttpc-full-panel .ttpc-col-price { display: contents; }
    /* 09-25: the base grid's align-items:center was centering this row
       within row 2's full height (which the CTA button, taller than a
       single line of price text, stretches out) — pulling the price text
       down away from the name row above it and reading as a bigger gap
       than the 2px row-gap actually is. align-self:start hugs it to the
       top of its row instead, right under the name.
       justify-content:flex-start is also needed explicitly — the base
       plugin's own unscoped <=600px rule sets .ttpc-price-row to
       justify-content:flex-end (meant for when it still held the discount
       badge, pinning the pair to the row's right edge); now that the badge
       moved out (see moveDiscountForMobile()), .ttpc-price is this row's
       ONLY child, so flex-end pushed just the price number itself off to
       the right instead of left-aligning it under the merchant name. Same
       per-property cascade gap as .tt-compare-hero's flex-direction fix
       above — this rule never needed to state justify-content until now. */
    .product-template .ttpc-full-panel .ttpc-price-row {
        grid-area: price;
        align-self: start;
        justify-content: flex-start;
    }
    .product-template .ttpc-full-panel .ttpc-discount-wrap {
        grid-area: discount;
        justify-self: end;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    /* Fallback for the rare case a row has a strikethrough price but no
       discount badge (or vice versa) — moveDiscountForMobile() only builds
       the wrapper when BOTH exist, so a lone .ttpc-orig would otherwise be
       left as an un-placed grid item with no area of its own. */
    .product-template .ttpc-full-panel .ttpc-orig { grid-area: discount; justify-self: end; }
    .product-template .ttpc-full-panel .ttpc-col-cta {
        grid-area: cta;
        justify-self: end;
    }
}

/* ── Beskrivelse / Specifikationer accordions ─────────────────────────────
   Scoped to .product-template so the shared, sitewide accordion component
   (used elsewhere on the site outside this redesign) is untouched — only
   overrides its look inside this specific card context, matching the
   comparison toggle and "Klar til at købe" box's teal-green tint instead
   of the accordion's own default off-white (#f6f8f8). */
.product-template .product-specs-accordion,
.product-template .product-description-accordion {
    border: 1px solid rgba(0, 150, 136, .25);
    border-radius: 10px;
    margin-top: 16px;
}
.product-template .specs-accordion-header,
.product-template .desc-accordion-header {
    background: #eaf6f4;
    padding: 14px 18px;
}
.product-template .specs-title,
.product-template .desc-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.product-template .specs-title::before,
.product-template .desc-title::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: no-repeat center / contain;
}
.product-template .desc-title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23009688' stroke-width='1.3' stroke-linecap='round'%3E%3Crect x='2' y='1' width='12' height='14' rx='1.5'/%3E%3Cline x1='4.5' y1='5' x2='11.5' y2='5'/%3E%3Cline x1='4.5' y1='8' x2='11.5' y2='8'/%3E%3Cline x1='4.5' y1='11' x2='9' y2='11'/%3E%3C/svg%3E");
}
.product-template .specs-title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23009688' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4l1.5 1.5L6 3'/%3E%3Cline x1='8' y1='4' x2='14' y2='4'/%3E%3Cpath d='M2 9l1.5 1.5L6 8'/%3E%3Cline x1='8' y1='9' x2='14' y2='9'/%3E%3C/svg%3E");
}

/* ── One unified card ─────────────────────────────────────────────────────
   Mockup shows the whole product entry — image/title/price row, compare
   list, Fordele/Ulemper, accordions, bottom CTA — as ONE bordered card, not
   a stack of separately-bordered pieces. .product-template becomes that
   card; the pieces that used to carry their own border/shadow (the hero
   panel, the compare-list panel) have theirs removed below so they read as
   sections of one card instead of nested cards. */
.product-template {
    background: #fff;
    /* Was a plain neutral gray (#e5e7eb) — tinted green to match the rest
       of the card's accent color (shipping icons, checkmarks, hero panel,
       accordion borders all already use this same #009688 family), with a
       soft matching shadow instead of a flat gray one for a less "boxy"
       feel. */
    border: 1px solid rgba(0, 150, 136, .3);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 150, 136, .08);
    padding: 24px;
    box-sizing: border-box;
}
/* ── Unified header treatment ─────────────────────────────────────────────
   Comparison toggle, Beskrivelse, Specifikationer and "Klar til at købe"
   were 4 visually different components (different background, border,
   radius, some with an icon and some without) despite sitting stacked in
   the same card — this section gives all 4 the same rounded/bordered box
   + teal-green tint + leading icon treatment, reusing the exact border
   color the accordions already had (rgba(0,150,136,.25), see
   tt-hero.css) rather than inventing a new one. */
.product-template .ttpc-full-panel {
    border: 1px solid rgba(0, 150, 136, .25) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    overflow: hidden;
    margin-top: 24px;
    padding-top: 0;
}

/* ── Top block: image | title/tagline/USPs | price (desktop only) ───────────
   Mockup-driven 3-column row — image on the left, title/tagline/USPs in the
   middle, the hero price panel on the right (same position as the existing,
   already-approved [featured_product_box] layout). Everything below this
   row (compare list, Fordele/Ulemper, accordions, bottom CTA) stays a
   normal full-width row, unchanged. No pill besides "Vi anbefaler" and no
   "Priser opdateret" text are added — deliberately left out per the mockup
   review; the site doesn't have a distinct "brand" data field separate from
   the product title, so no brand label above the title either.

   .product-image-feed is dissolved via display:contents (same pattern used
   elsewhere on this site, e.g. .featured-area-info) so .product-image and
   .product-info-col become direct grid items of .product-template. Title,
   tagline and the USP/offer feed are grouped into ONE .product-info-col
   wrapper (shortcode-product-template.php) rather than 3 separate grid
   rows — each column below is then a SINGLE cell whose height is its own
   natural content height, so there's exactly one place a height mismatch
   between columns can show (blank space at the bottom of the shorter
   column), not a gap in the middle of the text stack. */
@media (min-width: 769px) {
    .product-template {
        display: grid;
        grid-template-columns: minmax(160px, 220px) 1fr minmax(280px, 380px);
        /* 09-29: was `start` — .product-image/.product-info-col pinned to
           the top of the row, leaving visible empty space below them now
           that .tt-compare-hero (column 3, always stretched to the row's
           full height via its own align-self below) has grown much taller
           than the image+title+USP column thanks to all the voucher/trust-
           row additions this week. `center` vertically centers the OTHER
           two columns within the row instead — .tt-compare-hero is
           unaffected, since its own align-self:stretch always overrides
           whatever the container's align-items says. */
        align-items: center;
        column-gap: 24px;
    }
    .product-template > .product-image-feed {
        display: contents;
    }
    .product-template > .product-image-feed > .product-image {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        /* 09-30: fixed box (was sized by whatever the image's own natural
           aspect ratio happened to be, via max-width:100%;height:auto on
           the img below) — per direct request, every product's image slot
           is now the same size regardless of the source photo's own
           dimensions/crop, matching the grid column's own natural width
           (minmax(160px,220px)) at a 220x225 box. */
        width: 220px;
        height: 225px;
        overflow: hidden;
    }
    .product-template > .product-image-feed > .product-info-col {
        grid-column: 2;
        grid-row: 1;
    }
    .product-template > .tt-compare-hero {
        grid-column: 3;
        grid-row: 1;
        /* 09-30: `align-self:stretch` (forcing the box to the row's full
           height, letting its own justify-content:center vertically center
           its content within that taller box) is GONE — it kept leaving a
           visible dead-space gap in the box's own background/border,
           independent of whatever the trust-line reserved-space fix did,
           since the row's height is set by the TALLEST column (image/title)
           and the price box's natural content is usually shorter than that
           regardless. No `align-self` override at all now — the box just
           takes its own natural (tight) height and picks up
           .product-template's own `align-items:center` like the other two
           columns, matching the reference screenshots exactly (button+icons
           end the box immediately, no trailing blank area). */
    }
    /* Everything else spans the full width, own row, natural stacking —
       explicit allowlist rather than "everything defaults full-width" so a
       future new direct child of .product-template fails visibly (squeezed
       into column 2) instead of silently spanning all columns. */
    .product-template > .ttpc-full-panel,
    .product-template > .pros-cons-container,
    .product-template > .expert-guide-accordion,
    .product-template > .product-description-accordion,
    .product-template > .product-specs-accordion,
    .product-template > .cheapest-offer {
        grid-column: 1 / -1;
    }
}
/* 09-30: fills the now-fixed 220x225 .product-image box (see the
   @media(min-width:769px) rule above) — object-fit:contain keeps the whole
   image visible undistorted (never cropped into the product, matching the
   earlier "don't cut into the bottle" decision on the Healthwell trim), so
   a source image with a different aspect ratio just letterboxes within the
   fixed box rather than stretching it or overflowing next to it. Mobile's
   own 114x114 object-fit:cover rule further down (higher specificity via
   .product-image-feed in its selector) is untouched. */
.product-template .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* "Sorter efter" (price/rating/delivery sort tabs) removed per request —
   the list already defaults to price-ascending, which is what most people
   want, and this is one less control in an otherwise clean card. */
.product-template .ttpc-sort-wrap {
    display: none !important;
}
/* 09-25: mobile now gets its OWN grid too — previously "single column,
   normal document flow" (image full-width, then title/usps stacked below,
   then .tt-compare-hero last), matching the request to mirror
   [featured_product_box]'s own compact mobile layout instead (small image
   beside the title, price panel below spanning full width, USPs below
   that) — see tropictraffic-theme/style.css's "STAGING-ONLY layout
   experiment (2026-09-15)" block for the featured box's version of this
   exact pattern, which this is deliberately modeled on. Same
   display:contents technique the desktop 3-column grid above already uses
   (.product-image-feed and .product-info-col dissolve so their children
   become direct grid items of .product-template) — no JS DOM move needed,
   since .tt-compare-hero is already a direct child of .product-template
   (inserted there by buildHero() regardless of viewport). */
@media (max-width: 768px) {
    .product-template {
        padding: 16px;
        display: grid;
        grid-template-columns: 114px 1fr;
        grid-template-areas:
            "image info-head"
            "price price"
            "usps  usps";
        row-gap: 12px;
        column-gap: 14px;
        align-items: start;
    }
    .product-template > .product-image-feed {
        display: contents;
    }
    .product-template > .product-image-feed > .product-image {
        grid-area: image;
        justify-self: start;
        margin: 0;
    }
    .product-template .product-image-feed .product-image img {
        width: 114px;
        height: 114px;
        object-fit: cover;
        border-radius: 8px;
    }
    .product-template > .product-image-feed > .product-info-col {
        display: contents;
    }
    .product-template .product-title-container {
        grid-area: info-head;
        align-self: center;
    }
    /* Hidden in this compact layout, same call [featured_product_box]'s own
       compact mobile variant already makes for its tagline. */
    .product-template > .product-image-feed .product-tagline {
        display: none;
    }
    .product-template .product-feed {
        grid-area: usps;
    }
    .product-template > .tt-compare-hero {
        grid-area: price;
    }
    /* Same explicit-allowlist approach as the desktop grid above — anything
       not named here defaults to a squeezed column-1 cell instead of
       silently spanning full width, so a future new direct child fails
       visibly rather than quietly looking broken. */
    .product-template > .ttpc-full-panel,
    .product-template > .pros-cons-container,
    .product-template > .expert-guide-accordion,
    .product-template > .product-description-accordion,
    .product-template > .product-specs-accordion,
    .product-template > .cheapest-offer {
        grid-column: 1 / -1;
    }
}

/* "VI ANBEFALER" (or a manually-set highlight) — was a solid gold pill
   badge; per request this component doesn't get the featured box's ribbon
   treatment at all, just plain small caps text sitting above the title. */
/* 09-28: modern small pill badge (soft gold tint, star icon) — was plain
   text (09-25) before that a solid gold pill (original). Same visual design
   also applied to .featured-sticky-badge in featured-sticky-banner.css
   (that one was its own solid teal pill, unrelated styling) so both
   "VI ANBEFALER" badges on the site read as one consistent design language
   instead of two different treatments. */
.product-template .product-highlight {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fdf3e0;
    color: #92670f;
    border: 1px solid rgba(184, 134, 58, .35);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    width: auto;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
/* 09-28: title + image made clickable (affiliate link) — plain <a> default
   styling (blue, underlined) would clash with the card's existing look, so
   this keeps the title reading exactly as before, just clickable now. */
.product-template .product-title a {
    color: inherit;
    text-decoration: none;
}
.product-template .product-title a:hover {
    text-decoration: underline;
}
.product-template .product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-template .product-highlight::before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 11px;
    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-template .product-usp ul {
    padding-left: 3% !important;
}
.product-template .product-usp li::before {
    /* Same filled-circle checkmark badge already used for Fordele/Ulemper
       (.featured-advantages/.featured-specifications in style.css) instead
       of the plain "✔" glyph — closer to the mockup, inline SVG so no new
       request. */
    content: "" !important;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23009688'/%3E%3Cpath d='M9.6 16.2 6 12.6l1.4-1.4 2.2 2.2 5.6-5.6L16.6 9.2z' fill='%23fff'/%3E%3C/svg%3E") !important;
    background-size: contain;
    background-repeat: no-repeat;
    font-size: 0;
}

/* ── Bottom CTA banner ("Klar til at købe?") ─────────────────────────────
   Heading + "Se den aktuelle pris hos {merchant}" + button — replaces the
   plain centered button that was there before. Overrides the base
   .cheapest-offer/.cheapest-offer a rules in style.css (flex row instead of
   centered column, orange to match the rest of this redesigned card's CTAs
   instead of the site's other teal cheapest-button contexts). */
.product-template .cheapest-offer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #eaf6f4;
    border: 1px solid rgba(0, 150, 136, .25);
    border-radius: 10px;
    padding: 18px 22px;
    margin-top: 16px;
}
.product-template .cheapest-offer-text { min-width: 0; }
.product-template .cheapest-offer-heading {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.product-template .cheapest-offer-heading::before {
    /* Same cart icon already used on this card's own "Køb nu" buttons
       (.tt-compare-hero .ttpc-cta-text::before, product-compare-redesign.css
       further up) — reused here rather than a new icon, so the "ready to
       buy" concept reads the same wherever it appears on the card. */
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    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='%23009688' d='M0 24C0 10.7 10.7 0 24 0h45.5c22 0 41.5 12.8 50.6 32H531c26.3 0 45.5 25 38.6 50.4l-41 152.3C520.1 266.7 491.6 288 459.1 288H170.6l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H199.6C165 384 135.3 359.4 128.9 325.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5H24C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z'/%3E%3C/svg%3E");
}
.product-template .cheapest-offer-subtitle {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    /* 09-28: same fix as .ttpc-savings-header above — .cheapest-offer-heading's
       own leading icon (16px) + gap (10px) push its text 26px past this
       subtitle's own left edge, since the subtitle has no icon of its own
       to account for that offset. */
    margin-left: 26px;
}
.product-template .cheapest-offer a.cheapest-button {
    background-color: #0f6b63 !important;
    width: auto !important;
    flex: 0 0 auto;
    margin-top: 0 !important;
    padding: 0.8rem 1.75rem !important;
    text-transform: none !important;
    font-size: 0.9em !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    /* Base .cheapest-offer a is box-sizing:content-box (site default) —
       without border-box here, width:100% below plus this padding adds up
       to wider than the card, overflowing past its edge on mobile. */
    box-sizing: border-box !important;
    /* 09-25: plain text button had no icon at all — added an arrow-after,
       same SVG as every other CTA arrow on this card. Needs display:flex
       (base is inline-block) so the arrow sits inline with the text
       instead of dropping to its own line. */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.product-template .cheapest-offer a.cheapest-button::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 14px;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23ffffff' d='M310.6 233.4l-160-160c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9L196.1 256 94.1 358.1c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l160-160c9.5-9.4 9.5-24.6 0-34z'/%3E%3C/svg%3E");
}
.product-template .cheapest-offer a.cheapest-button:hover {
    background-color: #0c554e !important;
}
@media (max-width: 600px) {
    .product-template .cheapest-offer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .product-template .cheapest-offer a.cheapest-button {
        width: 100% !important;
        justify-content: center;
    }
}

/* ── Fordele / Ulemper (pros/cons) ─────────────────────────────────────────
   09-24: replaced the old solid-color header bar (tropictraffic-theme/
   style.css's .pros-cons-header background) with the same light-tint +
   colored-border + leading-icon language as this card's other sections
   (comparison toggle, accordions, ready-to-buy). Base rule untouched —
   only overridden here, scoped to .product-template like everything else
   in this file. */
.product-template .pros-cons-box {
    border-radius: 10px;
    overflow: hidden;
    border: none !important;
}
.product-template .pros-cons-box.advantages-box {
    background: #eaf6f4;
    border: 1px solid rgba(0, 150, 136, .25) !important;
}
.product-template .pros-cons-box.disadvantages-box {
    background: #fef2f2;
    border: 1px solid rgba(220, 38, 38, .2) !important;
}
.product-template .pros-cons-header {
    background: none !important;
    box-shadow: none !important;
    padding: 14px 18px 6px !important;
    font-size: 16px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start !important;
}
.product-template .pros-cons-box.advantages-box .pros-cons-header {
    color: #0f6b63 !important;
}
.product-template .pros-cons-box.disadvantages-box .pros-cons-header {
    color: #b91c1c !important;
}
/* Thumbs-up/down SVGs (Material Icons' thumb_up/thumb_down paths, recolored
   to match each box's own accent) instead of the emoji tried first — same
   background-image data-URI pattern used for every other icon in this
   file, sized/positioned the same way as the list-item badges below. */
.product-template .pros-cons-header::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: no-repeat center / contain;
}
.product-template .pros-cons-box.advantages-box .pros-cons-header::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f6b63' d='M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z'/%3E%3C/svg%3E");
}
.product-template .pros-cons-box.disadvantages-box .pros-cons-header::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b91c1c' d='M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z'/%3E%3C/svg%3E");
}
/* List item badges — same green circle-checkmark already used for
   .product-usp (reused as-is for visual consistency), plus a matching red
   circle-X for disadvantages that didn't exist before. */
.product-template .advantages-list li:before,
.product-template .disadvantages-list li:before {
    content: "" !important;
    width: 18px;
    height: 18px;
    top: 0;
    font-size: 0;
    background-size: contain;
    background-repeat: no-repeat;
}
.product-template .advantages-list li:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23009688'/%3E%3Cpath d='M9.6 16.2 6 12.6l1.4-1.4 2.2 2.2 5.6-5.6L16.6 9.2z' fill='%23fff'/%3E%3C/svg%3E");
}
.product-template .disadvantages-list li:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23dc2626'/%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* PriceRunner credit ("I samarbete med PriceRunner", required wherever their offers are shown).
   With a "Vis alle" bar: button centred, credit on the left of the same bar. Without one (3 offers or fewer) the credit is a
   left-aligned line under the list. The bar stays after "Vis alle" is clicked (JS removes only the button). */
.ttpc-offers-toggle-container.has-pr-credit {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 12px;
}
.ttpc-offers-toggle-container.has-pr-credit .ttpc-offers-toggle-button { grid-column: 2; justify-self: center; }
.ttpc-offers-toggle-container .ttpc-pr-credit,
.product-template .ttpc-full-panel > .ttpc-pr-credit {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    font-size: 10.5px;
    line-height: 1.3;
}
.product-template .ttpc-full-panel > .ttpc-pr-credit { padding: 0 18px 14px; margin-top: -4px; }
@media (max-width: 600px) {
    .ttpc-offers-toggle-container.has-pr-credit { grid-template-columns: 1fr; row-gap: 10px; justify-items: center; }
    .ttpc-offers-toggle-container.has-pr-credit .ttpc-offers-toggle-button { grid-column: 1; grid-row: 1; justify-self: center; }
    .ttpc-offers-toggle-container .ttpc-pr-credit { grid-column: 1; grid-row: 2; justify-self: start; text-align: left; }
}
/* Featured box and its sticky bar show a Pricerunner offer's price + shop too */
.featured-price-panel .ttpc-pr-credit { padding: 8px 0 0; border: 0; background: none; text-align: center; font-size: 10.5px; line-height: 1.3; }
.featured-sticky-banner .ttpc-pr-credit { padding: 0; border: 0; background: none; text-align: left; font-size: 10px; line-height: 1.2; margin-top: 2px; }
