/* ─────────────────────────────────────────────────────────────────────────────
   CoreVMS theme-token defaults.
   Theme Studio, dealer branding and shortcode inline variables override these
   values on the wrapper. Legacy CarsMark selectors below consume these tokens
   instead of fixing the interface to the original blue palette.
   ───────────────────────────────────────────────────────────────────────────── */
.corevms-wrap,
.carsmark-inventory,
.carsmark-detail {
    --cv-primary: #1885c2;
    --cv-secondary: #1d2b47;
    --cv-accent: #ff6b35;
    --cv-heading: #1d2b47;
    --cv-text: #172033;
    --cv-muted: #667085;
    --cv-page-bg: #ffffff;
    --cv-card-bg: #ffffff;
    --cv-surface-alt: #f1f5f6;
    --cv-filter-bg: #f4f7f9;
    --cv-border: #d8e0e7;
    --cv-button-text: #ffffff;
    --cv-danger: #c23b3b;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CoreVMS v1.3 — Carsmark exact-match structure.
   The structure remains namespaced under .corevms-wrap, while presentation
   colours inherit the active theme tokens above.
   ───────────────────────────────────────────────────────────────────────────── */

.corevms-wrap, .carsmark-inventory, .carsmark-detail {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px;
    color: var(--cv-text);
    line-height: 1.5;
}
.corevms-wrap *, .corevms-wrap *::before, .corevms-wrap *::after { box-sizing: border-box; }
.corevms-wrap img { max-width: 100%; height: auto; }

/* ─── SRP container ─── */
.corevms-wrap #cardealerpress-inventory {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 14px;
    background: #ffffff;
    color: var(--cv-text);
    box-sizing: border-box;
}

.corevms-wrap .inventory-pagination-container {
    display: block;
    float: left;
    overflow: hidden;
    border: 0;
    box-sizing: border-box;
}

.corevms-wrap #inventory-sort-container {
    display: block;
    float: right;
    padding: 2px 0 10px 0;
    overflow: hidden;
    font-size: 90%;
    box-sizing: border-box;
}

.corevms-wrap .pagination-container {
    display: block;
    width: 100%;
    overflow: hidden;
    clear: both;
    font-size: 14px !important;
    color: var(--cv-primary);
    font-weight: 600;
}

.corevms-wrap .pagination-container a,
.corevms-wrap .pagination-container span {
    color: var(--cv-primary);
    padding: 0 6px;
    text-decoration: none;
    font-weight: 600;
}
.corevms-wrap .pagination-container a.is-active { color: var(--cv-heading); font-weight: 800; }

.corevms-wrap #inventory-sort-container select {
    padding: 6px 10px;
    border: 1px solid #ececec;
    border-radius: 0;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif !important;
    background: #fff;
    color: var(--cv-primary);
}

.corevms-wrap #inventory-body-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    column-gap: 30px;
}

/* ─── Filter sidebar ─── */
.corevms-wrap #list-filters-container {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    max-width: 320px;
    padding: 10px !important;
    background-color: var(--cv-surface-alt) !important;
    border: 0;
}

.corevms-wrap #search-text {
    display: flex;
    background: #ffffff;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    width: 100%;
}

.corevms-wrap .search-item {
    padding: 0 2%;
    border-right: 1px solid #fff;
    font-size: 90%;
    position: relative;
    z-index: 6;
    box-sizing: border-box;
}

.corevms-wrap #search-text input {
    font-size: 14px;
    width: 70%;
    font-family: 'Montserrat', sans-serif !important;
    border: 1px solid #ececec;
    border-radius: 0;
    padding: 10px 5px;
    color: var(--cv-text);
}

.corevms-wrap input[type=date],
.corevms-wrap input[type=email],
.corevms-wrap input[type=number],
.corevms-wrap input[type=password],
.corevms-wrap input[type=search],
.corevms-wrap input[type=tel],
.corevms-wrap input[type=text] {
    width: 100%;
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif !important;
    border: 1px solid #ececec !important;
    border-radius: 0 !important;
    padding: 10px 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    transition: all 0.3s;
    color: var(--cv-primary) !important;
}

.corevms-wrap #search-text button.text-search-button {
    border-radius: 100px;
    border: 0;
    text-align: center;
    padding: 5px;
    background: var(--cv-secondary);
    background: linear-gradient(290deg, var(--cv-secondary) 0%, var(--cv-primary) 100%);
    color: #ffffff;
    font-size: 0.9rem;
    width: 28%;
    cursor: pointer;
}

.corevms-wrap .search-side .search-label.show-label {
    background: #ffffff;
    padding: 5px;
    margin-bottom: 0;
    color: var(--cv-heading);
}

.corevms-wrap .search-label {
    font-weight: normal;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1rem;
    padding: 10px 10px 0 10px !important;
    display: block;
    cursor: pointer;
    user-select: none;
}

.corevms-wrap .search-content {
    padding: 5px 10px 10px 10px;
    background: #ffffff;
}

.corevms-wrap .search-side details { border: 0; }
.corevms-wrap .search-side details summary {
    list-style: none;
    cursor: pointer;
    display: block;
    background: var(--cv-secondary);
    color: #fff;
    padding: 10px 12px;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 6px;
}
.corevms-wrap .search-side details summary::-webkit-details-marker { display: none; }
.corevms-wrap .search-side details summary::after {
    content: " +";
    float: right;
}
.corevms-wrap .search-side details[open] summary::after { content: " −"; }

.corevms-wrap select.input-action,
.corevms-wrap .select-trigger,
.corevms-wrap .search-content select {
    width: 100%;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif !important;
    border: 1px solid #ececec;
    border-radius: 0;
    padding: 10px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    color: var(--cv-primary);
    user-select: none;
    background: #fff;
}

.corevms-wrap .range-dropdown-container.search-dropdown {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    column-gap: 10px;
}
.corevms-wrap .range-dropdown-container.search-dropdown input { flex: 1; min-width: 0; }

.corevms-wrap .search-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.corevms-wrap .search-content ul li { padding: 4px 0; font-size: 14px; }
.corevms-wrap .search-content ul li label {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif !important;
    color: var(--cv-heading);
}

/* ─── Vehicle grid ─── */
.corevms-wrap .inventory-vehicle-wrapper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
    margin: 0 auto;
    flex: 1;
    min-width: 0;
}

.corevms-wrap .grid.vehicle-container {
    border: 0 !important;
    border-radius: 0 0 30px 30px !important;
    background-color: var(--cv-surface-alt) !important;
    overflow: hidden;
}

.corevms-wrap .grid.vehicle-container:hover {
    box-shadow: 0 0 0 #888 !important;
}

.corevms-wrap .inventory-vehicle-container {
    display: block;
    margin: 0 auto;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

.corevms-wrap .grid .vehicle-image {
    display: block;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid var(--cv-secondary);
    height: 240px;
    object-fit: cover;
    object-position: center center;
}
.corevms-wrap .inventory-vehicle-image { position: relative; }

.corevms-wrap a {
    background-color: transparent;
    color: var(--cv-heading);
    text-decoration: none;
}

.corevms-wrap .nested.inventory-vehicle-titles {
    line-height: normal;
    padding: 10px;
    border-top: 10px solid #ffffff;
}

.corevms-wrap .inventory-vehicle-header {
    text-align: left;
    display: block;
    font-weight: bold;
    width: 100%;
    font-size: 18px;
    background-color: #ffffff;
    padding: 10px;
}

.corevms-wrap .inventory-vehicle-container .price-item.price-information {
    display: block;
    padding: 0 10px;
    width: 100%;
    text-align: center;
    font-size: 100% !important;
    color: #FFF;
}

.corevms-wrap .nested .inventory-vehicle-pricing {
    margin: 0 10px 10px 10px;
    padding: 10px;
    background-color: #ffffff;
}

.corevms-wrap .inventory-vehicle-container .price-information a {
    width: 100%;
    display: inline-block !important;
    font-size: 17px !important;
    font-weight: 700;
    margin: 0;
    padding: 8px 0;
    color: #FFF;
    text-align: center;
    background: var(--cv-secondary) !important;
    background: linear-gradient(290deg, var(--cv-secondary) 0%, var(--cv-primary) 100%) !important;
    border-radius: 5px;
}

.corevms-wrap .vehicle-information-attributes {
    display: flow;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    padding: 0 20px 10px 20px !important;
}

.corevms-wrap .vehicle-information-attributes .info-item {
    padding: 0 !important;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.corevms-wrap span.info-label {
    font-weight: bold;
    font-size: 10px;
    line-height: 9px !important;
}

.corevms-wrap .vehicle-information-attributes span.info-value {
    font-size: 10px;
    margin-left: 5px;
    line-height: 9px !important;
}

.corevms-wrap .inventory-vehicle-container .price-item span.text { color: var(--cv-primary); }

.corevms-wrap .grid .price-item span.value {
    order: 1;
    font-size: 20px;
}
.corevms-wrap .inventory-vehicle-container .price-item span.value {
    color: var(--cv-primary);
    font-weight: 600;
}

/* Tag icons overlay */
.corevms-wrap .sale-status-tags {
    position: absolute;
    bottom: 8px; left: 8px;
    display: flex; gap: 4px;
}
.corevms-wrap .sale-status-tags img { width: 40px; height: auto; }

/* ═══════════════════════════════════════════════════════════════════════════
   VDP — DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.corevms-wrap .hedgehog-theme-wrapper {
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
    box-sizing: border-box;
}

.corevms-wrap #inventory-detail-navigation {
    width: 100%;
    background-color: #808080;
    margin: 0 auto 1%;
    padding: 1%;
    box-sizing: border-box;
    display: none !important;
}

.corevms-wrap .detail-wrapper { padding: 5px; border: 0 !important; }

.corevms-wrap .cm-title-col,
.corevms-wrap .cm-meta-col,
.corevms-wrap .cm-overview { display: flex; }
.corevms-wrap .cm-title-col { align-items: baseline; flex-wrap: wrap; }
.corevms-wrap .cm-meta-col  { align-items: baseline; }

.corevms-wrap .header-vehicle-title-container,
.corevms-wrap .cm-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: bold;
    color: var(--cv-heading);
    font-size: 2.1em !important;
    margin: 0 0 15px 5px;
    line-height: 1;
}

.carsmark-detail .cm-price,
.carsmark-detail .cm-miles {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300;
    color: var(--cv-heading);
    font-size: 1.9em !important;
    margin: 0 0 15px 5px;
    line-height: 1;
}

.carsmark-detail .cm-meta-col .cm-price {
    padding-left: 10px;
    padding-right: 10px;
    border-right: 1px solid var(--cv-secondary);
}
.carsmark-detail .cm-meta-col .cm-miles { padding-left: 10px; }

.corevms-wrap .bordered-box {
    border: 0 !important;
    padding: 0 !important;
    margin-bottom: 10px;
}

.corevms-wrap .vehicle-attributes-container .info-item {
    border: none !important;
    font-size: 16px;
    background-color: var(--cv-surface-alt) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: bold;
    color: var(--cv-heading) !important;
    margin: 5px;
    padding: 15px 15px 5px 15px !important;
    display: flex;
    border-radius: 10px;
}

.corevms-wrap .box-title {
    padding: 0 !important;
    font-weight: bold;
    width: inherit;
    border-bottom: none;
    text-align: left;
    margin-bottom: 0;
    font-size: 1.6em !important;
}

.corevms-wrap .box-shadow-style {
    border: 0 !important;
    padding: 10px;
    box-shadow: 0 0 0 #000 !important;
    margin: 0 3px 10px;
}

.corevms-wrap #price-container,
.corevms-wrap #payment-container {
    color: var(--cv-primary);
    font-size: 1.6em !important;
    font-weight: bold;
}

/* VDP pricing pill */
.corevms-wrap .inventory-vehicle-pricing {
    display: flex;
    padding: 20px;
    border-radius: 60px;
    background-color: var(--cv-surface-alt);
}
.corevms-wrap .inventory-vehicle-pricing .label { font-weight: 700; color: var(--cv-heading); }
.corevms-wrap .inventory-vehicle-pricing .price-down_payment,
.corevms-wrap .inventory-vehicle-pricing .price-sale_price { color: var(--cv-heading); font-weight: 600; }
.corevms-wrap .price-sale_price { margin-left: 30px; }

.corevms-wrap .cm-image-area { margin-top: 30px; width: 100%; max-width: 100%; min-width: 0; }

/* Overview row: 2 rounded cards */
.corevms-wrap .cm-overview-wrap {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin: 24px 0;
}

.corevms-wrap .cm-overview-title-card {
    flex: 0 0 220px;
    background: var(--cv-surface-alt);
    border-radius: 26px;
    padding: 28px 26px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 2em;
    font-weight: 800;
    line-height: 1;
    color: var(--cv-heading);
    font-family: 'Montserrat', sans-serif !important;
}

.corevms-wrap .cm-overview-card {
    flex: 1;
    background: var(--cv-surface-alt);
    border-radius: 26px;
    padding: 26px 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 18px;
}

.corevms-wrap .cm-overview-item {
    padding: 2px 18px;
    min-width: 0;
}

.corevms-wrap .cm-overview-item:not(:nth-child(4n + 1)) {
    border-left: 1px solid color-mix(in srgb,var(--cv-secondary) 18%,transparent);
}

.corevms-wrap .cm-overview-label {
    font-size: 16px;
    font-weight: 800;
    color: var(--cv-heading);
    margin-bottom: 2px;
    white-space: nowrap;
}

.corevms-wrap .cm-overview-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--cv-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Image mosaic (5-tile grid) ─── */
.corevms-wrap #cm-image-area .swiper-per-view { width: 100%; max-width: 100%; }

.corevms-wrap #cm-image-area .swiper-per-view .swiper-wrapper {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    transform: none !important;
    transition: none !important;
    width: 100% !important;
    height: 520px;
}

.corevms-wrap #cm-image-area .swiper-per-view .swiper-slide {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    background: var(--cv-surface-alt);
}

.corevms-wrap #cm-image-area .swiper-per-view .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.corevms-wrap #cm-image-area .swiper-per-view .swiper-slide:hover img { transform: scale(1.03); }

.corevms-wrap #cm-image-area .swiper-per-view .swiper-slide:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
.corevms-wrap #cm-image-area .swiper-per-view .swiper-slide:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.corevms-wrap #cm-image-area .swiper-per-view .swiper-slide:nth-child(3) { grid-column: 3 / 4; grid-row: 1 / 2; }
.corevms-wrap #cm-image-area .swiper-per-view .swiper-slide:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 3; }
.corevms-wrap #cm-image-area .swiper-per-view .swiper-slide:nth-child(5) { grid-column: 3 / 4; grid-row: 2 / 3; }
.corevms-wrap #cm-image-area .swiper-per-view .swiper-slide:nth-child(n+6) { display: none !important; }

.corevms-wrap #cm-image-area .swiper-button-next,
.corevms-wrap #cm-image-area .swiper-button-prev,
.corevms-wrap #cm-image-area .swiper-pagination { display: none !important; }

/* ─── Vehicle Options chips ─── */
.corevms-wrap .cm-options { width: 100%; margin: 18px 0; }

.corevms-wrap .cm-options-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.7em;
    font-weight: 800;
    color: var(--cv-heading);
    margin-bottom: 14px;
}

.corevms-wrap .cm-options-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 14px;
}

.corevms-wrap .cm-options-chips {
    display: inline-block;
    gap: 18px;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
}
.corevms-wrap .cm-options-chips.is-expanded {
    flex-wrap: wrap;
    overflow: visible;
    align-items: flex-start;
}
.corevms-wrap .cm-options-chips.is-expanded .cm-chip { margin-bottom: 6px; }
.corevms-wrap .cm-chip.is-hidden { display: none; }

.corevms-wrap .cm-show-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--cv-surface-alt);
    border: 0;
    cursor: pointer;
    color: var(--cv-primary);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}
.corevms-wrap .cm-show-all-icon { display: inline-block; transition: transform .18s ease; font-size: 18px; line-height: 1; }
.corevms-wrap .cm-show-all.is-expanded .cm-show-all-icon { transform: rotate(180deg); }

.corevms-wrap #cm-options .cm-options-chips .cm-chip {
    display: inline-flex !important;
    font-family: 'Montserrat', sans-serif !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 22px !important;
    margin: 0 10px 10px 0 !important;
    border-radius: 14px !important;
    background: var(--cv-surface-alt) !important;
    font-size: 15px !important;
    color: var(--cv-heading);
    font-weight: 500 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}
.corevms-wrap #cm-options .cm-options-chips .cm-chip.is-hidden { display: none !important; }
.corevms-wrap #cm-options .cm-options-chips.is-expanded {
    flex-wrap: wrap !important;
    overflow: visible !important;
    align-items: flex-start !important;
}

/* ─── Lower 2-column section ─── */
.corevms-wrap #cm-lower.cm-lower {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
    margin: 28px 0;
}

.corevms-wrap #cm-lower .cm-lease-details,
.corevms-wrap #cm-lower .cm-standard-equipment,
.corevms-wrap #cm-lower .cm-lease-card {
    background: var(--cv-surface-alt);
    border-radius: 22px;
    padding: 22px;
}

.corevms-wrap #cm-lower .cm-section-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.7em;
    font-weight: 800;
    color: var(--cv-heading);
    margin: 0 0 14px;
}

.corevms-wrap #cm-description.cm-description {
    margin-top: 22px;
    color: color-mix(in srgb,var(--cv-text) 55%,transparent);
    font-size: 15px;
    line-height: 1.45;
}

.corevms-wrap #cm-lease-details .cm-lease-details-plugin table {
    width: 100%;
    border-collapse: collapse;
}
.corevms-wrap #cm-lease-details .cm-lease-details-plugin tr { border-top: 1px solid color-mix(in srgb,var(--cv-secondary) 20%,transparent); }
.corevms-wrap #cm-lease-details .cm-lease-details-plugin td,
.corevms-wrap #cm-lease-details .cm-lease-details-plugin th {
    padding: 10px 0;
    font-size: 18px;
}
.corevms-wrap #cm-lease-details .cm-lease-details-plugin td:first-child,
.corevms-wrap #cm-lease-details .cm-lease-details-plugin th:first-child {
    font-weight: 800;
    color: var(--cv-heading);
}
.corevms-wrap #cm-lease-details .cm-lease-details-plugin td:last-child {
    text-align: right;
    color: var(--cv-heading);
}

/* ─── Standard Equipment accordion ─── */
.corevms-wrap #cm-standard-equipment .cm-eq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.corevms-wrap #cm-standard-equipment .cm-eq-item {
    background: rgba(255, 255, 255, .25);
    border-radius: 18px;
    overflow: hidden;
}
.corevms-wrap #cm-standard-equipment .cm-eq-head {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    font-size: 20px;
    font-weight: 800;
    color: var(--cv-heading);
}
.corevms-wrap #cm-standard-equipment .cm-eq-chevron {
    transition: transform .18s ease;
    font-size: 18px;
    line-height: 1;
}
.corevms-wrap #cm-standard-equipment .cm-eq-item.is-open .cm-eq-chevron { transform: rotate(180deg); }
.corevms-wrap #cm-standard-equipment .cm-eq-body {
    display: none;
    border-top: 1px solid color-mix(in srgb,var(--cv-secondary) 18%,transparent);
    padding: 14px 18px 16px;
}
.corevms-wrap #cm-standard-equipment .cm-eq-item.is-open .cm-eq-body { display: block; }
.corevms-wrap #cm-standard-equipment .cm-eq-list { margin: 0; padding-left: 18px; }
.corevms-wrap #cm-standard-equipment .cm-eq-list li { margin: 4px 0; font-size: 16px; color: color-mix(in srgb,var(--cv-text) 90%,transparent); }

/* ─── Buttons (global within wrap) ─── */
.corevms-wrap [type="button"],
.corevms-wrap [type="submit"],
.corevms-wrap button {
    color: var(--cv-primary) !important;
    font-size: 0.9rem !important;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}
.corevms-wrap [type=button]:focus,
.corevms-wrap [type=button]:hover,
.corevms-wrap [type=submit]:focus,
.corevms-wrap [type=submit]:hover,
.corevms-wrap button:focus,
.corevms-wrap button:hover {
    background-color: var(--cv-secondary) !important;
    color: #fff !important;
    text-decoration: none;
}

/* ─── Gallery actions ─── */
.corevms-wrap .cm-gallery-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}
.corevms-wrap .cm-show-all-images {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    background: var(--cv-surface-alt);
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--cv-primary);
}
.corevms-wrap .cm-show-all-images-icon { transition: transform .18s ease; line-height: 1; }
.corevms-wrap .cm-show-all-images.is-open .cm-show-all-images-icon { transform: rotate(180deg); }

.corevms-wrap .cm-all-images {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.corevms-wrap .cm-all-images .cm-thumb { border-radius: 16px; overflow: hidden; cursor: pointer; }
.corevms-wrap .cm-all-images .cm-thumb img { width: 100%; height: 110px; object-fit: cover; display: block; }

/* ─── Lightbox ─── */
.corevms-wrap .cm-lightbox { position: fixed; inset: 0; z-index: 99999; }
.corevms-wrap .cm-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .75); }
.corevms-wrap .cm-lightbox-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}
.corevms-wrap .cm-lb-img { max-width: min(1200px, 92vw); max-height: 86vh; border-radius: 18px; display: block; }
.corevms-wrap .cm-lb-close {
    position: absolute; top: 18px; right: 18px;
    width: 44px; height: 44px; border-radius: 999px; border: 0;
    cursor: pointer; font-size: 28px; line-height: 44px;
    background: rgba(255, 255, 255, .9);
}
.corevms-wrap .cm-lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 999px; border: 0;
    cursor: pointer; font-size: 34px; line-height: 52px;
    background: rgba(255, 255, 255, .85);
}
.corevms-wrap .cm-lb-prev { left: 18px; }
.corevms-wrap .cm-lb-next { right: 18px; }

/* ─── Lead form (Gravity-form-styled inside cm-lease-card) ─── */
.corevms-wrap #cm-lease-card form { margin: 0; }
.corevms-wrap #cm-lease-card .corevms-lead-fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 14px 14px;
}
.corevms-wrap #cm-lease-card .corevms-lead-fields .full-width { grid-column: 1 / -1; }

.corevms-wrap #cm-lease-card label,
.corevms-wrap #cm-lease-card .gform-field-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--cv-heading) !important;
    margin-bottom: 6px !important;
    display: block;
}

.corevms-wrap #cm-lease-card input[type="text"],
.corevms-wrap #cm-lease-card input[type="email"],
.corevms-wrap #cm-lease-card input[type="tel"],
.corevms-wrap #cm-lease-card select,
.corevms-wrap #cm-lease-card textarea {
    width: 100% !important;
    height: 44px;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    border: 1px solid color-mix(in srgb,var(--cv-secondary) 18%,transparent) !important;
    background: #fff !important;
    font-size: 16px !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--cv-heading) !important;
}
.corevms-wrap #cm-lease-card textarea { min-height: 110px; height: auto; resize: vertical; }
.corevms-wrap #cm-lease-card input:focus,
.corevms-wrap #cm-lease-card select:focus,
.corevms-wrap #cm-lease-card textarea:focus { border-color: color-mix(in srgb,var(--cv-primary) 55%,transparent) !important; }

.corevms-wrap #cm-lease-card button[type="submit"] {
    height: 46px;
    padding: 0 18px;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--cv-primary) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer;
    margin-top: 14px;
}
.corevms-wrap #cm-lease-card button[type="submit"]:hover { background: var(--cv-secondary) !important; color: #fff !important; }

.corevms-wrap .corevms-form-status { font-size: 13px; margin-top: 10px; }
.corevms-wrap .corevms-form-status.is-success { color: #15803d; font-weight: 700; }
.corevms-wrap .corevms-form-status.is-error   { color: #b91c1c; font-weight: 700; }

/* ─── Action bar (Carfax / Window Sticker / share) ─── */
.corevms-wrap .cm-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin: 14px 0;
}
.corevms-wrap .cm-actions a, .corevms-wrap .cm-actions button {
    padding: 10px 16px; border-radius: 14px;
    background: var(--cv-surface-alt);
    color: var(--cv-primary) !important;
    text-decoration: none; font-weight: 700;
    border: 0; font-size: 14px;
    display: inline-flex; align-items: center; gap: 6px;
}
.corevms-wrap .cm-actions a:hover, .corevms-wrap .cm-actions button:hover {
    background: var(--cv-secondary) !important; color: #fff !important;
}

/* ─── Back link ─── */
.corevms-wrap .cm-back {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--cv-primary); text-decoration: none;
    font-weight: 700; font-size: 14px;
    padding: 10px 0;
}
.corevms-wrap .cm-back:hover { color: var(--cv-heading); text-decoration: underline; }

/* ─── Counter shortcode ─── */
.corevms-wrap .corevms-counter { font-size: inherit; }
.corevms-wrap .corevms-counter strong { color: var(--cv-primary); font-size: 1.2em; }

/* ─── Hero (optional, used if list_subtitle is set) ─── */
.corevms-wrap .cm-hero-full {
    width: 100%;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding: 60px 0;
    background-color: var(--cv-surface-alt);
    margin-bottom: 24px;
}
.corevms-wrap .cm-hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.corevms-wrap .cm-hero-title { font-size: 48px; font-weight: 800; color: var(--cv-heading); margin: 0 0 12px; }
.corevms-wrap .cm-hero-subtitle { font-size: 26px; font-weight: 500; color: var(--cv-primary); margin: 0; line-height: 1.35; }

/* ───────────────────────────────────────────────────────────────
   MOBILE + TABLET (from Carsmark CSS verbatim, scoped)
   ─────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .corevms-wrap .inventory-pagination-container,
    .corevms-wrap #inventory-sort-container {
        float: none !important; width: 100% !important; display: block;
    }
    .corevms-wrap #inventory-sort-container { padding: 10px 0 0 0 !important; }

    .corevms-wrap #inventory-body-container {
        flex-direction: column !important;
        align-items: stretch !important;
        row-gap: 16px; column-gap: 0;
    }
    .corevms-wrap #list-filters-container { max-width: 100% !important; width: 100% !important; }
    .corevms-wrap .inventory-vehicle-wrapper-grid {
        grid-template-columns: 1fr !important;
        grid-gap: 16px !important;
    }
    .corevms-wrap .grid .vehicle-image { height: 210px !important; }

    .corevms-wrap .cm-title-col, .corevms-wrap .cm-meta-col {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .corevms-wrap .header-vehicle-title-container, .corevms-wrap .cm-title {
        font-size: 1.6em !important; margin: 0 0 8px 0 !important;
    }
    .corevms-wrap .cm-price, .corevms-wrap .cm-miles {
        font-size: 1.3em !important; margin: 0 0 8px 0 !important;
    }
    .corevms-wrap .cm-price { border-right: 0 !important; padding-right: 0 !important; }
    .corevms-wrap .cm-miles { padding-left: 0 !important; }

    .corevms-wrap .cm-overview-wrap { flex-direction: column !important; gap: 14px !important; }
    .corevms-wrap .cm-overview-title-card { flex: 0 0 auto !important; width: 100% !important; }
    .corevms-wrap .cm-overview-card {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        row-gap: 12px !important; padding: 18px !important;
    }
    .corevms-wrap .cm-overview-item { padding: 2px 12px !important; }
    .corevms-wrap .cm-overview-item:not(:nth-child(2n + 1)) {
        border-left: 1px solid color-mix(in srgb,var(--cv-secondary) 18%,transparent) !important;
    }
    .corevms-wrap .cm-overview-item:not(:nth-child(4n + 1)) { border-left: 0 !important; }

    .corevms-wrap #cm-lower.cm-lower { grid-template-columns: 1fr !important; gap: 16px !important; }
}

@media (max-width: 700px) {
    .corevms-wrap #cm-image-area .swiper-per-view .swiper-wrapper {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        height: auto !important;
    }
    .corevms-wrap #cm-image-area .swiper-per-view .swiper-slide:nth-child(n) {
        grid-column: auto !important; grid-row: auto !important;
    }
    .corevms-wrap #cm-image-area .swiper-per-view .swiper-slide:nth-child(n+6) { display: none !important; }

    .corevms-wrap .cm-options-row { grid-template-columns: 1fr !important; }
    .corevms-wrap .cm-show-all { width: 100%; justify-content: center; }

    .corevms-wrap #cm-lease-card .corevms-lead-fields { grid-template-columns: 1fr !important; }
    .corevms-wrap #cm-lease-card button[type="submit"] { width: 100% !important; }

    .corevms-wrap [type="button"], .corevms-wrap [type="submit"], .corevms-wrap button { font-size: 1rem !important; }

    .corevms-wrap .cm-all-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .corevms-wrap .cm-all-images .cm-thumb img { height: 140px; }
}

@media (max-width: 1100px) {
    .corevms-wrap .cm-all-images { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .corevms-wrap #search-text { gap: 10px; }
    .corevms-wrap #search-text input { width: 100% !important; }
    .corevms-wrap #search-text button.text-search-button { width: 100% !important; }
}

/* ── Filter dropdowns (Carsmark-flavored selects) ── */
.corevms-wrap .search-content select {
    width: 100%;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif !important;
    border: 1px solid #ececec;
    border-radius: 0;
    padding: 10px 12px;
    background: #fff;
    color: var(--cv-primary);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231885C2' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}
.corevms-wrap .range-dropdown-container.search-dropdown select { flex: 1; min-width: 0; }

/* ── Carousel/slider shortcode (Carsmark-card style) ── */
.corevms-wrap .cm-slider-wrap {
    position: relative;
    padding: 0 50px;
    margin: 18px 0;
}
.corevms-wrap .cm-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}
.corevms-wrap .cm-slider-track::-webkit-scrollbar { display: none; }
.corevms-wrap .cm-slider-track .cm-slide {
    flex: 0 0 calc((100% - 60px) / 4);  /* default 4 columns minus 3 gaps of 20px */
    scroll-snap-align: start;
    border-radius: 0 0 30px 30px;
    background-color: var(--cv-surface-alt);
    overflow: hidden;
}
@media (max-width: 1100px) { .corevms-wrap .cm-slider-track .cm-slide { flex: 0 0 calc((100% - 40px) / 3); } }
@media (max-width: 800px)  { .corevms-wrap .cm-slider-track .cm-slide { flex: 0 0 calc((100% - 20px) / 2); } }
@media (max-width: 520px)  {
    .corevms-wrap .cm-slider-track .cm-slide { flex: 0 0 85%; }
    .corevms-wrap .cm-slider-wrap { padding: 0 36px; }
}
.corevms-wrap .cm-slider-track .vehicle-image { height: 200px; }

.corevms-wrap .cm-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: var(--cv-secondary) !important;
    background: linear-gradient(290deg, var(--cv-secondary) 0%, var(--cv-primary) 100%) !important;
    color: #fff !important;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px color-mix(in srgb,var(--cv-secondary) 25%,transparent);
}
.corevms-wrap .cm-slider-nav:hover { filter: brightness(1.1); }
.corevms-wrap .cm-slider-prev { left: 0; }
.corevms-wrap .cm-slider-next { right: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   v1.9.0 — Payment calculator, save/compare, trust, video, sticky call
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Payment calculator ── */
.corevms-wrap .cm-calc {
    background: var(--cv-surface-alt); border: 1px solid var(--cv-border); border-radius: 12px;
    padding: 20px; margin-bottom: 22px;
}
.corevms-wrap .cm-calc-title { margin: 0 0 14px; font-size: 1.15em; font-weight: 800; color: var(--cv-heading); }
.corevms-wrap .cm-calc-result { text-align: center; margin-bottom: 16px; }
.corevms-wrap .cm-calc-monthly { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.corevms-wrap .cm-calc-amount { font-size: 2.4em; font-weight: 900; color: var(--cv-primary); line-height: 1; }
.corevms-wrap .cm-calc-per { font-size: 1em; color: var(--cv-muted); font-weight: 600; }
.corevms-wrap .cm-calc-note { font-size: 11px; color: var(--cv-muted); margin-top: 6px; }
.corevms-wrap .cm-calc-fields { display: flex; flex-direction: column; gap: 14px; }
.corevms-wrap .cm-calc-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--cv-text); }
.corevms-wrap .cm-calc-field input[type="text"],
.corevms-wrap .cm-calc-field select {
    padding: 8px 10px; border: 1px solid var(--cv-border); border-radius: 8px; font-size: 14px; background: #fff;
}
.corevms-wrap .cm-calc-field input[type="range"] { width: 100%; accent-color: var(--cv-primary); }
.corevms-wrap .cm-calc-field output { font-weight: 800; color: var(--cv-primary); font-size: 14px; }
.corevms-wrap .cm-calc-cta {
    display: block; text-align: center; margin-top: 16px; padding: 12px;
    background: linear-gradient(135deg, var(--cv-secondary), var(--cv-primary)); color: #fff !important;
    border-radius: 8px; font-weight: 800; text-decoration: none;
}
.corevms-wrap .cm-calc-cta:hover { filter: brightness(1.08); }

/* ── Save / Compare buttons ── */
.corevms-wrap .cm-save-btn,
.corevms-wrap .cm-compare-btn {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    background: #fff; border: 1.5px solid var(--cv-border); border-radius: 8px;
    padding: 8px 14px; font-size: 14px; font-weight: 700; color: var(--cv-text);
    transition: all .15s;
}
.corevms-wrap .cm-save-btn:hover,
.corevms-wrap .cm-compare-btn:hover { border-color: var(--cv-primary); color: var(--cv-primary); }
.corevms-wrap .cm-save-heart { color: var(--cv-border); transition: color .15s; }
.corevms-wrap .cm-save-btn.is-saved { border-color: #B40101; color: #B40101; background: #fff5f5; }
.corevms-wrap .cm-save-btn.is-saved .cm-save-heart { color: #B40101; }
.corevms-wrap .cm-compare-btn.is-comparing { border-color: var(--cv-primary); color: var(--cv-primary); background: color-mix(in srgb,var(--cv-primary) 10%,var(--cv-card-bg)); }

/* ── Compare bar (sticky bottom) ── */
.corevms-wrap .cm-compare-bar {
    position: fixed; left: 0; right: 0; bottom: -80px; z-index: 9998;
    background: var(--cv-secondary); color: #fff; padding: 14px 20px;
    display: flex; align-items: center; justify-content: center; gap: 18px;
    transition: bottom .28s ease; box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}
.corevms-wrap .cm-compare-bar.is-visible { bottom: 0; }
.corevms-wrap .cm-compare-bar a { color: #fff; }
.corevms-wrap .cm-compare-go {
    background: var(--cv-primary); padding: 8px 18px; border-radius: 8px; font-weight: 800; text-decoration: none;
}
.corevms-wrap .cm-compare-clear { cursor: pointer; text-decoration: underline; font-size: 13px; opacity: .8; }

/* ── Trust badges ── */
.corevms-wrap .cm-trust-badges {
    display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0;
}
.corevms-wrap .cm-trust-badge {
    display: flex; align-items: center; gap: 8px;
    background: #f0f9f4; border: 1px solid #bbe6cd; border-radius: 8px;
    padding: 8px 14px; font-size: 13px; font-weight: 700; color: #166534;
}
.corevms-wrap .cm-trust-icon { font-size: 15px; }

/* ── Video walkaround ── */
.corevms-wrap .cm-video { margin: 22px 0; }
.corevms-wrap .cm-video-frame {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    border-radius: 12px; background: #000;
}
.corevms-wrap .cm-video-frame iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ── Sticky mobile call bar ── */
.corevms-sticky-call {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9997;
    background: var(--cv-primary); padding: 0;
}
.corevms-sticky-call a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px; color: #fff !important; font-weight: 800; font-size: 17px; text-decoration: none;
}
@media (max-width: 768px) {
    .corevms-sticky-call.is-active { display: block; }
    .corevms-wrap .cm-calc-amount { font-size: 2em; }
}

/* ── SRP mini save button ── */
.corevms-wrap .inventory-vehicle-image { position: relative; }
.corevms-wrap .cm-save-mini {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 38px; height: 38px; padding: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.92); border: none; box-shadow: 0 2px 6px rgba(0,0,0,.15);
    font-size: 18px;
}
.corevms-wrap .cm-save-mini .cm-save-heart { color: var(--cv-border); }
.corevms-wrap .cm-save-mini.is-saved { background: #fff; }
.corevms-wrap .cm-save-mini.is-saved .cm-save-heart { color: #B40101; }

/* ── 360 spin viewer (v2.0) — self-contained, additive ── */
.corevms-wrap .cm-spin { margin: 0 0 22px; user-select: none; }
.corevms-wrap .cm-spin-stage {
    position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--cv-surface-alt);
    border-radius: 12px; overflow: hidden; cursor: grab; touch-action: pan-y;
}
.corevms-wrap .cm-spin.is-dragging .cm-spin-stage { cursor: grabbing; }
.corevms-wrap .cm-spin-frame {
    width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
}
.corevms-wrap .cm-spin-hint {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
    background: color-mix(in srgb,var(--cv-secondary) 82%,transparent); color: #fff; padding: 8px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px;
    transition: opacity .3s; pointer-events: none;
}
.corevms-wrap .cm-spin-hint.is-hidden { opacity: 0; }
.corevms-wrap .cm-spin-hint-icon { font-size: 16px; }
.corevms-wrap .cm-spin-badge {
    position: absolute; top: 12px; left: 12px;
    background: linear-gradient(135deg, var(--cv-secondary), var(--cv-primary)); color: #fff;
    padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 900; letter-spacing: .04em;
}
.corevms-wrap .cm-spin-progress { height: 4px; background: var(--cv-border); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.corevms-wrap .cm-spin-progress-bar { height: 100%; width: 0; background: var(--cv-primary); transition: width .05s linear; }

/* ── SRP mini compare button ── */
.corevms-wrap .cm-compare-mini {
    position: absolute; top: 10px; right: 56px; z-index: 2;
    width: 38px; height: 38px; padding: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.92); border: none; box-shadow: 0 2px 6px rgba(0,0,0,.15);
    font-size: 16px; font-weight: 800; color: var(--cv-muted);
}
.corevms-wrap .cm-compare-mini.is-comparing { background: var(--cv-primary); color: #fff; }

/* ── Sold / Pending status badges (additive) ── */
.corevms-wrap .cm-status-badge {
    display: inline-block; font-weight: 900; font-size: 12px; letter-spacing: .05em;
    padding: 4px 12px; border-radius: 6px; text-transform: uppercase; color: #fff;
}
.corevms-wrap .inventory-vehicle-image .cm-status-badge {
    position: absolute; top: 10px; left: 10px; z-index: 3; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.corevms-wrap .cm-status-sold { background: #B40101; }
.corevms-wrap .cm-status-pending { background: #d97706; }
.corevms-wrap .cm-status-detail { font-size: 14px; padding: 6px 16px; margin-bottom: 10px; }

/* Dim sold vehicle thumbnails slightly so they read as unavailable */
.corevms-wrap .inventory-vehicle-container:has(.cm-status-sold) .vehicle-image { opacity: .82; }

/* ── Embedded / alternate forms ── */
.corevms-wrap .cm-embedded-form { margin-top: 4px; }
.corevms-wrap .cm-form-error { color: #B40101; font-size: 13px; font-style: italic; }

/* ─────────────────────────────────────────────────────────────────────────────
   CoreVMS 2.2 — modern interactive inventory results page
   Scoped to .carsmark-inventory so the VDP and other shortcodes keep their
   existing styles.
   ───────────────────────────────────────────────────────────────────────────── */
.carsmark-inventory {
    --cm-navy: var(--cv-secondary);
    --cm-blue: var(--cv-primary);
    --cm-blue-dark: color-mix(in srgb, var(--cv-primary) 82%, #000);
    --cm-blue-soft: color-mix(in srgb, var(--cv-primary) 11%, var(--cv-card-bg));
    --cm-ink: var(--cv-text);
    --cm-muted: var(--cv-muted);
    --cm-line: var(--cv-border);
    --cm-surface: var(--cv-card-bg);
    --cm-surface-soft: var(--cv-surface-alt);
    --cm-danger: var(--cv-danger);
    --cm-warning: #b54708;
    --cm-radius-sm: 10px;
    --cm-radius: 16px;
    --cm-radius-lg: 24px;
    --cm-shadow-sm: 0 2px 8px color-mix(in srgb,var(--cv-secondary) 6%,transparent);
    --cm-shadow: 0 14px 38px color-mix(in srgb,var(--cv-secondary) 10%,transparent);
    color: var(--cm-ink);
    background: var(--cm-surface-soft);
    font-family: 'Montserrat', sans-serif !important;
    overflow: clip;
}

.carsmark-inventory *,
.carsmark-inventory *::before,
.carsmark-inventory *::after {
    box-sizing: border-box;
}

.carsmark-inventory .cm-eyebrow {
    display: block;
    margin: 0 0 8px;
    color: var(--cm-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.carsmark-inventory .cm-hero-full {
    margin: 0 !important;
    padding: clamp(42px, 6vw, 82px) 24px !important;
    background:
        radial-gradient(circle at 88% 8%, color-mix(in srgb,var(--cv-primary) 20%,transparent), transparent 30%),
        linear-gradient(135deg, var(--cv-page-bg) 0%, var(--cv-surface-alt) 100%) !important;
    border-bottom: 1px solid color-mix(in srgb,var(--cv-secondary) 8%,transparent);
}

.carsmark-inventory .cm-hero-inner {
    width: 100%;
    max-width: 1480px !important;
    margin: 0 auto;
    padding: 0 !important;
}

.carsmark-inventory .cm-hero-title {
    max-width: 900px;
    margin: 0 !important;
    color: var(--cm-navy) !important;
    font-size: clamp(34px, 4vw, 58px) !important;
    font-weight: 800 !important;
    letter-spacing: -.045em;
    line-height: 1.03 !important;
}

.carsmark-inventory .cm-hero-subtitle {
    max-width: 780px;
    margin: 16px 0 0 !important;
    color: var(--cv-muted) !important;
    font-size: clamp(16px, 2vw, 22px) !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
}

.carsmark-inventory #cardealerpress-inventory {
    width: 100% !important;
    max-width: 1512px !important;
    margin: 0 auto !important;
    padding: 28px 16px 64px !important;
    background: transparent !important;
}

.carsmark-inventory .cm-inventory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 70px;
    margin: 0 0 16px;
    padding: 14px 16px;
    background: var(--cm-surface);
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    box-shadow: var(--cm-shadow-sm);
}

.carsmark-inventory .cm-toolbar-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.carsmark-inventory .cm-result-count {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    color: var(--cm-ink);
    font-size: 14px;
    font-weight: 600;
}

.carsmark-inventory .cm-result-count strong {
    color: var(--cm-navy);
    font-size: 21px;
    font-weight: 800;
}

.carsmark-inventory .cm-result-count span {
    width: 100%;
    color: var(--cm-muted);
    font-size: 12px;
    font-weight: 500;
}

.carsmark-inventory .cm-sort-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.carsmark-inventory .cm-sort-form label {
    margin: 0;
    color: var(--cm-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.carsmark-inventory .cm-control,
.carsmark-inventory input.cm-control,
.carsmark-inventory select.cm-control {
    width: 100% !important;
    min-height: 46px;
    margin: 0 !important;
    padding: 10px 13px !important;
    color: var(--cm-ink) !important;
    background: #fff !important;
    border: 1px solid var(--cv-border) !important;
    border-radius: var(--cm-radius-sm) !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.2;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.carsmark-inventory select.cm-control {
    appearance: auto;
    min-width: 220px;
}

.carsmark-inventory .cm-control:hover {
    border-color: var(--cv-border) !important;
}

.carsmark-inventory .cm-control:focus {
    border-color: var(--cm-blue) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb,var(--cv-primary) 12%,transparent) !important;
}

.carsmark-inventory .cm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.carsmark-inventory .cm-button:hover {
    transform: translateY(-1px);
}

.carsmark-inventory .cm-button-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--cm-navy), var(--cm-blue)) !important;
    box-shadow: 0 8px 18px color-mix(in srgb,var(--cv-primary) 20%,transparent);
}

.carsmark-inventory .cm-button-primary:hover {
    box-shadow: 0 11px 22px color-mix(in srgb,var(--cv-primary) 27%,transparent);
}

.carsmark-inventory .cm-button-secondary {
    color: var(--cm-navy) !important;
    background: #fff !important;
    border-color: var(--cv-border) !important;
}

.carsmark-inventory .cm-button-secondary:hover {
    border-color: var(--cm-blue) !important;
    background: var(--cm-blue-soft) !important;
}

.carsmark-inventory .cm-filter-open {
    display: none;
    flex: 0 0 auto;
}

.carsmark-inventory .cm-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    color: #fff;
    background: var(--cm-blue);
    border-radius: 999px;
    font-size: 11px;
}

.carsmark-inventory .cm-filter-button-icon,
.carsmark-inventory .cm-search-icon {
    position: relative;
    display: inline-block;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.carsmark-inventory .cm-filter-button-icon::before,
.carsmark-inventory .cm-filter-button-icon::after,
.carsmark-inventory .cm-search-icon::before,
.carsmark-inventory .cm-search-icon::after {
    content: '';
    position: absolute;
}

.carsmark-inventory .cm-filter-button-icon::before {
    inset: 2px 1px auto;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.carsmark-inventory .cm-filter-button-icon::after {
    top: 0;
    left: 5px;
    width: 3px;
    height: 16px;
    border-top: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(90deg);
    opacity: .001;
}

.carsmark-inventory .cm-active-filters {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0 4px;
}

.carsmark-inventory .cm-active-filters-label {
    flex: 0 0 auto;
    padding: 7px 0;
    color: var(--cm-muted);
    font-size: 12px;
    font-weight: 800;
}

.carsmark-inventory .cm-active-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.carsmark-inventory .cm-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 10px 6px 12px;
    color: var(--cm-navy) !important;
    background: #fff;
    border: 1px solid var(--cv-border);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    transition: border-color .18s ease, background .18s ease;
}

.carsmark-inventory .cm-active-filter:hover {
    border-color: var(--cm-blue);
    background: var(--cm-blue-soft);
}

.carsmark-inventory .cm-active-filter span:last-child {
    font-size: 17px;
    line-height: 1;
}

.carsmark-inventory .cm-clear-filters {
    align-self: center;
    padding: 7px 4px;
    color: var(--cm-blue) !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.carsmark-inventory #inventory-body-container {
    display: grid !important;
    grid-template-columns: 310px minmax(0, 1fr);
    align-items: start;
    gap: 24px !important;
    width: 100%;
}

.carsmark-inventory #inventory-body-container.cm-filter-position-right {
    grid-template-columns: minmax(0, 1fr) 310px;
}

.carsmark-inventory .cm-filter-position-right .cm-inventory-filters {
    grid-column: 2;
    grid-row: 1;
}

.carsmark-inventory .cm-filter-position-right .cm-inventory-results {
    grid-column: 1;
    grid-row: 1;
}

.carsmark-inventory #inventory-body-container.cm-filter-position-top {
    grid-template-columns: 1fr;
}

.carsmark-inventory .cm-filter-position-top .cm-inventory-filters,
.carsmark-inventory .cm-filter-position-top .cm-inventory-results {
    grid-column: 1;
}

.carsmark-inventory .cm-inventory-filters {
    position: sticky;
    top: 18px;
    width: 100%;
    min-width: 0;
    z-index: 9;
}

.carsmark-inventory #list-filters-container {
    all: unset;
}

.carsmark-inventory .cm-filter-form {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 18px 18px;
    overflow: hidden;
    color: var(--cm-ink);
    background: #fff;
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius-lg);
    box-shadow: var(--cm-shadow-sm);
}

.carsmark-inventory .cm-filter-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 0 -18px;
    padding: 21px 18px 17px;
    border-bottom: 1px solid var(--cm-line);
}

.carsmark-inventory .cm-filter-panel-head .cm-eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
}

.carsmark-inventory .cm-filter-panel-head h2 {
    margin: 0 !important;
    color: var(--cm-navy) !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.carsmark-inventory .cm-filter-close {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--cm-navy);
    background: var(--cm-surface-soft);
    border: 0;
    border-radius: 50%;
    font-family: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.carsmark-inventory .cm-filter-search {
    padding: 18px 0 8px;
}

.carsmark-inventory .cm-filter-search > label {
    display: block;
    margin: 0 0 8px;
    color: var(--cm-navy);
    font-size: 12px;
    font-weight: 800;
}

.carsmark-inventory .cm-search-field {
    position: relative;
}

.carsmark-inventory .cm-search-field .cm-control {
    padding-left: 40px !important;
}

.carsmark-inventory .cm-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    color: var(--cv-muted);
    transform: translateY(-50%);
}

.carsmark-inventory .cm-search-icon::before {
    top: 1px;
    left: 1px;
    width: 11px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.carsmark-inventory .cm-search-icon::after {
    right: 0;
    bottom: 1px;
    width: 7px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform: rotate(45deg);
    transform-origin: right center;
}

.carsmark-inventory .cm-filter-section {
    border-bottom: 1px solid var(--cm-line);
}

.carsmark-inventory .cm-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 14px 0;
    color: var(--cm-navy);
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.carsmark-inventory .cm-filter-toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    background: var(--cv-surface-alt);
}

.carsmark-inventory .cm-filter-toggle-icon::before,
.carsmark-inventory .cm-filter-toggle-icon::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 5px;
    width: 10px;
    height: 2px;
    background: var(--cm-navy);
    border-radius: 2px;
    transition: transform .18s ease;
}

.carsmark-inventory .cm-filter-toggle-icon::after {
    transform: rotate(90deg);
}

.carsmark-inventory .cm-filter-section.is-open .cm-filter-toggle-icon::after {
    transform: rotate(0deg);
}

.carsmark-inventory .cm-filter-body {
    display: none;
    padding: 0 0 17px;
}

.carsmark-inventory .cm-filter-section.is-open .cm-filter-body {
    display: block;
    animation: cmFilterReveal .18s ease both;
}

.carsmark-inventory .cm-filter-section.is-loading {
    opacity: .72;
}

@keyframes cmFilterReveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.carsmark-inventory .cm-segmented-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.carsmark-inventory .cm-segmented-filter label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.carsmark-inventory .cm-segmented-filter input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.carsmark-inventory .cm-segmented-filter span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--cv-text);
    background: var(--cv-card-bg);
    border: 1px solid var(--cv-border);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.carsmark-inventory .cm-segmented-filter span small {
    color: var(--cv-muted);
    font-size: 10px;
    font-weight: 700;
}

.carsmark-inventory .cm-segmented-filter input:checked + span {
    color: #fff;
    background: linear-gradient(135deg, var(--cm-navy), var(--cm-blue));
    border-color: transparent;
    box-shadow: 0 7px 16px color-mix(in srgb,var(--cv-primary) 18%,transparent);
}

.carsmark-inventory .cm-segmented-filter input:checked + span small {
    color: rgba(255,255,255,.76);
}

.carsmark-inventory .cm-range-filter {
    padding-top: 2px;
}

.carsmark-inventory .cm-range-readout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    margin-bottom: 7px;
    color: var(--cm-navy);
    background: var(--cm-blue-soft);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}

.carsmark-inventory .cm-range-separator {
    color: var(--cv-muted);
    font-weight: 600;
}

.carsmark-inventory .cm-range-track-wrap {
    position: relative;
    height: 30px;
    margin: 2px 7px 4px;
}

.carsmark-inventory .cm-range-track,
.carsmark-inventory .cm-range-fill {
    position: absolute;
    top: 14px;
    left: 0;
    height: 4px;
    border-radius: 999px;
    pointer-events: none;
}

.carsmark-inventory .cm-range-track {
    width: 100%;
    background: var(--cv-border);
}

.carsmark-inventory .cm-range-fill {
    z-index: 2;
    background: linear-gradient(90deg, var(--cm-blue), var(--cm-navy));
}

.carsmark-inventory .cm-range-slider {
    position: absolute;
    top: 4px;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    appearance: none;
    pointer-events: none;
    outline: none;
}

.carsmark-inventory .cm-range-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.carsmark-inventory .cm-range-slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -8px;
    background: #fff;
    border: 3px solid var(--cm-blue);
    border-radius: 50%;
    box-shadow: 0 2px 7px color-mix(in srgb,var(--cv-secondary) 22%,transparent);
    appearance: none;
    pointer-events: auto;
    cursor: grab;
}

.carsmark-inventory .cm-range-slider::-moz-range-track {
    height: 4px;
    background: transparent;
}

.carsmark-inventory .cm-range-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #fff;
    border: 3px solid var(--cm-blue);
    border-radius: 50%;
    box-shadow: 0 2px 7px color-mix(in srgb,var(--cv-secondary) 22%,transparent);
    pointer-events: auto;
    cursor: grab;
}

.carsmark-inventory .cm-range-slider:active::-webkit-slider-thumb {
    cursor: grabbing;
    box-shadow: 0 0 0 5px color-mix(in srgb,var(--cv-primary) 13%,transparent), 0 2px 7px color-mix(in srgb,var(--cv-secondary) 22%,transparent);
}

.carsmark-inventory .cm-range-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.carsmark-inventory .cm-range-inputs label {
    display: block;
    margin: 0;
}

.carsmark-inventory .cm-range-inputs label > span {
    display: block;
    margin: 0 0 5px;
    color: var(--cm-muted);
    font-size: 10px;
    font-weight: 700;
}

.carsmark-inventory .cm-range-inputs .cm-control {
    min-height: 40px;
    padding: 8px 9px !important;
    font-size: 12px !important;
}

.carsmark-inventory .cm-filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding-top: 18px;
}

.carsmark-inventory .cm-filter-actions .cm-button {
    min-height: 46px;
    padding-left: 14px;
    padding-right: 14px;
}

.carsmark-inventory .cm-filter-position-top .cm-filter-form {
    padding-bottom: 14px;
}

.carsmark-inventory .cm-filter-position-top .cm-filter-panel-head {
    align-items: center;
}

.carsmark-inventory .cm-filter-position-top .cm-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 0 18px;
}

.carsmark-inventory .cm-filter-position-top .cm-filter-panel-head,
.carsmark-inventory .cm-filter-position-top .cm-filter-actions {
    grid-column: 1 / -1;
}

.carsmark-inventory .cm-filter-position-top .cm-filter-search {
    align-self: end;
}

.carsmark-inventory .cm-filter-position-top .cm-filter-section {
    min-width: 0;
}

.carsmark-inventory .cm-filter-position-top .cm-filter-actions {
    display: flex;
    justify-content: flex-end;
}

.carsmark-inventory .cm-inventory-results {
    min-width: 0;
}

.carsmark-inventory .inventory-vehicle-wrapper-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--cvms-grid-columns, 3), minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 22px !important;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
}

.carsmark-inventory .grid.vehicle-container {
    min-width: 0;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.carsmark-inventory .inventory-vehicle-container {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cm-line) !important;
    border-radius: 18px !important;
    box-shadow: var(--cm-shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.carsmark-inventory .grid.vehicle-container:hover .inventory-vehicle-container {
    transform: translateY(-5px);
    border-color: var(--cv-border) !important;
    box-shadow: var(--cm-shadow);
}

.carsmark-inventory .inventory-vehicle-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cv-surface-alt);
}

.carsmark-inventory .cm-vehicle-photo-link {
    display: block;
    width: 100%;
    height: 100%;
}

.carsmark-inventory .grid .vehicle-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    background: var(--cv-surface-alt);
    border: 0 !important;
    opacity: .92;
    transform: scale(1.005);
    transition: transform .45s ease, opacity .25s ease;
}

.carsmark-inventory .inventory-vehicle-image.is-loaded .vehicle-image {
    opacity: 1;
}

.carsmark-inventory .grid.vehicle-container:hover .vehicle-image {
    transform: scale(1.045);
}

.carsmark-inventory .cm-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 96px);
}

.carsmark-inventory .inventory-vehicle-image .cm-status-badge {
    position: static !important;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px !important;
    color: #fff !important;
    background: color-mix(in srgb,var(--cv-secondary) 90%,transparent) !important;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.14);
    backdrop-filter: blur(7px);
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .06em;
    line-height: 1 !important;
    text-transform: uppercase;
}

.carsmark-inventory .inventory-vehicle-image .cm-status-sold {
    background: rgba(180, 35, 24, .92) !important;
}

.carsmark-inventory .inventory-vehicle-image .cm-status-pending {
    background: rgba(181, 71, 8, .93) !important;
}

.carsmark-inventory .inventory-vehicle-image .cm-status-featured {
    color: var(--cm-navy) !important;
    background: rgba(255,255,255,.94) !important;
}

.carsmark-inventory .inventory-vehicle-image .cm-status-class {
    background: color-mix(in srgb,var(--cv-primary) 92%,transparent) !important;
}

.carsmark-inventory .cm-card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: flex;
    gap: 7px;
}

.carsmark-inventory .cm-save-mini,
.carsmark-inventory .cm-compare-mini {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--cm-navy) !important;
    background: rgba(255,255,255,.93) !important;
    border: 1px solid rgba(255,255,255,.65) !important;
    border-radius: 50% !important;
    box-shadow: 0 5px 14px color-mix(in srgb,var(--cv-secondary) 18%,transparent);
    backdrop-filter: blur(7px);
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.carsmark-inventory .cm-save-mini:hover,
.carsmark-inventory .cm-compare-mini:hover {
    transform: translateY(-2px);
}

.carsmark-inventory .cm-save-mini .cm-save-heart {
    color: var(--cv-muted) !important;
    font-size: 17px;
}

.carsmark-inventory .cm-save-mini.is-saved .cm-save-heart {
    color: #d92d20 !important;
}

.carsmark-inventory .cm-compare-mini.is-comparing {
    color: #fff !important;
    background: var(--cm-blue) !important;
}

.carsmark-inventory .cm-photo-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 9px;
    color: #fff;
    background: color-mix(in srgb,var(--cv-secondary) 72%,transparent);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;
    backdrop-filter: blur(7px);
    font-size: 9px;
    font-weight: 700;
}

.carsmark-inventory .cm-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
}

.carsmark-inventory .cm-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.carsmark-inventory .cm-card-heading > div {
    min-width: 0;
}

.carsmark-inventory .cm-card-kicker {
    display: block;
    margin: 0 0 5px;
    color: var(--cm-blue);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.carsmark-inventory .inventory-vehicle-header {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--cm-navy) !important;
    background: transparent !important;
    font-size: clamp(16px, 1.35vw, 19px) !important;
    font-weight: 800 !important;
    letter-spacing: -.025em;
    line-height: 1.28 !important;
    text-align: left !important;
}

.carsmark-inventory .inventory-vehicle-header a {
    color: inherit !important;
    text-decoration: none !important;
}

.carsmark-inventory .inventory-vehicle-header a:hover {
    color: var(--cm-blue) !important;
}

.carsmark-inventory .cm-card-stock {
    flex: 0 0 auto;
    max-width: 92px;
    overflow: hidden;
    color: var(--cm-muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carsmark-inventory .cm-quick-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.carsmark-inventory .cm-quick-spec {
    min-width: 0;
    padding: 9px 10px;
    background: var(--cm-surface-soft);
    border: 1px solid var(--cv-border);
    border-radius: 10px;
}

.carsmark-inventory .cm-quick-spec span,
.carsmark-inventory .cm-quick-spec strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carsmark-inventory .cm-quick-spec span {
    margin-bottom: 3px;
    color: var(--cm-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.carsmark-inventory .cm-quick-spec strong {
    color: var(--cm-ink);
    font-size: 11px;
    font-weight: 700;
}

.carsmark-inventory .vehicle-information-attributes {
    display: block !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
}

.carsmark-inventory .vehicle-information-attributes .info-item {
    display: flex !important;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    width: 100% !important;
    min-width: 0;
    padding: 5px 0 !important;
    border-bottom: 1px dashed var(--cv-border);
}

.carsmark-inventory .vehicle-information-attributes .info-item:last-child {
    border-bottom: 0;
}

.carsmark-inventory .vehicle-information-attributes .info-label,
.carsmark-inventory .vehicle-information-attributes .info-value {
    font-size: 9px !important;
    line-height: 1.35 !important;
}

.carsmark-inventory .vehicle-information-attributes .info-label {
    flex: 0 0 auto;
    color: var(--cm-muted);
    font-weight: 700 !important;
}

.carsmark-inventory .vehicle-information-attributes .info-value {
    min-width: 0;
    overflow: hidden;
    color: var(--cv-text);
    font-weight: 600;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carsmark-inventory .cm-card-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
}

.carsmark-inventory .inventory-vehicle-pricing {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    text-align: left !important;
}

.carsmark-inventory .cm-price-label {
    margin-bottom: 3px;
    color: var(--cm-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.carsmark-inventory .cm-price {
    color: var(--cm-blue);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.carsmark-inventory .cm-price-call {
    font-size: 16px;
}

.carsmark-inventory .inventory-vehicle-pricing small {
    margin-top: 4px;
    color: var(--cm-muted);
    font-size: 9px;
    font-weight: 600;
}

.carsmark-inventory .cm-original-price {
    text-decoration: line-through;
}

.carsmark-inventory .cm-card-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 14px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--cm-navy), var(--cm-blue)) !important;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 7px 16px color-mix(in srgb,var(--cv-primary) 18%,transparent);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease;
}

.carsmark-inventory .cm-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px color-mix(in srgb,var(--cv-primary) 27%,transparent);
}

.carsmark-inventory .cm-inventory-state {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 340px;
    padding: 40px 24px;
    color: var(--cm-muted);
    background: #fff;
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius-lg);
    box-shadow: var(--cm-shadow-sm);
    text-align: center;
}

.carsmark-inventory .cm-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    color: var(--cm-blue);
    background: var(--cm-blue-soft);
    border-radius: 50%;
    font-size: 28px;
    font-weight: 800;
}

.carsmark-inventory .cm-inventory-state h2 {
    margin: 0 0 7px !important;
    color: var(--cm-navy) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
}

.carsmark-inventory .cm-inventory-state p {
    max-width: 540px;
    margin: 0 0 18px;
    color: var(--cm-muted);
}

.carsmark-inventory .cm-inventory-error .cm-state-icon {
    color: var(--cm-danger);
    background: #fff0ee;
}

.carsmark-inventory .cm-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--cm-line);
    border-radius: var(--cm-radius);
    box-shadow: var(--cm-shadow-sm);
}

.carsmark-inventory .cm-pagination-wrap > p {
    margin: 0;
    color: var(--cm-muted);
    font-size: 12px;
    font-weight: 700;
}

.carsmark-inventory .cm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.carsmark-inventory .cm-page-link,
.carsmark-inventory .cm-page-number,
.carsmark-inventory .cm-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    color: var(--cm-navy) !important;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none !important;
}

.carsmark-inventory .cm-page-link {
    gap: 6px;
}

.carsmark-inventory .cm-page-number:hover,
.carsmark-inventory .cm-page-link:hover {
    background: var(--cm-blue-soft);
    border-color: var(--cv-border);
}

.carsmark-inventory .cm-page-number.is-active {
    color: #fff !important;
    background: var(--cm-blue);
    border-color: var(--cm-blue);
}

.carsmark-inventory .cm-page-link.is-disabled {
    color: var(--cv-muted) !important;
    cursor: not-allowed;
}

.carsmark-inventory .cm-filter-backdrop {
    display: none;
}

body.corevms-filter-lock {
    overflow: hidden !important;
}

/* Keep the compare bar aligned with the redesigned SRP. */
.corevms-wrap .cm-compare-bar {
    border-radius: 14px 14px 0 0;
}

.corevms-wrap .cm-compare-clear {
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 1320px) {
    .carsmark-inventory .inventory-vehicle-wrapper-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .carsmark-inventory .cm-filter-position-top .cm-filter-form {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 980px) {
    .carsmark-inventory #cardealerpress-inventory {
        padding-top: 20px !important;
    }

    .carsmark-inventory .cm-filter-open {
        display: inline-flex;
    }

    .carsmark-inventory #inventory-body-container,
    .carsmark-inventory #inventory-body-container.cm-filter-position-right,
    .carsmark-inventory #inventory-body-container.cm-filter-position-top {
        display: block !important;
    }

    .carsmark-inventory .cm-inventory-filters {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100002;
        width: min(390px, 92vw);
        height: 100dvh;
        padding: 12px;
        overflow: hidden;
        transform: translateX(-105%);
        transition: transform .25s ease;
    }

    .carsmark-inventory .cm-filter-position-right .cm-inventory-filters {
        right: 0;
        left: auto;
        transform: translateX(105%);
    }

    .carsmark-inventory.cm-filters-open .cm-inventory-filters {
        transform: translateX(0);
    }

    .carsmark-inventory .cm-filter-form,
    .carsmark-inventory .cm-filter-position-top .cm-filter-form {
        display: block;
        height: calc(100dvh - 24px);
        padding-bottom: 92px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 20px;
        box-shadow: 0 24px 70px color-mix(in srgb,var(--cv-secondary) 30%,transparent);
    }

    .carsmark-inventory .cm-filter-panel-head {
        position: sticky;
        top: 0;
        z-index: 5;
        background: #fff;
    }

    .carsmark-inventory .cm-filter-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .carsmark-inventory .cm-filter-form {
        padding-bottom: 0;
    }

    .carsmark-inventory .cm-filter-actions,
    .carsmark-inventory .cm-filter-position-top .cm-filter-actions {
        position: sticky;
        bottom: 0;
        z-index: 6;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        margin: 18px -18px 0;
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.96);
        border-top: 1px solid var(--cm-line);
        backdrop-filter: blur(12px);
    }

    .carsmark-inventory .cm-filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 100001;
        display: block;
        visibility: hidden;
        background: color-mix(in srgb,var(--cv-secondary) 52%,transparent);
        opacity: 0;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .carsmark-inventory.cm-filters-open .cm-filter-backdrop {
        visibility: visible;
        opacity: 1;
    }
}

@media (max-width: 680px) {
    .carsmark-inventory .cm-hero-full {
        padding: 38px 18px !important;
    }

    .carsmark-inventory #cardealerpress-inventory {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .carsmark-inventory .cm-inventory-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .carsmark-inventory .cm-toolbar-summary {
        justify-content: space-between;
    }

    .carsmark-inventory .cm-result-count {
        justify-content: flex-end;
        text-align: right;
    }

    .carsmark-inventory .cm-sort-form {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        width: 100%;
    }

    .carsmark-inventory select.cm-control {
        min-width: 0;
    }

    .carsmark-inventory .cm-active-filters {
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
    }

    .carsmark-inventory .cm-active-filter-list {
        flex-wrap: nowrap;
        padding-bottom: 5px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .carsmark-inventory .cm-active-filter {
        flex: 0 0 auto;
    }

    .carsmark-inventory .inventory-vehicle-wrapper-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .carsmark-inventory .cm-card-content {
        padding: 16px;
    }

    .carsmark-inventory .cm-card-footer {
        grid-template-columns: 1fr;
    }

    .carsmark-inventory .cm-card-cta {
        width: 100%;
        min-height: 48px;
    }

    .carsmark-inventory .cm-pagination-wrap {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .carsmark-inventory .cm-pagination {
        flex-wrap: wrap;
    }

    .carsmark-inventory .cm-page-link span:not([aria-hidden="true"]) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carsmark-inventory *,
    .carsmark-inventory *::before,
    .carsmark-inventory *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CoreVMS 2.3 — list view, unified shortcodes and modernized VDP
   ═══════════════════════════════════════════════════════════════════════════ */

/* SRP view switcher */
.carsmark-inventory .cm-toolbar-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.carsmark-inventory .cm-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    background: var(--cv-surface-alt);
    border: 1px solid var(--cv-border);
    border-radius: 12px;
}

.carsmark-inventory .cm-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 11px;
    color: var(--cv-muted) !important;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.carsmark-inventory .cm-view-button:hover,
.carsmark-inventory .cm-view-button.is-active {
    color: var(--cm-navy) !important;
    background: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb,var(--cv-secondary) 8%,transparent);
}

.carsmark-inventory .cm-view-grid-icon,
.carsmark-inventory .cm-view-list-icon {
    display: grid;
    width: 15px;
    height: 15px;
    gap: 2px;
}

.carsmark-inventory .cm-view-grid-icon { grid-template-columns: repeat(2, 1fr); }
.carsmark-inventory .cm-view-list-icon { grid-template-rows: repeat(3, 1fr); }
.carsmark-inventory .cm-view-grid-icon i,
.carsmark-inventory .cm-view-list-icon i {
    display: block;
    background: currentColor;
    border-radius: 1px;
}

/* True horizontal list view */
.carsmark-inventory .inventory-vehicle-wrapper-grid.is-list-view {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
}

.carsmark-inventory .is-list-view .vehicle-container {
    min-width: 0;
}

.carsmark-inventory .is-list-view .inventory-vehicle-container {
    display: grid !important;
    grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
    min-height: 280px;
}

.carsmark-inventory .is-list-view .inventory-vehicle-image {
    min-height: 100%;
    aspect-ratio: auto;
    border-radius: 18px 0 0 18px;
}

.carsmark-inventory .is-list-view .cm-card-content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(190px, .65fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 26px;
    align-content: start;
    padding: 24px 26px;
}

.carsmark-inventory .is-list-view .cm-card-heading {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

.carsmark-inventory .is-list-view .inventory-vehicle-header {
    max-width: 820px;
    font-size: clamp(20px, 2vw, 27px) !important;
}

.carsmark-inventory .is-list-view .cm-card-kicker {
    font-size: 9px;
}

.carsmark-inventory .is-list-view .cm-quick-specs {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: start;
    margin-top: 14px;
}

.carsmark-inventory .is-list-view .vehicle-information-attributes {
    grid-column: 1;
    align-self: start;
    margin-top: 12px !important;
}

.carsmark-inventory .is-list-view .cm-card-footer {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 18px;
    margin: 0;
    padding: 18px 0 0 24px;
    border-left: 1px solid var(--cm-line);
}

.carsmark-inventory .is-list-view .inventory-vehicle-pricing {
    margin-top: auto !important;
}

.carsmark-inventory .is-list-view .cm-price {
    font-size: clamp(25px, 3vw, 34px);
}

.carsmark-inventory .is-list-view .cm-card-cta {
    width: 100%;
    min-height: 50px;
}

/* Unified featured slider shortcode */
.corevms-slider-shortcode {
    padding-block: 20px;
}

.corevms-slider-shortcode .cm-shortcode-heading {
    margin-bottom: 18px;
}

.corevms-slider-shortcode .cm-shortcode-title {
    margin: 4px 0 0 !important;
    color: var(--cm-navy) !important;
    font-size: clamp(25px, 3vw, 38px) !important;
    font-weight: 800 !important;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.corevms-slider-shortcode .cm-slider-wrap {
    position: relative;
    margin-inline: -8px;
    padding-inline: 8px;
}

.corevms-slider-shortcode .cm-slider-track {
    display: flex;
    gap: 18px;
    padding: 4px 2px 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.corevms-slider-shortcode .cm-slider-track::-webkit-scrollbar { display: none; }

.corevms-slider-shortcode .cm-slide {
    flex: 0 0 calc(var(--cm-slide-width) - 14px);
    min-width: 250px;
    scroll-snap-align: start;
}

.corevms-slider-shortcode .cm-slide .inventory-vehicle-container {
    height: 100%;
}

.corevms-slider-shortcode .cm-slider-nav {
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--cm-navy);
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--cm-line);
    border-radius: 50%;
    box-shadow: 0 10px 28px color-mix(in srgb,var(--cv-secondary) 14%,transparent);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, color .18s ease, background .18s ease;
}

.corevms-slider-shortcode .cm-slider-nav:hover {
    color: #fff;
    background: var(--cm-blue);
    transform: translateY(-2px);
}

/* Unified standalone search shortcode */
.corevms-search-shortcode {
    padding-block: 20px;
}

.corevms-search-shortcode .cm-search-shortcode-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 44px);
    background:
      radial-gradient(circle at 92% 0%, color-mix(in srgb,var(--cv-primary) 19%,transparent), transparent 34%),
      linear-gradient(135deg, var(--cv-secondary) 0%, color-mix(in srgb,var(--cv-secondary) 62%,var(--cv-primary)) 62%, var(--cv-primary) 100%);
    border-radius: 24px;
    box-shadow: 0 22px 55px color-mix(in srgb,var(--cv-secondary) 20%,transparent);
}

.corevms-search-shortcode .cm-search-shortcode-heading {
    max-width: 720px;
    margin-bottom: 22px;
}

.corevms-search-shortcode .cm-search-shortcode-heading .cm-eyebrow {
    color: color-mix(in srgb, var(--cv-primary) 42%, #fff);
}

.corevms-search-shortcode .cm-search-shortcode-heading h2 {
    margin: 5px 0 8px !important;
    color: #fff !important;
    font-size: clamp(27px, 4vw, 44px) !important;
    font-weight: 800 !important;
    letter-spacing: -.04em;
}

.corevms-search-shortcode .cm-search-shortcode-heading p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 14px;
}

.corevms-search-shortcode .cm-search-shortcode-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    align-items: end;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 18px;
    box-shadow: 0 12px 30px color-mix(in srgb,var(--cv-secondary) 14%,transparent);
}

.corevms-search-shortcode .corevms-search-field {
    min-width: 0;
}

.corevms-search-shortcode .corevms-search-field-wide {
    grid-column: span 2;
}

.corevms-search-shortcode .corevms-search-field label {
    display: block;
    margin: 0 0 6px;
    color: var(--cm-navy);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.corevms-search-shortcode .cm-search-input-wrap {
    position: relative;
}

.corevms-search-shortcode .cm-search-input-wrap .cm-control {
    padding-left: 38px !important;
}

.corevms-search-shortcode .cm-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    width: 13px;
    height: 13px;
    border: 2px solid var(--cv-muted);
    border-radius: 50%;
    transform: translateY(-58%);
}

.corevms-search-shortcode .cm-search-icon::after {
    content: '';
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 2px;
    background: var(--cv-muted);
    border-radius: 2px;
    transform: rotate(45deg);
}

.corevms-search-shortcode .corevms-search-submit .cm-button {
    width: 100%;
    min-height: 46px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CoreVMS 2.3.1 — restored CarsMark VDP with restrained visual polish
   The original page order and markup are intentionally preserved.
   ═══════════════════════════════════════════════════════════════════════════ */

.carsmark-detail {
    --cm-vdp-navy: var(--cv-secondary);
    --cm-vdp-blue: var(--cv-primary);
    --cm-vdp-soft: var(--cv-surface-alt);
    --cm-vdp-line: var(--cv-border);
    --cm-vdp-muted: var(--cv-muted);
    width: 100%;
    color: var(--cm-vdp-navy);
    font-family: 'Montserrat', sans-serif;
}

/* Keep the original CarsMark width and open page composition. */
.carsmark-detail .hedgehog-theme-wrapper {
    max-width: 1240px;
    padding: 22px 18px 58px;
}

.carsmark-detail .cm-back {
    margin-bottom: 8px;
    color: var(--cm-vdp-blue) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.carsmark-detail .cm-back:hover {
    color: var(--cm-vdp-navy) !important;
    text-decoration: none !important;
}

/* Original single title/price line, with only cleaner alignment and spacing. */
.carsmark-detail .detail-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 2px 10px !important;
    margin-bottom: 8px !important;
}

.carsmark-detail .cm-title-col {
    min-width: 0;
}

.carsmark-detail .cm-title {
    margin: 0 !important;
    color: var(--cm-vdp-navy) !important;
    font-size: clamp(30px, 4vw, 48px) !important;
    font-weight: 800 !important;
    letter-spacing: -.035em;
    line-height: 1.03 !important;
}

.carsmark-detail .cm-meta-col {
    flex: 0 0 auto;
    align-items: baseline !important;
    justify-content: flex-end;
    white-space: nowrap;
}

.carsmark-detail .cm-price,
.carsmark-detail .cm-miles {
    margin-bottom: 2px !important;
    color: var(--cm-vdp-navy) !important;
    font-weight: 500 !important;
}

.carsmark-detail .cm-price {
    font-size: clamp(25px, 3vw, 38px) !important;
}

.carsmark-detail .cm-miles {
    color: var(--cm-vdp-muted) !important;
    font-size: clamp(17px, 2vw, 23px) !important;
}

/* Retain the original lease pill, but make the surface slightly cleaner. */
.carsmark-detail > .hedgehog-theme-wrapper > .inventory-vehicle-pricing {
    margin: 10px 0 16px;
    padding: 16px 22px;
    background: var(--cm-vdp-soft);
    border: 1px solid var(--cm-vdp-line);
    border-radius: 999px;
    box-shadow: 0 7px 22px color-mix(in srgb,var(--cv-secondary) 5%,transparent);
}

/* Same action-bar position and controls as before. */
.carsmark-detail .cm-actions {
    gap: 9px;
    margin: 12px 0 18px;
}

.carsmark-detail .cm-actions a,
.carsmark-detail .cm-actions button {
    min-height: 40px;
    padding: 9px 14px;
    color: var(--cm-vdp-blue) !important;
    background: #fff !important;
    border: 1px solid var(--cm-vdp-line) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px color-mix(in srgb,var(--cv-secondary) 3.5%,transparent);
    font-size: 12px !important;
    font-weight: 700 !important;
}

.carsmark-detail .cm-actions a:hover,
.carsmark-detail .cm-actions button:hover,
.carsmark-detail .cm-actions .is-saved,
.carsmark-detail .cm-actions .is-comparing {
    color: #fff !important;
    background: var(--cm-vdp-navy) !important;
    border-color: var(--cm-vdp-navy) !important;
}

/* Preserve the exact five-image CarsMark mosaic. */
.carsmark-detail .cm-image-area {
    margin-top: 16px;
}

.carsmark-detail #cm-image-area .swiper-per-view .swiper-wrapper {
    gap: 10px;
    height: 510px;
}

.carsmark-detail #cm-image-area .swiper-per-view .swiper-slide {
    border: 1px solid color-mix(in srgb,var(--cv-secondary) 6%,transparent);
    border-radius: 14px;
    box-shadow: 0 5px 16px color-mix(in srgb,var(--cv-secondary) 4.5%,transparent);
}

.carsmark-detail .cm-show-all-images {
    padding: 11px 16px;
    color: var(--cm-vdp-blue) !important;
    background: #fff !important;
    border: 1px solid var(--cm-vdp-line) !important;
    border-radius: 10px;
    font-size: 14px !important;
}

/* Original Overview title card + details card remain side-by-side. */
.carsmark-detail .cm-overview-wrap {
    gap: 16px;
    margin: 22px 0;
}

.carsmark-detail .cm-overview-title-card,
.carsmark-detail .cm-overview-card {
    background: var(--cm-vdp-soft);
    border: 1px solid var(--cm-vdp-line);
    border-radius: 20px;
    box-shadow: 0 8px 25px color-mix(in srgb,var(--cv-secondary) 4.5%,transparent);
}

.carsmark-detail .cm-overview-title-card {
    flex-basis: 205px;
    padding: 25px 23px;
    font-size: 27px;
}

.carsmark-detail .cm-overview-card {
    padding: 23px 24px;
}

.carsmark-detail .cm-overview-label {
    color: var(--cm-vdp-navy);
    font-size: 13px;
}

.carsmark-detail .cm-overview-value {
    color: var(--cv-text);
    font-size: 14px;
}

/* Keep the original options heading/chips and show-all placement. */
.carsmark-detail .cm-options-title {
    font-size: 24px;
    letter-spacing: -.02em;
}

.carsmark-detail #cm-options .cm-options-chips .cm-chip {
    padding: 11px 17px !important;
    background: var(--cm-vdp-soft) !important;
    border: 1px solid var(--cm-vdp-line);
    border-radius: 11px !important;
    font-size: 13px !important;
}

.carsmark-detail .cm-show-all {
    padding: 10px 15px;
    background: #fff !important;
    border: 1px solid var(--cm-vdp-line) !important;
    border-radius: 10px;
    font-size: 13px !important;
}

/* Preserve the original details-left / calculator-and-form-right section. */
.carsmark-detail #cm-lower.cm-lower {
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    margin: 24px 0;
}

.carsmark-detail #cm-lower .cm-lease-details,
.carsmark-detail #cm-lower .cm-standard-equipment,
.carsmark-detail #cm-lower .cm-lease-card {
    padding: 24px;
    background: var(--cm-vdp-soft);
    border: 1px solid var(--cm-vdp-line);
    border-radius: 18px;
    box-shadow: 0 8px 25px color-mix(in srgb,var(--cv-secondary) 4.5%,transparent);
}

.carsmark-detail #cm-lower .cm-section-title {
    font-size: 24px;
    letter-spacing: -.025em;
}

.carsmark-detail #cm-description.cm-description {
    margin-top: 17px;
    color: var(--cv-muted);
    font-size: 14px;
    line-height: 1.7;
}

.carsmark-detail #cm-description.cm-description p {
    margin: 0 0 14px;
}

.carsmark-detail #cm-lease-card input[type="text"],
.carsmark-detail #cm-lease-card input[type="email"],
.carsmark-detail #cm-lease-card input[type="tel"],
.carsmark-detail #cm-lease-card select,
.carsmark-detail #cm-lease-card textarea {
    border-color: var(--cv-border) !important;
    border-radius: 10px !important;
}

.carsmark-detail #cm-lease-card button[type="submit"] {
    min-height: 48px;
    border-radius: 10px !important;
}

.carsmark-detail .cm-calc {
    background: #fff;
    border-color: var(--cm-vdp-line);
    border-radius: 12px;
}

/* The original inline similar-vehicle cards remain; this only adds polish. */
.carsmark-detail .hedgehog-theme-wrapper > div[style*="margin-top:32px"] > div[style*="display:grid"] > a {
    border: 1px solid var(--cm-vdp-line);
    border-radius: 14px !important;
    box-shadow: 0 8px 22px color-mix(in srgb,var(--cv-secondary) 5%,transparent);
    transition: transform .2s ease, box-shadow .2s ease;
}

.carsmark-detail .hedgehog-theme-wrapper > div[style*="margin-top:32px"] > div[style*="display:grid"] > a:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px color-mix(in srgb,var(--cv-secondary) 10%,transparent);
}

/* Responsive rules for the 2.3 SRP list view and unified shortcodes. */
@media (max-width: 1180px) {
    .corevms-search-shortcode .cm-search-shortcode-form {
        grid-template-columns: repeat(3, minmax(130px, 1fr));
    }
}

@media (max-width: 900px) {
    .carsmark-inventory .cm-toolbar-controls {
        width: 100%;
        justify-content: space-between;
    }

    .carsmark-inventory .is-list-view .inventory-vehicle-container {
        grid-template-columns: minmax(230px, 38%) minmax(0, 1fr);
    }

    .carsmark-inventory .is-list-view .cm-card-content {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .carsmark-inventory .is-list-view .cm-card-footer {
        width: 100%;
        margin-top: auto;
        padding: 18px 0 0;
        border-top: 1px solid var(--cm-line);
        border-left: 0;
    }

    .corevms-search-shortcode .cm-search-shortcode-form {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .carsmark-detail .detail-wrapper {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .carsmark-detail .cm-meta-col {
        justify-content: flex-start;
    }

    .carsmark-detail #cm-image-area .swiper-per-view .swiper-wrapper {
        height: 430px;
    }
}

@media (max-width: 680px) {
    .carsmark-inventory .cm-toolbar-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .carsmark-inventory .cm-view-toggle {
        align-self: flex-start;
    }

    .carsmark-inventory .cm-view-button span:last-child {
        display: none;
    }

    .carsmark-inventory .is-list-view .inventory-vehicle-container {
        display: block !important;
        min-height: 0;
    }

    .carsmark-inventory .is-list-view .inventory-vehicle-image {
        min-height: 0;
        aspect-ratio: 16 / 10;
        border-radius: 18px 18px 0 0;
    }

    .carsmark-inventory .is-list-view .cm-card-content {
        padding: 18px;
    }

    .carsmark-inventory .is-list-view .cm-card-footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 12px;
    }

    .carsmark-inventory .is-list-view .cm-card-cta {
        width: auto;
    }

    .corevms-slider-shortcode .cm-slide {
        flex-basis: min(84vw, 320px);
    }

    .corevms-slider-shortcode .cm-slider-nav {
        display: none;
    }

    .corevms-search-shortcode .cm-search-shortcode-shell {
        border-radius: 18px;
    }

    .corevms-search-shortcode .cm-search-shortcode-form {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .corevms-search-shortcode .corevms-search-field-wide {
        grid-column: auto;
    }

    .carsmark-detail .hedgehog-theme-wrapper {
        padding: 14px 10px 44px;
    }

    .carsmark-detail .cm-title {
        font-size: clamp(28px, 9vw, 37px) !important;
    }

    .carsmark-detail .cm-meta-col {
        flex-wrap: wrap;
        white-space: normal;
    }

    .carsmark-detail .cm-price {
        padding-left: 0 !important;
    }

    .carsmark-detail .cm-actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .carsmark-detail .cm-actions::-webkit-scrollbar {
        display: none;
    }

    .carsmark-detail .cm-actions a,
    .carsmark-detail .cm-actions button {
        flex: 0 0 auto;
    }

    /* One large image at a time on mobile, while keeping the same gallery. */
    .carsmark-detail #cm-image-area .swiper-per-view .swiper-wrapper {
        display: flex !important;
        height: 285px !important;
        gap: 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .carsmark-detail #cm-image-area .swiper-per-view .swiper-wrapper::-webkit-scrollbar {
        display: none;
    }

    .carsmark-detail #cm-image-area .swiper-per-view .swiper-slide:nth-child(n) {
        display: block !important;
        flex: 0 0 100%;
        width: 100% !important;
        height: 285px !important;
        scroll-snap-align: start;
    }

    .carsmark-detail .cm-overview-title-card,
    .carsmark-detail .cm-overview-card,
    .carsmark-detail #cm-lower .cm-lease-details,
    .carsmark-detail #cm-lower .cm-lease-card {
        border-radius: 15px;
    }

    .carsmark-detail .cm-overview-title-card {
        padding: 19px;
        font-size: 23px;
    }

    .carsmark-detail .cm-overview-card {
        padding: 16px !important;
    }

    .carsmark-detail #cm-options .cm-options-chips .cm-chip {
        padding: 10px 13px !important;
        margin-right: 6px !important;
        font-size: 12px !important;
    }

    .carsmark-detail #cm-lower .cm-lease-details,
    .carsmark-detail #cm-lower .cm-lease-card {
        padding: 19px;
    }
}

@media print {
    .carsmark-detail .cm-back,
    .carsmark-detail .cm-actions,
    .carsmark-detail .cm-gallery-actions,
    .corevms-sticky-call,
    .cm-compare-bar {
        display: none !important;
    }
}


/* ─────────────────────────────────────────────────────────────────────────────
   CoreVMS 2.4 — White-label Theme Studio
   Scoped CSS variables intentionally load last so the approved CarsMark markup
   remains intact while every major visual token can be changed in wp-admin.
   ───────────────────────────────────────────────────────────────────────────── */
.corevms-wrap.cvms-themed {
  font-family: var(--cv-font) !important; font-size:var(--cv-base-size); color:var(--cv-text); background:var(--cv-page-bg);
}
.corevms-wrap.cvms-themed *, .corevms-wrap.cvms-themed input, .corevms-wrap.cvms-themed select, .corevms-wrap.cvms-themed textarea, .corevms-wrap.cvms-themed button { font-family:var(--cv-font) !important; }
.corevms-wrap.cvms-themed h1,.corevms-wrap.cvms-themed h2,.corevms-wrap.cvms-themed h3,.corevms-wrap.cvms-themed h4,.corevms-wrap.cvms-themed .cm-title,.corevms-wrap.cvms-themed .cm-hero-title { font-family:var(--cv-heading-font),var(--cv-font) !important;color:var(--cv-heading);font-weight:var(--cv-heading-weight); }
.corevms-wrap.cvms-heading-uppercase h1,.corevms-wrap.cvms-heading-uppercase h2,.corevms-wrap.cvms-heading-uppercase h3,.corevms-wrap.cvms-heading-uppercase .cm-title { text-transform:uppercase;letter-spacing:.025em; }
.corevms-wrap.cvms-themed a { color:var(--cv-primary); }
.carsmark-inventory.cvms-themed #cardealerpress-inventory,.carsmark-detail.cvms-themed .hedgehog-theme-wrapper,.corevms-slider-shortcode.cvms-themed,.corevms-search-shortcode.cvms-themed { max-width:var(--cv-max-width); }

/* Hero */
.carsmark-inventory.cvms-themed .cm-hero-full { background:linear-gradient(125deg,var(--cv-secondary),var(--cv-primary)); color:var(--cv-button-text); }
.carsmark-inventory.cvms-hero-solid .cm-hero-full { background:var(--cv-secondary); }
.carsmark-inventory.cvms-hero-minimal .cm-hero-full { background:var(--cv-page-bg); border:1px solid var(--cv-border); box-shadow:none; }
.carsmark-inventory.cvms-hero-minimal .cm-hero-title { color:var(--cv-heading); }
.carsmark-inventory.cvms-hero-minimal .cm-hero-subtitle { color:var(--cv-muted); }
.carsmark-inventory.cvms-hero-hidden .cm-hero-full { display:none; }
.carsmark-inventory.cvms-hero-align-center .cm-hero-inner { text-align:center; margin-inline:auto; }
.corevms-wrap.cvms-hide-eyebrow .cm-eyebrow { display:none; }
.corevms-wrap.cvms-themed .cm-eyebrow,.corevms-wrap.cvms-themed .cm-card-kicker { color:var(--cv-primary); }

/* Surfaces, filters, controls */
.carsmark-inventory.cvms-themed .cm-inventory-toolbar,.carsmark-inventory.cvms-themed .cm-active-filters,.corevms-search-shortcode.cvms-themed .cm-search-shortcode-shell { background:var(--cv-card-bg); border-color:var(--cv-border); border-radius:var(--cv-radius); }
.carsmark-inventory.cvms-themed .cm-inventory-filters,.carsmark-inventory.cvms-themed #list-filters-container { width:var(--cv-filter-width); max-width:var(--cv-filter-width); background:var(--cv-filter-bg) !important; border-color:var(--cv-border); border-radius:var(--cv-radius); }
.corevms-wrap.cvms-themed .cm-control,.corevms-wrap.cvms-themed input[type=text],.corevms-wrap.cvms-themed input[type=email],.corevms-wrap.cvms-themed input[type=tel],.corevms-wrap.cvms-themed input[type=number],.corevms-wrap.cvms-themed input[type=search],.corevms-wrap.cvms-themed select,.corevms-wrap.cvms-themed textarea { background:var(--cv-card-bg) !important;color:var(--cv-text) !important;border-color:var(--cv-border) !important;border-radius:var(--cv-control-radius) !important; }
.corevms-wrap.cvms-themed input:focus,.corevms-wrap.cvms-themed select:focus,.corevms-wrap.cvms-themed textarea:focus { border-color:var(--cv-primary) !important; box-shadow:0 0 0 3px color-mix(in srgb,var(--cv-primary) 18%,transparent) !important; outline:0; }
.carsmark-inventory.cvms-themed .search-side details summary { background:var(--cv-secondary);color:var(--cv-button-text);border-radius:var(--cv-control-radius); }
.carsmark-inventory.cvms-filters-minimal .cm-inventory-filters,.carsmark-inventory.cvms-filters-minimal #list-filters-container { background:transparent!important;border:0;box-shadow:none; }
.carsmark-inventory.cvms-filters-minimal .search-side details summary { background:transparent;color:var(--cv-heading);border-bottom:1px solid var(--cv-border);border-radius:0;padding-inline:0; }
.carsmark-inventory.cvms-filters-dark .cm-inventory-filters,.carsmark-inventory.cvms-filters-dark #list-filters-container { background:var(--cv-secondary)!important;color:var(--cv-button-text); }
.carsmark-inventory.cvms-filters-dark .search-side details summary { background:color-mix(in srgb,var(--cv-secondary) 75%,#fff 25%); }
.carsmark-inventory.cvms-filters-dark .cm-filter-heading,.carsmark-inventory.cvms-filters-dark .cm-filter-label { color:var(--cv-button-text); }

/* Buttons */
.corevms-wrap.cvms-themed .cm-button-primary,.corevms-wrap.cvms-themed .cm-card-primary-action,.corevms-wrap.cvms-themed .cm-search-submit,.corevms-wrap.cvms-themed button[type=submit],.corevms-wrap.cvms-themed .inventory-vehicle-button a,.corevms-wrap.cvms-themed #search-text button.text-search-button,.corevms-wrap.cvms-themed .cm-compare-go { border-radius:var(--cv-button-radius)!important;font-weight:var(--cv-button-weight)!important;background:linear-gradient(135deg,var(--cv-secondary),var(--cv-primary))!important;color:var(--cv-button-text)!important;border:1px solid transparent!important; }
.corevms-wrap.cvms-buttons-solid .cm-button-primary,.corevms-wrap.cvms-buttons-solid .cm-card-primary-action,.corevms-wrap.cvms-buttons-solid .cm-search-submit,.corevms-wrap.cvms-buttons-solid button[type=submit],.corevms-wrap.cvms-buttons-solid .inventory-vehicle-button a { background:var(--cv-primary)!important; }
.corevms-wrap.cvms-buttons-outline .cm-button-primary,.corevms-wrap.cvms-buttons-outline .cm-card-primary-action,.corevms-wrap.cvms-buttons-outline .cm-search-submit,.corevms-wrap.cvms-buttons-outline button[type=submit],.corevms-wrap.cvms-buttons-outline .inventory-vehicle-button a { background:transparent!important;color:var(--cv-primary)!important;border-color:var(--cv-primary)!important; }
.corevms-wrap.cvms-buttons-square .cm-button-primary,.corevms-wrap.cvms-buttons-square .cm-card-primary-action,.corevms-wrap.cvms-buttons-square .cm-search-submit,.corevms-wrap.cvms-buttons-square button[type=submit],.corevms-wrap.cvms-buttons-square .inventory-vehicle-button a { border-radius:4px!important;background:var(--cv-primary)!important;text-transform:uppercase;letter-spacing:.04em; }
.corevms-wrap.cvms-themed .cm-button-secondary,.corevms-wrap.cvms-themed .cm-view-button,.corevms-wrap.cvms-themed .cm-actions a,.corevms-wrap.cvms-themed .cm-actions button { border-color:var(--cv-border);color:var(--cv-heading);background:var(--cv-card-bg);border-radius:var(--cv-button-radius);font-weight:var(--cv-button-weight); }
.corevms-wrap.cvms-themed .cm-view-button.is-active,.corevms-wrap.cvms-themed .cm-actions .is-saved,.corevms-wrap.cvms-themed .cm-actions .is-comparing { background:var(--cv-primary);color:var(--cv-button-text);border-color:var(--cv-primary); }

/* Inventory layout/cards */
.carsmark-inventory.cvms-themed #inventory-body-container { gap:var(--cv-grid-gap); }
.carsmark-inventory.cvms-themed .inventory-vehicle-wrapper-grid { grid-gap:var(--cv-grid-gap); }
.carsmark-inventory.cvms-themed .grid.vehicle-container { border-radius:var(--cv-card-radius)!important;background:var(--cv-surface-alt)!important;box-shadow:var(--cv-card-shadow);border:1px solid transparent!important;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease; }
.carsmark-inventory.cvms-card-bordered .grid.vehicle-container { background:var(--cv-card-bg)!important;border-color:var(--cv-border)!important;box-shadow:none; }
.carsmark-inventory.cvms-card-elevated .grid.vehicle-container { background:var(--cv-card-bg)!important;border-color:transparent!important;box-shadow:var(--cv-card-shadow); }
.carsmark-inventory.cvms-card-flat .grid.vehicle-container { background:transparent!important;border:0!important;box-shadow:none; }
.carsmark-inventory.cvms-themed .inventory-vehicle-image { background:var(--cv-surface-alt);border-radius:var(--cv-card-radius) var(--cv-card-radius) 0 0;overflow:hidden;aspect-ratio:var(--cv-image-ratio); }
.carsmark-inventory.cvms-themed .inventory-vehicle-image img,.carsmark-inventory.cvms-themed .vehicle-image { width:100%;height:100%!important;object-fit:cover; }
.carsmark-inventory.cvms-images-contain .inventory-vehicle-image img,.carsmark-inventory.cvms-images-contain .vehicle-image { object-fit:contain;background:var(--cv-card-bg); }
.carsmark-inventory.cvms-themed .cm-card-content { padding:var(--cv-card-padding); }
.carsmark-inventory.cvms-themed .inventory-vehicle-title,.carsmark-inventory.cvms-themed .cm-card-heading h2,.carsmark-inventory.cvms-themed .cm-card-heading h3 { color:var(--cv-heading)!important; }
.carsmark-inventory.cvms-themed .cm-price-label,.carsmark-inventory.cvms-themed .cm-card-stock,.carsmark-inventory.cvms-themed .cm-quick-spec span:first-child { color:var(--cv-muted); }
.carsmark-inventory.cvms-themed .cm-card-price,.carsmark-inventory.cvms-themed .price-asking_price,.carsmark-inventory.cvms-themed .cm-card-footer strong { color:var(--cv-primary)!important; }
.carsmark-inventory.cvms-hover-lift .grid.vehicle-container:hover { transform:translateY(-6px);box-shadow:0 18px 42px color-mix(in srgb,var(--cv-secondary) 20%,transparent); }
.carsmark-inventory.cvms-hover-zoom .grid.vehicle-container:hover .vehicle-image { transform:scale(1.055); }
.carsmark-inventory.cvms-hover-zoom .vehicle-image { transition:transform .35s ease; }
.carsmark-inventory.cvms-hover-glow .grid.vehicle-container:hover { border-color:var(--cv-primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--cv-primary) 20%,transparent),var(--cv-card-shadow); }
.carsmark-inventory.cvms-hover-none .grid.vehicle-container:hover { transform:none!important;box-shadow:var(--cv-card-shadow); }
.carsmark-inventory.cvms-specs-inline .cm-quick-specs { display:flex;flex-wrap:wrap;gap:8px 16px; }.carsmark-inventory.cvms-specs-inline .cm-quick-spec{display:inline-flex;gap:5px;width:auto;}
.carsmark-inventory.cvms-specs-compact .cm-quick-specs { gap:4px; }.carsmark-inventory.cvms-specs-compact .cm-quick-spec{font-size:11px;padding:4px 6px;background:var(--cv-card-bg);border-radius:6px;}
.carsmark-inventory.cvms-themed .inventory-vehicle-wrapper-grid.is-list-view .inventory-vehicle-image { width:var(--cv-list-image-width);min-width:var(--cv-list-image-width);aspect-ratio:4/3;border-radius:var(--cv-card-radius) 0 0 var(--cv-card-radius); }
.corevms-wrap.cvms-themed .cm-status-featured { background:var(--cv-accent);color:#fff; }.corevms-wrap.cvms-themed .cm-status-sold{background:var(--cv-danger);}.corevms-wrap.cvms-themed .cm-status-pending{background:var(--cv-accent);}.corevms-wrap.cvms-themed .cm-status-class{background:var(--cv-secondary);color:var(--cv-button-text);}
.corevms-wrap.cvms-themed .cm-photo-count { background:color-mix(in srgb,var(--cv-secondary) 84%,transparent);color:#fff; }
.corevms-wrap.cvms-themed .cm-active-filter,.corevms-wrap.cvms-themed .cm-chip { background:color-mix(in srgb,var(--cv-primary) 10%,var(--cv-card-bg));color:var(--cv-primary);border-color:color-mix(in srgb,var(--cv-primary) 25%,var(--cv-border)); }
.corevms-wrap.cvms-themed .cm-page-number.is-active { background:var(--cv-primary);color:var(--cv-button-text);border-color:var(--cv-primary); }

/* Density */
.corevms-wrap.cvms-density-compact .cm-inventory-toolbar,.corevms-wrap.cvms-density-compact .cm-card-content,.corevms-wrap.cvms-density-compact .cm-search-shortcode-shell { padding:14px!important; }
.corevms-wrap.cvms-density-spacious .cm-inventory-toolbar,.corevms-wrap.cvms-density-spacious .cm-search-shortcode-shell { padding:28px!important; }

/* VDP: original hierarchy, configurable presentation */
.carsmark-detail.cvms-themed { background:var(--cv-page-bg);color:var(--cv-text); }
.carsmark-detail.cvms-themed .hedgehog-theme-wrapper { padding:var(--cv-section-padding); }
.carsmark-detail.cvms-themed .cm-back { color:var(--cv-primary); }
.carsmark-detail.cvms-themed .detail-wrapper,.carsmark-detail.cvms-themed .cm-overview-title-card,.carsmark-detail.cvms-themed .cm-overview-card,.carsmark-detail.cvms-themed #cm-lower .cm-lease-details,.carsmark-detail.cvms-themed #cm-lower .cm-lease-card { background:var(--cv-card-bg);border-color:var(--cv-border);border-radius:var(--cv-card-radius);box-shadow:var(--cv-card-shadow); }
.carsmark-detail.cvms-themed .cm-title,.carsmark-detail.cvms-themed .cm-section-title,.carsmark-detail.cvms-themed .cm-overview-title-card,.carsmark-detail.cvms-themed .cm-options-title { color:var(--cv-heading)!important; }
.carsmark-detail.cvms-themed .cm-price,.carsmark-detail.cvms-themed .cm-overview-value { color:var(--cv-primary)!important; }
.carsmark-detail.cvms-themed .cm-miles,.carsmark-detail.cvms-themed .cm-overview-label,.carsmark-detail.cvms-themed .cm-description { color:var(--cv-muted); }
.carsmark-detail.cvms-themed .cm-image-area,.carsmark-detail.cvms-themed #cm-image-area .swiper-per-view .swiper-slide { border-radius:var(--cv-image-radius);overflow:hidden; }
.carsmark-detail.cvms-themed #cm-image-area img { object-fit:cover; }.carsmark-detail.cvms-images-contain #cm-image-area img{object-fit:contain;background:var(--cv-card-bg);}
.carsmark-detail.cvms-gallery-large #cm-image-area .swiper-per-view .swiper-wrapper { grid-template-columns:2fr repeat(4,1fr);grid-template-rows:repeat(2,minmax(150px,1fr)); }
.carsmark-detail.cvms-gallery-large #cm-image-area .swiper-slide:first-child { grid-column:1;grid-row:1 / span 2; }
.carsmark-detail.cvms-gallery-single #cm-image-area .swiper-per-view .swiper-wrapper { display:block; }.carsmark-detail.cvms-gallery-single #cm-image-area .swiper-slide{display:none!important;}.carsmark-detail.cvms-gallery-single #cm-image-area .swiper-slide:first-child{display:block!important;aspect-ratio:16/8;}
.carsmark-detail.cvms-vdp-form_details #cm-lower .cm-lease-card { order:-1; }
.carsmark-detail.cvms-sections-separated .detail-wrapper,.carsmark-detail.cvms-sections-separated .cm-overview-title-card,.carsmark-detail.cvms-sections-separated .cm-overview-card,.carsmark-detail.cvms-sections-separated #cm-lower .cm-lease-details,.carsmark-detail.cvms-sections-separated #cm-lower .cm-lease-card { border-radius:0;box-shadow:none;border-width:0 0 1px;background:transparent; }
.carsmark-detail.cvms-sections-flat .detail-wrapper,.carsmark-detail.cvms-sections-flat .cm-overview-title-card,.carsmark-detail.cvms-sections-flat .cm-overview-card,.carsmark-detail.cvms-sections-flat #cm-lower .cm-lease-details,.carsmark-detail.cvms-sections-flat #cm-lower .cm-lease-card { border:0;box-shadow:none;background:transparent;padding-inline:0; }
.carsmark-detail.cvms-actions-square .cm-actions a,.carsmark-detail.cvms-actions-square .cm-actions button { border-radius:4px; }
.carsmark-detail.cvms-actions-minimal .cm-actions a,.carsmark-detail.cvms-actions-minimal .cm-actions button { border:0;background:transparent;padding-inline:5px;color:var(--cv-primary);box-shadow:none; }
.carsmark-detail.cvms-themed .cm-overview-card { grid-template-columns:repeat(var(--cv-overview-columns,4),minmax(0,1fr)); }
.carsmark-detail.cvms-themed .cm-lower { gap:var(--cv-section-gap); }
.carsmark-detail.cvms-themed .corevms-sticky-call a,.corevms-sticky-call a { background:var(--cv-primary);color:var(--cv-button-text); }

/* Slider/search/compare/saved inherit the same brand tokens */
.corevms-slider-shortcode.cvms-themed .cm-shortcode-title,.corevms-search-shortcode.cvms-themed h2,.corevms-wrap.cvms-themed .cm-compare-heading,.corevms-wrap.cvms-themed .cm-saved-heading { color:var(--cv-heading); }
.corevms-slider-shortcode.cvms-themed .cm-slider-nav { background:var(--cv-secondary);color:var(--cv-button-text); }
.corevms-wrap.cvms-themed .cm-compare-table,.corevms-wrap.cvms-themed .cm-saved-empty { background:var(--cv-card-bg);border-color:var(--cv-border);border-radius:var(--cv-card-radius); }

@media (max-width:900px){
  .carsmark-inventory.cvms-themed .inventory-vehicle-wrapper-grid.is-list-view .inventory-vehicle-image{width:100%;min-width:0;border-radius:var(--cv-card-radius) var(--cv-card-radius) 0 0;}
  .carsmark-inventory.cvms-themed .cm-inventory-filters{width:min(92vw,var(--cv-filter-width));max-width:min(92vw,var(--cv-filter-width));}
  .carsmark-detail.cvms-themed .cm-overview-card{grid-template-columns:repeat(2,minmax(0,1fr));}
}

.corevms-wrap.cvms-themed .cm-dealer-logo { display:block;max-width:190px;max-height:70px;width:auto;height:auto;object-fit:contain;margin:0 0 12px; }
.corevms-wrap.cvms-themed .cm-dealer-logo-hero { filter:drop-shadow(0 4px 12px rgba(0,0,0,.16)); }
.carsmark-inventory.cvms-hero-minimal .cm-dealer-logo-hero { filter:none; }
.corevms-wrap.cvms-themed .cm-compare-bar { background:var(--cv-secondary);color:var(--cv-button-text);border-color:var(--cv-border);border-radius:var(--cv-button-radius); }

.corevms-counter.cvms-themed { display:inline-flex;align-items:baseline;gap:.35em;background:transparent!important;color:var(--cv-text); }
.corevms-counter.cvms-themed strong { color:var(--cv-primary);font-weight:var(--cv-heading-weight); }
.corevms-brand-counter.cvms-themed { color:var(--cv-text);font-weight:var(--cv-heading-weight);text-decoration:none; }
.corevms-brand-counter.cvms-themed:hover,
.corevms-brand-counter.cvms-themed:focus { color:var(--cv-primary);text-decoration:underline; }
.corevms-brand-counter .corevms-counter-total { color:inherit; }

/* ═══════════════════════════════════════════════════════════════
   CoreVMS 2.5 — dealer-aware pricing displays
   ═══════════════════════════════════════════════════════════════ */
.carsmark-inventory .cvms-price-display { width:100%; }
.carsmark-inventory .cm-card-footer.cvms-no-cta { grid-template-columns:1fr; }
.carsmark-inventory .cm-original-price span { text-decoration:none; margin-right:3px; }

.carsmark-inventory .cvms-payment-pair {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    width:100%;
    padding:10px;
    background:var(--cv-card-bg);
    border:1px solid var(--cv-border);
    border-radius:var(--cv-control-radius,12px);
}
.carsmark-inventory .cvms-payment-pair > div { min-width:0; text-align:center; }
.carsmark-inventory .cvms-payment-pair strong {
    display:block;
    color:var(--cv-primary)!important;
    font-size:clamp(18px,2vw,24px);
    font-weight:900;
    line-height:1.05;
}
.carsmark-inventory .cvms-payment-pair span {
    display:block;
    margin-top:4px;
    color:var(--cv-muted);
    font-size:9px;
    font-weight:700;
    line-height:1.25;
}
.carsmark-inventory .cvms-breakdown-summary { margin-bottom:8px; }
.carsmark-inventory .cvms-breakdown-summary strong {
    display:block;
    color:var(--cv-primary)!important;
    font-size:clamp(21px,2vw,28px);
    font-weight:900;
    line-height:1;
}
.carsmark-inventory .cvms-breakdown-summary span {
    display:block;
    margin-top:3px;
    color:var(--cv-muted);
    font-size:9px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.corevms-wrap .cvms-price-breakdown { display:grid; gap:4px; width:100%; margin:0; }
.corevms-wrap .cvms-price-breakdown > div { display:flex; justify-content:space-between; gap:12px; margin:0; }
.corevms-wrap .cvms-price-breakdown dt,
.corevms-wrap .cvms-price-breakdown dd { margin:0; font-size:10px; line-height:1.35; }
.corevms-wrap .cvms-price-breakdown dt { color:var(--cv-muted); font-weight:600; }
.corevms-wrap .cvms-price-breakdown dd { color:var(--cv-heading); font-weight:800; text-align:right; }
.corevms-wrap .cvms-price-breakdown .is-total { margin-top:3px; padding-top:5px; border-top:1px solid var(--cv-border); }
.corevms-wrap .cvms-price-breakdown .is-total dt,
.corevms-wrap .cvms-price-breakdown .is-total dd { color:var(--cv-heading); font-weight:900; }

.carsmark-inventory .is-list-view .cvms-payment-pair { padding:14px; }
.carsmark-inventory .is-list-view .cvms-price-breakdown dt,
.carsmark-inventory .is-list-view .cvms-price-breakdown dd { font-size:11px; }

.carsmark-detail .cvms-vdp-price-caption,
.carsmark-detail .cvms-vdp-was {
    margin-top:3px;
    color:var(--cv-muted);
    font-size:12px;
    font-weight:700;
    text-align:right;
}
.carsmark-detail .cvms-vdp-was { text-decoration:line-through; }
.carsmark-detail .cvms-vdp-was span { text-decoration:none; }
.carsmark-detail .cm-price-call { white-space:normal; text-align:right; }
.carsmark-detail > .hedgehog-theme-wrapper > .cvms-vdp-pricing-panel {
    display:flex!important;
    align-items:center;
    flex-wrap:wrap;
    gap:12px 28px;
    margin:10px 0 16px;
    padding:16px 22px!important;
    background:var(--cv-surface-alt)!important;
    border:1px solid var(--cv-border)!important;
    border-radius:var(--cv-card-radius,18px)!important;
    box-shadow:var(--cv-card-shadow,0 7px 22px color-mix(in srgb,var(--cv-secondary) 5%,transparent));
    color:var(--cv-heading);
}
.carsmark-detail .cvms-vdp-pricing-panel .price-sale_price { margin-left:0; }
.carsmark-detail .cvms-vdp-pricing-panel .label { color:var(--cv-heading); }
.carsmark-detail .cvms-vdp-pricing-panel .cvms-payment-disclaimer { flex-basis:100%; color:var(--cv-muted); font-size:10px; }
.carsmark-detail .cvms-vdp-pricing-panel.cvms-price-mode-breakdown { display:block!important; max-width:560px; }
.carsmark-detail .cvms-breakdown-title { display:block; margin-bottom:9px; color:var(--cv-heading); font-size:14px; }
.carsmark-detail .cvms-vdp-pricing-panel .cvms-price-breakdown { gap:6px; }
.carsmark-detail .cvms-vdp-pricing-panel .cvms-price-breakdown dt,
.carsmark-detail .cvms-vdp-pricing-panel .cvms-price-breakdown dd { font-size:13px; }

@media (max-width:720px) {
    .carsmark-inventory .cvms-payment-pair { gap:5px; padding:8px; }
    .carsmark-inventory .cvms-payment-pair strong { font-size:18px; }
    .carsmark-detail .cvms-vdp-price-caption,.carsmark-detail .cvms-vdp-was { text-align:left; }
    .carsmark-detail .cm-price-call { text-align:left; }
    .carsmark-detail > .hedgehog-theme-wrapper > .cvms-vdp-pricing-panel { align-items:flex-start; border-radius:14px!important; padding:14px!important; }
}

/* CoreVMS 2.6 — per-vehicle dealer location display */
.corevms-wrap .cm-card-location {
  display:flex; align-items:center; gap:8px; min-width:0; margin:10px 0 2px;
  color:var(--cv-muted); font-size:12px; line-height:1.25;
}
.corevms-wrap .cm-location-pin {
  position:relative; display:inline-block; flex:0 0 auto; width:15px; height:15px;
  border:2px solid var(--cv-primary); border-radius:50% 50% 50% 0; transform:rotate(-45deg);
}
.corevms-wrap .cm-location-pin::after {
  content:""; position:absolute; width:4px; height:4px; left:50%; top:50%;
  border-radius:50%; background:var(--cv-primary); transform:translate(-50%,-50%);
}
.corevms-wrap .cm-location-copy { min-width:0; display:flex; flex-direction:column; gap:1px; }
.corevms-wrap .cm-location-copy small { color:var(--cv-muted); font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.corevms-wrap .cm-location-copy strong { overflow:hidden; color:var(--cv-heading); font-size:12px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.corevms-wrap .cm-card-location.is-badge {
  width:max-content; max-width:100%; padding:6px 10px; border:1px solid var(--cv-border);
  border-radius:999px; background:var(--cv-surface-alt); color:var(--cv-heading);
}
.corevms-wrap .cm-card-location.is-badge .cm-location-copy { display:block; }
.corevms-wrap .cm-card-location.is-badge small { display:none; }
.corevms-wrap .cm-card-location.is-badge strong { font-size:11px; }
.corevms-wrap .cm-card-location.is-badge .cm-location-pin { width:12px; height:12px; border-width:1.5px; }
.carsmark-inventory .inventory-vehicle-wrapper-grid.is-list-view .cm-card-location { margin-top:7px; }

.corevms-wrap .cm-vdp-location-card { color:var(--cv-text); }
.corevms-wrap .cm-vdp-parent-dealer { margin:0 0 4px; color:var(--cv-muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.corevms-wrap .cm-vdp-location-name { display:flex; align-items:center; gap:10px; margin:0 0 5px; color:var(--cv-heading); font-size:16px; font-weight:800; }
.corevms-wrap .cm-vdp-location-name .cm-location-pin { width:14px; height:14px; }
.corevms-wrap .cm-vdp-location-phone { display:block; width:max-content; max-width:100%; padding:6px 0; color:var(--cv-primary); font-size:22px; font-weight:900; text-decoration:none; }
.corevms-wrap .cm-vdp-location-phone:hover { text-decoration:underline; }
.corevms-wrap .cm-vdp-location-address { max-width:480px; margin:6px 0 0; color:var(--cv-muted); font-size:14px; line-height:1.55; }
.corevms-wrap .cm-vdp-directions {
  display:inline-flex; align-items:center; gap:8px; margin-top:12px; padding:9px 14px;
  border:1px solid var(--cv-primary); border-radius:var(--cv-button-radius); color:var(--cv-primary);
  font-size:13px; font-weight:800; text-decoration:none; transition:background .18s ease,color .18s ease;
}
.corevms-wrap .cm-vdp-directions:hover { background:var(--cv-primary); color:var(--cv-button-text); }
@media (max-width:640px) {
  .corevms-wrap .cm-card-location { margin-top:8px; }
  .corevms-wrap .cm-vdp-location-phone { font-size:19px; }
}

/* ═══════════════════════════════════════════════════════════════
   CoreVMS 2.7 — Price Layout Studio
   Slot-based placement, labels and mode-specific card content.
   ═══════════════════════════════════════════════════════════════ */
.carsmark-inventory .cvms-price-for-grid,
.carsmark-inventory .cvms-price-for-list { min-width:0; }
.carsmark-inventory .inventory-vehicle-wrapper-grid.is-grid-view .cvms-price-for-list { display:none!important; }
.carsmark-inventory .inventory-vehicle-wrapper-grid.is-list-view .cvms-price-for-grid { display:none!important; }

.carsmark-inventory .cvms-price-slot {
    position:relative;
    width:100%;
    min-width:0;
    margin:12px 0 0;
}
.carsmark-inventory .cvms-price-slot-below-title { margin-top:8px; }
.carsmark-inventory .cvms-price-slot-below-location { margin-top:9px; }
.carsmark-inventory .cvms-price-slot-before-specs,
.carsmark-inventory .cvms-price-slot-after-specs { margin-top:12px; }
.carsmark-inventory .cvms-price-slot-above-cta { margin:0 0 12px; }
.carsmark-inventory .cvms-price-slot-below-cta { margin:12px 0 0; }

.carsmark-inventory .inventory-vehicle-image > .cvms-price-slot-image-overlay {
    position:absolute;
    z-index:5;
    right:12px;
    bottom:12px;
    left:12px;
    width:auto;
    margin:0;
    pointer-events:none;
}
.carsmark-inventory .cvms-price-slot-image-overlay .cvms-price-display {
    width:max-content;
    max-width:100%;
    margin-left:auto!important;
    padding:10px 13px!important;
    color:#fff;
    background:color-mix(in srgb,var(--cv-secondary) 88%,transparent)!important;
    border:1px solid rgba(255,255,255,.24);
    border-radius:var(--cv-control-radius,12px);
    box-shadow:0 10px 26px rgba(0,0,0,.22);
    backdrop-filter:blur(10px);
}
.carsmark-inventory .cvms-price-slot-image-overlay .cm-price,
.carsmark-inventory .cvms-price-slot-image-overlay .cm-price-label,
.carsmark-inventory .cvms-price-slot-image-overlay .cm-original-price,
.carsmark-inventory .cvms-price-slot-image-overlay .cvms-breakdown-summary strong,
.carsmark-inventory .cvms-price-slot-image-overlay .cvms-breakdown-summary span,
.carsmark-inventory .cvms-price-slot-image-overlay .cvms-price-breakdown dt,
.carsmark-inventory .cvms-price-slot-image-overlay .cvms-price-breakdown dd,
.carsmark-inventory .cvms-price-slot-image-overlay .cvms-payment-pair strong,
.carsmark-inventory .cvms-price-slot-image-overlay .cvms-payment-pair span { color:#fff!important; }
.carsmark-inventory .cvms-price-slot-image-overlay .cvms-payment-pair { padding:0;background:transparent;border:0; }
.carsmark-inventory .cvms-price-slot-image-overlay .cvms-price-breakdown .is-total { border-color:rgba(255,255,255,.28); }

.carsmark-inventory .cm-card-action-rail {
    display:flex;
    flex-direction:column;
    width:100%;
    min-width:0;
    margin-top:auto;
    padding-top:18px;
}
.carsmark-inventory .cm-card-action-rail .cm-card-footer {
    display:block;
    width:100%;
    margin:0;
    padding:0;
}
.carsmark-inventory .cm-card-action-rail .cm-card-cta { width:100%; }
.carsmark-inventory .cm-card-action-rail.cvms-no-cta { padding-top:0; }
.carsmark-inventory .cm-card-action-rail.cvms-no-cta .cm-card-footer { display:none; }

.carsmark-inventory .cvms-price-display {
    gap:5px;
    width:100%;
}
.carsmark-inventory .cvms-price-align-left { align-items:flex-start!important;text-align:left!important; }
.carsmark-inventory .cvms-price-align-center { align-items:center!important;text-align:center!important; }
.carsmark-inventory .cvms-price-align-right { align-items:flex-end!important;text-align:right!important; }
.carsmark-inventory .cvms-price-align-center .cvms-price-breakdown,
.carsmark-inventory .cvms-price-align-right .cvms-price-breakdown { align-self:stretch; }

.carsmark-inventory .cvms-price-value-block { display:flex;flex-direction:column;min-width:0; }
.carsmark-inventory .cvms-price-align-center .cvms-price-value-block { align-items:center; }
.carsmark-inventory .cvms-price-align-right .cvms-price-value-block { align-items:flex-end; }
.carsmark-inventory .cvms-price-value-block.cvms-label-inline {
    flex-direction:row;
    align-items:baseline;
    flex-wrap:wrap;
    gap:7px;
}
.carsmark-inventory .cvms-price-value-block.cvms-label-inline .cm-price-label { margin:0; }
.carsmark-inventory .cvms-price-value-block.cvms-label-below .cm-price-label { margin:4px 0 0; }
.carsmark-inventory .cvms-price-value-block.cm-price-call .cm-price { font-size:18px;white-space:normal; }

.carsmark-inventory .cvms-price-style-inline {
    flex-direction:row!important;
    align-items:baseline!important;
    flex-wrap:wrap;
    gap:8px 12px;
}
.carsmark-inventory .cvms-price-style-inline .cvms-price-value-block { flex-direction:row;align-items:baseline;gap:7px; }
.carsmark-inventory .cvms-price-style-inline .cm-price-label { margin:0; }
.carsmark-inventory .cvms-price-style-inline .cm-original-price { margin:0; }

.carsmark-inventory .cvms-price-style-split .cvms-payment-pair,
.carsmark-inventory .cvms-payment-components {
    grid-template-columns:repeat(auto-fit,minmax(92px,1fr));
}
.carsmark-inventory .cvms-price-style-split .cvms-breakdown-summary {
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:12px;
    width:100%;
}
.carsmark-inventory .cvms-price-style-split .cvms-breakdown-summary span { margin:0; }

.carsmark-inventory .cvms-price-style-banner {
    padding:11px 13px!important;
    color:var(--cv-button-text)!important;
    background:linear-gradient(135deg,var(--cv-primary),var(--cv-secondary))!important;
    border-radius:var(--cv-control-radius,12px);
}
.carsmark-inventory .cvms-price-style-banner .cm-price,
.carsmark-inventory .cvms-price-style-banner .cm-price-label,
.carsmark-inventory .cvms-price-style-banner .cm-original-price,
.carsmark-inventory .cvms-price-style-banner .cvms-breakdown-summary strong,
.carsmark-inventory .cvms-price-style-banner .cvms-breakdown-summary span,
.carsmark-inventory .cvms-price-style-banner .cvms-price-breakdown dt,
.carsmark-inventory .cvms-price-style-banner .cvms-price-breakdown dd,
.carsmark-inventory .cvms-price-style-banner .cvms-payment-pair strong,
.carsmark-inventory .cvms-price-style-banner .cvms-payment-pair span { color:var(--cv-button-text)!important; }
.carsmark-inventory .cvms-price-style-banner .cvms-payment-pair { padding:0;background:transparent;border:0; }
.carsmark-inventory .cvms-price-style-banner .cvms-price-breakdown .is-total { border-color:rgba(255,255,255,.3); }

.carsmark-inventory .cvms-price-style-minimal .cvms-payment-pair {
    padding:0;
    background:transparent;
    border:0;
}
.carsmark-inventory .cvms-price-style-minimal .cvms-price-breakdown { gap:2px; }
.carsmark-inventory .cvms-price-style-minimal .cvms-breakdown-summary { margin-bottom:4px; }
.carsmark-inventory .cvms-breakdown-title { display:block;margin:0 0 6px;color:var(--cv-heading);font-size:12px;font-weight:800; }
.carsmark-inventory .cvms-payment-disclaimer { display:block;margin-top:6px;color:var(--cv-muted);font-size:9px;line-height:1.35; }

/*
 * CarsMark classic lease strip.
 * Matches the approved legacy card: two equal values in one rounded white
 * panel, labels below, then the rectangular Get Approved CTA before specs.
 */
.carsmark-inventory .cvms-price-style-carsmark {
    display:block!important;
    width:100%;
    text-align:center!important;
}
.carsmark-inventory .cvms-price-style-carsmark .cvms-payment-pair {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0;
    padding:12px 14px 11px;
    overflow:hidden;
    background:#fff;
    border:0;
    border-radius:999px;
    box-shadow:none;
}
.carsmark-inventory .cvms-price-style-carsmark .cvms-payment-pair > div {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:0 7px;
    text-align:center;
}
.carsmark-inventory .cvms-price-style-carsmark .cvms-payment-pair > div:only-child {
    grid-column:1 / -1;
}
.carsmark-inventory .cvms-price-style-carsmark .cvms-payment-pair strong {
    color:var(--cv-primary)!important;
    font-size:clamp(19px,1.55vw,22px);
    font-weight:700;
    letter-spacing:-.025em;
    line-height:1.05;
}
.carsmark-inventory .cvms-price-style-carsmark .cvms-payment-pair span {
    margin-top:5px;
    color:var(--cv-primary)!important;
    font-size:clamp(11px,.92vw,13px);
    font-weight:400;
    letter-spacing:0;
    line-height:1.15;
    text-transform:none;
    white-space:nowrap;
}
.carsmark-inventory .cvms-price-style-carsmark .cvms-payment-disclaimer {
    display:none!important;
}
.carsmark-inventory .cvms-price-layout-carsmark .cvms-price-slot-above-cta {
    margin:0 0 8px;
}
.carsmark-inventory .cvms-price-layout-carsmark .cm-card-action-rail {
    margin-top:14px;
    padding-top:0;
}
.carsmark-inventory .cvms-price-layout-carsmark .cm-card-action-rail .cm-card-cta {
    min-height:42px;
    padding:9px 14px;
    background:linear-gradient(90deg,var(--cv-primary),var(--cv-secondary))!important;
    border-radius:3px;
    box-shadow:none;
    font-size:15px;
    font-weight:800;
    letter-spacing:.01em;
    text-transform:uppercase;
}
.carsmark-inventory .cvms-price-layout-carsmark .cm-card-action-rail .cm-card-cta span[aria-hidden="true"] {
    display:none;
}
.carsmark-inventory .inventory-vehicle-wrapper-grid.is-grid-view .cvms-price-layout-carsmark .cm-card-heading,
.corevms-slider-shortcode .cvms-price-layout-carsmark .cm-card-heading { order:10!important; }
.carsmark-inventory .inventory-vehicle-wrapper-grid.is-grid-view .cvms-price-layout-carsmark .cvms-location-display,
.corevms-slider-shortcode .cvms-price-layout-carsmark .cvms-location-display { order:20!important; }
.carsmark-inventory .inventory-vehicle-wrapper-grid.is-grid-view .cvms-price-layout-carsmark .cm-card-action-rail,
.corevms-slider-shortcode .cvms-price-layout-carsmark .cm-card-action-rail { order:30!important; }
.carsmark-inventory .inventory-vehicle-wrapper-grid.is-grid-view .cvms-price-layout-carsmark .cm-quick-specs,
.corevms-slider-shortcode .cvms-price-layout-carsmark .cm-quick-specs { order:40!important; }
.carsmark-inventory .inventory-vehicle-wrapper-grid.is-grid-view .cvms-price-layout-carsmark .vehicle-information-attributes,
.corevms-slider-shortcode .cvms-price-layout-carsmark .vehicle-information-attributes { order:50!important; }

.carsmark-inventory .is-list-view .cm-card-content > .cvms-price-slot:not(.cvms-price-slot-image-overlay) { grid-column:1; }
.carsmark-inventory .is-list-view .cm-card-content > .cvms-price-slot-below-title { grid-column:1 / -1; }
.carsmark-inventory .is-list-view .cm-card-action-rail {
    grid-column:2;
    grid-row:2 / 8;
    align-self:stretch;
    justify-content:flex-end;
    margin:0;
    padding:18px 0 0 24px;
    border-left:1px solid var(--cm-line);
}
.carsmark-inventory .is-list-view .cm-card-action-rail .cvms-price-slot { margin-top:0; }
.carsmark-inventory .is-list-view .cm-card-action-rail .cvms-price-slot-below-cta { margin-top:12px; }
.carsmark-inventory .is-list-view .cm-card-action-rail .cm-card-footer {
    grid-column:auto;
    grid-row:auto;
    min-height:0;
    padding:0;
    border:0;
}

@media (max-width:860px) {
    .carsmark-inventory .is-list-view .cm-card-action-rail {
        grid-column:1;
        grid-row:auto;
        padding:16px 0 0;
        border-left:0;
    }
    .carsmark-inventory .cvms-price-slot-image-overlay .cvms-price-display { max-width:calc(100% - 2px); }
}
