/* DealerConduit Inventory - self-contained, theme-neutral.
   Override the variables in your theme to match its palette. */

.dci {
    --dci-accent: #c7081b;
    --dci-accent-ink: #fff;
    --dci-ink: inherit;
    --dci-muted: #6a6e71;
    --dci-line: #dcdcdc;
    --dci-surface: #fff;
    --dci-radius: 8px;
    box-sizing: border-box;
}
.dci *, .dci *::before, .dci *::after { box-sizing: inherit; }

/* ---- shared ---- */

.dci-button {
    display: inline-block;
    padding: 10px 18px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dci-accent-ink);
    background: var(--dci-accent);
    border: 1px solid var(--dci-accent);
    border-radius: var(--dci-radius);
    text-decoration: none;
    cursor: pointer;
}
.dci-button:hover { filter: brightness(.9); color: var(--dci-accent-ink); }
.dci-button-quiet { color: var(--dci-accent); background: transparent; }
/* Hover fills with the accent: the plain hover's white text would vanish on
   a quiet button's clear background. */
.dci .dci-button-quiet:hover,
.dci .dci-button-quiet:focus-visible { color: var(--dci-accent-ink); background: var(--dci-accent); filter: none; }

.dci-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 9px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: #fff; background: #3d3d3d; border-radius: 999px;
}
.dci-badge-hold { left: auto; right: 10px; background: #d92d20; }
.dci-badge-new { background: #067647; }
.dci-badge-used { background: #b54708; }
.dci-badge-consigned { background: #5925dc; }
.dci-badge-arriving { top: auto; bottom: 10px; left: 10px; background: #1570ef; }
.dci-arriving-text { color: #1570ef; font-weight: 700; }

.dci-swatch {
    display: inline-block; width: 11px; height: 11px;
    margin-right: 5px; vertical-align: -1px;
    border: 1px solid rgb(0 0 0 / 20%); border-radius: 3px;
}

.dci-price { font-size: 1.25em; font-weight: 700; }
.dci-price-call { font-size: 1em; font-weight: 600; color: var(--dci-muted); }
/* The small "MSRP" tag before a new unit's price. */
.dci-price-msrp { margin-right: 4px; font-size: .7em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dci-muted); white-space: nowrap; }
/* The currency code after a headline price (e.g. "$9,499 CAD"). */
.dci-price-cur { font-size: .55em; font-weight: 700; letter-spacing: .04em; color: var(--dci-muted); vertical-align: .1em; }
.dci-price-box .dci-price .dci-price-msrp { font-size: .5em; vertical-align: .15em; }
.dci-fineprint { margin: 8px 0 0; font-size: .8em; color: var(--dci-muted); }

.dci-unavailable {
    padding: 24px;
    text-align: center;
    background: #fff8e6;
    border: 1px solid #f0d48a;
    border-radius: var(--dci-radius);
}
.dci-unavailable p { margin: 0; }
.dci-unavailable-admin { margin-top: 10px !important; font-size: .85em; color: var(--dci-muted); }

/* ---- grid ---- */

.dci-filters {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: end;
    padding: 14px;
    margin: 0 0 20px;
    background: var(--dci-surface);
    border: 1px solid var(--dci-line);
    border-radius: var(--dci-radius);
}
.dci-filter { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.dci-filter-grow { flex: 1 1 220px; }
.dci-filter span { font-size: .75em; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--dci-muted); }
.dci-filters .dci-filter input,
.dci-filters .dci-filter select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font: inherit;
    color: inherit;
    background-color: var(--dci-surface);
    border: 1px solid var(--dci-line);
    border-radius: 6px;
}
/* Use our own chevron so it never overlaps the option text, and leave room for
   it on the right. Themes style native selects aggressively (their arrow was
   clipping "New"), so reset the control explicitly here. */
.dci-filters .dci-filter select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236a6e71' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
}

.dci-count { margin: 0 0 12px; color: var(--dci-muted); }
.dci-empty { padding: 32px 0; text-align: center; color: var(--dci-muted); }

.dci-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.dci-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--dci-surface);
    border: 1px solid var(--dci-line);
    border-radius: var(--dci-radius);
}
.dci-card:hover { box-shadow: 0 2px 12px rgb(0 0 0 / 10%); }
.dci-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #f2f2f2; overflow: hidden; }
/* Absolute so the image fills the aspect box without feeding its own height
   back into it - that circular reference makes iOS Safari oversize the box and
   spill the photo over the title below. */
.dci-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dci-card-nophoto { display: grid; place-items: center; height: 100%; font-size: .9em; color: var(--dci-muted); }
/* A column filling the card, so the Compare button can sit at the foot of
   every card in a row however many lines the title takes. */
.dci-card-body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 14px 16px 16px; }
.dci-card-title { margin: 0 0 6px; font-size: 1.05em; line-height: 1.3; }
.dci-card-title a { color: var(--dci-ink); text-decoration: none; }
.dci-card-title a:hover { color: var(--dci-accent); }
.dci-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; font-size: .85em; color: var(--dci-muted); }
.dci-card-price { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
/* On sale: "Was $7,999" struck through on its own line, then the price and
   the saving - in a card, the comparison and the "Compare with similar" list. */
.dci-price-was-line { flex-basis: 100%; display: block; margin-bottom: -4px; font-size: .85em; color: var(--dci-muted); }
.dci-price-was-line s { font-weight: 700; }
.dci-price-save-line { font-size: .82em; font-weight: 700; color: var(--dci-accent); white-space: nowrap; }
.dci .dci-card-body > .dci-cmp-pick { margin-top: auto; }
.dci-card-body > .dci-card-price:has(+ .dci-cmp-pick) { margin-bottom: 12px; }
/* Cards in a row share their rows (subgrid): title, colour/type, price and
   offers, Compare - so each lines up with its neighbours however many lines
   a title takes. Without subgrid the column layout above still applies. */
@supports (grid-template-rows: subgrid) {
    .dci-grid > .dci-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
    .dci-grid > .dci-card > .dci-card-body { display: contents; }
    .dci-grid > .dci-card > .dci-card-body > * { margin-left: 16px; margin-right: 16px; }
    .dci-grid > .dci-card .dci-card-title { margin-top: 14px; }
    .dci-grid > .dci-card .dci-card-body > .dci-card-price { align-content: start; margin-bottom: 14px; }
    .dci .dci-grid > .dci-card .dci-cmp-pick { width: auto; align-self: end; margin-top: 0; margin-bottom: 16px; }
}
.dci-offer-flag { font-size: .75em; font-weight: 700; color: var(--dci-accent); text-transform: uppercase; letter-spacing: .03em; }

.dci-pager { display: flex; gap: 18px; justify-content: center; align-items: center; margin-top: 28px; }
.dci-pager span { color: var(--dci-muted); }

/* ---- single unit ---- */

.dci-unit { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.dci-unit-title { margin: 0 0 6px; }
.dci-unit-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 20px; color: var(--dci-muted); position: relative; }
.dci-unit-meta .dci-badge { position: static; }

.dci-unit-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 28px; align-items: start; }
@media (max-width: 760px) { .dci-unit-layout { grid-template-columns: 1fr; } }

.dci-gallery-main { position: relative; aspect-ratio: 4 / 3; background: #f2f2f2; border-radius: var(--dci-radius); overflow: hidden; }
/* Absolute for the same reason as .dci-card-media img (iOS Safari oversizing). */
.dci-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }

/* Availability stamp over the photo it belongs to. */
.dci-stamp {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-13deg);
    z-index: 2; pointer-events: none; white-space: nowrap;
    padding: 5px 14px;
    font-size: clamp(12px, 4.4vw, 19px);
    font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
    color: var(--dci-accent);
    background: rgb(255 255 255 / 62%);
    border: 3px solid var(--dci-accent);
    border-radius: 6px;
    box-shadow: inset 0 0 0 2px rgb(255 255 255 / 55%);
    opacity: .93;
}
.dci-stamp-lg { padding: 9px 26px; font-size: clamp(22px, 5.5vw, 38px); border-width: 4px; }
.dci-held img { filter: grayscale(35%) opacity(.85); }

.dci-held-notice {
    display: flex; align-items: center; gap: 9px;
    margin: 0 0 18px; padding: 10px 14px;
    font-weight: 700; color: var(--dci-accent);
    background: rgb(0 0 0 / 4%);
    border: 1px solid var(--dci-accent);
    border-radius: var(--dci-radius);
}
.dci-held-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--dci-accent); }
/* Specific enough to beat a theme's ".entry-content p" font-size. */
.dci-unit .dci-gallery .dci-gallery-caption,
.dci-unit .dci-gallery-caption { margin: 10px 0 0; font-size: clamp(1.4rem, 3.6vw, 1.9rem); font-weight: 800; line-height: 1.2; text-align: center; overflow-wrap: break-word; }
.dci-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dci-thumb { padding: 0; width: 72px; height: 54px; overflow: hidden; background: #f2f2f2; border: 2px solid transparent; border-radius: 6px; cursor: pointer; }
.dci-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dci-thumb.is-active { border-color: var(--dci-accent); }

.dci-price-box { padding: 18px 18px 20px; background: var(--dci-surface); border: 1px solid var(--dci-line); border-top: 4px solid var(--dci-accent); border-radius: var(--dci-radius); box-shadow: 0 2px 14px rgb(0 0 0 / 7%); }
.dci-price-box .dci-price { display: block; margin: 0; font-size: 1.9em; font-weight: 800; line-height: 1.1; }
/* MSRP struck through on the line above the selling price, then the saving. */
/* The price figures sit on the right, lining up with the breakdown below. */
.dci-price-box .dci-price-was,
.dci-price-box .dci-price,
.dci-price-box .dci-price-save { text-align: right; }
.dci-price-box .dci-price-was { margin: 0 0 2px; font-size: 1em; color: var(--dci-muted); }
.dci-price-was-label { font-weight: 700; letter-spacing: .02em; }
.dci-price-was s { font-weight: 700; }
.dci-price-box .dci-price-save { margin: 5px 0 0; font-weight: 700; color: var(--dci-accent); }
.dci-price-list .dci-price-msrp dt { color: var(--dci-ink); font-weight: 700; }
.dci-price-list .dci-price-msrp dd { color: var(--dci-ink); font-weight: 800; font-size: 1.35em; }
.dci-price-discount dt, .dci-price-discount dd { color: var(--dci-accent); font-weight: 700; }
.dci-price-box .dci-price-call { font-size: 1.35em; font-weight: 700; }

.dci-price-lines { margin: 14px 0 0; padding: 0; }
.dci-price-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: .95em; }
.dci-price-lines dt { margin: 0; color: var(--dci-muted); }
.dci-price-lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.dci-price-discount dd { color: var(--dci-accent); font-weight: 700; }
.dci-price-subtotal { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--dci-line); }
.dci-price-subtotal dt, .dci-price-subtotal dd { font-size: 1.05em; font-weight: 800; color: var(--dci-ink); }

.dci-price-box .dci-fineprint { margin: 10px 0 0; }
.dci-price-box .dci-button { display: block; margin-top: 14px; text-align: center; }

/* ---- inquiry form ---- */
.dci-enquiry { margin-top: 14px; }
.dci-enquiry-toggle { display: block; text-align: center; cursor: pointer; list-style: none; }
.dci-enquiry-toggle::-webkit-details-marker { display: none; }
.dci-enquiry[open] .dci-enquiry-toggle { margin-bottom: 14px; }
/* Phone / SMS / Email contact block above the inquiry and build forms. */
.dci-contact-methods { margin: 0 0 12px; display: flex; flex-direction: column; gap: 1px; }
.dci-contact-method { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1em; line-height: 1.35; }
.dci-contact-icon { flex: 0 0 auto; display: inline-flex; color: #0d6efd; }
.dci-contact-icon svg { display: block; }
.dci-contact-label { font-weight: 700; color: #0d6efd; }
.dci-contact-method a { color: var(--dci-accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.dci-contact-method a:hover { text-decoration: underline; }

/* "Customize this Unit" — an outlined button above the inquiry CTA. */
.dci-customize-btn { display: block; width: 100%; margin: 0 0 10px; text-align: center; border: 1px solid var(--dci-accent); }
.dci-enquiry-unit { margin: 0 0 12px; font-size: .9em; color: var(--dci-muted); }
.dci-enquiry-unit span { white-space: nowrap; }
.dci-field { display: block; margin: 0 0 10px; }
.dci-field span { display: block; margin-bottom: 4px; font-size: .85em; font-weight: 600; color: var(--dci-muted); }
.dci-field input, .dci-field textarea {
    width: 100%; padding: 9px 10px; font: inherit; color: inherit;
    background: #fff; border: 1px solid var(--dci-line); border-radius: 8px;
}
.dci-field textarea { resize: vertical; }
/* Some themes (Automotive) put content-box on forms, which the fields and
   buttons inherit, and give text inputs their own widths - so the padding
   pushed them past the box. Fields and buttons fill their box exactly. */
.dci form { box-sizing: border-box; }
.dci .dci-field input, .dci .dci-field textarea, .dci .dci-field select { width: 100%; max-width: 100%; box-sizing: border-box; }
.dci form .dci-button { max-width: 100%; box-sizing: border-box; }
.dci-enquiry-form .dci-button { width: 100%; border: 0; cursor: pointer; }
.dci-enquiry-fineprint { margin: 8px 0 0; font-size: .78em; color: var(--dci-muted); text-align: center; }
.dci-enquiry-ok { margin: 6px 0 0; padding: 12px; border-radius: 8px; background: #edf7ed; color: #1e4620; font-weight: 600; }
.dci-enquiry-err { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--dci-danger-bg, #fdf2f3); color: var(--dci-accent); font-weight: 600; }
/* Honeypot: off-screen, never shown to a real visitor. */
.dci-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* OMVIC all-in pricing (motorcycles): the disclosure is prominent, never fine print. */
.dci-allin-note { margin: 6px 0 0; font-weight: 700; color: var(--dci-ink); }
.dci-included-head { margin: 14px 0 4px; font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dci-muted); }
.dci-included { margin: 0; }
.dci-included dt { color: var(--dci-muted); }
.dci-included dd { color: var(--dci-muted); font-variant-numeric: tabular-nums; }
.dci-used-notice {
    display: inline-block; margin: 0 0 18px; padding: 6px 12px;
    font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .85em;
    color: var(--dci-ink); background: rgb(0 0 0 / 6%);
    border: 1px solid var(--dci-line); border-radius: 6px;
}
.dci-image-note { margin: 8px 2px 0; font-size: .8em; color: var(--dci-muted); }

.dci-offers { margin-top: 20px; padding: 18px; border: 1px solid var(--dci-line); border-left: 4px solid var(--dci-accent); border-radius: var(--dci-radius); }
.dci-offers h2 { margin: 0 0 10px; font-size: 1.1em; }
.dci-offer h3 { margin: 12px 0 4px; font-size: .95em; }
.dci-offer ul { margin: 0; padding-left: 18px; }
.dci-offer-ends { margin: 4px 0 0; font-size: .85em; color: var(--dci-muted); }
.dci-offer-combine { margin: 6px 0 0; padding: 6px 10px; font-size: .85em; font-weight: 600; color: var(--dci-ink); background: rgb(0 0 0 / 4%); border-left: 3px solid var(--dci-accent); border-radius: 4px; }

.dci-section { margin-top: 32px; }
.dci-section h2 { margin: 0 0 12px; font-size: 1.3em; }
/* Features share the Full Specification look (.dci-spec-group): a bar with
   an arrow; the copy beneath it, set in from the edge. */
/* Feature copy reads like the spec table: each main point a row, striped,
   a thin rule beneath - no bullets. Yamaha's sub-points stay inside their
   row, under the point, with no rule or stripe of their own. Plain
   paragraphs sit in the same inset. */
.dci .dci-feature-body { margin: 0 0 14px; padding: 0; border: 0; }
.dci .dci-feature-body > p { margin: 0; padding: 12px 20px; border-bottom: 1px solid #e2e2e2; }
.dci .dci-feature-body ul,
.dci .dci-feature-body ol { margin: 0; padding: 0; list-style: none; }
.dci .dci-feature-body li::before,
.dci .dci-feature-body li::marker { content: none; }
.dci .dci-feature-body > ul > li,
.dci .dci-feature-body > ol > li { margin: 0; padding: 12px 20px; border-bottom: 1px solid #e2e2e2; background: transparent; }
.dci .dci-feature-body > ul > li:nth-child(even),
.dci .dci-feature-body > ol > li:nth-child(even) { background: #f2f2f2; }
.dci .dci-feature-body li li { margin: 6px 0 0; padding: 0; border: 0; background: transparent; }
/* A point with sub-points is Yamaha's heading for them: bold, its sub-points not. */
.dci .dci-feature-body > ul > li:has(> ul) { font-weight: 700; }
.dci .dci-feature-body li li { font-weight: 400; }

/* Specifications, as on Yamaha's site: centred title over a short accent
   rule, each group a bar with an arrow that opens to a striped two-column
   table (label in bold grey capitals, value beside it). */
.dci-specs-title { margin: 0 0 22px; text-align: center; text-transform: uppercase; letter-spacing: .02em; }
.dci-specs-title::after { content: ""; display: block; width: 60px; height: 3px; margin: 12px auto 0; background: var(--dci-accent); }
.dci-spec-group { margin: 0; }
.dci-spec-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 1.5em; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; color: var(--dci-ink); }
.dci-spec-group > summary::-webkit-details-marker { display: none; }
.dci-spec-group > summary::marker { content: ""; }
.dci-spec-arrow::before { content: "\2193"; font-weight: 400; color: var(--dci-accent); }
.dci-spec-group[open] .dci-spec-arrow::before { content: "\2191"; }
/* Scoped under .dci so a theme's own table styles (cell borders on every
   side, a shaded label column) do not override the Yamaha look: no cell
   borders, a thin rule under each row, the stripe across the whole row. */
.dci .dci-spec-table { width: 100%; margin: 0 0 14px; border: 0; border-collapse: collapse; background: transparent; }
.dci .dci-spec-table tr { background: transparent; }
.dci .dci-spec-table tr:nth-child(even) { background: #f2f2f2; }
.dci .dci-spec-table th,
.dci .dci-spec-table td { padding: 12px 20px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid #e2e2e2; background: transparent; }
.dci .dci-spec-table th { width: 30%; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #5a5a5a; }
.dci .dci-spec-table td { font-weight: 400; }
/* The theme greys any table row under the pointer; the specs keep their stripe. */
.dci .dci-spec-table tr:hover td,
.dci .dci-spec-table tr:hover th { background: transparent; }
@media (max-width: 560px) {
    .dci-spec-group > summary { font-size: 1.2em; }
    .dci .dci-spec-table th, .dci .dci-spec-table td { padding: 10px 10px; }
    .dci .dci-spec-table th { width: 42%; }
    .dci .dci-feature-body li, .dci .dci-feature-body > p { padding: 10px 10px; }
}

.dci-back { margin-top: 28px; }

/* ---- accessories ---- */

.dci-stock { display: inline-block; padding: 2px 8px; font-size: .75em; font-weight: 700; border-radius: 999px; }
.dci-stock-in { color: #067647; background: #e6f4ea; }
.dci-stock-in::before { content: "\2713"; margin-right: 4px; font-weight: 900; }
.dci-stock-order { color: var(--dci-muted); background: #f0f0f0; }

/* Prominent jump to the upgrades further down the page. */
.dci-upgrades-tab {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 22px; padding: 13px 18px;
    background: var(--dci-accent); color: var(--dci-accent-ink);
    border-radius: var(--dci-radius); text-decoration: none; line-height: 1.3;
}
.dci-upgrades-tab:hover { color: var(--dci-accent-ink); filter: brightness(.94); }
/* Some themes colour bold text dark; keep every part of the bar legible on
   the accent background. */
.dci-upgrades-tab,
.dci-upgrades-tab:hover,
.dci-upgrades-tab strong,
.dci-upgrades-tab span { color: var(--dci-accent-ink) !important; }
.dci-upgrades-tab-icon { display: flex; flex: 0 0 auto; }
.dci-upgrades-tab-text { flex: 1 1 auto; font-size: .95em; }
.dci-upgrades-tab-text strong { display: inline; font-size: 1.05em; }
.dci-upgrades-tab-go { flex: 0 0 auto; font-size: 1.4em; line-height: 1; }

.dci-fits { scroll-margin-top: 100px; }
.dci-fits-lede { margin: 0 0 14px; color: var(--dci-muted); }

.dci-fits-group { margin-bottom: 8px; border: 1px solid var(--dci-line); border-radius: var(--dci-radius); }
.dci-fits-group summary { padding: 10px 14px; font-weight: 600; cursor: pointer; }
.dci-fits-count { margin-left: 6px; font-weight: 400; color: var(--dci-muted); }

.dci-acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 0 14px 14px; }
.dci-acc-card { display: flex; flex-direction: column; overflow: hidden; color: var(--dci-ink); text-decoration: none; background: var(--dci-surface); border: 1px solid var(--dci-line); border-radius: var(--dci-radius); }
.dci-acc-card:hover { box-shadow: 0 2px 10px rgb(0 0 0 / 10%); color: var(--dci-ink); }
.dci-acc-media { display: block; aspect-ratio: 1; background: #fff; }
.dci-acc-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dci-acc-body { display: block; padding: 10px 12px 12px; }
.dci-acc-name { display: block; font-size: .9em; line-height: 1.3; margin-bottom: 6px; }
.dci-acc-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.dci-acc-meta .dci-price { font-size: 1em; }

.dci-variants { margin: 8px 0 0; font-size: .9em; }
.dci-fits-units ul { columns: 2; padding-left: 18px; }

/* ---- machine builder ---- */
.dci-builder-section { scroll-margin-top: 100px; }
/* The section's banner: red, a wrench in a white circle, the model in a
   condensed uppercase face (as Installed Upgrades), the count beneath. */
.dci .dci-build-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 14px 18px; border-radius: var(--dci-radius); background: var(--dci-accent); color: #fff; }
.dci-build-banner-icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--dci-accent); }
.dci-build-banner-icon svg { display: block; }
.dci-build-banner-text { flex: 1 1 auto; min-width: 0; }
.dci .dci-build-banner h2 { margin: 0; padding: 0; border: 0; color: #fff; font-family: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, sans-serif; font-size: 1.6em; font-weight: 700; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; text-align: left; }
.dci .dci-build-banner h2::before, .dci .dci-build-banner h2::after { content: none; }
.dci .dci-build-banner p { margin: 3px 0 0; color: #fff; opacity: .92; font-size: .92em; }
@media (max-width: 520px) { .dci .dci-build-banner { padding: 12px 14px; gap: 10px; } .dci .dci-build-banner h2 { font-size: 1.3em; } }
.dci-builder-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 880px) { .dci-builder-layout { grid-template-columns: 1fr 340px; align-items: start; } }

/* The two blocks: accessories, then maintenance & service parts. */
.dci-build-kind { margin-bottom: 16px; }
.dci-build-kind > summary.dci-build-kind-title { padding: 10px 0; font-size: 1.08em; font-weight: 700; cursor: pointer; list-style: revert; }
.dci-build-kind-service > summary.dci-build-kind-title { padding: 10px 14px; background: var(--dci-surface); border: 1px solid var(--dci-line); border-radius: var(--dci-radius); }
.dci-build-kind-service[open] > summary.dci-build-kind-title { margin-bottom: 8px; }
.dci-fits-instock { margin-left: 6px; font-size: .78em; font-weight: 700; color: #067647; }

/* Which supplier a line comes from: a badge, never a heading. */
.dci-vendor { display: inline-block; padding: 2px 7px; font-size: .7em; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; border-radius: 4px; color: #3a4a5c; background: #eef1f5; }
.dci-vendor-yamaha { color: #1f4e78; background: #e8f0fb; }
.dci-vendor-kimpex { color: #8a3b00; background: #fff1e6; }
.dci-build-item-options { margin-left: 6px; font-size: .8em; color: var(--dci-muted); white-space: nowrap; }
.dci-build-item-link { font-size: .82em; }

/* The selectable part rows. */
.dci-build-items { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
.dci-build-item {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 8px 10px; cursor: pointer;
    background: var(--dci-surface); border: 1px solid var(--dci-line); border-radius: var(--dci-radius);
}
.dci-build-item:hover { border-color: var(--dci-muted); }
.dci-build-item.is-picked { border-color: var(--dci-accent); box-shadow: 0 0 0 1px var(--dci-accent) inset; }
.dci-build-check { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--dci-accent); }
.dci-build-item-media { flex: 0 0 56px; width: 56px; height: 56px; background: #fff; border: 1px solid var(--dci-line); border-radius: 6px; overflow: hidden; }
.dci-build-item-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dci-build-item-media .dci-card-nophoto { display: flex; align-items: center; justify-content: center; height: 100%; font-size: .65em; color: var(--dci-muted); text-align: center; }
.dci-build-item-body { flex: 1 1 auto; min-width: 0; }
.dci-build-item-name { display: block; font-size: .92em; line-height: 1.3; }
.dci-build-item-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .85em; }
.dci-build-item-meta .dci-price { font-size: 1em; }
.dci-build-item-add { flex: 0 0 auto; align-self: center; font-size: .72em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dci-accent); }
.dci-build-item.is-picked .dci-build-item-add { color: var(--dci-muted); }
.dci-build-item.is-picked .dci-build-item-add::after { content: " \2713"; }

/* The running summary. */
.dci-builder-summary {
    padding: 16px 16px 18px; background: var(--dci-surface);
    border: 1px solid var(--dci-line); border-top: 4px solid var(--dci-accent);
    border-radius: var(--dci-radius); box-shadow: 0 2px 14px rgb(0 0 0 / 7%);
}
@media (min-width: 880px) { .dci-builder-summary { position: sticky; top: 90px; } }
.dci-build-heading { margin: 0 0 10px; font-size: 1.15em; }
.dci-build-base { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--dci-line); font-weight: 700; }
/* The unit's price itemised as on the price card above: lines, then the
   unit's total the parts are added to. */
.dci-build-unit-name { margin: 0 0 6px; font-weight: 700; }
.dci-unit .dci-build-unit-lines { margin: 0; padding: 0; font-size: .92em; }
.dci-build-unit-lines > div { display: flex; justify-content: space-between; gap: 14px; padding: 2px 0; }
.dci-build-unit-lines dt, .dci-build-unit-lines dd { margin: 0; font-weight: 400; }
.dci-build-unit-lines dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dci-build-unit-lines .dci-build-line-less dd { color: var(--dci-accent); }
.dci-build-unit-lines .dci-build-line-total { margin-top: 3px; padding-top: 5px; border-top: 1px dashed var(--dci-line); font-weight: 700; }
.dci-build-unit-lines .dci-build-line-total dt, .dci-build-unit-lines .dci-build-line-total dd { font-weight: 700; }
.dci-build-unit-lines > .dci-build-base { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--dci-line); font-size: 1.08em; }
.dci-build-unit-lines > .dci-build-base dt, .dci-build-unit-lines > .dci-build-base dd { font-weight: 700; }
.dci-build-parts-head { margin: 12px 0 0; font-size: .78em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dci-muted); }
.dci-build-rebate { display: flex; justify-content: space-between; gap: 10px; margin: -8px 0 6px; font-size: .88em; color: var(--dci-accent); }
.dci-build-rebate span:last-child { flex: 0 0 auto; white-space: nowrap; }
.dci-build-note { margin: 0 0 14px; font-size: .78em; color: var(--dci-muted); }
/* Scoped under .dci-unit so a theme's "li" rules can't collapse the layout. */
.dci-unit .dci-build-selected { list-style: none; margin: 10px 0; padding: 0; }
.dci-unit .dci-build-selected li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 4px 0; font-size: .92em; list-style: none; }
.dci-unit .dci-build-selected .dci-build-sel-name { flex: 1 1 auto; min-width: 0; }
/* margin-left:auto pushes the price right under flex; padding-left keeps a gap
   even if a theme forces the row back to inline. */
.dci-unit .dci-build-selected .dci-build-sel-price { flex: 0 0 auto; margin-left: auto; padding-left: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dci-build-empty { color: var(--dci-muted); font-style: italic; }
.dci-build-total { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0 14px; padding-top: 10px; border-top: 1px solid var(--dci-line); font-size: 1.05em; }
.dci-build-total strong { font-size: 1.15em; }
.dci-build-submit { width: 100%; border: 0; cursor: pointer; }
.dci-build-form .dci-field { margin-bottom: 8px; }

/* MAP "Starting Price" / OMVIC "All-In Price": the components, then the
   labelled total, large enough to be the figure the eye lands on. */
.dci-price-labelled .dci-price-lines { margin-top: 0; }
.dci-price-total dt { font-size: 1.05em; }
.dci-price-total dd { font-size: 1.5em; line-height: 1.1; }
.dci-price-allin .dci-allin-note { font-size: 1.05em; }


/* After the total, as on the dealer's own price card: the dealer discount,
   the subtotal before taxes, Yamaha's cash rebate, then a box saying whether
   the rebate is instead of or on top of the promotional financing. */
.dci-price-after { margin-top: 2px; padding-top: 6px; border-top: 1px solid var(--dci-line); }
.dci-price-less dt { color: var(--dci-muted); font-weight: 600; }
.dci-price-less dd, .dci-price-rebate-line dd { color: var(--dci-accent); font-weight: 700; }
.dci-price-net { margin: 4px 0; padding-top: 8px !important; border-top: 1px solid var(--dci-line); }
.dci-price-net dt { color: var(--dci-ink); font-weight: 800; }
.dci-price-net dd { font-size: 1.1em; font-weight: 800; }
.dci-price-rebate-line dt { font-size: .9em; }
.dci-rebate-box { margin: 12px 0 4px; padding: 14px 16px 12px; text-align: center; background: #fdf2f3; border-radius: var(--dci-radius); }
.dci-rebate-box p { margin: 0; }
.dci-rebate-amount { font-size: 1.35em; font-weight: 800; line-height: 1.15; color: var(--dci-accent); letter-spacing: .01em; }
.dci-rebate-join { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px !important; font-size: 1.5em; font-weight: 800; color: #333; }
.dci-rebate-join::before, .dci-rebate-join::after { content: ""; flex: 1; height: 1px; background: #bbb; }
.dci-rebate-alt { font-size: 1.2em; font-weight: 800; color: #222; }
.dci-rebate-note { margin-top: 4px !important; font-size: .85em; color: var(--dci-muted); }
.dci-price-labelled .dci-price-lines dd { white-space: nowrap; flex: 0 0 auto; }
.dci-price-labelled .dci-price-lines dt { flex: 1 1 auto; min-width: 0; }


/* Previous / Next on a unit page, within the list the visitor came from. */
/* Row one: Previous, "3 of 24", Next. Row two: what the list is ("Used
   Yamaha Grizzly EPS") and the way back to it. */
.dci-unit-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px 12px; margin: 0 0 18px; padding: 12px 0; border-bottom: 1px solid var(--dci-line); }
.dci-unit-nav-side { display: flex; }
.dci-unit-nav-next { justify-content: flex-end; }
.dci-unit-nav .dci-button { padding: 10px 18px; font-size: 1.25em; white-space: nowrap; }
.dci-unit-nav-mid { text-align: center; font-size: 1.25em; font-weight: 600; color: var(--dci-muted); white-space: nowrap; }
.dci-unit-nav-info { grid-column: 1 / -1; text-align: center; line-height: 1.4; }
.dci-unit-nav-label { display: block; font-size: 1.25em; font-weight: 600; color: var(--dci-ink); }
.dci-unit-nav-back { display: inline-block; margin-top: 4px; font-size: .95em; }
@media (max-width: 560px) {
    .dci-unit-nav { gap: 8px; }
    .dci-unit-nav .dci-button { padding: 8px 12px; font-size: 1.05em; }
    .dci-unit-nav-mid { font-size: 1.1em; }
    .dci-unit-nav-label { font-size: 1.15em; }
}

/* Model names can be long; let the select take the room it needs. */
.dci-filters .dci-filter select[data-dci-model] { max-width: 260px; }


/* In stock / Available to order switch above the parts list. */
.dci-stock-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 12px; }
.dci-stock-filter[hidden] { display: none; }
.dci-stock-filter-label { font-size: .75em; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--dci-muted); margin-right: 2px; }
.dci-stock-filter label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--dci-line); border-radius: 999px; cursor: pointer; font-size: .92em; background: var(--dci-surface); }
.dci-stock-filter input { position: absolute; opacity: 0; pointer-events: none; }
.dci-stock-filter label:has(input:checked) { border-color: var(--dci-accent); color: var(--dci-accent); font-weight: 600; }
.dci-stock-filter label:has(input:focus-visible) { outline: 2px solid var(--dci-accent); outline-offset: 2px; }
.dci-build-item[hidden], .dci-fits-group[hidden], .dci-build-kind[hidden] { display: none; }


/* Part details window */
.dci-build-item-more { background: none; border: 0; padding: 0; color: var(--dci-accent); font: inherit; font-size: .9em; text-decoration: underline; cursor: pointer; }
.dci-part-dialog { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 22px; border: 0; border-radius: var(--dci-radius); box-shadow: 0 18px 60px rgba(0,0,0,.3); color: inherit; background: var(--dci-surface); }
.dci-part-dialog::backdrop { background: rgba(0,0,0,.55); }
/* The close button styles itself completely: themes give buttons padding,
   borders and focus boxes that would pull it out of square. */
.dci-part-dialog .dci-pd-close { all: unset; box-sizing: border-box; position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--dci-muted); cursor: pointer; }
.dci-part-dialog .dci-pd-close:hover { background: rgba(0,0,0,.06); color: var(--dci-ink); }
.dci-part-dialog .dci-pd-close:focus-visible { outline: 2px solid var(--dci-accent); outline-offset: 2px; }
.dci-part-dialog:focus { outline: none; }
.dci-pd { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; }
.dci-pd-main { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--dci-line); border-radius: var(--dci-radius); }
.dci-pd-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dci-pd-thumbs button { padding: 0; border: 1px solid var(--dci-line); border-radius: 4px; background: #fff; cursor: pointer; }
.dci-pd-thumbs img { width: 56px; height: 56px; object-fit: contain; display: block; }
.dci-pd-title { margin: 0 0 6px; font-size: 1.3em; }
.dci-pd-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; font-size: .9em; color: var(--dci-muted); }
.dci-pd-buy { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 1.15em; }
.dci-pd-desc { font-size: .95em; line-height: 1.55; }
.dci-pd-options { width: 100%; border-collapse: collapse; font-size: .9em; margin-top: 4px; }
.dci-pd-options td { padding: 6px 8px; border-bottom: 1px solid var(--dci-line); vertical-align: middle; }
.dci-pd-sku { color: var(--dci-muted); white-space: nowrap; }
.dci-pd-extra { margin-top: 12px; font-size: .9em; overflow-x: auto; }
.dci-pd-actions { margin: 16px 0 0; text-align: right; }
.dci-pd-actions [hidden] { display: none; }
.dci-pd-loading { padding: 40px; text-align: center; color: var(--dci-muted); }
@media (max-width: 640px) {
    .dci-pd { grid-template-columns: 1fr; }
    .dci-part-dialog { padding: 16px; }
}

/* The details window's instant preview, while the full details load. */
.dci-pd-preview .dci-pd-media img { width: 100%; aspect-ratio: 1; height: auto; object-fit: contain; background: #fff; border: 1px solid var(--dci-line); border-radius: var(--dci-radius); }
.dci-pd-preview .dci-pd-loading { padding: 10px 0; text-align: left; }


/* "Notify me when it arrives" */
.dci-alert-box { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--dci-line); border-radius: var(--dci-radius); background: var(--dci-surface); }
.dci-alert-box h3 { margin: 0 0 4px; font-size: 1.05em; }
.dci-alert-lede { margin: 0 0 10px; font-size: .9em; color: var(--dci-muted); }
.dci-alert-form { display: grid; gap: 8px; }
.dci-alert-form .dci-field { display: grid; gap: 3px; font-size: .9em; }
.dci-alert-form .dci-field input { width: 100%; box-sizing: border-box; }
.dci-alert-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .82em; color: var(--dci-muted); line-height: 1.4; }
.dci-alert-consent input { margin-top: 3px; }
.dci-alert-form .dci-button { width: 100%; border: 0; cursor: pointer; }


/* "New arrival" / "Price drop", bottom-left of the photo */
.dci-badge-group { position: absolute; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.dci-badge-group .dci-badge { position: static; }
.dci-badge-fresh { background: #0e9384; }
.dci-badge-drop { background: #c4320a; }
.dci-drop-note { margin: -4px 0 12px; font-size: .92em; font-weight: 600; color: #c4320a; }

/* Specifications collapsed to the first few lines of each group */

/* Alert box closed to one button until clicked (on order / on hold units) */
details.dci-alert-box:not([open]) { padding: 0; border: 0; background: none; }
.dci-alert-box > summary.dci-alert-cta { display: block; list-style: none; text-align: center; cursor: pointer; }
.dci-alert-box > summary.dci-alert-cta::-webkit-details-marker { display: none; }
.dci-alert-box > summary.dci-alert-cta::marker { content: ""; }
details.dci-alert-box[open] > summary.dci-alert-cta { margin-bottom: 12px; }

/* Current offers across the full width under the photos and the price
   column, as cards side by side, instead of running down the price column.
   On a phone: photos, price, then offers. */
.dci-unit-layout { grid-template-areas: "gallery side" "offers offers"; grid-template-rows: auto auto; }
.dci-unit-layout > .dci-gallery { grid-area: gallery; }
.dci-unit-layout > .dci-unit-side { grid-area: side; }
.dci-unit-layout > .dci-unit-below { grid-area: offers; min-width: 0; }
.dci-unit-below > .dci-offers-wide { margin-top: 0; }
.dci-unit-below > .dci-build-notes + .dci-offers-wide { margin-top: 20px; }
@media (max-width: 760px) { .dci-unit-layout { grid-template-areas: "gallery" "side" "offers"; grid-template-rows: auto; } }
/* Current Offers (option B): a red banner like the Build section's, then a
   card per programme - a rebate as its headline, finance rates as tiles -
   and Yamaha's combinability wording once, green when the offers stack. */
.dci .dci-offers.dci-offers-wide { padding: 0; border: 0; border-radius: 0; }
.dci .dci-offers-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--dci-radius); background: var(--dci-accent); color: #fff; }
.dci-offers-banner-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--dci-accent); }
.dci-offers-banner-icon svg { display: block; }
.dci .dci-offers-banner h2 { flex: 1 1 auto; margin: 0; padding: 0; border: 0; color: #fff; text-align: left; font-family: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, sans-serif; font-size: 1.6em; font-weight: 700; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; }
.dci .dci-offers-banner h2::before, .dci .dci-offers-banner h2::after { content: none; }
.dci-offers-banner-ends { flex: 0 0 auto; padding: 4px 11px; border-radius: 999px; background: rgb(255 255 255 / 18%); font-size: .88em; font-weight: 700; white-space: nowrap; }
.dci .dci-offer-grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-top: 12px; }
.dci .dci-offer-grid > .dci-offer { flex: 1 1 240px; min-width: 0; }
.dci .dci-offer-grid > .dci-offer-rates { flex-grow: 1.4; }
/* AND / OR between the cards: a round badge, green when the offers stack,
   dark when it is one or the other. On a phone it sits centred between the
   stacked cards. */
.dci .dci-offer-join { flex: 0 0 auto; align-self: center; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-family: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, sans-serif; font-size: 1em; font-weight: 700; letter-spacing: .04em; }
.dci .dci-offer-join.is-and { background: #1e7b34; }
.dci .dci-offer-join.is-or  { background: #333; }
@media (max-width: 640px) {
    .dci .dci-offer-grid > .dci-offer { flex-basis: 100%; }
    .dci .dci-offer-join { margin: -4px auto; }
}
.dci .dci-offer { padding: 14px 16px; border: 1px solid var(--dci-line); border-radius: var(--dci-radius); background: var(--dci-surface, #fff); }
.dci .dci-offer h3 { margin: 0 0 4px; font-size: 1em; font-weight: 700; color: var(--dci-ink); }
.dci .dci-offer-headline { margin: 2px 0 0; font-family: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, sans-serif; font-size: 2em; font-weight: 700; line-height: 1.05; text-transform: uppercase; color: var(--dci-accent); }
.dci .dci-offer-headline-note { margin: 4px 0 0; font-size: .88em; color: var(--dci-muted); }
.dci .dci-rate-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 8px; }
.dci .dci-rate-tile { padding: 7px 4px; border: 1px solid var(--dci-line); border-radius: 6px; text-align: center; line-height: 1.2; }
.dci .dci-rate-tile b { display: block; font-size: 1.15em; color: var(--dci-accent); }
.dci .dci-rate-tile span { font-size: .8em; color: var(--dci-muted); white-space: nowrap; }
.dci .dci-rate-note { margin: 6px 0 0; font-size: .8em; color: var(--dci-muted); }
.dci .dci-offer ul { margin: 6px 0 0; padding-left: 18px; }
.dci .dci-offer-ends { margin: 8px 0 0; font-size: .85em; font-weight: 700; color: var(--dci-muted); }
.dci .dci-offers-wide .dci-offer-combine { margin: 10px 0 0; padding: 8px 12px; border: 0; border-radius: var(--dci-radius); font-size: .9em; font-weight: 600; }
.dci .dci-offer-combine.is-ok  { background: #edf7ed; color: #1e5e2c; }
.dci .dci-offer-combine.is-not { background: #fff4e0; color: #7a4a00; }
.dci-offers-wide .dci-fineprint { margin: 10px 0 0; }
@media (max-width: 520px) { .dci .dci-offers-banner { flex-wrap: wrap; } .dci .dci-offers-banner h2 { font-size: 1.3em; } }

/* A custom build's description, titled "Installed Upgrades" / "Bonus Extra",
   ahead of the offers - framed like them. */
/* Spotlight: icon + condensed uppercase heading over a short red rule, an
   italic tagline, the GYTR parts in red. Scoped under .dci so the theme's
   h2 size and font do not win. Roboto Condensed is what the Automotive theme
   already loads; elsewhere it falls back to a system condensed face. */
.dci-build-notes { padding: 20px 22px; border: 1px solid var(--dci-line); border-radius: var(--dci-radius); background: var(--dci-surface, #fff); }
.dci .dci-build-notes > h2 {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 0; font-family: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, sans-serif;
    font-size: 1.75em; font-weight: 700; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase;
}
.dci .dci-build-notes > h2::after { content: none; }
.dci-build-icon {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--dci-accent); color: #fff;
}
.dci-build-icon svg { display: block; }
.dci-build-notes > h2 + * { margin-top: 0; }
.dci-build-notes > h2 { padding-bottom: 14px; position: relative; }
.dci-build-notes > h2::before {
    content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
    width: 80px; height: 3px; background: var(--dci-accent);
}
.dci .dci-build-tagline { margin: 6px 0 12px; font-size: 1.25em; font-style: italic; text-align: center; line-height: 1.35; }
.dci-gytr { color: var(--dci-accent); font-weight: 600; }
.dci-build-notes-body > :first-child { margin-top: 0; }
.dci-build-notes-body > :last-child { margin-bottom: 0; }
.dci-unit-below:not(:has(> *)) { display: none; }

/* ---- compare ---- */

/* The "Compare" toggle on a listing card: a full-width outlined button that
   fills in once the unit is in the tray. */
.dci .dci-cmp-pick {
    box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin: 12px 0 0; padding: 8px 12px;
    border: 1.5px solid var(--dci-accent); border-radius: var(--dci-radius);
    background: #fff; color: var(--dci-accent); font-size: .95em; font-weight: 700; line-height: 1.2;
    cursor: pointer; user-select: none; transition: background .15s, color .15s;
}
.dci .dci-cmp-pick:hover { background: rgb(199 8 27 / 6%); }
.dci .dci-cmp-pick input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: #fff; cursor: pointer; }
.dci .dci-cmp-pick:has(input:focus-visible) { outline: 2px solid var(--dci-accent); outline-offset: 2px; }
.dci .dci-cmp-pick.is-picked { background: var(--dci-accent); color: #fff; }
.dci-cmp-pick-on { display: none; }
.dci-cmp-pick.is-picked .dci-cmp-pick-on { display: inline; }
.dci-cmp-pick.is-picked .dci-cmp-pick-off { display: none; }
.dci-cmp-unit-tools { margin-top: 12px; }

/* "Compare with similar" on a unit page, and the one-unit Compare page. */
/* border-box: the theme puts content-box on these, which pushed the
   button past the column's right edge. */
.dci .dci-cmp-similar, .dci .dci-cmp-similar-toggle { box-sizing: border-box; max-width: 100%; }
.dci-cmp-similar-toggle { display: block; width: 100%; text-align: center; cursor: pointer; list-style: none; border: 1px solid var(--dci-accent); }
.dci-cmp-similar-toggle::-webkit-details-marker { display: none; }
.dci-cmp-similar[open] .dci-cmp-similar-toggle { margin-bottom: 10px; }
.dci-cmp-similar-lede { margin: 0 0 8px; font-size: .88em; color: var(--dci-muted); }
.dci .dci-cmp-similar-list { list-style: none; margin: 0 0 10px; padding: 0; max-height: 340px; overflow-y: auto; border: 1px solid var(--dci-line); border-radius: var(--dci-radius); }
.dci .dci-cmp-similar-list li { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--dci-line); }
.dci .dci-cmp-similar-list li:last-child { border-bottom: 0; }
.dci-cmp-similar-list label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; }
.dci-cmp-similar-list label:has(input:checked) { background: rgb(199 8 27 / 6%); }
.dci-cmp-similar-list input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--dci-accent); }
.dci-cmp-similar-img { flex: 0 0 56px; width: 56px; height: 42px; border-radius: 4px; overflow: hidden; background: #f2f2f2; }
.dci-cmp-similar-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dci-cmp-similar-name { flex: 1 1 auto; min-width: 0; font-size: .9em; line-height: 1.3; }
.dci-cmp-similar-meta { display: block; font-size: .85em; color: var(--dci-muted); }
.dci-cmp-similar-price { display: block; margin-top: 2px; font-size: .92em; font-weight: 700; }
.dci-cmp-similar-price .dci-price-msrp, .dci-cmp-similar-price .dci-price-cur { font-weight: 400; color: var(--dci-muted); }
.dci form .dci-cmp-similar-go { width: 100%; border: 0; cursor: pointer; }
.dci-cmp-similar-page { max-width: 560px; }

/* The tray along the foot of the screen. */
.dci-cmp-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #fff; border-top: 3px solid var(--dci-accent); box-shadow: 0 -4px 18px rgb(0 0 0 / 14%); }
.dci-cmp-tray[hidden] { display: none; }
.dci-cmp-tray-inner { display: flex; align-items: center; gap: 14px; max-width: 1200px; margin: 0 auto; padding: 10px 16px; }
.dci .dci-cmp-tray-list { display: flex; gap: 10px; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; }
.dci .dci-cmp-tray-item { display: flex; align-items: center; gap: 8px; flex: 0 1 220px; min-width: 150px; margin: 0; padding: 4px 6px 4px 4px; list-style: none; border: 1px solid var(--dci-line); border-radius: 8px; font-size: .82em; line-height: 1.25; }
.dci-cmp-tray-item img, .dci-cmp-tray-noimg { flex: 0 0 48px; width: 48px; height: 36px; object-fit: cover; border-radius: 4px; background: #f2f2f2; }
.dci-cmp-tray-name { flex: 1 1 auto; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dci .dci-cmp-tray-x { flex: 0 0 auto; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--dci-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.dci .dci-cmp-tray-x:hover { background: #eee; color: #000; }
.dci-cmp-tray-go { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.dci-cmp-tray-note { margin: 0; font-size: .82em; color: var(--dci-muted); max-width: 180px; }
.dci .dci-cmp-tray-clear { padding: 0; border: 0; background: none; color: var(--dci-muted); font-size: .85em; text-decoration: underline; cursor: pointer; }
body.dci-has-tray { padding-bottom: 76px; }
@media (max-width: 640px) {
    .dci-cmp-tray-inner { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
    .dci .dci-cmp-tray-item { flex-basis: 150px; }
    .dci-cmp-tray-go { width: 100%; justify-content: space-between; }
    body.dci-has-tray { padding-bottom: 130px; }
}

/* The Compare page. */
/* The way out: first and last thing on the Compare page, button-sized so
   it is easy to find and tap on a phone. */
.dci-cmp-backrow { margin: 0 0 14px; }
.dci-cmp-backrow-end { margin: 22px 0 0; }
.dci .dci-cmp-back { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 1.5px solid var(--dci-accent); font-weight: 700; text-decoration: none; }
@media (max-width: 640px) { .dci .dci-cmp-back { display: flex; justify-content: center; width: 100%; box-sizing: border-box; } }
.dci-cmp-empty { padding: 18px; border: 1px dashed var(--dci-line); border-radius: var(--dci-radius); }
.dci-cmp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0 0 12px; }
.dci-cmp-count { margin: 0; font-weight: 700; }
.dci-cmp-diffonly { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.dci-cmp-diffonly input { width: 16px; height: 16px; margin: 0; accent-color: var(--dci-accent); }
.dci-cmp-quote-link { margin-left: auto; font-weight: 600; color: var(--dci-accent); }

.dci-cmp-scroll { overflow-x: auto; border: 1px solid var(--dci-line); border-radius: var(--dci-radius); -webkit-overflow-scrolling: touch; }
.dci .dci-cmp-table { width: 100%; min-width: 560px; margin: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .9em; background: #fff; }
.dci .dci-cmp-table th, .dci .dci-cmp-table td { padding: 8px 12px; border: 0; border-bottom: 1px solid var(--dci-line); vertical-align: top; text-align: left; background: #fff; font-weight: 400; line-height: 1.4; }
.dci .dci-cmp-table tr:hover td, .dci .dci-cmp-table tr:hover th { background: inherit; }
.dci .dci-cmp-table .dci-cmp-label { position: sticky; left: 0; z-index: 1; width: 150px; font-weight: 700; color: #333; background: #fafafa; border-right: 1px solid var(--dci-line); }
.dci-cmp-n2 .dci-cmp-unit, .dci-cmp-n2 td { width: calc((100% - 150px) / 2); }
.dci .dci-cmp-table thead th { position: relative; background: #fff; border-bottom: 2px solid var(--dci-line); }
.dci .dci-cmp-unit { text-align: center; }
.dci .dci-cmp-unit.is-lowest { box-shadow: inset 0 3px 0 #1e7b34; }
.dci-cmp-photo { display: block; aspect-ratio: 4 / 3; margin: 0 0 8px; border-radius: 6px; overflow: hidden; background: #f2f2f2; }
.dci-cmp-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dci-cmp-photo .dci-card-nophoto { display: flex; align-items: center; justify-content: center; height: 100%; font-size: .85em; }
.dci .dci-cmp-title { display: block; font-weight: 700; line-height: 1.3; color: inherit; text-decoration: none; }
.dci .dci-cmp-title:hover { text-decoration: underline; }
.dci-cmp-price { display: block; margin-top: 6px; font-size: 1.15em; font-weight: 700; }
.dci-cmp-price .dci-price-msrp, .dci-cmp-price .dci-price-cur { font-size: .7em; font-weight: 400; color: var(--dci-muted); }
.dci-cmp-total { display: block; margin-top: 2px; font-size: .82em; color: var(--dci-muted); }
.dci-cmp-lowest, .dci-cmp-hold { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: .78em; font-weight: 700; }
.dci-cmp-lowest { background: #e6f4ea; color: #1e5e2c; }
.dci-cmp-hold { background: #fff4e0; color: #7a4a00; }
.dci-cmp-actions { display: flex; justify-content: center; gap: 14px; margin-top: 8px; font-size: .85em; }
.dci .dci-cmp-actions a { color: var(--dci-accent); }
.dci .dci-cmp-actions .dci-cmp-remove { color: var(--dci-muted); }

.dci .dci-cmp-group-head th { position: sticky; left: 0; padding: 10px 12px; font-size: .82em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #333; text-align: left; }
.dci .dci-cmp-table tr.is-diff td { background: #fff8e6; }
.dci .dci-cmp-table tr.is-diff .dci-cmp-label { background: #fdf0cc; }
.dci-cmp-none { color: #bbb; }
/* Current offers: each programme opens to its offers in place (a popover
   would be clipped by the table's scroll box). */
.dci-cmp-offer { margin: 0 0 4px; }
.dci-cmp-offer > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; color: var(--dci-accent); font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; }
.dci-cmp-offer > summary::-webkit-details-marker { display: none; }
.dci-cmp-offer-i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--dci-accent); color: #fff; font-size: 11px; font-style: italic; font-weight: 700; font-family: Georgia, serif; text-decoration: none; }
.dci-cmp-offer[open] > summary { margin-bottom: 6px; }
.dci-cmp-offer-body { padding: 10px 12px; border: 1px solid var(--dci-line); border-left: 3px solid var(--dci-accent); border-radius: 6px; background: #fff; font-size: .92em; }
.dci .dci-cmp-offer-body ul { margin: 0 0 6px; padding-left: 18px; }
.dci .dci-cmp-offer-body li { margin: 0 0 3px; }
.dci-cmp-offer-combine { margin: 0 0 4px; font-style: italic; color: var(--dci-muted); }
.dci-cmp-offer-ends { margin: 0 0 6px; font-weight: 700; }
.dci .dci-cmp-offer-more { font-weight: 600; color: var(--dci-accent); }
.dci-cmp-table.is-diff-only tr.is-same, .dci-cmp-table.is-diff-only tbody.dci-cmp-group:not(.has-diff) { display: none; }

.dci-cmp-quote { margin-top: 28px; padding: 20px; border: 1px solid var(--dci-line); border-top: 4px solid var(--dci-accent); border-radius: var(--dci-radius); max-width: 760px; }
.dci .dci-cmp-quote h2 { margin: 0 0 6px; font-size: 1.3em; }
.dci-cmp-quote-lede { margin: 0 0 12px; color: var(--dci-muted); }
.dci-cmp-quote-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 12px; }
.dci-cmp-quote-form .dci-button { width: 100%; border: 0; cursor: pointer; }
@media print { .dci-cmp-tray, .dci-cmp-quote, .dci-cmp-bar label { display: none; } .dci-cmp-scroll { overflow: visible; border: 0; } }
