/* DVM Dealer — component styles. Brand colors come from the theme's CSS variables. */
:root {
	--dvm-accent: #461d76;
	--dvm-accent-ink: #ffffff;
	--dvm-hover: #e8c125;
	--dvm-hover-ink: #000000;
	--dvm-ink: #16181d;
	--dvm-muted: #5d6470;
	--dvm-line: #e3e5e9;
	--dvm-bg: #ffffff;
	--dvm-soft: #f5f6f8;
	--dvm-ok: #1e7a3c;
	--dvm-radius: 10px;
}

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.dvm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .75em 1.25em; border: 2px solid var(--dvm-accent); border-radius: 8px; background: var(--dvm-accent); color: var(--dvm-accent-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.1; }
.dvm-btn { transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
.dvm-btn:hover, .dvm-btn:focus-visible { background: var(--dvm-hover); border-color: var(--dvm-hover); color: var(--dvm-hover-ink); }
.dvm-btn:focus-visible { outline: 3px solid var(--dvm-ink); outline-offset: 2px; }
.dvm-btn--outline { background: transparent; color: var(--dvm-accent); }
.dvm-btn--ghost { background: transparent; border-color: var(--dvm-line); color: var(--dvm-ink); }
.dvm-btn--small { padding: .55em .9em; font-size: .9rem; }

/* Notices */
.dvm-notice { padding: .9em 1em; border-radius: 8px; background: var(--dvm-soft); margin: 0 0 1em; }
.dvm-notice--ok { background: #e7f5ec; color: var(--dvm-ok); }
.dvm-notice--err { background: #fdecee; color: #9b0d22; }

/* Slider */
.dvm-slider { position: relative; overflow: hidden; background: #000; border-radius: var(--dvm-radius); }
.dvm-slider__track { position: relative; aspect-ratio: 16 / 6; }
.dvm-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.dvm-slide.is-active { opacity: 1; pointer-events: auto; }
.dvm-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dvm-slide__caption { position: absolute; left: 0; bottom: 0; right: 0; padding: 2.5rem 3rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.dvm-slide__caption h2 { margin: 0 0 .3em; font-size: clamp(1.4rem, 3.4vw, 2.6rem); line-height: 1.1; color: #fff; }
.dvm-slide__caption p { margin: 0 0 1em; font-size: 1.1rem; max-width: 40em; }
.dvm-slider__prev, .dvm-slider__next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.dvm-slider__prev { left: 12px; } .dvm-slider__next { right: 12px; }
.dvm-slider__dots { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 8px; }
.dvm-slider__dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.dvm-slider__dots button[aria-current="true"] { background: #fff; }
.dvm-slider__prev:hover, .dvm-slider__next:hover { background: var(--dvm-hover); }
.dvm-pager a:hover { background: var(--dvm-hover); border-color: var(--dvm-hover); color: #000; }
@media (max-width: 700px) {
	.dvm-slider__track { aspect-ratio: 4 / 5; }
	.dvm-slide__caption { padding: 1.25rem; }
	.dvm-slider__prev, .dvm-slider__next { display: none; }
}

/* Category tiles */
.dvm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dvm-tile { border: 1px solid var(--dvm-line); border-radius: var(--dvm-radius); padding: 1.25rem; background: var(--dvm-bg); }
.dvm-tile h3 { margin: 0 0 .25em; }
.dvm-tile p { margin: 0 0 1em; color: var(--dvm-muted); }
.dvm-tile__links { display: flex; gap: .75em; }
.dvm-tile__links a { font-weight: 700; color: var(--dvm-accent); }
.dvm-tile__links a:hover, .dvm-card__title a:hover { color: var(--dvm-hover); }

/* Grid + cards */
.dvm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.dvm-card { display: flex; flex-direction: column; border: 1px solid var(--dvm-line); border-radius: var(--dvm-radius); overflow: hidden; background: var(--dvm-bg); }
.dvm-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--dvm-soft); }
.dvm-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dvm-card__noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dvm-muted); font-size: .9rem; }
.dvm-badge { position: absolute; top: 10px; left: 10px; padding: .25em .6em; border-radius: 4px; background: var(--dvm-ink); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dvm-badge--new { background: var(--dvm-accent); }
.dvm-card__body { display: flex; flex-direction: column; gap: .35em; padding: 1rem; flex: 1; }
.dvm-card__title { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.dvm-card__title a { color: var(--dvm-ink); text-decoration: none; }
.dvm-card__meta, .dvm-card__monthly { margin: 0; color: var(--dvm-muted); font-size: .88rem; }
.dvm-card__price { display: flex; align-items: baseline; gap: .6em; flex-wrap: wrap; }
.dvm-card__price strong { font-size: 1.3rem; }
.dvm-msrp { color: var(--dvm-muted); font-size: .85rem; }
.dvm-card .dvm-btn { margin-top: auto; align-self: flex-start; }

/* Filters */
.dvm-filters { background: var(--dvm-soft); border-radius: var(--dvm-radius); padding: 1rem; margin-bottom: 1rem; }
.dvm-filters__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.dvm-filters label { display: flex; flex-direction: column; gap: .25em; font-size: .8rem; font-weight: 700; color: var(--dvm-muted); }
.dvm-filters__search { flex: 1 1 240px; }
.dvm-filters input, .dvm-filters select { padding: .6em .7em; border: 1px solid var(--dvm-line); border-radius: 6px; font: inherit; font-size: .95rem; color: var(--dvm-ink); background: #fff; min-width: 0; }
.dvm-filters__clear { align-self: center; color: var(--dvm-muted); }
.dvm-results-count { color: var(--dvm-muted); margin: .5rem 0 1rem; }
.dvm-empty { padding: 2rem; text-align: center; background: var(--dvm-soft); border-radius: var(--dvm-radius); }
.dvm-pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 1.5rem 0; }
.dvm-pager a, .dvm-pager span { min-width: 40px; padding: .5em .7em; text-align: center; border: 1px solid var(--dvm-line); border-radius: 6px; text-decoration: none; color: var(--dvm-ink); }
.dvm-pager span[aria-current] { background: var(--dvm-ink); color: #fff; border-color: var(--dvm-ink); }
.dvm-disclaimer { color: var(--dvm-muted); font-size: .8rem; margin-top: 1.5rem; }

/* Unit page */
.dvm-unit { max-width: 1200px; margin: 0 auto; padding: 1rem 16px 3rem; }
.dvm-crumbs { font-size: .85rem; color: var(--dvm-muted); margin-bottom: 1rem; }
.dvm-crumbs a { color: inherit; }
.dvm-unit__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.dvm-gallery__main { aspect-ratio: 4 / 3; background: var(--dvm-soft); border-radius: var(--dvm-radius); overflow: hidden; }
.dvm-gallery__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dvm-gallery__main--empty { display: grid; place-items: center; color: var(--dvm-muted); }
.dvm-gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.dvm-gallery__thumbs button { flex: 0 0 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--dvm-soft); }
.dvm-gallery__thumbs button[aria-current="true"] { border-color: var(--dvm-accent); }
.dvm-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dvm-unit__buy h1 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; }
.dvm-unit__sub { color: var(--dvm-muted); margin: .4em 0 1em; }
.dvm-price { border: 1px solid var(--dvm-line); border-radius: var(--dvm-radius); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.dvm-price__row { display: flex; justify-content: space-between; align-items: baseline; padding: .2em 0; }
.dvm-price__row--main strong { font-size: 1.8rem; }
.dvm-price__row--fees { color: var(--dvm-muted); font-size: .9rem; }
.dvm-price__save { color: var(--dvm-ok); font-weight: 700; }
.dvm-price__monthly { margin-top: .6em; padding-top: .6em; border-top: 1px solid var(--dvm-line); }
.dvm-price__monthly small { display: block; color: var(--dvm-muted); }
.dvm-actions { display: grid; gap: 8px; }
.dvm-actions .dvm-btn { width: 100%; }
.dvm-unit__details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem; margin-top: 2.5rem; }
.dvm-specs { margin: 0; display: grid; }
.dvm-specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .55em 0; border-bottom: 1px solid var(--dvm-line); }
.dvm-specs dt { color: var(--dvm-muted); }
.dvm-specs dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }
@media (max-width: 860px) {
	.dvm-unit__top, .dvm-unit__details { grid-template-columns: 1fr; }
}

/* Dialogs */
.dvm-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: var(--dvm-radius); padding: 1.5rem; }
.dvm-dialog::backdrop { background: rgba(0,0,0,.5); }
.dvm-dialog h2 { margin-top: 0; }
.dvm-dialog__close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; }

/* Forms */
.dvm-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.dvm-field { display: flex; flex-direction: column; gap: .3em; }
.dvm-field--wide { grid-column: 1 / -1; }
.dvm-field label { font-weight: 600; font-size: .9rem; }
.dvm-field input, .dvm-field select, .dvm-field textarea { padding: .65em .75em; border: 1px solid #c9cdd4; border-radius: 6px; font: inherit; width: 100%; box-sizing: border-box; }
.dvm-field input:focus, .dvm-field select:focus, .dvm-field textarea:focus { outline: 2px solid var(--dvm-accent); border-color: var(--dvm-accent); }
.dvm-form__legal { font-size: .8rem; color: var(--dvm-muted); }
.dvm-form__unit { background: var(--dvm-soft); padding: .6em .8em; border-radius: 6px; }
.dvm-fieldset { border: 1px solid var(--dvm-line); border-radius: var(--dvm-radius); padding: 1rem 1.25rem 1.25rem; margin: 0 0 1rem; }
.dvm-fieldset legend { font-weight: 700; padding: 0 .4em; }
.dvm-consent { display: flex; gap: .6em; align-items: flex-start; font-size: .9rem; margin: 1rem 0; }
.dvm-hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { .dvm-form__grid { grid-template-columns: 1fr; } }

/* Cookie consent banner */
.dvm-consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9995; max-width: 720px; margin: 0 auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; background: #111; color: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 14px; }
.dvm-consent-banner[hidden] { display: none; }
.dvm-consent-banner p { margin: 0; flex: 1 1 320px; }
.dvm-consent-banner a { color: var(--dvm-mist, #dbe6e7); }
.dvm-consent-banner__btns { display: flex; gap: 8px; }
.dvm-consent-banner .dvm-btn--outline { border-color: #fff; color: #fff; background: transparent; }

/* Credit application: show typed letters in caps */
.dvm-form--finance [data-dvm-fmt="upper"], .dvm-form--finance [data-dvm-fmt="code"] { text-transform: uppercase; }

/* Credit application steps */
.dvm-steps { display: flex; gap: 8px; margin: 0 0 18px; counter-reset: s; }
.dvm-steps__item { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--dvm-soft, #f5f6f8); color: var(--dvm-muted, #5d6470); text-decoration: none; font-weight: 600; font-size: .92rem; }
.dvm-steps__num { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid currentColor; font-size: .85rem; }
.dvm-steps__item--current { background: var(--dvm-accent, #461d76); color: #fff; }
.dvm-steps__item--current .dvm-steps__num { background: #fff; color: var(--dvm-accent, #461d76); border-color: #fff; }
.dvm-steps__item--done { color: var(--dvm-accent, #461d76); }
a.dvm-steps__item--done:hover { background: var(--dvm-hover, #e8c125); color: #000; }
.dvm-steps__nav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.dvm-steps__nav .dvm-btn:only-child { margin-left: auto; }
@media (max-width: 600px) { .dvm-steps__label { display: none; } .dvm-steps__item { justify-content: center; } }

.dvm-cond[hidden], .dvm-cond-intro[hidden] { display: none !important; }
.dvm-cond { display: contents; }
.dvm-cond-intro { margin-top: 6px; padding: 10px 12px; border-radius: 8px; background: #fdf6dc; color: #4a3b00; font-size: .92rem; }
.dvm-unit-search { position: relative; }
.dvm-unit-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #c9cdd4; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.12); max-height: 320px; overflow-y: auto; }
.dvm-unit-results li { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.dvm-unit-results li:hover, .dvm-unit-results li[aria-selected="true"] { background: #fdf6dc; }
.dvm-unit-results img, .dvm-unit-results__noimg { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; background: #eef1f3; flex: 0 0 auto; }
.dvm-unit-results strong { display: block; font-size: .9rem; line-height: 1.2; }
.dvm-unit-results small { color: #666; }
.dvm-unit-results__none { color: #666; font-size: .9rem; cursor: default !important; }

/* Selected unit card (credit app) */
.dvm-unit-card[hidden], .dvm-unit-search__box[hidden] { display: none !important; }
.dvm-unit-card { display: flex; gap: 16px; align-items: center; padding: 12px; margin: 4px 0 1rem; border: 1px solid var(--dvm-line); border-left: 4px solid var(--dvm-accent); border-radius: var(--dvm-radius); background: var(--dvm-soft); }
.dvm-unit-search .dvm-unit-card { margin-bottom: 0; }
.dvm-unit-card__img { flex: 0 0 180px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e6e9ec; display: flex; align-items: center; justify-content: center; }
.dvm-unit-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dvm-unit-card__nophoto { color: var(--dvm-muted); font-size: .8rem; text-align: center; padding: 8px; }
.dvm-unit-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dvm-unit-card__eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dvm-accent); }
.dvm-unit-card__title { font-size: 1.05rem; line-height: 1.25; color: var(--dvm-ink); }
.dvm-unit-card__meta { color: var(--dvm-muted); font-size: .88rem; }
.dvm-unit-card__price { font-weight: 700; font-size: 1.05rem; color: var(--dvm-ink); }
.dvm-unit-card__price:empty, .dvm-unit-card__meta:empty { display: none; }
.dvm-unit-card__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; font-size: .88rem; }
.dvm-unit-card__change { background: none; border: 0; padding: 0; font: inherit; color: var(--dvm-accent); text-decoration: underline; cursor: pointer; }
.dvm-unit-card__change:hover, .dvm-unit-card__view:hover { color: #000; background: var(--dvm-hover); text-decoration: none; }
.dvm-unit-card__view { color: var(--dvm-accent); }
@media (max-width: 520px) { .dvm-unit-card { gap: 12px; padding: 10px; align-items: flex-start; } .dvm-unit-card__img { flex-basis: 110px; } .dvm-unit-card__title { font-size: .95rem; } }
/* Street address always starts a new row so the apt / suite / lot line sits beside it */
.dvm-form__grid > .dvm-field:has(> [name="f[address]"]) { grid-column-start: 1; }

/* ---------- Phones & tablets ---------- */
/* 16px+ text in form fields stops iPhones/iPads from zooming in when a field is tapped. */
.dvm-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .dvm-form select, .dvm-form textarea, .dvm-field input:not([type=checkbox]):not([type=radio]), .dvm-field select { font-size: 16px; min-height: 44px; }
.dvm-field textarea { min-height: 96px; }
/* Bigger, easier taps */
.dvm-consent input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; accent-color: var(--dvm-accent); }
.dvm-consent { cursor: pointer; }
.dvm-unit-card__actions a, .dvm-unit-card__change { display: inline-flex; align-items: center; min-height: 36px; }
.dvm-unit-results li { min-height: 52px; }
@media (hover: none) { .dvm-steps__item { min-height: 44px; } }
@media (max-width: 600px) {
	.dvm-steps__nav { flex-direction: column-reverse; align-items: stretch; }
	.dvm-steps__nav .dvm-btn { width: 100%; height: 48px; margin: 0 !important; }
	.dvm-form__grid { grid-template-columns: 1fr !important; }
	.dvm-form__grid > .dvm-field:has(> [name="f[address]"]) { grid-column-start: auto; }
	.dvm-fieldset { padding-left: 12px; padding-right: 12px; }
	.dvm-consent-banner { left: 8px; right: 8px; bottom: 8px; }
}
.dvm-filters input, .dvm-filters select { font-size: 16px; min-height: 44px; }
@media (max-width: 600px) { .dvm-filters__row > label { flex: 1 1 calc(50% - .75rem); } .dvm-filters__search { flex-basis: 100% !important; } .dvm-card__title a { display: inline-block; padding: 4px 0; } }
.dvm-optin legend { font-weight: 700; }
.dvm-optin__opt { font-weight: 400; color: var(--dvm-muted); }
.dvm-optin .dvm-consent { margin: .6rem 0; }
.dvm-geo__status { margin-top: -.5rem; }

/* Single agreement box on the last step — small and compact */
.dvm-consent--all { gap: 8px; margin: .75rem 0 .5rem; font-size: 6pt; line-height: 1.35; color: var(--dvm-muted); }
.dvm-consent--all input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 0; }
.dvm-form--finance .dvm-form__legal { font-size: 6pt; line-height: 1.35; }
.dvm-group-title { margin-top: .5rem; padding-top: .75rem; border-top: 1px solid var(--dvm-line); }

/* Credit app "Application received" landing page */
.dvm-thanks { max-width: 680px; margin: 1rem auto 3rem; text-align: center; }
.dvm-thanks__icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--dvm-accent); color: #fff; }
.dvm-thanks__title { margin: 0 0 .5rem; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.2; }
.dvm-thanks__lead { font-size: 1.1rem; margin: 0 auto 1.5rem; max-width: 34em; }
.dvm-thanks .dvm-unit-card { text-align: left; margin: 0 auto 1.5rem; }
.dvm-thanks__steps { text-align: left; margin: 0 auto 1.5rem; padding: 1rem 1.25rem 1rem 2.5rem; background: var(--dvm-soft); border-radius: var(--dvm-radius); }
.dvm-thanks__steps li { margin: .4rem 0; }
.dvm-thanks__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.dvm-thanks__hours { color: var(--dvm-muted); font-size: .9rem; }
@media (max-width: 600px) { .dvm-thanks__actions .dvm-btn { width: 100%; height: 48px; } }

/* ---------- Sold Customer Photos (phone page) ---------- */
.dvm-sold-app { max-width: 720px; margin: 0 auto; padding: 8px 0 40px; font-size: 16px; }
.dvm-sold-app__hi { color: #555; font-size: 14px; }
.dvm-sold-app__msg { padding: 12px 14px; border-left: 4px solid var(--dvm-gold, #e0c36b); background: #fbf6e6; font-weight: 600; }
.dvm-sold-app__form { display: grid; gap: 14px; padding: 18px; border-radius: 14px; background: #f4f6f7; }
.dvm-sold-app__pick { position: relative; display: grid; gap: 6px; justify-items: center; padding: 26px 16px; border: 2px dashed #b9c3c6; border-radius: 12px; background: #fff; text-align: center; cursor: pointer; }
.dvm-sold-app__pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.dvm-sold-app__pickbtn { display: inline-block; padding: 14px 28px; border-radius: 30px; background: var(--dvm-purple, #4b1c7a); color: #fff; font-weight: 700; font-size: 18px; }
.dvm-sold-app__hint { color: #666; font-size: 14px; }
.dvm-sold-app__previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.dvm-sold-app__previews:empty { display: none; }
.dvm-sold-app__item { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #ddd; }
.dvm-sold-app__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dvm-sold-app__st { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; line-height: 1.25; }
.dvm-sold-app__item.is-busy img { opacity: .55; }
.dvm-sold-app__item.is-done .dvm-sold-app__st { background: rgba(22,120,60,.9); }
.dvm-sold-app__item.is-error .dvm-sold-app__st { background: rgba(170,20,40,.92); }
.dvm-sold-app__cap { display: grid; gap: 6px; font-weight: 600; }
.dvm-sold-app__cap span { font-weight: 400; color: #666; font-size: 14px; }
.dvm-sold-app__cap input { min-height: 48px; padding: 10px 12px; font-size: 16px; border: 1px solid #c8d0d2; border-radius: 8px; }
.dvm-sold-app__go { width: 100%; min-height: 52px; font-size: 18px; }
.dvm-sold-app__go[disabled] { opacity: .7; }
.dvm-sold-app__note { margin: 0; color: #555; font-size: 14px; text-align: center; }
.dvm-sold-app__h { margin: 30px 0 12px; font-size: 20px; }
.dvm-sold-app__grid, .dvm-sold-review__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dvm-sold-app__grid figure { margin: 0; }
.dvm-sold-app__grid img, .dvm-sold-review__item img { width: 100%; aspect-ratio: 966 / 500; object-fit: cover; border-radius: 8px; display: block; height: auto; }
.dvm-sold-pill { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: #e3f4e8; color: #17663a; }
.dvm-sold-pill--pending { background: #fff3cd; color: #7a5a00; }
.dvm-sold-review__item { padding: 8px; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.dvm-sold-review__item p { margin: 6px 0; font-size: 13px; color: #444; }
.dvm-sold-review__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dvm-sold-review__btns button { min-height: 44px; border: 0; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; }
.dvm-sold-review__ok { background: #1f8a4c; color: #fff; }
.dvm-sold-review__no { background: #eee; color: #a01428; }
.dvm-sold-review__all { width: 100%; min-height: 50px; margin-top: 12px; }
@media (max-width: 480px) { .dvm-sold-app__grid, .dvm-sold-review__grid { grid-template-columns: 1fr 1fr; } }
.dvm-sold-page #dvm-chat-root, .dvm-sold-page .dvm-consent-banner { display: none !important; }

/* Manufacturer rebate */
.dvm-price__row--rebate span:last-child { color: #1e8a3e; font-weight: 700; }
.dvm-price__fine { margin: 6px 0 0; font-size: 11px; line-height: 1.4; color: #6b7280; }
.dvm-card__rebate { display: block; width: 100%; font-size: 12px; font-weight: 600; color: #1e8a3e; }

/* ---------- Inventory results: list / grid (dealer-style cards) ---------- */
.dvm-i { width: 1.15em; height: 1.15em; flex: none; }
.dvm-inv__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(180px, 320px); gap: 16px 28px; align-items: center; margin-bottom: 6px; }
.dvm-inv__views { display: inline-flex; border: 2px solid #c9cbd1; border-radius: 4px; overflow: hidden; }
.dvm-inv__view { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 0; background: #fff; color: #4a4f57; font: inherit; font-size: 17px; cursor: pointer; }
.dvm-inv__view .dvm-i { width: 24px; height: 24px; color: var(--dvm-accent); }
.dvm-inv__view.is-on { background: var(--dvm-accent); color: #fff; }
.dvm-inv__view.is-on .dvm-i { color: #fff; }
.dvm-inv__search { position: relative; display: flex; border: 2px solid #c9cbd1; border-radius: 4px; background: #fff; }
.dvm-inv__search input { flex: 1; border: 0; padding: 12px 16px; font: inherit; font-size: 17px; min-width: 0; background: transparent; }
.dvm-inv__search button { border: 0; border-left: 1px solid #e3e5e9; background: transparent; padding: 0 16px; color: var(--dvm-accent); cursor: pointer; }
.dvm-inv__search button .dvm-i { width: 22px; height: 22px; }
.dvm-inv__sort select { width: 100%; padding: 12px 14px; border: 2px solid #c9cbd1; border-radius: 4px; font: inherit; font-size: 16px; color: #4a4f57; background: #fff; }
.dvm-inv__more { grid-column: 1 / -1; }
.dvm-inv__more summary { cursor: pointer; font-weight: 700; color: var(--dvm-accent); width: max-content; }
.dvm-inv__more .dvm-filters__row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; padding: 1rem; background: var(--dvm-soft); border-radius: 8px; align-items: flex-end; }
.dvm-inv__more label { display: flex; flex-direction: column; gap: .25em; font-size: .8rem; font-weight: 700; color: var(--dvm-muted); }
.dvm-inv__more select { padding: .6em .7em; border: 1px solid var(--dvm-line); border-radius: 6px; font: inherit; font-size: .95rem; background: #fff; }
.dvm-inv__count { text-align: right; font-weight: 700; color: #3b3f46; margin: 8px 0 14px; }

.dvm-ic { position: relative; background: #fff; border: 1px solid #c9cbd1; color: var(--dvm-ink); }
.dvm-ic a { color: inherit; text-decoration: none; }
.dvm-ic__media { position: relative; background: #fff; }
.dvm-ic__frame { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.dvm-ic__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; }
.dvm-ic__frame img.is-on { display: block; }
.dvm-ic__frame--none { display: grid; place-items: center; background: var(--dvm-soft); color: var(--dvm-muted); }
.dvm-ic__nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255,255,255,.75); width: 34px; height: 44px; display: grid; place-items: center; cursor: pointer; color: #333; border-radius: 4px; }
.dvm-ic__nav .dvm-i { width: 22px; height: 22px; }
.dvm-ic__nav--prev { left: 6px; } .dvm-ic__nav--next { right: 6px; }
.dvm-ic__count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; gap: 4px; align-items: center; background: var(--dvm-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px 0 12px 0; }
.dvm-ic__count .dvm-i { width: 14px; height: 14px; }
.dvm-ic__ribbon { position: absolute; top: 0; left: 0; right: 0; background: #e8141b; color: #fff !important; text-align: center; font-weight: 800; font-size: 13px; text-transform: uppercase; padding: 8px 6px 4px; letter-spacing: .02em; }
.dvm-ic__ribbon span { display: block; width: max-content; margin: 4px auto -14px; background: #e8141b; padding: 2px 12px 4px; border-radius: 0 0 8px 8px; text-transform: none; font-weight: 600; font-size: 13px; }
.dvm-ic__print { position: absolute; top: 8px; right: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 4px; font-size: 15px; color: #222 !important; }
.dvm-ic__print .dvm-i { color: var(--dvm-accent); width: 18px; height: 18px; }
.dvm-ic__compare { display: inline-flex; align-items: center; gap: 10px; background: var(--dvm-accent); color: #fff; font-weight: 700; font-size: 14px; padding: 6px 12px; cursor: pointer; }
.dvm-ic__compare input { width: 18px; height: 18px; accent-color: #fff; margin: 0; }
.dvm-ic__title { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 400; }
.dvm-ic__title strong { font-weight: 800; }
.dvm-ic__meta { margin: 6px 0 0; display: flex; flex-direction: column; color: #6b7079; font-size: 14px; }
.dvm-ic__cat { color: #222; }
.dvm-ic__loc { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: #8a8f98; font-size: 15px; }
.dvm-ic__loc .dvm-i { color: var(--dvm-accent); fill: var(--dvm-accent); width: 18px; height: 18px; }
.dvm-ic__msrp { display: block; color: #6b7079; font-size: 15px; }
.dvm-ic__now { display: flex; align-items: center; gap: 14px; margin: 4px 0; }
.dvm-ic__now strong { font-size: 36px; font-weight: 800; letter-spacing: -.01em; }
.dvm-ic__tag { display: inline-block; background: #8d8f94; color: #fff; text-transform: uppercase; font-size: 11px; line-height: 1.05; letter-spacing: .12em; padding: 6px 10px; font-weight: 700; clip-path: polygon(0 0, 100% 0, 94% 25%, 100% 50%, 94% 75%, 100% 100%, 0 100%); }
.dvm-ic__save { margin: 8px 0 0; color: var(--dvm-accent); font-size: 22px; font-weight: 600; }
.dvm-ic__rebate { margin: 4px 0 0; color: #1e8a3e; font-size: 13px; font-weight: 600; }
.dvm-ic__pay { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: #6b7079; font-size: 15px; }
.dvm-ic__pay > .dvm-i { width: 26px; height: 26px; color: #9a9ea6; }
.dvm-ic__pay span { display: flex; flex-direction: column; line-height: 1.15; }
.dvm-ic__pay strong { color: #111; font-size: 24px; font-weight: 800; }
.dvm-ic__terms, .dvm-card__terms { display: block; color: #3f444c; font-size: 13px; font-weight: 400; line-height: 1.3; }
.dvm-ic__info { border: 0; background: none; padding: 0; color: var(--dvm-accent); cursor: help; align-self: flex-end; }
.dvm-ic__specs { margin: 0; }
.dvm-ic__specs div { display: flex; gap: 8px; align-items: baseline; border-top: 1px solid #e6e7ea; padding: 9px 8px; }
.dvm-ic__specs div:last-child { border-bottom: 1px solid #e6e7ea; }
.dvm-ic__specs dt { color: #8a8f98; font-size: 14px; min-width: 76px; }
.dvm-ic__specs dd { margin: 0; font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dvm-ic__actions { display: flex; flex-direction: column; gap: 8px; }
.dvm-ic__btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 14px; background: #f1f1f2; border-radius: 6px; color: #2c2f35 !important; font-size: 16px; font-weight: 500; transition: background .2s, color .2s; }
.dvm-ic__btn .dvm-i { color: var(--dvm-accent); }
.dvm-ic__btn:hover { background: #e6e2ef; }
.dvm-ic__btn--main { background: var(--dvm-accent); color: #fff !important; font-size: 20px; font-weight: 700; padding: 15px 14px; }
.dvm-ic__btn--main .dvm-i { color: #fff; width: 26px; height: 26px; }
.dvm-ic__btn--main:hover { background: var(--dvm-hover); color: #000 !important; }

/* List view: details | photo | actions */
.dvm-inv--list { display: flex; flex-direction: column; gap: 26px; }
.dvm-inv--list .dvm-ic { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(220px, .85fr); grid-template-areas: "head media actions" "price media actions" "price specs actions"; column-gap: 28px; padding: 26px 34px 26px 54px; }
.dvm-inv--list .dvm-ic__head { grid-area: head; }
.dvm-inv--list .dvm-ic__price { grid-area: price; padding-top: 10px; }
.dvm-inv--list .dvm-ic__specs { grid-area: specs; }
.dvm-inv--list .dvm-ic__media { grid-area: media; }
.dvm-inv--list .dvm-ic__actions { grid-area: actions; padding-top: 40px; }
.dvm-inv--list .dvm-ic__compare { position: absolute; top: 0; right: 0; }
.dvm-inv--list .dvm-ic__ribbon { border-radius: 18px 18px 0 0; }
@media (min-width: 1101px) {
	.dvm-inv--list .dvm-ic { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(230px, .9fr); grid-template-areas: "head head media actions" "price specs media actions"; grid-template-columns: minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.25fr) minmax(230px, .85fr); }
	.dvm-inv--list .dvm-ic__specs { border-left: 1px solid #e6e7ea; padding-left: 30px; margin-left: 12px; margin-top: 10px; align-self: start; }
}

/* Grid view: tiles */
.dvm-inv--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.dvm-inv--grid .dvm-ic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); grid-template-areas: "media media" "cmp cmp" "head head" "price specs" "actions actions"; align-content: start; }
.dvm-inv--grid .dvm-ic__media { grid-area: media; }
.dvm-inv--grid .dvm-ic__compare { grid-area: cmp; justify-self: start; }
.dvm-inv--grid .dvm-ic__head { grid-area: head; padding: 14px 18px 12px; border-bottom: 1px solid #e6e7ea; }
.dvm-inv--grid .dvm-ic__title { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dvm-inv--grid .dvm-ic__meta { display: none; }
.dvm-inv--grid .dvm-ic__price { grid-area: price; padding: 14px 10px 16px 18px; border-right: 1px solid #e6e7ea; }
.dvm-inv--grid .dvm-ic__now strong { font-size: 27px; }
.dvm-inv--grid .dvm-ic__tag { font-size: 9px; padding: 5px 7px; }
.dvm-inv--grid .dvm-ic__save { font-size: 18px; }
.dvm-inv--grid .dvm-ic__pay strong { font-size: 19px; }
.dvm-inv--grid .dvm-ic__specs { grid-area: specs; padding: 12px 6px 12px 20px; }
.dvm-inv--grid .dvm-ic__specs div { flex-direction: column; gap: 0; border: 0 !important; padding: 2px 0; }
.dvm-inv--grid .dvm-ic__specs dt { font-size: 12px; min-width: 0; }
.dvm-inv--grid .dvm-ic__specs dd { font-size: 14px; }
.dvm-inv--grid .dvm-ic__actions { grid-area: actions; padding: 18px 30px 20px; border-top: 1px solid #e6e7ea; }
.dvm-inv--grid .dvm-ic__btn--main { font-size: 17px; padding: 11px; }

.dvm-cmpbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px; background: #111; color: #fff; padding: 10px 14px 10px 20px; border-radius: 40px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.dvm-cmpbar[hidden] { display: none; }
.dvm-cmpbar button { background: none; border: 0; color: #bbb; cursor: pointer; font: inherit; }
.dvm-compare__wrap { overflow-x: auto; }
.dvm-compare__t { border-collapse: collapse; min-width: 640px; width: 100%; }
.dvm-compare__t th, .dvm-compare__t td { border-bottom: 1px solid var(--dvm-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.dvm-compare__t th { color: var(--dvm-muted); font-weight: 600; width: 120px; }
.dvm-compare__t img { width: 100%; max-width: 260px; height: auto; }

@media (max-width: 900px) {
	.dvm-inv__bar { grid-template-columns: 1fr 1fr; }
	.dvm-inv__views { grid-column: 1 / -1; justify-self: start; }
	.dvm-inv--list .dvm-ic { grid-template-columns: 1fr; grid-template-areas: "media" "head" "price" "specs" "actions"; padding: 0 0 18px; row-gap: 14px; }
	.dvm-inv--list .dvm-ic > :not(.dvm-ic__media) { padding-left: 18px; padding-right: 18px; }
	.dvm-inv--list .dvm-ic__actions { padding-top: 0; }
	.dvm-inv--list .dvm-ic__compare { position: static; grid-row: 2; justify-self: start; margin-left: 18px; }
}
@media (max-width: 560px) {
	.dvm-inv__bar { grid-template-columns: 1fr; }
	.dvm-inv__view { padding: 10px 14px; font-size: 15px; }
	.dvm-inv--grid { grid-template-columns: 1fr; }
	.dvm-ic__title { font-size: 22px; }
}
@media print { .dvm-inv__bar, .dvm-filters, .dvm-inv__views, .dvm-ic__actions, .dvm-cmpbar { display: none !important; } }

/* Inventory uses the full page width (like the original site): 4 tiles across on desktop, room for price + specs. */
.dvm-inv { width: min(1660px, calc(100vw - 48px)); margin-left: calc((100% - min(1660px, calc(100vw - 48px))) / 2); }
.dvm-inv--grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
@media (min-width: 1400px) { .dvm-inv--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .dvm-inv { width: calc(100vw - 32px); margin-left: calc((100% - (100vw - 32px)) / 2); } .dvm-inv--grid { grid-template-columns: 1fr; } }
.dvm-inv__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 18px 0 14px; }
.dvm-inv__top .dvm-inv__count { margin: 0; }
.dvm-inv__top .dvm-inv__view { padding: 9px 18px; font-size: 15px; }
/* Phones: cards never wider than the screen. */
.dvm-inv, .dvm-inv__results, .dvm-ic, .dvm-ic > * { min-width: 0; }
@media (max-width: 900px) { .dvm-inv--list .dvm-ic { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .dvm-inv--grid { grid-template-columns: minmax(0, 1fr); } .dvm-inv__top .dvm-inv__view { padding: 8px 12px; } .dvm-filters__row > label { flex: 1 1 calc(50% - .75rem); } .dvm-filters__row > .dvm-btn { flex: 1 1 100%; } }

/* ===== Phones: one clean list layout (no grid), compact filters ===== */
.dvm-filters__toggle { display: none; }
@media (max-width: 700px) {
	.dvm-inv__views { display: none !important; }
	.dvm-inv__top { margin: 10px 0 12px; }
	.dvm-inv__top .dvm-inv__count { font-size: 14px; color: #6b7079; }

	.dvm-filters { padding: 10px; }
	.dvm-filters__row { gap: 8px; }
	.dvm-filters__row > .dvm-filters__search { flex: 1 1 100%; }
	.dvm-filters__toggle { display: block; flex: 1 1 100%; padding: 11px; border: 1px solid var(--dvm-line); border-radius: 8px; background: #fff; font: inherit; font-weight: 700; color: var(--dvm-accent); }
	.dvm-filters:not(.is-open) .dvm-filters__row > label:not(.dvm-filters__search), .dvm-filters:not(.is-open) .dvm-filters__row > .dvm-btn, .dvm-filters:not(.is-open) .dvm-filters__clear { display: none; }
	.dvm-filters.is-open .dvm-filters__row > label:not(.dvm-filters__search) { flex: 1 1 calc(50% - 8px); }

	.dvm-inv__results.dvm-inv--list, .dvm-inv__results.dvm-inv--grid { display: flex; flex-direction: column; gap: 16px; }
	.dvm-inv__results .dvm-ic { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "media" "head" "price" "specs" "actions" !important; padding: 0 !important; row-gap: 0 !important; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
	.dvm-inv__results .dvm-ic > :not(.dvm-ic__media) { padding-left: 14px !important; padding-right: 14px !important; margin: 0 !important; border: 0 !important; }
	.dvm-inv__results .dvm-ic__media { grid-area: media; }
	.dvm-inv__results .dvm-ic__ribbon { border-radius: 0 !important; }
	.dvm-inv__results .dvm-ic__compare { display: none !important; }
	.dvm-inv__results .dvm-ic__head { grid-area: head; padding-top: 12px !important; }
	.dvm-inv__results .dvm-ic__title { font-size: 19px !important; line-height: 1.25; white-space: normal !important; }
	.dvm-inv__results .dvm-ic__meta { display: flex !important; flex-direction: row; gap: 8px; font-size: 13px; margin-top: 2px; }
	.dvm-inv__results .dvm-ic__meta span + span::before { content: "· "; color: #aaa; }
	.dvm-inv__results .dvm-ic__loc { display: none; }
	.dvm-inv__results .dvm-ic__price { grid-area: price; padding-top: 8px !important; padding-bottom: 4px !important; }
	.dvm-inv__results .dvm-ic__msrp { font-size: 13px; }
	.dvm-inv__results .dvm-ic__now { gap: 10px; margin: 0; }
	.dvm-inv__results .dvm-ic__now strong { font-size: 28px !important; }
	.dvm-inv__results .dvm-ic__tag { font-size: 9px !important; padding: 4px 7px !important; }
	.dvm-inv__results .dvm-ic__save { font-size: 16px !important; margin-top: 2px; }
	.dvm-inv__results .dvm-ic__rebate { font-size: 12px; }
	.dvm-inv__results .dvm-ic__pay { font-size: 13px; margin-top: 4px; }
	.dvm-inv__results .dvm-ic__pay > .dvm-i { display: none; }
	.dvm-inv__results .dvm-ic__pay span { flex-direction: row; gap: 6px; align-items: baseline; }
	.dvm-inv__results .dvm-ic__pay strong { font-size: 17px !important; }
	.dvm-inv__results .dvm-ic__specs { grid-area: specs; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 10px !important; padding-bottom: 12px !important; }
	.dvm-inv__results .dvm-ic__specs div { display: flex; flex-direction: column; gap: 0; padding: 7px 8px !important; border: 0 !important; background: #f4f4f6; border-radius: 8px; }
	.dvm-inv__results .dvm-ic__specs div:nth-child(n+4) { display: none; }
	.dvm-inv__results .dvm-ic__specs dt { font-size: 11px !important; min-width: 0 !important; }
	.dvm-inv__results .dvm-ic__specs dd { font-size: 14px !important; }
	.dvm-inv__results .dvm-ic__actions { grid-area: actions; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 0 !important; padding-bottom: 14px !important; }
	.dvm-inv__results .dvm-ic__btn { font-size: 14px !important; padding: 10px 8px !important; gap: 6px; }
	.dvm-inv__results .dvm-ic__btn .dvm-i { width: 17px; height: 17px; }
	.dvm-inv__results .dvm-ic__btn--main { grid-column: 1 / -1; font-size: 17px !important; padding: 13px !important; }
}

/* ===== Staff portal (/staff/): sign in, pick a portal, upload Sold photos ===== */
.dvm-sold-page .page-title { display: none; }
.dvm-portal { max-width: 440px; margin: 24px auto 48px; padding: 0 4px; }
.dvm-portal__card { background: #fff; border: 1px solid #eceaf2; border-radius: 16px; box-shadow: 0 6px 28px rgba(40,20,80,.10); padding: 24px 22px 18px; }
.dvm-portal__h { margin: 0 0 14px; font-size: 24px; }
.dvm-portal__err { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #a32020; font-weight: 600; font-size: 14px; }
.dvm-portal form p { margin: 0 0 14px; }
.dvm-portal label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.dvm-portal input[type=text], .dvm-portal input[type=password] { width: 100%; box-sizing: border-box; min-height: 50px; padding: 10px 14px; border: 1px solid #d5d2de; border-radius: 10px; font-size: 17px; }
.dvm-portal input[type=text]:focus, .dvm-portal input[type=password]:focus { outline: 0; border-color: var(--dvm-accent); box-shadow: 0 0 0 3px rgba(70,29,118,.18); }
.dvm-portal .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.dvm-portal .login-remember input { width: 20px; height: 20px; }
.dvm-portal .login-submit input[type=submit] { width: 100%; min-height: 52px; border: 0; border-radius: 999px; background: var(--dvm-accent); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; }
.dvm-portal__lost { text-align: center; margin: 6px 0 0; font-size: 14px; }
.dvm-portal__hi { font-size: 22px; font-weight: 800; text-align: center; margin: 0 0 16px; }
.dvm-portal__pick { display: grid; gap: 14px; }
.dvm-portal__opt { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid #eceaf2; box-shadow: 0 6px 22px rgba(40,20,80,.08); text-decoration: none; color: #1d1a26 !important; }
.dvm-portal__opt:hover { border-color: var(--dvm-accent); }
.dvm-portal__ico { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #f1ecf8; font-size: 26px; }
.dvm-portal__opt strong { font-size: 18px; }
.dvm-portal__opt span:last-child { color: #6b7079; font-size: 14px; }
.dvm-portal__out { text-align: center; margin-top: 18px; font-size: 14px; }
/* Phones: the side "Trade or Sell" tab (trade widget) covers content; each listing already has Value Your Trade. */
@media (max-width: 700px) { [id^="gc_tab_container"] { display: none !important; } }

/* FTC: all-in price note */
.dvm-card__fine, .dvm-ic__fine { display: block; width: 100%; margin: 2px 0 0; font-size: 11px; color: #6b7280; font-weight: 400; }

/* Unit page price box: larger, high-contrast text; total price in red. */
.dvm-unit__buy .dvm-price { color: #111827; font-size: 1.08rem; }
.dvm-unit__buy .dvm-price__row { padding: .3em 0; }
.dvm-unit__buy .dvm-price__row > span, .dvm-unit__buy .dvm-price__row > s { color: #111827; font-size: 1.12rem; }
.dvm-unit__buy .dvm-price__row--main { align-items: center; }
.dvm-unit__buy .dvm-price__row--main span { font-size: 1.3rem; font-weight: 700; color: #111827; }
.dvm-unit__buy .dvm-price__row--main strong { font-size: 2.6rem; font-weight: 800; color: #d71920; line-height: 1.05; }
.dvm-unit__buy .dvm-price__fine { font-size: .95rem; line-height: 1.45; color: #1f2937; margin: 4px 0 10px; }
.dvm-unit__buy .dvm-price__row--rebate span:last-child { color: #15803d; }
.dvm-unit__buy .dvm-price__save { font-size: 1.1rem; color: #15803d; }
.dvm-unit__buy .dvm-price__monthly { font-size: 1.05rem; color: #111827; }
.dvm-unit__buy .dvm-price__monthly small { color: #1f2937; font-size: .95rem; }
.dvm-unit__stats { display: flex; gap: 10px; margin: 0 0 1rem; }
.dvm-unit__stat { flex: 1; border: 1px solid var(--dvm-line); border-radius: var(--dvm-radius); padding: .6rem .9rem; text-align: center; }
.dvm-unit__stat span { display: block; font-size: .9rem; color: #374151; }
.dvm-unit__stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: #111827; }
.dvm-unit__info, .dvm-unit__desc { border: 1px solid var(--dvm-line); border-radius: var(--dvm-radius); padding: .9rem 1.1rem; margin: 0 0 1rem; color: #111827; }
.dvm-unit__info h2, .dvm-unit__desc h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.dvm-unit__info dl { margin: 0; }
.dvm-unit__info dl div { display: flex; justify-content: space-between; gap: 12px; padding: .3em 0; border-bottom: 1px solid var(--dvm-line); font-size: 1rem; }
.dvm-unit__info dl div:last-child { border-bottom: 0; }
.dvm-unit__info dt { color: #374151; }
.dvm-unit__info dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }
.dvm-unit__desc { font-size: 1rem; line-height: 1.55; }
.dvm-unit__desc p { margin: 0 0 .6em; }
.dvm-price__terms { margin-top: .4em; }
.dvm-price__terms summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; font-weight: 600; color: var(--dvm-accent); user-select: none; }
.dvm-price__terms summary::-webkit-details-marker { display: none; }
.dvm-price__terms summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.dvm-price__terms[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.dvm-price__terms .dvm-price__fine { margin-top: .4em; }
/* Price box with the action buttons beside it */
.dvm-unit__top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.dvm-buybox { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 10px; align-items: start; margin-bottom: 1rem; }
.dvm-buybox .dvm-price { margin-bottom: 0; }
.dvm-buybox .dvm-actions { gap: 6px; }
.dvm-buybox .dvm-actions .dvm-btn { padding: .5em .6em; font-size: .78rem; border-radius: 999px; min-height: 34px; text-align: center; line-height: 1.15; }
@media (max-width: 1100px) { .dvm-buybox { grid-template-columns: 1fr; } .dvm-buybox .dvm-actions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .dvm-buybox .dvm-actions { grid-template-columns: 1fr; } }
/* Unit info as a horizontal bar under the photos */
.dvm-unit__infobar { display: flex; flex-wrap: wrap; margin: 1.25rem 0 1.5rem; border: 1px solid var(--dvm-line); border-radius: var(--dvm-radius); background: #fafafa; color: #111827; }
.dvm-unit__infobar > div { flex: 1 1 120px; padding: .7rem 1rem; border-right: 1px solid var(--dvm-line); min-width: 0; }
.dvm-unit__infobar > div:last-child { border-right: 0; }
.dvm-unit__infobar span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #4b5563; }
.dvm-unit__infobar strong { display: block; font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 700px) { .dvm-unit__infobar > div { flex-basis: 45%; border-bottom: 1px solid var(--dvm-line); } }
.dvm-unit__stat strong { color: #d71920; }
.dvm-unit__infobar { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.dvm-unit__infobar > div { border-right: 1px solid var(--dvm-line); border-bottom: 0; }
.dvm-unit__infobar > div.is-wide { grid-column: span 2; }
.dvm-unit__infobar strong { overflow-wrap: normal; word-break: normal; }
@media (max-width: 700px) { .dvm-unit__infobar { grid-template-columns: 1fr 1fr; } .dvm-unit__infobar > div { border-bottom: 1px solid var(--dvm-line); } }
.dvm-unit > .dvm-unit__desc { margin: 0 0 1.5rem; padding: 1.1rem 1.4rem; font-size: 1.05rem; }
/* Bigger photo area */
.dvm-unit { max-width: 1480px; }
.dvm-unit__top { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.75rem; }
.dvm-gallery__thumbs button { flex-basis: 104px; height: 78px; }
/* Photo gallery — old-site style: red banner, rounded frame, round arrows, dimmed thumbnails */
.dvm-gallery { outline: none; }
.dvm-gallery__main { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: #f3f4f6; }
.dvm-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dvm-gallery__main.has-banner { padding-top: 46px; }
.dvm-gallery__banner { position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 46px; display: flex; align-items: center; justify-content: center; background: #ff0000; color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; text-align: center; padding: 0 12px; }
.dvm-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 58px; height: 58px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #111; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); padding: 0; }
.dvm-gallery__main.has-banner .dvm-gallery__nav { top: calc(50% + 23px); }
.dvm-gallery__nav:hover { background: #fff; }
.dvm-gallery__nav:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.dvm-gallery__nav svg { width: 26px; height: 26px; }
.dvm-gallery__nav--prev { left: 14px; }
.dvm-gallery__nav--next { right: 14px; }
.dvm-gallery__thumbs { display: flex; justify-content: center; gap: 14px; margin-top: 22px; padding: 2px 4px 6px; overflow-x: auto; scrollbar-width: thin; }
.dvm-gallery__thumbs button { flex: 0 0 120px; height: 90px; padding: 0; border: 3px solid transparent; border-radius: 2px; background: #f3f4f6; opacity: .45; transition: opacity .15s; }
.dvm-gallery__thumbs button:hover { opacity: .8; }
.dvm-gallery__thumbs button[aria-current="true"] { opacity: 1; border-color: #111; }
.dvm-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
	.dvm-gallery__main { border-radius: 14px; }
	.dvm-gallery__main.has-banner { padding-top: 36px; }
	.dvm-gallery__banner { height: 36px; font-size: .9rem; }
	.dvm-gallery__nav { width: 42px; height: 42px; }
	.dvm-gallery__thumbs { justify-content: flex-start; gap: 8px; }
	.dvm-gallery__thumbs button { flex-basis: 84px; height: 64px; }
}
.dvm-unit__stat strong { font-size: 2.1rem; line-height: 1.1; }
/* Slider arrows: chevrons centered in their circle; ring only for keyboard focus */
.dvm-slider__prev, .dvm-slider__next { display: grid; place-items: center; padding: 0; }
.dvm-slider__prev svg, .dvm-slider__next svg { width: 55%; height: 55%; display: block; }
.dvm-slider__prev:focus, .dvm-slider__next:focus { outline: none; }
.dvm-slider__prev:focus-visible, .dvm-slider__next:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.dvm-ic__now strong, .dvm-card__price strong { color: #d71920; }
/* Specifications (below the description) */
.dvm-unit__specs { border: 1px solid var(--dvm-line); border-radius: var(--dvm-radius); padding: 1.1rem 1.4rem; margin: 0 0 1.5rem; color: #111827; }
.dvm-unit__specs h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
.dvm-unit__specs dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 2.5rem; margin: 0; }
.dvm-unit__specs dl div { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: .5em 0; border-bottom: 1px solid var(--dvm-line); font-size: .98rem; }
.dvm-unit__specs dt { color: #4b5563; font-weight: 600; }
.dvm-unit__specs dd { margin: 0; }
/* Full screen photos */
.dvm-gallery__full { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #111; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); padding: 0; }
.dvm-gallery__full svg { width: 22px; height: 22px; }
.dvm-gallery__full:hover { background: #fff; }
.dvm-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.dvm-lightbox[hidden] { display: none; }
.dvm-lightbox__img { max-width: 94vw; max-height: 88vh; object-fit: contain; user-select: none; }
.dvm-lightbox__close { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.dvm-lightbox__count { position: absolute; top: 24px; left: 24px; color: #fff; font-size: 15px; font-weight: 600; }
.dvm-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 58px; height: 58px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #111; display: grid; place-items: center; cursor: pointer; padding: 0; }
.dvm-lightbox__nav svg { width: 26px; height: 26px; }
.dvm-lightbox__nav--prev { left: 18px; } .dvm-lightbox__nav--next { right: 18px; }
.dvm-lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 700px) { .dvm-lightbox__nav { width: 42px; height: 42px; } .dvm-lightbox__img { max-width: 100vw; } .dvm-gallery__full { width: 40px; height: 40px; right: 10px; bottom: 10px; } }
.dvm-unit__sub strong, .dvm-ic__meta strong { font-weight: 800; color: #111827; }
.dvm-unit__specs dl { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); } @media (max-width: 480px) { .dvm-unit__specs dl { grid-template-columns: 1fr; } }
/* Inventory cards: one green savings line, bigger even spec rows, red top speed */
.dvm-ic__save { color: #15803d; }
.dvm-ic__specs div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 11px 8px; }
.dvm-ic__specs dt { color: #6b7079; font-size: 16px; min-width: 0; }
.dvm-ic__specs dd { font-size: 21px; font-weight: 700; color: #111827; }
.dvm-ic__specs .is-speed dd { color: #d71920; }
.dvm-inv--grid .dvm-ic__specs div { display: flex; flex-direction: column; gap: 1px; padding: 5px 0; }
.dvm-inv--grid .dvm-ic__specs dt { font-size: 14px; }
.dvm-inv--grid .dvm-ic__specs dd { font-size: 18px; }
.dvm-jdp-flash { outline: 3px solid #d71920 !important; outline-offset: 2px; transition: outline-color .3s; }

/* Cards: specs never spill out of the tile; every tile the same height with no gap under the buttons. */
@media (min-width: 701px) { .dvm-inv--grid .dvm-ic { grid-template-rows: auto auto auto 1fr auto; height: 100%; } }
.dvm-inv--grid .dvm-ic__specs, .dvm-inv--grid .dvm-ic__price { min-width: 0; overflow: hidden; }
.dvm-ic__specs div { min-width: 0; }
.dvm-ic__specs dd { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
