/* Miller Auto Classic to Current — modern inventory presentation layer */
.car_listings.miller-modern-grid,
.car_listings {
    --miller-border: #e5e7eb;
    --miller-muted: #667085;
    --miller-text: #111827;
    --miller-accent: #0f172a;
}
.car_listings .miller-inventory-item { box-sizing: border-box; margin: 0 0 24px; min-width: 0; height: 100%; }
.car_listings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.car_listings > .clearfix { display: none; }
.car_listings .miller-inventory-item { width: auto !important; float: none !important; padding: 0 !important; }
.car_listings .miller-vehicle-card { background: #fff; border: 1px solid var(--miller-border); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 18px rgba(16,24,40,.06); height: 100%; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.car_listings .miller-vehicle-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16,24,40,.12); }
.car_listings .miller-vehicle-media { position: relative; background: #f3f4f6; aspect-ratio: 4 / 3; overflow: hidden; }
.car_listings .miller-vehicle-image-link { display: block; height: 100%; }
.car_listings .miller-vehicle-image { width: 100% !important; height: 100% !important; min-width: 0; min-height: 0; object-fit: contain; object-position: center center; display: block; border: 0 !important; margin: 0 !important; background: #f3f4f6; }
.car_listings .miller-vehicle-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 7px; flex-wrap: wrap; z-index: 2; }
.car_listings .miller-badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: #111827; color: #fff; font-size: 11px; line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.car_listings .miller-badge-sold { background: #b42318; }
.car_listings .miller-compare-control { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--miller-text); font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.car_listings .miller-compare-control input { margin: 0; }
.car_listings .miller-vehicle-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.car_listings .miller-vehicle-title { color: var(--miller-text); text-decoration: none !important; font-size: 20px; line-height: 1.2; font-weight: 750; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 48px; max-height: 48px; }
.car_listings .miller-vehicle-title:hover { text-decoration: underline !important; }
.car_listings .miller-vehicle-specs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 16px; margin: 16px 0; }
.car_listings .miller-spec { min-width: 0; }
.car_listings .miller-spec-label { display: block; color: var(--miller-muted); font-size: 11px; line-height: 1.2; text-transform: uppercase; letter-spacing: .05em; }
.car_listings .miller-spec-value { display: block; margin-top: 3px; color: var(--miller-text); font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car_listings .miller-vehicle-overview { margin: 14px 0; color: #475467; font-size: 14px; line-height: 1.55; }
.car_listings .miller-vehicle-footer { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--miller-border); }
.car_listings .miller-vehicle-price { min-width: 0; }
.car_listings .miller-current-price { display: block; color: var(--miller-text); font-size: 22px; line-height: 1.1; font-weight: 800; }
.car_listings .miller-original-price { display: block; color: var(--miller-muted); font-size: 12px; text-decoration: line-through; margin-bottom: 3px; }
.car_listings .miller-vehicle-price .tax { color: var(--miller-muted); font-size: 11px; margin-top: 4px; }
.car_listings .miller-view-details { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 10px 13px; border-radius: 9px; background: var(--miller-accent); color: #fff !important; text-decoration: none !important; font-size: 13px; font-weight: 700; }
.car_listings .miller-view-details:hover { opacity: .9; }
.car_listings .miller-vehicle-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.car_listings .miller-vehicle-meta > * { margin: 0 !important; }
.car_listings .miller-video-button { border: 0; background: transparent; padding: 4px 0; color: var(--miller-muted); font-size: 12px; cursor: pointer; }
.car_listings .miller-video-button:hover { color: var(--miller-text); }
@media (max-width: 1100px) { .car_listings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .car_listings { grid-template-columns: 1fr; gap: 18px; } .car_listings .miller-vehicle-body { padding: 16px; } }
/* Preserve legacy sidebar layouts: only the inventory content column becomes a grid. */
.inventory-wide-sidebar-left.car_listings,
.inventory-wide-sidebar-right.car_listings { display: block; }
.inventory-wide-sidebar-left.car_listings > .sidebar,
.inventory-wide-sidebar-right.car_listings > .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
@media (max-width: 680px) { .inventory-wide-sidebar-left.car_listings > .sidebar, .inventory-wide-sidebar-right.car_listings > .sidebar { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Miller Auto single-vehicle presentation
   ------------------------------------------------------------------------- */
.miller-modern-single {
    --miller-blue: #0f4f86;
    --miller-blue-dark: #0a3d69;
    --miller-blue-light: #eaf3fb;
    --miller-border: #dfe5eb;
    --miller-muted: #687684;
    --miller-text: #17212b;
    --miller-surface: #f6f8fa;
    color: var(--miller-text);
}
.miller-modern-single .miller-single-heading {
    padding: 20px 0 14px;
    border-bottom: 1px solid var(--miller-border);
}
.miller-modern-single .miller-single-heading h2 {
    margin: 0;
    color: var(--miller-blue-dark);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.025em;
}
.miller-modern-single .miller-single-heading span {
    display: inline-block;
    color: var(--miller-muted);
    font-size: 15px;
    line-height: 1.5;
}
.miller-modern-single .miller-single-summary {
    margin-top: 18px;
    margin-bottom: 18px;
}
.miller-modern-single .miller-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: #fff;
    border: 1px solid var(--miller-border);
    border-radius: 12px;
    overflow: hidden;
}
.miller-modern-single .miller-summary-item {
    min-width: 0;
    padding: 14px 16px;
    border-right: 1px solid var(--miller-border);
}
.miller-modern-single .miller-summary-item:last-child { border-right: 0; }
.miller-modern-single .miller-summary-label {
    display: block;
    color: var(--miller-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.25;
    text-transform: uppercase;
}
.miller-modern-single .miller-summary-value {
    display: block;
    margin-top: 4px;
    color: var(--miller-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.miller-modern-single .miller-single-actions-wrap { margin-bottom: 24px; }
.miller-modern-single .miller-single-actions { margin-bottom: 0 !important; }
.miller-modern-single .miller-single-actions ul {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.miller-modern-single .miller-single-actions li { margin: 0 !important; }
.miller-modern-single .miller-single-actions li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid var(--miller-blue);
    border-radius: 7px;
    background: var(--miller-blue);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none;
}
.miller-modern-single .miller-single-actions li.prev1 a,
.miller-modern-single .miller-single-actions li.next1 a,
.miller-modern-single .miller-single-actions li.print a,
.miller-modern-single .miller-single-actions li.email a {
    background: #fff;
    color: var(--miller-blue) !important;
}
.miller-modern-single .miller-single-actions li a:hover { background: var(--miller-blue-dark); color: #fff !important; }
.miller-modern-single .miller-single-actions li.transparent { opacity: .45; }
.miller-modern-single .miller-single-main,
.miller-modern-single .miller-single-sidebar { min-width: 0; }
.miller-modern-single .listing-slider {
    position: relative;
    margin: 0;
    padding: 0;
    border: 1px solid var(--miller-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(23,33,43,.07);
}
.miller-modern-single .listing-slider .listing-badge,
.miller-modern-single .listing-slider .badge { z-index: 5; }
.miller-modern-single .listing-slider .home-banner { margin: 0; background: #111; }
.miller-modern-single .listing-slider .flexslider { border: 0; box-shadow: none; border-radius: 0; }
.miller-modern-single .listing-slider .flexslider .slides img {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
    background: #111;
}
.miller-modern-single .home-slider-thumbs {
    padding: 10px;
    background: #fff;
    border-top: 1px solid var(--miller-border);
}
.miller-modern-single .home-slider-thumbs .slides img {
    border: 2px solid transparent;
    border-radius: 6px;
}
.miller-modern-single .home-slider-thumbs .slides img:hover { border-color: var(--miller-blue); }
.miller-modern-single .single-listing-tabs {
    margin-top: 24px !important;
    padding: 0;
    border: 1px solid var(--miller-border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.miller-modern-single .single-listing-tabs > .nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0 10px;
    border-bottom: 1px solid var(--miller-border);
    background: var(--miller-surface);
}
.miller-modern-single .single-listing-tabs > .nav-tabs > li { margin: 0; }
.miller-modern-single .single-listing-tabs > .nav-tabs > li > a {
    display: block;
    padding: 14px 15px;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    color: var(--miller-muted);
    font-size: 13px;
    font-weight: 700;
    background: transparent !important;
}
.miller-modern-single .single-listing-tabs > .nav-tabs > li.active > a,
.miller-modern-single .single-listing-tabs > .nav-tabs > li > a:hover {
    color: var(--miller-blue);
    border-bottom-color: var(--miller-blue) !important;
}
.miller-modern-single .single-listing-tabs .tab-content {
    margin: 0 !important;
    padding: 24px;
    color: #394653;
    font-size: 15px;
    line-height: 1.7;
}
.miller-modern-single .single-listing-tabs .tab-content ul.fa-ul { margin-left: 1.7em; }
.miller-modern-single .miller-single-sidebar .side-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.miller-modern-single .miller-single-sidebar .side-content > .widget,
.miller-modern-single .miller-single-sidebar .side-content > .widget-wrap,
.miller-modern-single .miller-single-sidebar .side-content > div.widget,
.miller-modern-single .miller-single-sidebar .side-content > .loan_calculator {
    margin: 0 !important;
    padding: 20px;
    border: 1px solid var(--miller-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(23,33,43,.05);
}
.miller-modern-single .miller-single-sidebar .side-content h3,
.miller-modern-single .miller-single-sidebar .side-content h4,
.miller-modern-single .miller-single-sidebar .side-content .widget-title {
    margin-top: 0;
    color: var(--miller-blue-dark);
    font-weight: 800;
}
.miller-modern-single .miller-single-sidebar .side-content input,
.miller-modern-single .miller-single-sidebar .side-content select,
.miller-modern-single .miller-single-sidebar .side-content textarea {
    max-width: 100%;
    border-color: #cbd5df;
    border-radius: 6px;
}
.miller-modern-single .miller-single-sidebar .side-content button,
.miller-modern-single .miller-single-sidebar .side-content input[type="submit"] {
    border-radius: 6px;
}
.miller-modern-single .listing_bottom_message {
    padding: 18px 20px;
    border-left: 4px solid var(--miller-blue);
    border-radius: 0 8px 8px 0;
    background: var(--miller-blue-light);
}
.miller-modern-single .comments {
    padding-top: 10px;
    border-top: 1px solid var(--miller-border);
}
@media (max-width: 1100px) {
    .miller-modern-single .miller-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .miller-modern-single .miller-summary-item:nth-child(3n) { border-right: 0; }
    .miller-modern-single .miller-summary-item { border-bottom: 1px solid var(--miller-border); }
}
@media (max-width: 991px) {
    .miller-modern-single .miller-single-sidebar { margin-top: 24px; }
    .miller-modern-single .miller-single-heading { padding-top: 8px; }
    .miller-modern-single .miller-single-heading h2 { font-size: 30px; }
}
@media (max-width: 640px) {
    .miller-modern-single .miller-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .miller-modern-single .miller-summary-item:nth-child(3n) { border-right: 1px solid var(--miller-border); }
    .miller-modern-single .miller-summary-item:nth-child(2n) { border-right: 0; }
    .miller-modern-single .miller-single-actions ul { display: grid; grid-template-columns: 1fr 1fr; }
    .miller-modern-single .miller-single-actions li a { width: 100%; }
    .miller-modern-single .single-listing-tabs .tab-content { padding: 18px; }
}


/* Miller Auto Build 19.0.1 — resilient inventory layout. */
body .car_listings.miller-modern-results { box-sizing:border-box; min-width:0; }
body .inventory-wide-sidebar-left.miller-modern-results > .sidebar,
body .inventory-wide-sidebar-right.miller-modern-results > .sidebar { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:22px !important; width:100% !important; float:none !important; }
body .inventory-wide-sidebar-left.miller-modern-results > .sidebar > .miller-inventory-item,
body .inventory-wide-sidebar-right.miller-modern-results > .sidebar > .miller-inventory-item { width:auto !important; max-width:none !important; float:none !important; clear:none !important; margin:0 !important; }
body .car_listings.miller-modern-results:not(.inventory-wide-sidebar-left):not(.inventory-wide-sidebar-right) { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:22px !important; width:100% !important; margin:0 !important; }
body .car_listings.miller-modern-results:not(.inventory-wide-sidebar-left):not(.inventory-wide-sidebar-right) > .miller-inventory-item { width:auto !important; float:none !important; margin:0 !important; }
body .miller-modern-results .miller-vehicle-card { position:relative !important; left:auto !important; top:auto !important; right:auto !important; bottom:auto !important; width:100% !important; max-width:none !important; min-height:100%; margin:0 !important; padding:0 !important; }
body .miller-modern-results .miller-vehicle-image { position:static !important; }
@media (max-width:991px) { body .inventory-wide-sidebar-left.miller-modern-results > .sidebar, body .inventory-wide-sidebar-right.miller-modern-results > .sidebar, body .car_listings.miller-modern-results:not(.inventory-wide-sidebar-left):not(.inventory-wide-sidebar-right) { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media (max-width:680px) { body .inventory-wide-sidebar-left.miller-modern-results > .sidebar, body .inventory-wide-sidebar-right.miller-modern-results > .sidebar, body .car_listings.miller-modern-results:not(.inventory-wide-sidebar-left):not(.inventory-wide-sidebar-right) { grid-template-columns:1fr !important; } }


/* Miller Auto Build 19.0.6 — modern inventory filters. */
.miller-modern-filter-form { margin: 0 0 28px !important; }
.miller-modern-filter-form .miller-filter-panel { background:#f7f9fb; border:1px solid #dfe5eb; border-radius:14px; padding:22px; box-shadow:0 6px 22px rgba(20,42,65,.06); }
.miller-modern-filter-form .miller-filter-panel-header { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:0 0 18px; }
.miller-modern-filter-form .miller-filter-panel-header h3 { margin:2px 0 4px !important; color:#163f67 !important; font-size:24px !important; line-height:1.15 !important; font-weight:800 !important; }
.miller-modern-filter-form .miller-filter-panel-header p { margin:0 !important; color:#667483 !important; font-size:14px !important; }
.miller-modern-filter-form .miller-filter-kicker { display:block; color:#17639a; font-size:10px; letter-spacing:1.5px; font-weight:800; }
.miller-modern-filter-form .miller-filter-icon { flex:0 0 44px; width:44px; height:44px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:#0f568b; color:#fff; font-size:17px; }
.miller-modern-filter-form .listing_select { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 !important; padding:0 !important; background:transparent !important; border:0 !important; }
.miller-modern-filter-form .listing_select .my-dropdown, .miller-modern-filter-form .listing_select .listing-range-slider-container { min-width:0; width:100% !important; margin:0 !important; }
.miller-modern-filter-form .listing_select .my-dropdown select { width:100% !important; height:46px !important; min-height:46px !important; padding:0 38px 0 14px !important; border:1px solid #cbd5df !important; border-radius:8px !important; background:#fff !important; color:#263746 !important; font-size:14px !important; font-weight:600 !important; box-shadow:0 1px 2px rgba(20,42,65,.03) !important; transition:border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.miller-modern-filter-form .listing_select .my-dropdown select:hover { border-color:#91a8bc !important; background:#fff !important; }
.miller-modern-filter-form .listing_select .my-dropdown select:focus { border-color:#17639a !important; outline:none !important; box-shadow:0 0 0 3px rgba(23,99,154,.12) !important; }
.miller-modern-filter-form .listing_select .my-dropdown:after { color:#5c6d7d !important; right:13px !important; top:15px !important; }
.miller-modern-filter-form .listing_select .loading_results { grid-column:1/-1; }
.miller-modern-filter-form .miller-filter-toolbar { margin-top:14px !important; padding:0 !important; background:transparent !important; border:0 !important; }
.miller-modern-filter-form .miller-filter-toolbar .sort-by-menu { display:flex; align-items:center; gap:9px; }
.miller-modern-filter-form .miller-filter-toolbar .sort-by { color:#526171 !important; font-size:13px !important; font-weight:700 !important; }
.miller-modern-filter-form .miller-filter-toolbar .price-ascending-dropdown select { height:40px !important; min-height:40px !important; border:1px solid #cbd5df !important; border-radius:7px !important; background:#fff !important; padding:0 32px 0 11px !important; font-size:13px !important; }
.miller-modern-filter-form .miller-filter-toolbar .top_buttons { display:flex !important; justify-content:flex-end; align-items:center; gap:7px; margin:0 !important; padding:0 !important; }
.miller-modern-filter-form .miller-filter-toolbar .top_buttons li { margin:0 !important; }
.miller-modern-filter-form .miller-filter-toolbar .gradient_button { display:inline-flex !important; align-items:center; justify-content:center; min-height:38px; padding:0 13px !important; border:1px solid #d1d9e1 !important; border-radius:7px !important; background:#fff !important; color:#405261 !important; font-size:12px !important; font-weight:700 !important; box-shadow:none !important; text-decoration:none !important; }
.miller-modern-filter-form .miller-filter-toolbar .gradient_button:hover { border-color:#17639a !important; color:#17639a !important; background:#f4f8fb !important; }
.miller-modern-filter-form .miller-filter-toolbar .compare { border-color:#17639a !important; background:#17639a !important; color:#fff !important; }
.miller-modern-filter-form .miller-filter-toolbar .compare:hover { background:#0f4b78 !important; color:#fff !important; }
@media (max-width:1100px) { .miller-modern-filter-form .listing_select { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:767px) { .miller-modern-filter-form .miller-filter-panel { padding:16px; border-radius:11px; } .miller-modern-filter-form .miller-filter-panel-header h3 { font-size:21px !important; } .miller-modern-filter-form .miller-filter-panel-header p { font-size:13px !important; } .miller-modern-filter-form .listing_select { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; } .miller-modern-filter-form .miller-filter-toolbar .row { display:block !important; } .miller-modern-filter-form .miller-filter-toolbar .sort-by-menu { margin-bottom:10px; } .miller-modern-filter-form .miller-filter-toolbar .top_buttons { justify-content:flex-start; flex-wrap:wrap; } }
@media (max-width:480px) { .miller-modern-filter-form .listing_select { grid-template-columns:1fr; } .miller-modern-filter-form .miller-filter-icon { display:none; } }


/* Miller Auto Build 19.0.6 — filter polish, Poppins, and collapsible controls. */
.miller-modern-filter-form,
.miller-modern-filter-form * { font-family:'Poppins', Arial, sans-serif !important; }
.miller-modern-filter-form .listing_select > * {
    float:none !important;
    position:relative !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    margin-left:0 !important;
    margin-right:0 !important;
    transform:none !important;
}
.miller-modern-filter-form .listing_select > .my-dropdown { grid-column:auto !important; }
.miller-modern-filter-form .miller-filter-toggle {
    border:0 !important;
    width:auto !important;
    min-width:96px;
    height:44px;
    padding:0 14px !important;
    border-radius:10px !important;
    background:#0f568b !important;
    color:#fff !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    cursor:pointer;
    font-size:13px !important;
    font-weight:700 !important;
    box-shadow:none !important;
}
.miller-modern-filter-form .miller-filter-toggle:hover,
.miller-modern-filter-form .miller-filter-toggle:focus { background:#0b4774 !important; color:#fff !important; }
.miller-modern-filter-form .miller-filter-toggle i { font-size:15px; }
.miller-modern-filter-form .miller-filter-toggle.is-open i { transform:rotate(90deg); }
.miller-modern-filter-form .miller-filter-toggle i { transition:transform .18s ease; }
@media (max-width:767px) {
    .miller-modern-filter-form .miller-filter-panel-header { align-items:flex-start; }
    .miller-modern-filter-form .miller-filter-toggle { min-width:90px; height:42px; }
}


/* Miller Auto Build 19.0.6 — Build 10 filter layout/collapse repair. */
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields {
    direction:ltr !important;
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    grid-auto-flow:row !important;
    justify-content:stretch !important;
    align-content:start !important;
    justify-items:stretch !important;
    align-items:start !important;
    gap:12px !important;
    width:100% !important;
    box-sizing:border-box !important;
}
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > .my-dropdown,
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > .listing-range-slider-container {
    grid-column:auto !important;
    grid-row:auto !important;
    float:none !important;
    clear:none !important;
    position:relative !important;
    inset:auto !important;
    margin:0 !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
}
/* The loading indicator must not consume a visible grid cell. */
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > .loading_results {
    display:none !important;
}
/* Use a class for collapsed state so the !important grid display cannot reopen it. */
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields.miller-filter-fields-closed {
    display:none !important;
}
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields.miller-filter-fields-open {
    display:grid !important;
}
.miller-modern-filter-form .miller-filter-toggle[aria-expanded="false"] { opacity:.96; }
.miller-modern-filter-form .miller-filter-toggle[aria-expanded="true"] { opacity:1; }
.miller-modern-filter-form .miller-filter-toggle .miller-filter-chevron { transition:transform .18s ease; }
.miller-modern-filter-form .miller-filter-toggle[aria-expanded="true"] .miller-filter-chevron { transform:rotate(180deg); }
.miller-modern-filter-form .miller-filter-toolbar .top_buttons li a,
.miller-modern-filter-form .miller-filter-toolbar .top_buttons li button {
    white-space:nowrap !important;
}
@media (max-width:1100px) {
    .miller-modern-filter-form .listing_select#\miller-inventory-filter-fields { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}
@media (max-width:767px) {
    .miller-modern-filter-form .listing_select#\miller-inventory-filter-fields { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:480px) {
    .miller-modern-filter-form .listing_select#\miller-inventory-filter-fields { grid-template-columns:1fr !important; }
}


/* Miller Auto Build 19.0.6 — filter grid alignment + Font Awesome icon repair. */
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    grid-auto-flow:row !important;
}
/* Explicit placement prevents legacy theme rules from offsetting the first few filters. */
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > .my-dropdown:nth-child(1),
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > .listing-range-slider-container:nth-child(1) { grid-column:1 !important; }
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(2) { grid-column:2 !important; }
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(3) { grid-column:3 !important; }
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(4) { grid-column:4 !important; }
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(5) { grid-column:1 !important; }
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(6) { grid-column:2 !important; }
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(7) { grid-column:3 !important; }
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(8) { grid-column:4 !important; }
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(9) { grid-column:1 !important; }
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(10) { grid-column:2 !important; }
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(11) { grid-column:3 !important; }
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(12) { grid-column:4 !important; }
.miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(13) { grid-column:1 !important; }
/* Poppins should not override the icon font used by the plugin's Font Awesome markup. */
.miller-modern-filter-form .miller-filter-toggle .fa,
.miller-modern-filter-form .miller-filter-toggle i.fa {
    font-family:"Font Awesome 5 Free" !important;
    font-weight:900 !important;
}
.miller-modern-filter-form .miller-filter-toggle .fa-sliders:before { content:"\f1de" !important; }
@media (max-width:1100px) {
    .miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(n) { grid-column:auto !important; }
}
@media (max-width:767px) {
    .miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(n) { grid-column:auto !important; }
}

/* Build 14 — deterministic compare control: text and custom checkbox are inline with equal padding. */
.car_listings .miller-compare-control {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 3 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    min-width: 104px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.96) !important;
    color: var(--miller-text) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
}
.car_listings .miller-compare-control .miller-compare-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 16px !important;
    white-space: nowrap !important;
}
.car_listings .miller-compare-control input.compare_vehicle {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
}
.car_listings .miller-compare-control .miller-compare-box {
    display: inline-block !important;
    position: relative !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border: 1.5px solid #98a2b3 !important;
    border-radius: 4px !important;
    background: #fff !important;
    vertical-align: middle !important;
}
.car_listings .miller-compare-control:hover .miller-compare-box {
    border-color: #17639a !important;
}
.car_listings .miller-compare-control input.compare_vehicle:checked + .miller-compare-box {
    border-color: #17639a !important;
    background: #17639a !important;
}
.car_listings .miller-compare-control input.compare_vehicle:checked + .miller-compare-box::after {
    content: '' !important;
    position: absolute !important;
    left: 4px !important;
    top: 1px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}
.car_listings .miller-compare-control:focus-within {
    outline: 2px solid rgba(23,99,154,.35) !important;
    outline-offset: 2px !important;
}


/* Build 15 — lighter toolbar/filter button typography and explicit Compare spacing. */
.miller-modern-filter-form .miller-filter-toggle,
.miller-modern-filter-form .miller-filter-toolbar .gradient_button {
    font-weight: 500 !important;
}
.miller-modern-filter-form .miller-filter-toggle {
    letter-spacing: 0 !important;
}
.miller-modern-filter-form .miller-filter-toolbar .gradient_button {
    letter-spacing: 0 !important;
}
.miller-modern-filter-form .miller-filter-toolbar .compare .number_of_vehicles {
    display: inline-block !important;
    margin: 0 3px !important;
}

/* Build 17 — explicitly lighten the Compare count button; legacy theme rules can otherwise win. */
body .miller-modern-filter-form .miller-filter-toolbar .top_buttons li a.gradient_button.compare,
body .miller-modern-filter-form .miller-filter-toolbar .top_buttons li a.gradient_button.compare .number_of_vehicles {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
}

/* Build 18 — hard-stop legacy typography override for the Compare count action. */
body .miller-modern-filter-form .miller-filter-toolbar ul.top_buttons li a.miller-compare-action.gradient_button.compare,
body .miller-modern-filter-form .miller-filter-toolbar ul.top_buttons li a.miller-compare-action.gradient_button.compare span.number_of_vehicles {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
}

/* Build 20 — remove legacy gradient-button text ghosting from Compare count. */
body .miller-modern-filter-form .miller-filter-toolbar ul.top_buttons li a.miller-compare-action,
body .miller-modern-filter-form .miller-filter-toolbar ul.top_buttons li a.miller-compare-action span.number_of_vehicles {
    text-shadow: none !important;
    -webkit-text-shadow: none !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}
body .miller-modern-filter-form .miller-filter-toolbar ul.top_buttons li a.miller-compare-action::before,
body .miller-modern-filter-form .miller-filter-toolbar ul.top_buttons li a.miller-compare-action::after {
    content: none !important;
    display: none !important;
}


/* Miller Auto Build 22 — modern results summary moved below filters and above results. */
.miller-results-summary {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin:2px 0 18px !important;
    padding:14px 18px;
    background:#fff;
    border:1px solid #e2e8ee;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(20,42,65,.04);
    font-family:'Poppins', Arial, sans-serif !important;
}
.miller-results-summary-main,
.miller-results-scope {
    display:flex;
    align-items:baseline;
    gap:6px;
    margin:0 !important;
}
.miller-results-count {
    color:#145b91;
    font-size:17px;
    line-height:1;
    font-weight:600 !important;
}
.miller-results-vehicle-word,
.miller-results-matching {
    color:#243746;
    font-size:14px;
    line-height:1.2;
    font-weight:500 !important;
}
.miller-results-scope {
    color:#687684;
    font-size:13px;
    font-weight:400 !important;
    white-space:nowrap;
}
@media (max-width:767px) {
    .miller-results-summary { padding:12px 14px; }
    .miller-results-count { font-size:16px; }
    .miller-results-vehicle-word,
    .miller-results-matching,
    .miller-results-scope { font-size:12px; }
}


/* Miller Auto Build 29 — move active filter breadcrumbs into the modern filter panel. */
.miller-modern-filter-form .miller-active-filter-bar {
    display:flex !important;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    width:100%;
    margin:0 0 14px !important;
    padding:0 !important;
    list-style:none !important;
    background:transparent !important;
    border:0 !important;
    line-height:1.2 !important;
}
.miller-modern-filter-form .miller-active-filter-bar li {
    display:inline-flex !important;
    align-items:center;
    margin:0 !important;
    padding:6px 10px !important;
    min-height:30px;
    border:1px solid #d7e1e9 !important;
    border-radius:999px !important;
    background:#fff !important;
    color:#3f5363 !important;
    box-shadow:none !important;
    line-height:1.2 !important;
}
.miller-modern-filter-form .miller-active-filter-bar li a {
    display:inline-flex !important;
    align-items:center;
    gap:5px;
    color:#3f5363 !important;
    text-decoration:none !important;
    font-size:11px !important;
    font-weight:500 !important;
    line-height:1.2 !important;
}
.miller-modern-filter-form .miller-active-filter-bar li i.fa,
.miller-modern-filter-form .miller-active-filter-bar li i.fa-times-circle {
    font-family:"Font Awesome 5 Free" !important;
    font-weight:900 !important;
    color:#647686 !important;
    font-size:12px !important;
}
.miller-modern-filter-form .miller-active-filter-bar li:hover {
    border-color:#b9cad8 !important;
    background:#f7fafc !important;
}
.miller-modern-filter-form .miller-active-filter-bar li[data-type="All"] {
    padding:0 !important;
    min-height:0;
    border:0 !important;
    background:transparent !important;
    color:#6b7b89 !important;
    box-shadow:none !important;
    font-size:11px !important;
}

/* Build 29 — restore Font Awesome pagination chevrons after the Poppins wildcard. */
.miller-modern-filter-form .page_of .fa,
.miller-modern-filter-form .page_of i.fa,
.miller-modern-filter-form .pagination_container .fa,
.miller-modern-filter-form .pagination_container i.fa {
    font-family:"Font Awesome 5 Free" !important;
    font-weight:900 !important;
}
.miller-modern-filter-form .page_of .left-arrow,
.miller-modern-filter-form .page_of .right-arrow {
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
}
@media (max-width:767px) {
    .miller-modern-filter-form .miller-active-filter-bar {
        gap:6px;
        margin-bottom:11px !important;
    }
    .miller-modern-filter-form .miller-active-filter-bar li {
        padding:5px 9px !important;
    }
}

/* Miller Auto Build 37 — single vehicle details page, first redesign pass. */
body .miller-modern-single { font-family: 'Poppins', sans-serif; padding-bottom: 48px; }
body .miller-modern-single .miller-single-heading {
    margin-top: 20px; padding: 26px 28px; border: 1px solid var(--miller-border); border-radius: 16px;
    background: #fff; box-shadow: 0 8px 28px rgba(23,33,43,.055);
}
body .miller-modern-single .miller-single-heading .row { display:flex; align-items:center; }
body .miller-modern-single .miller-single-heading h2 { font-size: clamp(30px,3vw,42px); max-width: 900px; }
body .miller-modern-single .miller-single-heading .text-right h2:not(.strikeout) { font-size: 30px; color: var(--miller-blue-dark); margin: 8px 0 2px; }
body .miller-modern-single .miller-single-heading .text-right .original_price { font-size: 14px; color: var(--miller-muted); margin: 0; }
body .miller-modern-single .miller-single-heading .text-right em { display:block; margin-top:4px; color:var(--miller-muted); font-size:12px; }
body .miller-modern-single .miller-single-summary { margin-top: 14px; margin-bottom: 14px; }
body .miller-modern-single .miller-summary-grid { box-shadow: 0 4px 16px rgba(23,33,43,.035); }
body .miller-modern-single .miller-single-actions-wrap { margin-bottom: 18px; }
body .miller-modern-single .miller-single-actions ul { align-items:center; }
body .miller-modern-single .miller-single-actions li.request a,
body .miller-modern-single .miller-single-actions li.schedule a,
body .miller-modern-single .miller-single-actions li.offer a,
body .miller-modern-single .miller-single-actions li.trade a { min-height:46px; padding:10px 18px; border-radius:9px; }
body .miller-modern-single .miller-single-actions li.prev1 a,
body .miller-modern-single .miller-single-actions li.next1 a,
body .miller-modern-single .miller-single-actions li.print a,
body .miller-modern-single .miller-single-actions li.email a,
body .miller-modern-single .miller-single-actions li.pdf a { background:#fff; color:var(--miller-blue)!important; border-color:#cbd8e5; }
body .miller-modern-single .miller-single-content-shell { padding-left:15px; padding-right:15px; }
body .miller-modern-single .miller-single-content-row { display:flex; align-items:flex-start; }
body .miller-modern-single .miller-single-main { padding-right:18px; }
body .miller-modern-single .miller-single-sidebar { padding-left:18px; }
body .miller-modern-single .listing-slider { border-radius:16px; box-shadow:0 10px 32px rgba(23,33,43,.09); }
body .miller-modern-single .listing-slider .home-banner { min-height:420px; display:flex; align-items:center; }
body .miller-modern-single .listing-slider #home-slider-canvas { width:100%; margin:0; }
body .miller-modern-single .listing-slider .flexslider .slides img { max-height:680px; }
body .miller-modern-single .home-slider-thumbs { padding:12px; }
body .miller-modern-single .show-all-photos { margin:8px 2px 2px; color:var(--miller-blue); font-size:13px; font-weight:700; cursor:pointer; }
body .miller-modern-single .miller-single-sidebar .side-content { gap:16px; }
body .miller-modern-single .miller-single-sidebar .side-content > .widget,
body .miller-modern-single .miller-single-sidebar .side-content > .widget-wrap,
body .miller-modern-single .miller-single-sidebar .side-content > div.widget,
body .miller-modern-single .miller-single-sidebar .side-content > .loan_calculator { padding:22px; border-radius:14px; box-shadow:0 7px 24px rgba(23,33,43,.06); }
body .miller-modern-single .miller-single-sidebar table { width:100%; }
body .miller-modern-single .miller-single-sidebar td { padding:7px 5px; border-color:#edf0f3; font-size:13px; }
body .miller-modern-single .miller-single-sidebar td:first-child { color:#526170; font-weight:700; }
body .miller-modern-single .single-listing-tabs { margin-top:22px!important; border-radius:14px; box-shadow:0 6px 22px rgba(23,33,43,.045); }
body .miller-modern-single .single-listing-tabs > .nav-tabs { overflow-x:auto; flex-wrap:nowrap; padding:0 14px; }
body .miller-modern-single .single-listing-tabs > .nav-tabs > li { flex:0 0 auto; }
body .miller-modern-single .single-listing-tabs > .nav-tabs > li > a { padding:16px 17px; white-space:nowrap; font-weight:600; }
body .miller-modern-single .single-listing-tabs .tab-content { padding:28px 30px; }
body .miller-modern-single .single-listing-tabs .tab-content h1,
body .miller-modern-single .single-listing-tabs .tab-content h2,
body .miller-modern-single .single-listing-tabs .tab-content h3 { color:var(--miller-blue-dark); }
@media (max-width:991px) {
 body .miller-modern-single .miller-single-heading .row { display:block; }
 body .miller-modern-single .miller-single-heading .text-right { text-align:left!important; margin-top:18px; }
 body .miller-modern-single .miller-single-content-row { display:block; }
 body .miller-modern-single .miller-single-main, body .miller-modern-single .miller-single-sidebar { padding-left:0; padding-right:0; }
 body .miller-modern-single .listing-slider .home-banner { min-height:0; }
}
@media (max-width:640px) {
 body .miller-modern-single .miller-single-heading { margin-top:10px; padding:20px 18px; border-radius:12px; }
 body .miller-modern-single .miller-single-actions ul { grid-template-columns:1fr; }
 body .miller-modern-single .single-listing-tabs .tab-content { padding:20px; }
}

/* Miller Auto Build 38 — vehicle details structural redesign. */
body .miller-modern-single .miller-single-heading {
    display:block; padding:28px 30px; margin-bottom:18px!important;
}
body .miller-modern-single .miller-single-heading .row { align-items:flex-start; }
body .miller-modern-single .miller-single-heading h2 { line-height:1.14; letter-spacing:-.035em; margin:0; }
body .miller-modern-single .miller-single-heading .text-right { display:flex; flex-direction:column; align-items:flex-end; gap:5px; }
body .miller-modern-single .miller-single-heading .text-right > h2:not(.strikeout) {
    order:-1; font-size:36px!important; line-height:1; font-weight:700!important; margin:2px 0 6px!important; color:var(--miller-blue-dark)!important;
}
body .miller-modern-single .miller-single-heading .text-right .carfax_title,
body .miller-modern-single .miller-single-heading .text-right img { max-width:145px; height:auto; }
body .miller-modern-single .miller-single-heading .text-right em { font-size:12px!important; }
body .miller-modern-single .miller-single-summary { margin-top:0; margin-bottom:22px; }

/* Gallery / purchase panel */
body .miller-modern-single .miller-single-content-row { gap:26px; }
body .miller-modern-single .miller-single-main { flex:1 1 68%; width:auto; padding:0; }
body .miller-modern-single .miller-single-sidebar { flex:0 0 31%; width:auto; padding:0; }
body .miller-modern-single .listing-slider { overflow:hidden; border:1px solid #e0e7ed; background:#fff; }
body .miller-modern-single .listing-slider .home-banner { background:#111; }

/* Move the existing conversion actions into a purposeful purchase card. */
body .miller-modern-single .miller-single-sidebar .miller-single-actions-wrap {
    width:100%; margin:0 0 18px!important; padding:22px!important; border:1px solid #dce5ec; border-radius:16px;
    background:#fff; box-shadow:0 8px 26px rgba(23,33,43,.07);
}
body .miller-modern-single .miller-single-sidebar .miller-single-actions-wrap:before {
    content:'Interested in this vehicle?'; display:block; margin:0 0 5px; color:var(--miller-blue-dark); font-size:20px; font-weight:700; line-height:1.25;
}
body .miller-modern-single .miller-single-sidebar .miller-single-actions-wrap:after {
    content:'Choose an option below and we’ll help with the next step.'; display:block; margin:8px 0 0; color:#6b7987; font-size:12px; line-height:1.5;
}
body .miller-modern-single .miller-single-actions { margin:14px 0 0!important; }
body .miller-modern-single .miller-single-actions ul {
    display:grid!important; grid-template-columns:1fr 1fr; gap:10px; margin:0!important; padding:0!important;
}
body .miller-modern-single .miller-single-actions ul li { width:auto!important; float:none!important; margin:0!important; }
body .miller-modern-single .miller-single-actions ul li a {
    width:100%!important; min-height:44px; display:flex!important; align-items:center; justify-content:center; padding:10px 11px!important;
    border-radius:9px!important; font-size:12px!important; line-height:1.2!important; text-align:center; box-sizing:border-box;
}
body .miller-modern-single .miller-single-actions li.request,
body .miller-modern-single .miller-single-actions li.schedule,
body .miller-modern-single .miller-single-actions li.offer,
body .miller-modern-single .miller-single-actions li.trade { grid-column:auto; }
body .miller-modern-single .miller-single-actions li.prev1,
body .miller-modern-single .miller-single-actions li.next1,
body .miller-modern-single .miller-single-actions li.print,
body .miller-modern-single .miller-single-actions li.email,
body .miller-modern-single .miller-single-actions li.pdf { opacity:.94; }
body .miller-modern-single .miller-single-actions li.prev1 a,
body .miller-modern-single .miller-single-actions li.next1 a,
body .miller-modern-single .miller-single-actions li.print a,
body .miller-modern-single .miller-single-actions li.email a,
body .miller-modern-single .miller-single-actions li.pdf a { min-height:38px!important; font-size:11px!important; }

/* The summary above already contains the important specs, so don't repeat the legacy full table beside the gallery. */
body .miller-modern-single .miller-single-sidebar .widget:has(.car-info),
body .miller-modern-single .miller-single-sidebar .widget:has(.social-likes),
body .miller-modern-single .miller-single-sidebar .widget:has(.recent_posts_container),
body .miller-modern-single .miller-single-sidebar .car-info,
body .miller-modern-single .miller-single-sidebar .social-likes,
body .miller-modern-single .miller-single-sidebar .recent_posts_container { display:none!important; }
body .miller-modern-single .miller-single-sidebar .efficiency-rating { margin:0; border:1px solid #dce5ec; border-radius:14px; background:#fff; box-shadow:0 6px 20px rgba(23,33,43,.05); }

/* Modern tab navigation: wrap instead of producing a horizontal scrollbar. */
body .miller-modern-single .single-listing-tabs { overflow:hidden; border:1px solid #dce5ec; }
body .miller-modern-single .single-listing-tabs > .nav-tabs {
    display:flex!important; flex-wrap:wrap!important; overflow:visible!important; gap:0; padding:8px 10px 0!important; background:#f7f9fb; border-bottom:1px solid #dce5ec;
}
body .miller-modern-single .single-listing-tabs > .nav-tabs > li { flex:1 1 auto!important; margin:0!important; }
body .miller-modern-single .single-listing-tabs > .nav-tabs > li > a {
    display:block; padding:12px 12px!important; border:0!important; border-bottom:3px solid transparent!important; border-radius:0!important; text-align:center; font-size:12px!important;
}
body .miller-modern-single .single-listing-tabs > .nav-tabs > li.active > a,
body .miller-modern-single .single-listing-tabs > .nav-tabs > li > a.active { color:var(--miller-blue)!important; border-bottom-color:var(--miller-blue)!important; background:#fff!important; }

/* Financing is promoted to a full content card below the vehicle information. */
body .miller-modern-single .miller-finance-section {
    margin-top:24px; padding:26px 28px!important; border:1px solid #dce5ec; border-radius:16px; background:#fff; box-shadow:0 7px 24px rgba(23,33,43,.05);
}
body .miller-modern-single .miller-finance-section:before {
    content:'Estimate Your Payment'; display:block; margin-bottom:18px; color:var(--miller-blue-dark); font-size:24px; font-weight:700; line-height:1.25;
}
body .miller-modern-single .miller-finance-section .financing_calculator { max-width:760px; }
body .miller-modern-single .miller-finance-section .financing_calculator h3,
body .miller-modern-single .miller-finance-section .financing_calculator h2 { display:none; }
body .miller-modern-single .miller-finance-section .financing_calculator input,
body .miller-modern-single .miller-finance-section .financing_calculator select { border:1px solid #ccd8e2; border-radius:7px; min-height:40px; padding:7px 10px; }
body .miller-modern-single .miller-finance-section .calculate { border-radius:8px; padding:11px 16px; font-weight:600; }

@media (max-width:991px) {
 body .miller-modern-single .miller-single-heading .text-right { align-items:flex-start; }
 body .miller-modern-single .miller-single-content-row { display:block; }
 body .miller-modern-single .miller-single-main, body .miller-modern-single .miller-single-sidebar { width:100%; }
 body .miller-modern-single .miller-single-sidebar { margin-top:20px; }
 body .miller-modern-single .miller-single-sidebar .miller-single-actions-wrap { max-width:none; }
}
@media (max-width:600px) {
 body .miller-modern-single .miller-single-heading .text-right > h2:not(.strikeout) { font-size:30px!important; }
 body .miller-modern-single .miller-single-actions ul { grid-template-columns:1fr!important; }
 body .miller-modern-single .single-listing-tabs > .nav-tabs > li { flex:1 1 50%!important; }
 body .miller-modern-single .miller-finance-section { padding:20px 18px!important; }
}

/* Miller Auto Build 39 — remove the theme/blog sidebar from vehicle detail pages. */
body .miller-single-theme-row {
    display:block!important;
    width:100%!important;
}
body .miller-single-theme-content {
    float:none!important;
    flex:0 0 100%!important;
    width:100%!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
body .miller-single-theme-sidebar {
    display:none!important;
}
body .miller-modern-single {
    width:100%!important;
    max-width:none!important;
}
body .miller-modern-single > .container,
body .miller-modern-single .miller-single-content-shell {
    width:100%!important;
    max-width:1320px!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
body .miller-modern-single .miller-single-content-row {
    width:100%;
    margin-left:0!important;
    margin-right:0!important;
}
@media (min-width:1200px) {
    body .miller-modern-single .miller-single-main { flex:1 1 70%; }
    body .miller-modern-single .miller-single-sidebar { flex:0 0 calc(30% - 26px); }
}

/* Miller Auto Build 40 — full-width details refinement after removing legacy Single Listing Sidebar widgets. */
@media (min-width: 1100px) {
  body .miller-modern-single > .container,
  body .miller-modern-single .miller-single-content-shell {
    max-width: 1400px!important;
  }
  body .miller-modern-single .miller-single-content-row { gap:32px!important; }
  body .miller-modern-single .miller-single-main { flex:1 1 72%!important; }
  body .miller-modern-single .miller-single-sidebar { flex:0 0 calc(28% - 32px)!important; }
}
body .miller-modern-single .miller-single-heading { padding:30px 34px!important; }
body .miller-modern-single .miller-single-heading .col-lg-9 { width:72%!important; }
body .miller-modern-single .miller-single-heading .text-right { width:28%!important; }
body .miller-modern-single .miller-single-heading .text-right > h2:not(.strikeout),
body .miller-modern-single .miller-single-heading .text-right .miller-vehicle-price {
  display:block!important; font-size:38px!important; line-height:1!important; font-weight:700!important;
  color:var(--miller-blue-dark)!important; margin:0 0 10px!important; letter-spacing:-.025em!important;
}
body .miller-modern-single .miller-summary-item { padding:16px 18px!important; }
body .miller-modern-single .miller-summary-label { font-size:11px!important; }
body .miller-modern-single .miller-summary-value { font-size:14px!important; }
body .miller-modern-single .listing-slider .home-banner { min-height:500px!important; }
body .miller-modern-single .miller-single-sidebar .miller-single-actions-wrap { padding:24px!important; }
body .miller-modern-single .miller-single-sidebar .miller-single-actions-wrap:before { font-size:22px!important; }
body .miller-modern-single .miller-single-actions ul { gap:12px!important; }
body .miller-modern-single .miller-single-actions ul li a { min-height:48px!important; font-size:13px!important; padding:11px 13px!important; }
body .miller-modern-single .miller-single-actions li.prev1 a,
body .miller-modern-single .miller-single-actions li.next1 a,
body .miller-modern-single .miller-single-actions li.print a,
body .miller-modern-single .miller-single-actions li.email a,
body .miller-modern-single .miller-single-actions li.pdf a { min-height:42px!important; font-size:12px!important; }
body .miller-modern-single .miller-single-sidebar .efficiency-rating { padding:22px!important; }
body .miller-modern-single .single-listing-tabs .tab-content { padding:32px 34px!important; font-size:15px; line-height:1.75; }
body .miller-modern-single > .miller-finance-section {
  width:calc(100% - 30px)!important; max-width:1400px!important; margin:26px auto 0!important;
  padding:30px 34px!important;
}
body .miller-modern-single > .miller-finance-section .financing_calculator { max-width:900px!important; }
@media (max-width:991px) {
  body .miller-modern-single .miller-single-heading .col-lg-9,
  body .miller-modern-single .miller-single-heading .text-right { width:100%!important; }
  body .miller-modern-single .listing-slider .home-banner { min-height:0!important; }
  body .miller-modern-single > .miller-finance-section { width:calc(100% - 30px)!important; }
}

/* Miller Auto Build 41 — conversion panel, price emphasis, navigation, and lower-content ordering. */
body .miller-modern-single .miller-vehicle-nav {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  margin:-4px auto 12px!important; padding:0 4px!important;
}
body .miller-modern-single .miller-vehicle-nav-link {
  display:inline-flex; align-items:center; gap:7px; color:#526170!important;
  font-size:12px!important; font-weight:600!important; line-height:1.2;
  text-decoration:none!important; transition:color .18s ease;
}
body .miller-modern-single .miller-vehicle-nav-link:hover { color:var(--miller-blue)!important; }

/* Make the shopper's price a first-class element rather than a small legacy heading. */
body .miller-modern-single .miller-single-heading .text-right .miller-vehicle-price {
  order:-2!important; display:block!important; width:100%!important;
  font-family:'Poppins',sans-serif!important; font-size:44px!important; line-height:1!important;
  font-weight:700!important; letter-spacing:-.04em!important; color:var(--miller-blue-dark)!important;
  text-align:right!important; white-space:nowrap!important; margin:0 0 12px!important;
}
body .miller-modern-single .miller-single-heading .text-right .strikeout.original_price {
  order:-1!important; font-size:13px!important; line-height:1.2!important; font-weight:500!important;
  color:#7a8792!important; margin:0 0 4px!important;
}
body .miller-modern-single .miller-single-heading .text-right .carfax_title,
body .miller-modern-single .miller-single-heading .text-right > a,
body .miller-modern-single .miller-single-heading .text-right > img { margin-top:2px; }

/* Primary CTAs are deliberately one-per-row so labels never feel squeezed. */
body .miller-modern-single .miller-single-sidebar .miller-single-actions-wrap { padding:26px!important; }
body .miller-modern-single .miller-single-actions ul {
  display:grid!important; grid-template-columns:1fr 1fr!important; gap:10px!important;
}
body .miller-modern-single .miller-single-actions li.request,
body .miller-modern-single .miller-single-actions li.schedule,
body .miller-modern-single .miller-single-actions li.offer,
body .miller-modern-single .miller-single-actions li.trade {
  grid-column:1 / -1!important;
}
body .miller-modern-single .miller-single-actions li.request a,
body .miller-modern-single .miller-single-actions li.schedule a,
body .miller-modern-single .miller-single-actions li.offer a,
body .miller-modern-single .miller-single-actions li.trade a {
  min-height:48px!important; justify-content:flex-start!important; text-align:left!important;
  padding:12px 16px!important; font-size:13px!important; line-height:1.25!important;
}
body .miller-modern-single .miller-single-actions li.print,
body .miller-modern-single .miller-single-actions li.email,
body .miller-modern-single .miller-single-actions li.pdf { grid-column:auto!important; }
body .miller-modern-single .miller-single-actions li.print a,
body .miller-modern-single .miller-single-actions li.email a,
body .miller-modern-single .miller-single-actions li.pdf a {
  min-height:40px!important; padding:9px 10px!important; font-size:11px!important;
  background:#fff!important; color:var(--miller-blue)!important; border:1px solid #cbd8e5!important;
}

/* Financing now lives before the disclaimer/recent-vehicle footer content. */
body .miller-modern-single .miller-single-content-row > .miller-finance-section {
  float:none!important; width:100%!important; max-width:none!important;
  margin:26px 0 0!important; padding:30px 34px!important;
}
body .miller-modern-single .miller-single-content-row > .miller-finance-section .financing_calculator {
  max-width:900px!important;
}

@media (max-width:991px) {
  body .miller-modern-single .miller-single-heading .text-right .miller-vehicle-price {
    text-align:left!important; font-size:38px!important;
  }
  body .miller-modern-single .miller-vehicle-nav { margin-top:2px!important; }
}
@media (max-width:600px) {
  body .miller-modern-single .miller-single-actions ul { grid-template-columns:1fr!important; }
  body .miller-modern-single .miller-single-actions li.print,
  body .miller-modern-single .miller-single-actions li.email,
  body .miller-modern-single .miller-single-actions li.pdf { grid-column:1!important; }
  body .miller-modern-single .miller-single-heading .text-right .miller-vehicle-price { font-size:34px!important; }
}

/* Miller Auto Build 42 — final conversion and finance polish. */
body .miller-modern-single .miller-price-block { order:-3!important; width:100%; text-align:right; margin:0 0 8px; }
body .miller-modern-single .miller-price-label { display:block; margin-bottom:3px; color:#73808c; font-size:10px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
body .miller-modern-single .miller-price-block .miller-vehicle-price,
body .miller-modern-single .miller-price-block .miller-vehicle-price span { font-family:'Poppins',sans-serif!important; font-size:44px!important; line-height:1!important; font-weight:700!important; letter-spacing:-.04em!important; color:var(--miller-blue-dark)!important; text-decoration:none!important; }
body .miller-modern-single .miller-single-actions-wrap:after { display:none!important; content:none!important; }
body .miller-modern-single .miller-single-actions ul li { background:none!important; border:0!important; box-shadow:none!important; padding:0!important; }
body .miller-modern-single .miller-single-actions ul li:before,
body .miller-modern-single .miller-single-actions ul li:after { display:none!important; content:none!important; }
body .miller-modern-single .miller-single-actions ul li > a { margin:0!important; box-shadow:none!important; text-shadow:none!important; background-image:none!important; }
body .miller-modern-single .miller-single-actions li.request a,
body .miller-modern-single .miller-single-actions li.schedule a,
body .miller-modern-single .miller-single-actions li.offer a,
body .miller-modern-single .miller-single-actions li.trade a { justify-content:center!important; text-align:center!important; border:1px solid var(--miller-blue)!important; background:var(--miller-blue)!important; color:#fff!important; font-weight:600!important; border-radius:9px!important; }
body .miller-modern-single .miller-single-actions li.request a:before,
body .miller-modern-single .miller-single-actions li.schedule a:before,
body .miller-modern-single .miller-single-actions li.offer a:before,
body .miller-modern-single .miller-single-actions li.trade a:before { display:none!important; content:none!important; }
body .miller-modern-single .miller-single-actions li.print a,
body .miller-modern-single .miller-single-actions li.email a,
body .miller-modern-single .miller-single-actions li.pdf a { justify-content:center!important; text-align:center!important; border-radius:8px!important; font-weight:500!important; }

body .miller-modern-single .miller-finance-section .miller-finance-calculator { max-width:none!important; }
body .miller-modern-single .miller-finance-fields { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; align-items:end; }
body .miller-modern-single .miller-finance-field { display:block; margin:0; color:#435365; font-size:12px; font-weight:600; }
body .miller-modern-single .miller-finance-field > span { display:block; margin:0 0 7px; }
body .miller-modern-single .miller-finance-input { display:flex; align-items:center; height:44px; border:1px solid #ccd8e2; border-radius:8px; background:#fff; overflow:hidden; }
body .miller-modern-single .miller-finance-input input { flex:1; min-width:0; height:42px!important; min-height:42px!important; border:0!important; border-radius:0!important; box-shadow:none!important; padding:8px 4px!important; }
body .miller-modern-single .miller-finance-prefix,
body .miller-modern-single .miller-finance-suffix { padding:0 10px; color:#697887; font-size:12px; font-weight:500; white-space:nowrap; }
body .miller-modern-single .miller-finance-field select { width:100%!important; height:44px!important; min-height:44px!important; margin:0!important; }
body .miller-modern-single .miller-calculate-payment { display:inline-flex!important; align-items:center; justify-content:center; float:none!important; margin:18px 0 0!important; min-height:44px; padding:10px 18px!important; border-radius:8px!important; background:var(--miller-blue)!important; color:#fff!important; font-weight:600!important; cursor:pointer; }
body .miller-modern-single .miller-finance-result { display:grid; grid-template-columns:1fr auto; align-items:center; gap:2px 20px; margin-top:20px; padding:18px 20px; border:1px solid #d7e2eb; border-radius:12px; background:#f7f9fb; }
body .miller-modern-single .miller-result-label { color:#536272; font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; }
body .miller-modern-single .miller-finance-result .payment_amount { grid-column:2; grid-row:1 / span 2; color:var(--miller-blue-dark); font-size:28px; line-height:1; font-weight:700; }
body .miller-modern-single .miller-result-meta { color:#6c7986; font-size:12px; }
body .miller-modern-single .miller-finance-note { margin:12px 0 0!important; color:#687684; font-size:12px; }
@media (max-width:1100px) { body .miller-modern-single .miller-finance-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) {
 body .miller-modern-single .miller-price-block { text-align:left; }
 body .miller-modern-single .miller-price-block .miller-vehicle-price, body .miller-modern-single .miller-price-block .miller-vehicle-price span { font-size:34px!important; }
 body .miller-modern-single .miller-finance-fields { grid-template-columns:1fr; }
 body .miller-modern-single .miller-finance-result { grid-template-columns:1fr; }
 body .miller-modern-single .miller-finance-result .payment_amount { grid-column:1; grid-row:auto; margin:6px 0; }
}


/* Miller Auto Build 43 — full-width lower flow and final conversion-panel spacing. */
body .miller-modern-single .miller-single-content-row {
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-start!important;
}
@media (min-width:1100px) {
  body .miller-modern-single .miller-single-content-row { column-gap:32px!important; row-gap:0!important; }
  body .miller-modern-single .miller-single-main { flex:1 1 72%!important; width:auto!important; max-width:none!important; }
  body .miller-modern-single .miller-single-sidebar { flex:0 0 calc(28% - 32px)!important; width:auto!important; max-width:none!important; }
}
body .miller-modern-single .miller-fullwidth-details,
body .miller-modern-single .miller-single-content-row > .miller-finance-section,
body .miller-modern-single .miller-single-content-row > .miller-details-footer {
  flex:0 0 100%!important;
  width:100%!important;
  max-width:none!important;
  float:none!important;
  clear:both!important;
}
body .miller-modern-single .miller-fullwidth-details { margin:24px 0 0!important; }
body .miller-modern-single .miller-fullwidth-details .tab-content { width:100%!important; }
body .miller-modern-single .miller-single-content-row > .miller-finance-section { margin:26px 0 0!important; }
body .miller-modern-single .miller-single-content-row > .miller-details-footer {
  margin:24px 0 0!important;
  padding-left:0!important;
  padding-right:0!important;
}
body .miller-modern-single .miller-details-footer .listing_bottom_message {
  width:100%!important;
  max-width:none!important;
  margin:0 0 22px!important;
}
body .miller-modern-single .miller-details-footer .listing_bottom_message > * { max-width:none!important; }
/* Keep New Arrivals horizontal once it is back in the full-width footer area. */
body .miller-modern-single .miller-details-footer .recent-vehicles-wrap,
body .miller-modern-single .miller-details-footer .recent-vehicles,
body .miller-modern-single .miller-details-footer .vehicle-scroller,
body .miller-modern-single .miller-details-footer .car_listings {
  width:100%!important;
  max-width:none!important;
}
/* Primary actions should read as four distinct buttons, not a connected legacy stack. */
body .miller-modern-single .miller-single-actions ul {
  row-gap:12px!important;
  column-gap:10px!important;
}
body .miller-modern-single .miller-single-actions ul li {
  height:auto!important;
  min-height:0!important;
  line-height:normal!important;
  position:static!important;
  overflow:visible!important;
  transform:none!important;
}
body .miller-modern-single .miller-single-actions ul li > a {
  position:static!important;
  transform:none!important;
}
/* Keep price prominent without overpowering the title. */
body .miller-modern-single .miller-price-block .miller-vehicle-price,
body .miller-modern-single .miller-price-block .miller-vehicle-price span { font-size:40px!important; }
/* Do not leave empty legacy widget shells visible in the shopper sidebar. */
body .miller-modern-single .miller-single-sidebar .side-content > .widget:empty,
body .miller-modern-single .miller-single-sidebar .side-content > .widget-wrap:empty { display:none!important; }
@media (max-width:1099px) {
  body .miller-modern-single .miller-single-main,
  body .miller-modern-single .miller-single-sidebar { flex:0 0 100%!important; width:100%!important; }
  body .miller-modern-single .miller-single-sidebar { margin-top:20px!important; }
}
@media (max-width:600px) {
  body .miller-modern-single .miller-price-block .miller-vehicle-price,
  body .miller-modern-single .miller-price-block .miller-vehicle-price span { font-size:34px!important; }
}

/* Miller Auto Build 44 — lower-page flow is now defined in PHP markup, not JS reparenting. */
body .miller-modern-single .miller-single-content-row > .miller-fullwidth-details,
body .miller-modern-single .miller-single-content-row > .miller-finance-section,
body .miller-modern-single .miller-single-content-row > .miller-details-footer {
  flex:0 0 100%!important; width:100%!important; max-width:100%!important; clear:both!important;
}
body .miller-modern-single .miller-fullwidth-details { order:3; margin-top:24px!important; padding-left:0!important; padding-right:0!important; }
body .miller-modern-single .miller-finance-section { order:4; margin-top:26px!important; padding-left:24px!important; padding-right:24px!important; }
body .miller-modern-single .miller-details-footer { order:5; margin-top:24px!important; padding-left:0!important; padding-right:0!important; }
body .miller-modern-single .miller-single-main { order:1; }
body .miller-modern-single .miller-single-sidebar { order:2; }


/* Miller Auto Build 45 — finance frequency + customer-facing modal forms. */
body .miller-modern-single .miller-finance-field .miller-finance-frequency {
  width:100%!important;
  height:44px!important;
  min-height:44px!important;
  margin:0!important;
  padding:0 38px 0 12px!important;
  border:1px solid #ccd8e2!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#23313f!important;
  font-family:'Poppins',sans-serif!important;
  font-size:14px!important;
  font-weight:500!important;
  box-shadow:none!important;
  appearance:auto!important;
}
body .miller-modern-single .miller-finance-field .ts-wrapper { width:100%!important; }

/* Fancybox shell */
body .fancybox-overlay { background:rgba(14,27,39,.72)!important; }
body .fancybox-skin {
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 24px 70px rgba(0,0,0,.28)!important;
}
body .fancybox-inner {
  font-family:'Poppins',sans-serif!important;
  color:#273747!important;
  box-sizing:border-box!important;
}
body .fancybox-inner h3 {
  margin:0 0 22px!important;
  color:#0d4678!important;
  font-family:'Poppins',sans-serif!important;
  font-size:28px!important;
  line-height:1.2!important;
  font-weight:700!important;
}
body .fancybox-inner h4 {
  margin:24px 0 14px!important;
  color:#173f63!important;
  font-family:'Poppins',sans-serif!important;
  font-size:20px!important;
  line-height:1.25!important;
  font-weight:650!important;
}
body .fancybox-inner .ajax_form { font-family:'Poppins',sans-serif!important; }
body .fancybox-inner .ajax_form input[type="text"],
body .fancybox-inner .ajax_form input[type="email"],
body .fancybox-inner .ajax_form input[type="tel"],
body .fancybox-inner .ajax_form input[type="number"],
body .fancybox-inner .ajax_form textarea,
body .fancybox-inner .ajax_form select {
  width:100%!important;
  max-width:none!important;
  min-height:44px!important;
  box-sizing:border-box!important;
  margin:6px 0 14px!important;
  padding:9px 12px!important;
  border:1px solid #c8d4df!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#263747!important;
  font:500 14px/1.35 'Poppins',sans-serif!important;
  box-shadow:none!important;
}
body .fancybox-inner .ajax_form textarea { min-height:110px!important; resize:vertical!important; }
body .fancybox-inner .ajax_form input:focus,
body .fancybox-inner .ajax_form textarea:focus,
body .fancybox-inner .ajax_form select:focus {
  outline:none!important;
  border-color:#1b659d!important;
  box-shadow:0 0 0 3px rgba(27,101,157,.12)!important;
}
body .fancybox-inner .ajax_form input[type="submit"] {
  min-height:44px!important;
  margin-top:10px!important;
  padding:10px 20px!important;
  border:1px solid #17649b!important;
  border-radius:8px!important;
  background:#17649b!important;
  color:#fff!important;
  font:600 14px/1 'Poppins',sans-serif!important;
  cursor:pointer!important;
}
body .fancybox-inner .ajax_form input[type="submit"]:hover { background:#0d4f7f!important; border-color:#0d4f7f!important; }
body .fancybox-inner .ajax_form .styled_input {
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:8px 16px!important;
}
body .fancybox-inner .ajax_form .styled_input input[type="radio"],
body .fancybox-inner .ajax_form .styled_input input[type="checkbox"] {
  position:static!important;
  opacity:1!important;
  appearance:auto!important;
  width:16px!important;
  height:16px!important;
  margin:0!important;
}
body .fancybox-inner .ajax_form .styled_input label {
  margin:0!important;
  color:#33485b!important;
  font-weight:500!important;
}
body .fancybox-inner .recaptcha_holder { margin-top:8px!important; }

/* Request More Info / Schedule Test Drive — replace legacy table appearance. */
body .fancybox-inner form[name="request_info"] table.no_style,
body .fancybox-inner form[name="schedule"] table.no_style {
  width:100%!important;
  border:0!important;
  border-collapse:separate!important;
  border-spacing:0 12px!important;
  background:transparent!important;
  box-shadow:none!important;
}
body .fancybox-inner form[name="request_info"] table.no_style tr,
body .fancybox-inner form[name="schedule"] table.no_style tr { background:transparent!important; }
body .fancybox-inner form[name="request_info"] table.no_style td,
body .fancybox-inner form[name="schedule"] table.no_style td {
  border:0!important;
  background:transparent!important;
  padding:0!important;
  vertical-align:top!important;
  color:#536271!important;
  font-size:13px!important;
}
body .fancybox-inner form[name="request_info"] table.no_style td:first-child:not([colspan]),
body .fancybox-inner form[name="schedule"] table.no_style td:first-child:not([colspan]) {
  width:34%!important;
  padding:12px 18px 0 0!important;
  color:#30485e!important;
  font-weight:600!important;
}
body .fancybox-inner form[name="request_info"] table.no_style input[type="text"],
body .fancybox-inner form[name="schedule"] table.no_style input[type="text"] { margin:0!important; }

/* Trade-in — turn the old Bootstrap form into a clean, scrollable application. */
body .fancybox-wrap:has(form[name="trade_in"]) {
  width:min(1180px,calc(100vw - 48px))!important;
  max-width:calc(100vw - 48px)!important;
}
body .fancybox-wrap:has(form[name="trade_in"]) .fancybox-inner {
  width:100%!important;
  max-height:calc(100vh - 70px)!important;
  overflow:auto!important;
  padding:8px 18px 20px!important;
}
body .fancybox-inner form[name="trade_in"] .container {
  width:100%!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
}
body .fancybox-inner form[name="trade_in"] .row {
  display:flex!important;
  flex-wrap:wrap!important;
  margin:0 -10px!important;
}
body .fancybox-inner form[name="trade_in"] [class*="col-md-"] {
  float:none!important;
  box-sizing:border-box!important;
  padding:0 10px!important;
}
body .fancybox-inner form[name="trade_in"] .col-md-12 { flex:0 0 100%!important; max-width:100%!important; }
body .fancybox-inner form[name="trade_in"] .col-md-6 { flex:0 0 50%!important; max-width:50%!important; }
body .fancybox-inner form[name="trade_in"] input[type="text"],
body .fancybox-inner form[name="trade_in"] textarea,
body .fancybox-inner form[name="trade_in"] select { margin-top:5px!important; }
body .fancybox-inner form[name="trade_in"] textarea[style] { width:100%!important; }
body .fancybox-inner form[name="trade_in"] .ts-wrapper { width:100%!important; margin:5px 0 14px!important; }
body .fancybox-inner form[name="trade_in"] .ts-control {
  min-height:44px!important;
  border:1px solid #c8d4df!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:none!important;
  padding:9px 34px 9px 12px!important;
}
body .fancybox-inner form[name="trade_in"] .ts-dropdown { border-color:#c8d4df!important; border-radius:8px!important; }

@media (max-width:700px) {
  body .fancybox-wrap { max-width:calc(100vw - 24px)!important; }
  body .fancybox-inner { padding:4px!important; }
  body .fancybox-inner h3 { font-size:23px!important; }
  body .fancybox-inner form[name="request_info"] table.no_style td,
  body .fancybox-inner form[name="schedule"] table.no_style td { display:block!important; width:100%!important; }
  body .fancybox-inner form[name="request_info"] table.no_style td:first-child:not([colspan]),
  body .fancybox-inner form[name="schedule"] table.no_style td:first-child:not([colspan]) { width:100%!important; padding:0 0 6px!important; }
  body .fancybox-inner form[name="trade_in"] .col-md-6 { flex:0 0 100%!important; max-width:100%!important; }
}

/* Miller Auto Build 46 — final detail-page positioning and modal breathing room. */
@media (min-width:1100px) {
  body .miller-modern-single .miller-single-content-row {
    align-items:flex-start!important;
  }
  body .miller-modern-single .miller-single-sidebar {
    display:flex!important;
    flex-direction:column!important;
    gap:18px!important;
  }
}
body .miller-modern-single .miller-single-sidebar .miller-single-actions-wrap {
  box-sizing:border-box!important;
  max-width:none!important;
}
body .miller-modern-single .miller-single-sidebar .miller-single-actions {
  margin-bottom:0!important;
}
body .miller-modern-single .miller-single-sidebar .side-content {
  width:100%!important;
  margin:0!important;
}
body .miller-modern-single .miller-single-sidebar .side-content .efficiency-rating {
  width:100%!important;
  box-sizing:border-box!important;
}

/* Give all customer-facing modal forms consistent outside breathing room. */
body .fancybox-inner:has(form[name="request_info"]),
body .fancybox-inner:has(form[name="schedule"]),
body .fancybox-inner:has(form[name="offer"]),
body .fancybox-inner:has(form[name="email_friend"]) {
  padding:26px 30px 30px!important;
}
body .fancybox-wrap:has(form[name="trade_in"]) .fancybox-inner {
  padding:28px 32px 34px!important;
}
body .fancybox-inner form.ajax_form {
  margin:0!important;
}
body .fancybox-inner form[name="request_info"] table.no_style,
body .fancybox-inner form[name="schedule"] table.no_style {
  margin:0!important;
}

/* Slightly tighten the modal field rhythm while keeping generous edges. */
body .fancybox-inner form[name="request_info"] table.no_style,
body .fancybox-inner form[name="schedule"] table.no_style {
  border-spacing:0 10px!important;
}
body .fancybox-inner form[name="request_info"] table.no_style td:first-child:not([colspan]),
body .fancybox-inner form[name="schedule"] table.no_style td:first-child:not([colspan]) {
  padding-right:20px!important;
}

/* Modernize the remaining details tabs without changing behavior. */
body .miller-modern-single .single-listing-tabs > .nav-tabs > li > a {
  color:#526477!important;
  font-family:'Poppins',sans-serif!important;
  font-weight:500!important;
  text-decoration:none!important;
}
body .miller-modern-single .single-listing-tabs > .nav-tabs > li.active > a,
body .miller-modern-single .single-listing-tabs > .nav-tabs > li > a.active {
  color:#0d4f7f!important;
  font-weight:600!important;
}

/* The section heading already explains the calculator. */
body .miller-modern-single .miller-finance-section .financing_calculator > h4:first-child,
body .miller-modern-single .miller-finance-section .financing_calculator > .title:first-child {
  display:none!important;
}

@media (max-width:700px) {
  body .fancybox-inner:has(form[name="request_info"]),
  body .fancybox-inner:has(form[name="schedule"]),
  body .fancybox-inner:has(form[name="offer"]),
  body .fancybox-inner:has(form[name="email_friend"]),
  body .fancybox-wrap:has(form[name="trade_in"]) .fancybox-inner {
    padding:20px 18px 24px!important;
  }
}

/* Miller Auto Build 47 — lock the shopper layout, finish forms, tabs, and recent vehicles. */
@media (min-width:1100px) {
  body .miller-modern-single .miller-single-content-row {
    display:grid!important;
    grid-template-columns:minmax(0, 1fr) 340px!important;
    column-gap:32px!important;
    row-gap:0!important;
    align-items:start!important;
  }
  body .miller-modern-single .miller-single-main {
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    flex:none!important;
    padding:0!important;
  }
  body .miller-modern-single .miller-single-sidebar {
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    flex:none!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    gap:18px!important;
  }
  body .miller-modern-single .miller-fullwidth-details {
    grid-column:1 / -1!important;
    grid-row:2!important;
  }
  body .miller-modern-single .miller-finance-section {
    grid-column:1 / -1!important;
    grid-row:3!important;
  }
  body .miller-modern-single .miller-details-footer {
    grid-column:1 / -1!important;
    grid-row:4!important;
  }
}
@media (max-width:1099px) {
  body .miller-modern-single .miller-single-content-row { display:block!important; }
  body .miller-modern-single .miller-single-main,
  body .miller-modern-single .miller-single-sidebar,
  body .miller-modern-single .miller-fullwidth-details,
  body .miller-modern-single .miller-finance-section,
  body .miller-modern-single .miller-details-footer { width:100%!important; max-width:none!important; }
  body .miller-modern-single .miller-single-sidebar { margin-top:20px!important; }
}

/* Finish the tabs so no legacy link treatment leaks through. */
body .miller-modern-single .miller-details-tabs > .nav-tabs {
  display:flex!important;
  width:100%!important;
  margin:0!important;
  padding:0 10px!important;
  border:0!important;
  border-bottom:1px solid #d7e2eb!important;
  background:#f7f9fb!important;
  overflow:visible!important;
}
body .miller-modern-single .miller-details-tabs > .nav-tabs > li {
  flex:1 1 0!important;
  margin:0!important;
  border:0!important;
  list-style:none!important;
}
body .miller-modern-single .miller-details-tabs > .nav-tabs > li > a {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:48px!important;
  margin:0!important;
  padding:12px 10px!important;
  border:0!important;
  border-bottom:3px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  color:#526477!important;
  font:500 12px/1.3 'Poppins',sans-serif!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
body .miller-modern-single .miller-details-tabs > .nav-tabs > li.active > a,
body .miller-modern-single .miller-details-tabs > .nav-tabs > li > a.active,
body .miller-modern-single .miller-details-tabs > .nav-tabs > li > a:hover {
  color:#0d4f7f!important;
  background:#fff!important;
  border-bottom-color:#17649b!important;
  text-decoration:none!important;
}
@media (max-width:760px) {
  body .miller-modern-single .miller-details-tabs > .nav-tabs { flex-wrap:wrap!important; padding:0!important; }
  body .miller-modern-single .miller-details-tabs > .nav-tabs > li { flex:1 1 50%!important; }
}

/* Modal geometry: padding is inside the measured width, and fields can never escape it. */
body .fancybox-inner:has(form[name="request_info"]),
body .fancybox-inner:has(form[name="schedule"]),
body .fancybox-inner:has(form[name="offer"]),
body .fancybox-inner:has(form[name="email_friend"]) {
  box-sizing:border-box!important;
  padding:34px 38px 38px!important;
  overflow:visible!important;
}
body .fancybox-inner form[name="request_info"],
body .fancybox-inner form[name="schedule"],
body .fancybox-inner form[name="offer"],
body .fancybox-inner form[name="email_friend"] {
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body .fancybox-inner form[name="request_info"] table.no_style,
body .fancybox-inner form[name="schedule"] table.no_style {
  width:100%!important;
  max-width:100%!important;
  table-layout:fixed!important;
  box-sizing:border-box!important;
}
body .fancybox-inner form[name="request_info"] table.no_style td:last-child,
body .fancybox-inner form[name="schedule"] table.no_style td:last-child {
  width:66%!important;
  max-width:66%!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
body .fancybox-inner form[name="request_info"] input,
body .fancybox-inner form[name="request_info"] textarea,
body .fancybox-inner form[name="request_info"] select,
body .fancybox-inner form[name="schedule"] input,
body .fancybox-inner form[name="schedule"] textarea,
body .fancybox-inner form[name="schedule"] select,
body .fancybox-inner form[name="offer"] input,
body .fancybox-inner form[name="offer"] textarea,
body .fancybox-inner form[name="offer"] select,
body .fancybox-inner form[name="email_friend"] input,
body .fancybox-inner form[name="email_friend"] textarea,
body .fancybox-inner form[name="email_friend"] select {
  max-width:100%!important;
  box-sizing:border-box!important;
}

/* Trade-in gets the same modern field system and more deliberate edge padding. */
body .fancybox-wrap:has(form[name="trade_in"]) .fancybox-inner {
  box-sizing:border-box!important;
  padding:36px 42px 40px!important;
}
body .fancybox-inner form[name="trade_in"] {
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body .fancybox-inner form[name="trade_in"] input[type="text"],
body .fancybox-inner form[name="trade_in"] input[type="email"],
body .fancybox-inner form[name="trade_in"] input[type="tel"],
body .fancybox-inner form[name="trade_in"] input[type="number"],
body .fancybox-inner form[name="trade_in"] textarea,
body .fancybox-inner form[name="trade_in"] select {
  width:100%!important;
  max-width:100%!important;
  min-height:44px!important;
  box-sizing:border-box!important;
  margin:5px 0 14px!important;
  padding:9px 12px!important;
  border:1px solid #c8d4df!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#263747!important;
  font:500 14px/1.35 'Poppins',sans-serif!important;
  box-shadow:none!important;
}
body .fancybox-inner form[name="trade_in"] textarea { min-height:104px!important; resize:vertical!important; }
body .fancybox-inner form[name="trade_in"] input[type="submit"] {
  min-height:44px!important;
  padding:10px 20px!important;
  border:1px solid #17649b!important;
  border-radius:8px!important;
  background:#17649b!important;
  color:#fff!important;
  font:600 14px/1 'Poppins',sans-serif!important;
}

/* Recent vehicles: visually relate the scroller to the modern inventory cards. */
body .miller-modern-single .miller-details-footer .recent-vehicles-wrap {
  margin:26px 0 0!important;
  padding:0!important;
}
body .miller-modern-single .miller-details-footer .recent-vehicles-wrap > .row {
  display:grid!important;
  grid-template-columns:190px minmax(0,1fr)!important;
  gap:26px!important;
  margin:0!important;
  align-items:start!important;
}
body .miller-modern-single .miller-details-footer .recent-vehicles-wrap .recent-vehicles,
body .miller-modern-single .miller-details-footer .recent-vehicles-wrap > .row > div:last-child {
  width:100%!important;
  max-width:none!important;
  padding:0!important;
  float:none!important;
}
body .miller-modern-single .miller-details-footer .scroller_title {
  margin:0 0 8px!important;
  color:#0d4678!important;
  font:700 22px/1.15 'Poppins',sans-serif!important;
  text-transform:none!important;
}
body .miller-modern-single .miller-details-footer .recent-vehicles p {
  margin:0 0 14px!important;
  color:#5d6b79!important;
  font:400 13px/1.55 'Poppins',sans-serif!important;
}
body .miller-modern-single .miller-details-footer .arrow3 span {
  width:34px!important;
  height:34px!important;
  border:1px solid #d5e0e9!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 2px 8px rgba(23,33,43,.05)!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 .slide {
  margin-right:16px!important;
  border:1px solid #dce5ec!important;
  border-radius:12px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 5px 16px rgba(23,33,43,.06)!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 .car-block,
body .miller-modern-single .miller-details-footer .carousel-slider3 .car-block-bottom {
  background:#fff!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 .car-block-bottom {
  min-height:92px!important;
  padding:10px 9px 12px!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 .scroller_text,
body .miller-modern-single .miller-details-footer .carousel-slider3 .scroller_text strong {
  color:#273747!important;
  font-family:'Poppins',sans-serif!important;
  line-height:1.3!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 .scroller_text strong {
  display:block!important;
  font-size:12px!important;
  font-weight:600!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 .scroller_price {
  display:block!important;
  margin-top:6px!important;
  color:#0d4678!important;
  font:700 14px/1.2 'Poppins',sans-serif!important;
}
@media (max-width:850px) {
  body .miller-modern-single .miller-details-footer .recent-vehicles-wrap > .row {
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
}

@media (max-width:700px) {
  body .fancybox-inner:has(form[name="request_info"]),
  body .fancybox-inner:has(form[name="schedule"]),
  body .fancybox-inner:has(form[name="offer"]),
  body .fancybox-inner:has(form[name="email_friend"]),
  body .fancybox-wrap:has(form[name="trade_in"]) .fancybox-inner {
    padding:24px 20px 28px!important;
  }
}

/* Miller Auto Build 48 — contain customer modals and keep form padding inside the dialog. */
body .fancybox-wrap:has(form[name="request_info"]),
body .fancybox-wrap:has(form[name="schedule"]),
body .fancybox-wrap:has(form[name="offer"]),
body .fancybox-wrap:has(form[name="email_friend"]) {
  width:min(520px,calc(100vw - 40px))!important;
  max-width:calc(100vw - 40px)!important;
}
body .fancybox-wrap:has(form[name="request_info"]) .fancybox-skin,
body .fancybox-wrap:has(form[name="schedule"]) .fancybox-skin,
body .fancybox-wrap:has(form[name="offer"]) .fancybox-skin,
body .fancybox-wrap:has(form[name="email_friend"]) .fancybox-skin {
  width:100%!important;
  box-sizing:border-box!important;
}
body .fancybox-wrap:has(form[name="request_info"]) .fancybox-inner,
body .fancybox-wrap:has(form[name="schedule"]) .fancybox-inner,
body .fancybox-wrap:has(form[name="offer"]) .fancybox-inner,
body .fancybox-wrap:has(form[name="email_friend"]) .fancybox-inner {
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:calc(100vh - 70px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
  padding:34px 34px 36px!important;
}
body .fancybox-inner form[name="request_info"] table.no_style,
body .fancybox-inner form[name="schedule"] table.no_style {
  display:block!important;
  width:100%!important;
  table-layout:auto!important;
}
body .fancybox-inner form[name="request_info"] table.no_style tbody,
body .fancybox-inner form[name="schedule"] table.no_style tbody {
  display:block!important;
  width:100%!important;
}
body .fancybox-inner form[name="request_info"] table.no_style tr,
body .fancybox-inner form[name="schedule"] table.no_style tr {
  display:grid!important;
  grid-template-columns:120px minmax(0,1fr)!important;
  gap:16px!important;
  width:100%!important;
  margin:0 0 12px!important;
}
body .fancybox-inner form[name="request_info"] table.no_style td,
body .fancybox-inner form[name="schedule"] table.no_style td,
body .fancybox-inner form[name="request_info"] table.no_style td:first-child:not([colspan]),
body .fancybox-inner form[name="schedule"] table.no_style td:first-child:not([colspan]),
body .fancybox-inner form[name="request_info"] table.no_style td:last-child,
body .fancybox-inner form[name="schedule"] table.no_style td:last-child {
  display:block!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
body .fancybox-inner form[name="request_info"] table.no_style td:first-child:not([colspan]),
body .fancybox-inner form[name="schedule"] table.no_style td:first-child:not([colspan]) {
  padding-top:12px!important;
}
body .fancybox-inner form[name="request_info"] table.no_style td[colspan="2"],
body .fancybox-inner form[name="schedule"] table.no_style td[colspan="2"] {
  grid-column:1 / -1!important;
}
body .fancybox-inner form[name="request_info"] .fancybox_textarea,
body .fancybox-inner form[name="schedule"] .fancybox_textarea {
  width:100%!important;
}

/* Keep the long trade-in application centered, padded, and reachable at every viewport size. */
body .fancybox-wrap:has(form[name="trade_in"]) {
  width:min(1120px,calc(100vw - 48px))!important;
  max-width:calc(100vw - 48px)!important;
}
body .fancybox-wrap:has(form[name="trade_in"]) .fancybox-skin {
  width:100%!important;
  box-sizing:border-box!important;
}
body .fancybox-wrap:has(form[name="trade_in"]) .fancybox-inner {
  width:100%!important;
  max-width:100%!important;
  max-height:calc(100vh - 56px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
  padding:32px 38px 38px!important;
}
body .fancybox-wrap:has(form[name="trade_in"]) .fancybox-close {
  top:-14px!important;
  right:-14px!important;
}

@media (max-width:600px) {
  body .fancybox-wrap:has(form[name="request_info"]),
  body .fancybox-wrap:has(form[name="schedule"]),
  body .fancybox-wrap:has(form[name="offer"]),
  body .fancybox-wrap:has(form[name="email_friend"]),
  body .fancybox-wrap:has(form[name="trade_in"]) {
    width:calc(100vw - 20px)!important;
    max-width:calc(100vw - 20px)!important;
  }
  body .fancybox-wrap:has(form[name="request_info"]) .fancybox-inner,
  body .fancybox-wrap:has(form[name="schedule"]) .fancybox-inner,
  body .fancybox-wrap:has(form[name="offer"]) .fancybox-inner,
  body .fancybox-wrap:has(form[name="email_friend"]) .fancybox-inner,
  body .fancybox-wrap:has(form[name="trade_in"]) .fancybox-inner {
    padding:24px 20px 28px!important;
  }
  body .fancybox-inner form[name="request_info"] table.no_style tr,
  body .fancybox-inner form[name="schedule"] table.no_style tr {
    grid-template-columns:1fr!important;
    gap:5px!important;
  }
  body .fancybox-inner form[name="request_info"] table.no_style td:first-child:not([colspan]),
  body .fancybox-inner form[name="schedule"] table.no_style td:first-child:not([colspan]) {
    padding-top:0!important;
  }
}

/* Miller Auto Build 49 — final details-page polish. */
/* Compact the vehicle header while preserving the title/price hierarchy. */
body .miller-modern-single .miller-single-heading {
  height:auto!important;
  min-height:0!important;
  padding:22px 28px!important;
}
body .miller-modern-single .miller-single-heading .row {
  min-height:0!important;
  align-items:flex-start!important;
}
body .miller-modern-single .miller-single-heading h2 {
  margin:0!important;
}
body .miller-modern-single .miller-single-heading .text-right {
  justify-content:flex-start!important;
}
@media (max-width:700px) {
  body .miller-modern-single .miller-single-heading { padding:18px!important; }
}

/* Keep the hero photo at a true 4:3 presentation with no side bars. */
body .miller-modern-single .listing-slider .home-banner {
  aspect-ratio:4 / 3!important;
  min-height:0!important;
  height:auto!important;
  background:#fff!important;
  overflow:hidden!important;
}
body .miller-modern-single .listing-slider #home-slider-canvas,
body .miller-modern-single .listing-slider #home-slider-canvas .flex-viewport,
body .miller-modern-single .listing-slider #home-slider-canvas .slides,
body .miller-modern-single .listing-slider #home-slider-canvas .slides > li {
  height:100%!important;
  min-height:0!important;
}
body .miller-modern-single .listing-slider #home-slider-canvas .slides > li {
  overflow:hidden!important;
  background:#fff!important;
}
body .miller-modern-single .listing-slider #home-slider-canvas .slides > li > img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  background:#fff!important;
}

/* Use Miller blue for feature checkmarks instead of the legacy red accent. */
body .miller-modern-single .miller-details-tabs .fa-check,
body .miller-modern-single .miller-details-tabs #features .fa,
body .miller-modern-single .miller-details-tabs #features .fa-li {
  color:#17649b!important;
}

/* Finish the recently-added vehicle carousel. */
body .miller-modern-single .miller-details-footer .recent-vehicles-wrap {
  padding:2px 0 8px!important;
}
body .miller-modern-single .miller-details-footer .recent-vehicles-wrap > .row > div:last-child {
  min-width:0!important;
  overflow:hidden!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3,
body .miller-modern-single .miller-details-footer .carousel-slider3 .bx-wrapper,
body .miller-modern-single .miller-details-footer .carousel-slider3 .bx-viewport {
  max-width:100%!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 .bx-viewport {
  overflow:hidden!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 .slide {
  margin-top:2px!important;
  margin-bottom:8px!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 .car-block {
  overflow:hidden!important;
  border-radius:11px 11px 0 0!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 .car-block img {
  display:block!important;
  width:100%!important;
  aspect-ratio:4 / 3!important;
  height:auto!important;
  object-fit:cover!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 .car-block-bottom {
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  min-height:112px!important;
  border-top:1px solid #edf1f4!important;
}
body .miller-modern-single .miller-details-footer .arrow3 {
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
}
body .miller-modern-single .miller-details-footer .arrow3 span {
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:34px!important;
  height:34px!important;
  margin:0!important;
  border:1px solid #cbd9e5!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#17649b!important;
  cursor:pointer!important;
}
body .miller-modern-single .miller-details-footer .arrow3 span:before {
  font-family:"Font Awesome 5 Free"!important;
  font-weight:900!important;
  font-size:12px!important;
  line-height:1!important;
}
body .miller-modern-single .miller-details-footer .arrow3 .prev-btn:before { content:"\f053"!important; }
body .miller-modern-single .miller-details-footer .arrow3 .next-btn:before { content:"\f054"!important; }
body .miller-modern-single .miller-details-footer .arrow3 span:hover,
body .miller-modern-single .miller-details-footer .arrow3 span:focus {
  background:#17649b!important;
  border-color:#17649b!important;
  color:#fff!important;
}
body .miller-modern-single .miller-details-footer .arrow3 .bx-prev,
body .miller-modern-single .miller-details-footer .arrow3 .bx-next {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  font-size:0!important;
  color:transparent!important;
}
@media (max-width:850px) {
  body .miller-modern-single .miller-details-footer .recent-vehicles-wrap { margin-top:22px!important; }
  body .miller-modern-single .miller-details-footer .carousel-slider3 .car-block-bottom { min-height:100px!important; }
}

/* Miller Auto Build 50 — compact vehicle header + full-width New Arrivals. */
body .miller-modern-single .miller-single-heading {
  padding:18px 20px!important;
  margin-bottom:12px!important;
}
body .miller-modern-single .miller-single-heading .row {
  display:flex!important;
  align-items:flex-start!important;
  min-height:0!important;
}
body .miller-modern-single .miller-single-heading .text-right {
  gap:3px!important;
  line-height:1.2!important;
}
body .miller-modern-single .miller-single-heading .text-right > h2:not(.strikeout) {
  margin:0 0 4px!important;
}
body .miller-modern-single .miller-single-heading .text-right em {
  margin:3px 0!important;
  line-height:1.35!important;
}
body .miller-modern-single .miller-single-heading .text-right .carfax_title,
body .miller-modern-single .miller-single-heading .text-right img {
  margin:4px 0!important;
}
body .miller-modern-single .miller-details-footer .recent-vehicles-wrap > .row {
  grid-template-columns:190px minmax(0,1fr)!important;
  width:100%!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3,
body .miller-modern-single .miller-details-footer .carousel-slider3 .bx-wrapper,
body .miller-modern-single .miller-details-footer .carousel-slider3 .bx-viewport {
  width:100%!important;
  max-width:none!important;
}
@media (max-width:991px) {
  body .miller-modern-single .miller-single-heading .row { display:block!important; }
  body .miller-modern-single .miller-single-heading .text-right { align-items:flex-start!important; margin-top:14px!important; }
}


/* Miller Auto Build 51 — fix title-card height and stabilize New Arrivals sizing. */
@media (min-width: 992px) {
  body .miller-modern-single .miller-single-heading {
    min-height:0!important;
    height:auto!important;
    padding:18px 20px!important;
  }
  body .miller-modern-single .miller-single-heading .row {
    min-height:0!important;
    height:auto!important;
    display:flex!important;
    align-items:flex-start!important;
  }
  body .miller-modern-single .miller-single-heading .col-lg-9 {
    align-self:flex-start!important;
  }
  body .miller-modern-single .miller-single-heading .text-right {
    display:flex!important;
    flex-flow:row wrap!important;
    justify-content:flex-end!important;
    align-items:flex-start!important;
    align-content:flex-start!important;
    column-gap:14px!important;
    row-gap:4px!important;
  }
  body .miller-modern-single .miller-single-heading .text-right .miller-price-block {
    order:1!important;
    flex:0 0 auto!important;
    margin:0!important;
  }
  body .miller-modern-single .miller-single-heading .text-right > a {
    order:2!important;
    flex:0 0 auto!important;
    margin:2px 0 0!important;
  }
  body .miller-modern-single .miller-single-heading .text-right > em,
  body .miller-modern-single .miller-single-heading .text-right > p,
  body .miller-modern-single .miller-single-heading .text-right > span:not(.sold_text) {
    order:3!important;
    flex:0 0 100%!important;
    width:100%!important;
    margin:2px 0 0!important;
    line-height:1.3!important;
  }
  body .miller-modern-single .miller-single-heading .text-right .carfax_title {
    max-width:128px!important;
    margin:0!important;
  }
  body .miller-modern-single .miller-single-heading .text-right .miller-vehicle-price {
    font-size:38px!important;
    margin:0!important;
  }
  body .miller-modern-single .miller-single-heading .text-right .miller-price-label {
    margin-bottom:2px!important;
  }
}

/* New Arrivals: keep cards at a usable width even before bxSlider finishes measuring. */
body .miller-modern-single .miller-details-footer .recent-vehicles-wrap > .row > div:last-child {
  min-width:0!important;
  width:100%!important;
  overflow:hidden!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 {
  width:100%!important;
  min-width:0!important;
  white-space:normal!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 .slide {
  min-width:180px!important;
  max-width:240px!important;
  box-sizing:border-box!important;
}
body .miller-modern-single .miller-details-footer .carousel-slider3 .bx-wrapper,
body .miller-modern-single .miller-details-footer .carousel-slider3 .bx-viewport {
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
@media (max-width: 850px) {
  body .miller-modern-single .miller-details-footer .carousel-slider3 .slide {
    min-width:170px!important;
    max-width:220px!important;
  }
}

/* Build 52: move vehicle-history badge from title card onto the gallery */
body .miller-modern-single .miller-gallery-with-history {
  position: relative;
}
body .miller-modern-single .miller-gallery-history-badge {
  position: absolute;
  z-index: 25;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 75, 119, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(15, 43, 67, .14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body .miller-modern-single .miller-gallery-history-badge:empty {
  display: none;
}
body .miller-modern-single .miller-gallery-history-badge a {
  display: block;
  line-height: 0;
}
body .miller-modern-single .miller-gallery-history-badge img,
body .miller-modern-single .miller-gallery-history-badge .carfax_title,
body .miller-modern-single .miller-gallery-history-badge .carfax {
  display: block;
  width: auto !important;
  max-width: 138px !important;
  max-height: 46px !important;
  margin: 0 !important;
}
/* With the history badge gone, keep the title card focused on title + price. */
body .miller-modern-single .miller-single-heading .text-right > .miller-price-block:first-child {
  margin-top: 0 !important;
}
@media (max-width: 767px) {
  body .miller-modern-single .miller-gallery-history-badge {
    top: 10px;
    right: 10px;
    min-height: 42px;
    padding: 6px 8px;
    border-radius: 8px;
  }
  body .miller-modern-single .miller-gallery-history-badge img,
  body .miller-modern-single .miller-gallery-history-badge .carfax_title,
  body .miller-modern-single .miller-gallery-history-badge .carfax {
    max-width: 108px !important;
    max-height: 36px !important;
  }
}
\n\n/* Miller Auto Build 53 — tighter, balanced vehicle title/price header. */
body .miller-modern-single .miller-single-heading {
    padding: 30px 34px 28px !important;
    min-height: 0 !important;
}
body .miller-modern-single .miller-single-heading .row {
    display: flex;
    align-items: flex-start;
    min-height: 0;
}
body .miller-modern-single .miller-single-heading .row > div:first-child {
    padding-right: 28px;
}
body .miller-modern-single .miller-single-heading .text-right {
    padding-top: 2px;
    justify-content: flex-start;
}
body .miller-modern-single .miller-price-block {
    margin: 0;
    line-height: 1;
}
body .miller-modern-single .miller-price-label {
    display: none !important;
}
body .miller-modern-single .miller-vehicle-price {
    margin: 0 !important;
    line-height: 1 !important;
}
body .miller-modern-single .miller-single-heading .text-right em {
    margin-top: 8px !important;
}
body .miller-modern-single .miller-no-hidden-fees {
    margin-top: 14px !important;
}
@media (max-width: 767px) {
    body .miller-modern-single .miller-single-heading {
        padding: 22px 20px !important;
    }
    body .miller-modern-single .miller-single-heading .row {
        display: block;
    }
    body .miller-modern-single .miller-single-heading .row > div:first-child {
        padding-right: 0;
    }
    body .miller-modern-single .miller-single-heading .text-right {
        align-items: flex-start;
        text-align: left !important;
        margin-top: 18px;
        padding-top: 0;
    }
}

/* Miller Auto Build 54 — real title-card gutters and balanced alignment. */
@media (min-width: 992px) {
  body .miller-modern-single .miller-single-heading {
    padding: 28px 38px !important;
  }
  /* Bootstrap's negative .row margins were visually cancelling the card padding. */
  body .miller-modern-single .miller-single-heading > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: center !important;
  }
  body .miller-modern-single .miller-single-heading > .row > div:first-child {
    padding-left: 0 !important;
    padding-right: 32px !important;
  }
  body .miller-modern-single .miller-single-heading > .row > .text-right {
    padding-left: 20px !important;
    padding-right: 0 !important;
    align-self: center !important;
    justify-content: center !important;
  }
}
@media (max-width: 991px) {
  body .miller-modern-single .miller-single-heading {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  body .miller-modern-single .miller-single-heading > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body .miller-modern-single .miller-single-heading > .row > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Miller Auto Build 55 — balance title-card vertical spacing and improve secondary text legibility. */
@media (min-width: 992px) {
  body .miller-modern-single .miller-single-heading {
    padding-top: 26px !important;
    padding-bottom: 22px !important;
  }
}
body .miller-modern-single .miller-single-heading .text-right em {
  font-size: 13px !important;
  line-height: 1.4 !important;
}
body .miller-modern-single .miller-vehicle-nav-link {
  font-size: 13px !important;
  line-height: 1.35 !important;
}

/* Miller Auto Build 57 — dedicated mobile inventory layout. */
@media (max-width: 767px) {
  /* The redesigned filter panel replaces the plugin's legacy sticky mobile Filter Search control. */
  body.automotive-msb-active .mobile-slideout-button,
  body.automotive-msb-active .refine-search {
    display:none !important;
  }

  body .miller-modern-filter-form {
    width:100% !important;
    max-width:100% !important;
    margin-bottom:20px !important;
    overflow:visible !important;
  }
  body .miller-modern-filter-form .miller-filter-panel {
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    padding:18px 16px !important;
    border-radius:14px !important;
  }
  body .miller-modern-filter-form .miller-filter-panel-header {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:start !important;
    gap:12px !important;
    margin-bottom:14px !important;
  }
  body .miller-modern-filter-form .miller-filter-kicker {
    font-size:10px !important;
    letter-spacing:1.7px !important;
  }
  body .miller-modern-filter-form .miller-filter-panel-header h3 {
    font-size:25px !important;
    line-height:1.08 !important;
    margin:3px 0 7px !important;
  }
  body .miller-modern-filter-form .miller-filter-panel-header p {
    max-width:280px !important;
    font-size:13px !important;
    line-height:1.55 !important;
  }
  body .miller-modern-filter-form .miller-filter-toggle {
    min-width:96px !important;
    height:44px !important;
    padding:0 14px !important;
    border-radius:11px !important;
    font-size:13px !important;
  }

  /* Final override must come after the old deterministic 4-column rules. */
  body .miller-modern-filter-form .listing_select#\miller-inventory-filter-fields,
  body .miller-modern-filter-form .listing_select#\miller-inventory-filter-fields.miller-filter-fields-open {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  body .miller-modern-filter-form .listing_select#\miller-inventory-filter-fields > :nth-child(n) {
    grid-column:auto !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  body .miller-modern-filter-form .listing_select .my-dropdown,
  body .miller-modern-filter-form .listing_select .listing-range-slider-container,
  body .miller-modern-filter-form .listing_select .ts-wrapper,
  body .miller-modern-filter-form .listing_select .ts-control {
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  body .miller-modern-filter-form .listing_select .my-dropdown select,
  body .miller-modern-filter-form .listing_select .ts-control {
    min-height:48px !important;
    height:48px !important;
    padding-left:13px !important;
    padding-right:31px !important;
    font-size:13px !important;
    line-height:1.2 !important;
    overflow:hidden !important;
  }
  body .miller-modern-filter-form .listing_select .ts-control > input {
    min-width:0 !important;
    width:100% !important;
    font-size:13px !important;
  }
  body .miller-modern-filter-form .listing_select .ts-control .item {
    max-width:calc(100% - 14px) !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  body .miller-modern-filter-form .miller-active-filter-bar {
    position:static !important;
    clear:both !important;
    width:100% !important;
    margin:0 0 14px !important;
    padding:0 !important;
    gap:7px !important;
  }
  body .miller-modern-filter-form .miller-active-filter-bar li {
    max-width:100% !important;
    min-height:32px !important;
    padding:6px 10px !important;
  }
  body .miller-modern-filter-form .miller-active-filter-bar li a {
    font-size:12px !important;
  }

  /* Mobile toolbar: sort, pagination, then three clear actions. */
  body .miller-modern-filter-form .miller-filter-toolbar {
    margin-top:14px !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar > .row {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    margin:0 !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar > .row > div {
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    float:none !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar .sort-by-menu {
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    align-items:center !important;
    gap:10px !important;
    margin:0 !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar .sort-by {
    font-size:13px !important;
    white-space:nowrap !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar .price-ascending-dropdown,
  body .miller-modern-filter-form .miller-filter-toolbar .price-ascending-dropdown .ts-wrapper,
  body .miller-modern-filter-form .miller-filter-toolbar .price-ascending-dropdown select {
    width:100% !important;
    max-width:100% !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar .price-ascending-dropdown select,
  body .miller-modern-filter-form .miller-filter-toolbar .price-ascending-dropdown .ts-control {
    min-height:46px !important;
    height:46px !important;
    font-size:13px !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar .page_of,
  body .miller-modern-filter-form .miller-filter-toolbar .pagination_container {
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    width:100% !important;
    margin:0 !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar .top_buttons {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:9px !important;
    width:100% !important;
    margin:0 !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar .top_buttons li {
    width:100% !important;
    min-width:0 !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar .top_buttons li:last-child {
    grid-column:1 / -1 !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar .gradient_button {
    width:100% !important;
    min-height:44px !important;
    padding:0 10px !important;
    box-sizing:border-box !important;
    font-size:12px !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar .compare {
    min-height:46px !important;
    font-size:13px !important;
  }

  body .miller-results-summary {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
    gap:5px 8px !important;
    margin-bottom:18px !important;
    padding:13px 15px !important;
    border-radius:12px !important;
  }
  body .miller-results-summary-main {
    gap:6px !important;
  }
  body .miller-results-scope {
    width:100% !important;
    white-space:normal !important;
  }

  /* Inventory cards: keep comfortable phone gutters and prevent any legacy width overflow. */
  body .car_listings.miller-modern-results,
  body .inventory-wide-sidebar-left.miller-modern-results > .sidebar,
  body .inventory-wide-sidebar-right.miller-modern-results > .sidebar {
    width:100% !important;
    max-width:100% !important;
    grid-template-columns:1fr !important;
    gap:22px !important;
    overflow:visible !important;
  }
  body .miller-modern-results .miller-vehicle-card {
    width:100% !important;
    max-width:100% !important;
    border-radius:16px !important;
    overflow:hidden !important;
  }
  body .car_listings .miller-compare-control {
    top:12px !important;
    right:12px !important;
    min-width:102px !important;
    height:38px !important;
    padding:0 12px !important;
    font-size:12px !important;
  }
}

@media (max-width: 379px) {
  body .miller-modern-filter-form .miller-filter-panel-header {
    grid-template-columns:1fr !important;
  }
  body .miller-modern-filter-form .miller-filter-toggle {
    width:100% !important;
  }
  body .miller-modern-filter-form .listing_select#\miller-inventory-filter-fields,
  body .miller-modern-filter-form .listing_select#\miller-inventory-filter-fields.miller-filter-fields-open {
    grid-template-columns:1fr !important;
  }
}

/* Miller Auto Build 58 — compact mobile sizing + eliminate inventory-page horizontal overflow. */
@media (max-width: 767px) {
  /* Neutralize legacy Bootstrap widths/negative gutters inside the inventory UI. */
  body .miller-modern-filter-form,
  body .miller-modern-results,
  body .miller-modern-results > .sidebar,
  body .miller-results-summary {
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  body .miller-modern-filter-form .row,
  body .miller-modern-results .row {
    margin-left:0 !important;
    margin-right:0 !important;
  }
  body .miller-modern-results.col-lg-9,
  body .miller-modern-results.col-md-12,
  body .miller-modern-results[class*="col-"] {
    float:none !important;
    left:auto !important;
    right:auto !important;
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  body .miller-modern-results .miller-inventory-item,
  body .miller-modern-results .miller-vehicle-card,
  body .miller-modern-results .miller-card-image,
  body .miller-modern-results img {
    max-width:100% !important;
    box-sizing:border-box !important;
  }

  /* Slightly denser proportions on phones. */
  body .miller-modern-filter-form .miller-filter-panel {
    padding:15px 14px !important;
  }
  body .miller-modern-filter-form .miller-filter-panel-header {
    gap:10px !important;
    margin-bottom:12px !important;
  }
  body .miller-modern-filter-form .miller-filter-panel-header h3 {
    font-size:22px !important;
    line-height:1.08 !important;
  }
  body .miller-modern-filter-form .miller-filter-panel-header p {
    max-width:245px !important;
    font-size:12px !important;
    line-height:1.45 !important;
  }
  body .miller-modern-filter-form .miller-filter-toggle {
    min-width:88px !important;
    height:40px !important;
    padding:0 12px !important;
    font-size:12px !important;
  }
  body .miller-modern-filter-form .listing_select#\miller-inventory-filter-fields,
  body .miller-modern-filter-form .listing_select#\miller-inventory-filter-fields.miller-filter-fields-open {
    gap:8px !important;
  }
  body .miller-modern-filter-form .listing_select .my-dropdown select,
  body .miller-modern-filter-form .listing_select .ts-control {
    min-height:44px !important;
    height:44px !important;
    font-size:12px !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar .price-ascending-dropdown select,
  body .miller-modern-filter-form .miller-filter-toolbar .price-ascending-dropdown .ts-control {
    min-height:42px !important;
    height:42px !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar .gradient_button {
    min-height:42px !important;
  }
  body .miller-modern-filter-form .miller-filter-toolbar .compare {
    min-height:44px !important;
  }
}

@media (max-width: 390px) {
  body .miller-modern-filter-form .miller-filter-panel-header h3 { font-size:20px !important; }
  body .miller-modern-filter-form .miller-filter-panel-header p { max-width:210px !important; }
  body .miller-modern-filter-form .miller-filter-toggle { min-width:82px !important; padding:0 10px !important; }
}

/* Miller Auto Build 59 — more compact, centered inventory cards on phones. */
@media (max-width: 680px) {
  body .car_listings.miller-modern-results,
  body .inventory-wide-sidebar-left.miller-modern-results > .sidebar,
  body .inventory-wide-sidebar-right.miller-modern-results > .sidebar {
    justify-items:center !important;
    gap:18px !important;
  }
  body .miller-modern-results .miller-inventory-item {
    width:94% !important;
    max-width:540px !important;
    min-width:0 !important;
    margin:0 auto !important;
  }
  body .miller-modern-results .miller-vehicle-card {
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    margin:0 auto !important;
    border-radius:14px !important;
  }
  body .miller-modern-results .miller-vehicle-body {
    padding:14px 15px 15px !important;
  }
  body .miller-modern-results .miller-vehicle-title {
    font-size:18px !important;
    line-height:1.18 !important;
    min-height:43px !important;
    max-height:43px !important;
  }
  body .miller-modern-results .miller-vehicle-specs {
    gap:9px 14px !important;
    margin:13px 0 !important;
  }
  body .miller-modern-results .miller-spec-label { font-size:10px !important; }
  body .miller-modern-results .miller-spec-value { font-size:12px !important; }
  body .miller-modern-results .miller-vehicle-footer {
    gap:10px !important;
    padding-top:12px !important;
  }
  body .miller-modern-results .miller-current-price { font-size:20px !important; }
  body .miller-modern-results .miller-vehicle-price .tax { font-size:10px !important; }
  body .miller-modern-results .miller-view-details {
    padding:9px 12px !important;
    font-size:12px !important;
  }
  body .miller-modern-results .miller-compare-control {
    top:10px !important;
    right:10px !important;
    min-width:94px !important;
    height:36px !important;
    padding:0 10px !important;
    font-size:11px !important;
  }
}

@media (max-width: 390px) {
  body .miller-modern-results .miller-inventory-item { width:92% !important; }
  body .miller-modern-results .miller-vehicle-body { padding:13px 14px 14px !important; }
  body .miller-modern-results .miller-vehicle-title { font-size:17px !important; min-height:40px !important; max-height:40px !important; }
}
\n\n/* Miller Auto Build 60 — force visible compact mobile cards; cache-busted stylesheet. */
@media (max-width: 680px) {
  body .car_listings.miller-modern-results:not(.inventory-wide-sidebar-left):not(.inventory-wide-sidebar-right),
  body .inventory-wide-sidebar-left.miller-modern-results > .sidebar,
  body .inventory-wide-sidebar-right.miller-modern-results > .sidebar {
    box-sizing:border-box !important;
    padding-left:14px !important;
    padding-right:14px !important;
  }
  body .car_listings.miller-modern-results:not(.inventory-wide-sidebar-left):not(.inventory-wide-sidebar-right) > .miller-inventory-item,
  body .inventory-wide-sidebar-left.miller-modern-results > .sidebar > .miller-inventory-item,
  body .inventory-wide-sidebar-right.miller-modern-results > .sidebar > .miller-inventory-item {
    box-sizing:border-box !important;
    width:100% !important;
    max-width:500px !important;
    justify-self:center !important;
    margin:0 auto !important;
  }
  body .miller-modern-results .miller-vehicle-card { border-radius:13px !important; }
  body .miller-modern-results .miller-vehicle-body { padding:12px 14px 13px !important; }
  body .miller-modern-results .miller-vehicle-title { font-size:17px !important; line-height:1.17 !important; min-height:40px !important; max-height:40px !important; }
  body .miller-modern-results .miller-vehicle-specs { margin:11px 0 !important; gap:8px 12px !important; }
  body .miller-modern-results .miller-current-price { font-size:19px !important; }
  body .miller-modern-results .miller-view-details { padding:8px 11px !important; }
}
@media (max-width: 430px) {
  body .car_listings.miller-modern-results:not(.inventory-wide-sidebar-left):not(.inventory-wide-sidebar-right),
  body .inventory-wide-sidebar-left.miller-modern-results > .sidebar,
  body .inventory-wide-sidebar-right.miller-modern-results > .sidebar {
    padding-left:16px !important;
    padding-right:16px !important;
  }
}

/* Miller Auto Build 66 — contain residual mobile document overflow without changing page width. */
@media (max-width: 767px) {
  html {
    overflow-x: clip !important;
  }
  body {
    overflow-x: clip !important;
  }
  @supports not (overflow: clip) {
    html, body { overflow-x: hidden !important; }
  }

  /* Keep the inventory shell inside its containing block; do not resize the site header/theme canvas. */
  body .miller-modern-filter-form,
  body .miller-results-summary,
  body .miller-modern-results,
  body .miller-modern-results > .sidebar,
  body .miller-modern-results .miller-inventory-item,
  body .miller-modern-results .miller-vehicle-card {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Build 67 — compact, Miller-blue bottom pagination on phones. */
@media (max-width: 767px) {
  body .car_listings + .pagination_container,
  body .car_listings ~ .pagination_container,
  body .pagination_container:has(.bottom_pagination) {
    width:100% !important;
    max-width:100% !important;
    padding-left:18px !important;
    padding-right:18px !important;
    box-sizing:border-box !important;
  }

  body .pagination_container .bottom_pagination {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    width:min(100%, 320px) !important;
    max-width:320px !important;
    margin:24px auto 28px !important;
    padding:0 !important;
    float:none !important;
  }

  body .pagination_container .bottom_pagination > li {
    float:none !important;
    margin:0 !important;
  }

  body .pagination_container .bottom_pagination > li > a,
  body .pagination_container .bottom_pagination > li > span {
    color:#17649b !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    font-size:18px !important;
    line-height:1 !important;
    min-width:38px !important;
    min-height:38px !important;
    padding:10px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  body .pagination_container .bottom_pagination > li.number > a {
    font-size:17px !important;
    font-weight:600 !important;
  }

  body .pagination_container .bottom_pagination > li.previous > a,
  body .pagination_container .bottom_pagination > li.next > a {
    font-size:26px !important;
  }

  body .pagination_container .bottom_pagination > li.disabled > a,
  body .pagination_container .bottom_pagination > li.disabled > span {
    color:#8b98a5 !important;
    opacity:.55 !important;
  }

  body .pagination_container .bottom_pagination > li.active > a,
  body .pagination_container .bottom_pagination > li.active > span {
    color:#0f4b77 !important;
    opacity:1 !important;
  }
}

/* Build 68 — carry the compact Miller-blue bottom pagination through desktop. */
body .car_listings + .pagination_container,
body .car_listings ~ .pagination_container,
body .pagination_container:has(.bottom_pagination) {
  width:100% !important;
  max-width:100% !important;
  padding-left:24px !important;
  padding-right:24px !important;
  box-sizing:border-box !important;
}

body .pagination_container .bottom_pagination {
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  width:min(100%, 420px) !important;
  max-width:420px !important;
  margin:28px auto 32px !important;
  padding:0 !important;
  float:none !important;
}

body .pagination_container .bottom_pagination > li {
  float:none !important;
  margin:0 !important;
}

body .pagination_container .bottom_pagination > li > a,
body .pagination_container .bottom_pagination > li > span {
  color:#17649b !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

body .pagination_container .bottom_pagination > li.disabled > a,
body .pagination_container .bottom_pagination > li.disabled > span {
  color:#8b98a5 !important;
  opacity:.55 !important;
}

body .pagination_container .bottom_pagination > li.active > a,
body .pagination_container .bottom_pagination > li.active > span {
  color:#0f4b77 !important;
  opacity:1 !important;
}

@media (max-width:767px) {
  body .pagination_container .bottom_pagination {
    width:min(100%, 320px) !important;
    max-width:320px !important;
    margin:24px auto 28px !important;
  }
}


/* Miller Auto Build 69 — keep the payment calculator as one card on mobile and restack New Arrivals. */
@media (max-width: 767px) {
  /* Legacy calculator CSS floats this widget; neutralize it so the parent card contains all content. */
  body .miller-modern-single .miller-finance-section {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    margin:22px 0 0!important;
    padding:22px 18px 20px!important;
    overflow:hidden!important;
  }
  body .miller-modern-single .miller-finance-section:before {
    margin:0 0 20px!important;
    font-size:25px!important;
    line-height:1.2!important;
    text-align:center!important;
  }
  body .miller-modern-single .miller-finance-section .financing_calculator,
  body .miller-modern-single .miller-finance-section .miller-finance-calculator {
    float:none!important;
    clear:both!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  body .miller-modern-single .miller-finance-fields { gap:13px!important; }
  body .miller-modern-single .miller-finance-field { font-size:12px!important; }
  body .miller-modern-single .miller-finance-input,
  body .miller-modern-single .miller-finance-field select,
  body .miller-modern-single .miller-finance-field .miller-finance-frequency {
    height:46px!important;
    min-height:46px!important;
  }
  body .miller-modern-single .miller-calculate-payment {
    width:100%!important;
    min-height:48px!important;
    margin:18px 0 0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  body .miller-modern-single .miller-finance-result {
    margin-top:18px!important;
    padding:18px!important;
  }
  body .miller-modern-single .miller-finance-note { margin:14px 0 0!important; }

  /* New Arrivals becomes a vertical mobile component with one centered card. */
  body .miller-modern-single .miller-details-footer .recent-vehicles-wrap > .row {
    display:block!important;
    width:100%!important;
    margin:0!important;
  }
  body .miller-modern-single .miller-details-footer .recent-vehicles-wrap .recent-vehicles {
    width:100%!important;
    margin:0 0 18px!important;
    padding:0!important;
  }
  body .miller-modern-single .miller-details-footer .scroller_title {
    font-size:25px!important;
    margin-bottom:8px!important;
  }
  body .miller-modern-single .miller-details-footer .recent-vehicles p {
    max-width:none!important;
    margin-bottom:12px!important;
    font-size:13px!important;
  }
  body .miller-modern-single .miller-details-footer .recent-vehicles-wrap > .row > div:last-child {
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
    padding:0!important;
  }
  body .miller-modern-single .miller-details-footer .carousel-slider3,
  body .miller-modern-single .miller-details-footer .carousel-slider3 .bx-wrapper,
  body .miller-modern-single .miller-details-footer .carousel-slider3 .bx-viewport {
    width:100%!important;
    max-width:100%!important;
  }
  body .miller-modern-single .miller-details-footer .carousel-slider3 .slide {
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:none!important;
    margin-right:0!important;
  }
  body .miller-modern-single .miller-details-footer .arrow3 {
    justify-content:center!important;
    gap:12px!important;
    margin-top:14px!important;
  }
  body .miller-modern-single .miller-details-footer .arrow3 span {
    width:42px!important;
    height:42px!important;
  }
}

/* Miller Auto Build 70 — mobile modal containment + New Arrivals polish. */
@media (max-width:700px) {
  /* Fancybox 2 writes pixel widths/left offsets inline. Pin the customer forms to
     the visual viewport so Safari cannot let the dialog extend off-screen. */
  body .fancybox-wrap:has(form[name="request_info"]),
  body .fancybox-wrap:has(form[name="schedule"]),
  body .fancybox-wrap:has(form[name="offer"]),
  body .fancybox-wrap:has(form[name="email_friend"]),
  body .fancybox-wrap:has(form[name="trade_in"]) {
    left:12px!important;
    right:auto!important;
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  body .fancybox-wrap:has(form[name="request_info"]) .fancybox-skin,
  body .fancybox-wrap:has(form[name="schedule"]) .fancybox-skin,
  body .fancybox-wrap:has(form[name="offer"]) .fancybox-skin,
  body .fancybox-wrap:has(form[name="email_friend"]) .fancybox-skin,
  body .fancybox-wrap:has(form[name="trade_in"]) .fancybox-skin,
  body .fancybox-wrap:has(form[name="request_info"]) .fancybox-inner,
  body .fancybox-wrap:has(form[name="schedule"]) .fancybox-inner,
  body .fancybox-wrap:has(form[name="offer"]) .fancybox-inner,
  body .fancybox-wrap:has(form[name="email_friend"]) .fancybox-inner,
  body .fancybox-wrap:has(form[name="trade_in"]) .fancybox-inner {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  body .fancybox-inner .ajax_form,
  body .fancybox-inner .ajax_form form,
  body .fancybox-inner .ajax_form table,
  body .fancybox-inner .ajax_form tbody,
  body .fancybox-inner .ajax_form tr,
  body .fancybox-inner .ajax_form td {
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  body .fancybox-inner .recaptcha_holder {
    max-width:100%!important;
    overflow:hidden!important;
  }
  body .fancybox-close {
    right:8px!important;
    top:8px!important;
  }

  /* On phones the intro becomes layout-transparent so the controls can sit
     after the carousel instead of between the description and vehicle card. */
  body .miller-modern-single .miller-details-footer .recent-vehicles-wrap > .row {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
  }
  body .miller-modern-single .miller-details-footer .recent-vehicles-wrap .recent-vehicles {
    display:contents!important;
  }
  body .miller-modern-single .miller-details-footer .scroller_title {
    order:1!important;
    margin:0 0 8px!important;
  }
  body .miller-modern-single .miller-details-footer .recent-vehicles p {
    order:2!important;
    margin:0 0 18px!important;
  }
  body .miller-modern-single .miller-details-footer .recent-vehicles-wrap > .row > div:last-child {
    order:3!important;
    min-width:0!important;
  }
  body .miller-modern-single .miller-details-footer .arrow3 {
    order:4!important;
    justify-content:center!important;
    gap:12px!important;
    margin:14px 0 0!important;
  }
  body .miller-modern-single .miller-details-footer .arrow3 span {
    width:40px!important;
    height:40px!important;
    color:#17649b!important;
    background:#fff!important;
    border-color:#cbd9e5!important;
  }
  body .miller-modern-single .miller-details-footer .arrow3 span:has(.bx-prev.disabled),
  body .miller-modern-single .miller-details-footer .arrow3 span:has(.bx-next.disabled) {
    opacity:.4!important;
  }
}
