/* Vehicle presentation approved in the preserved Carislas preview. */
#detail .panel > p:first-of-type { overflow-wrap: anywhere; }
#detail[data-listing-category="vehicles"] #detailEmoji {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #f2f4f7;
}
#detail[data-listing-category="vehicles"] .gallery-thumbs img {
  object-fit: contain;
  background: #f2f4f7;
}
#detail[data-listing-category="vehicles"] .dealer-article-products > article {
  padding: 0; gap: 8px; align-content: start; overflow: hidden;
}
#detail[data-listing-category="vehicles"] .dealer-article-products > article > div {
  width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 0;
  background-size: cover !important; background-position: center !important;
}
#detail[data-listing-category="vehicles"] .dealer-article-products > article > :is(b,p,strong,small) { margin-inline: 12px; }
#detail[data-listing-category="vehicles"] .dealer-article-products > article > small:last-child { margin-bottom: 12px; }

@media (min-width: 901px) {
  #vehicleFilterCards > .lab-category-card:not(.lab-search-top-card) {
    width: calc((100% - 28px) / 3); flex: 0 0 calc((100% - 28px) / 3);
  }
}
@media (min-width: 601px) {
  html body :is(#home,#favorites,#myListings,#dealerProfileOffers,#cardLabContent) .card.card-lab-live-card[data-listing-category="vehicles"]:not(.search-top-wide-card) > .pic,
  html body #cardLabContent #vehicleFilterCards .card-lab-live-card:not(.lab-search-top-card) > .pic {
    height: auto !important; min-height: 0 !important; aspect-ratio: 4 / 3 !important;
  }
  html body :is(#home,#favorites,#myListings,#dealerProfileOffers,#cardLabContent) .card.card-lab-live-card[data-listing-category="vehicles"] > .pic > img,
  html body #cardLabContent #vehicleFilterCards .card-lab-live-card:not(.lab-search-top-card) > .pic > img { object-fit: cover !important; }
}
#vehicleFilterCards .lab-search-top-insert { container-type: inline-size; }
#vehicleFilterCards .lab-search-top-card { grid-template-columns: minmax(0,300px) minmax(0,1fr); min-height: 0; align-items: stretch; }
html body #cardLabContent #vehicleFilterCards .lab-search-top-card > .pic {
  width: 100%; height: auto !important; min-height: 0 !important;
  flex: 0 0 auto !important; aspect-ratio: 1 / 1 !important; align-self: start;
}
html body #cardLabContent #vehicleFilterCards .lab-search-top-card > .pic > img { object-fit: contain !important; }
@container (max-width: 639px) { #vehicleFilterCards .lab-search-top-card { display: flex !important; flex-direction: column; } }
@container (min-width: 640px) { #vehicleFilterCards .lab-search-top-card { display: grid !important; } }

#vehicleMobileFilters > summary, .vehicle-mobile-filter-apply { display: none; }
@media (max-width: 600px) {
  html body :is(#home,#favorites,#myListings,#dealerProfileOffers,#cardLabContent) .card.card-lab-live-card[data-listing-category="vehicles"] > .pic,
  html body #cardLabContent #vehicleFilterCards .card-lab-live-card > .pic {
    height: auto !important; min-height: 0 !important; flex: 0 0 auto !important; aspect-ratio: 4 / 3 !important;
  }
  html body :is(#home,#favorites,#myListings,#dealerProfileOffers,#cardLabContent) .card.card-lab-live-card[data-listing-category="vehicles"] > .pic > img,
  html body #cardLabContent #vehicleFilterCards .card-lab-live-card > .pic > img { object-fit: cover !important; object-position: center; background: #f2f4f7; }
  #carsView.card-lab-direct-category { padding: 0 0 24px !important; }
  #cardLabVehicleFrame { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
  html body #cardLabContent > #vehicleLabSection { padding: 0 !important; border: 0 !important; background: transparent !important; }
  #vehicleLabSection > .lab-section-title { margin-bottom: 12px; }
  #vehicleLabTitle { font-size: 24px; }
  #vehicleLabSection .lab-vehicle-workbench { gap: 16px; }
  #vehicleMobileFilters { border: 1px solid #cdd9e9; border-radius: 14px; background: var(--modern-surface,#fff); overflow: hidden; }
  #vehicleMobileFilters > summary {
    display: flex; align-items: center; justify-content: space-between; min-height: 50px;
    padding: 12px 14px; box-sizing: border-box; color: var(--ink,#10223b);
    font-size: 15px; font-weight: 700; cursor: pointer; list-style: none;
  }
  #vehicleMobileFilters > summary::-webkit-details-marker { display: none; }
  #vehicleMobileFilters > summary::after { content: '+'; font-size: 24px; }
  #vehicleMobileFilters[open] > summary::after { content: '−'; }
  #vehicleMobileFilters:not([open]) > #vehicleFilters { display: none; }
  #vehicleMobileFilters > #vehicleFilters { border: 0; border-top: 1px solid #dfe7f1; border-radius: 0; box-shadow: none; padding: 14px; }
  #vehicleFilters > .lab-property-filter-head { display: none; }
  #vehicleFilters label { font-size: 12px; }
  #vehicleFilters :is(select,input:not([type="checkbox"])) { min-height: 44px; font-size: 16px; }
  #vehicleFilters .vehicle-mobile-filter-apply {
    display: block; width: 100%; min-height: 46px; margin-top: 10px; border: 0;
    border-radius: 10px; background: #075dcc; color: #fff; font-size: 15px; font-weight: 700;
  }
  #vehicleLabSection .lab-vehicle-results { padding: 0; border: 0; background: transparent; scroll-margin-top: 76px; }
  #vehicleLabSection .lab-property-results-head { flex-direction: row; align-items: center; }
  #vehicleFilterCards { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
  #vehicleFilterCards > .lab-category-card:not(.lab-search-top-card) { width: 100%; max-width: none; min-width: 0; min-height: 0; }
  #vehicleFilterCards .lab-search-top-insert { margin: 0; padding: 0; }
  #vehicleFilterCards .card-body { padding: 14px !important; }
  html body #cardLabContent #vehicleFilterCards .listing-card-heading h3 { min-height: 0; font-size: 19px !important; line-height: 1.3; }
  #vehicleFilterCards .category-card-specs { min-height: 0; margin-block: 10px; }
  #vehicleFilterCards .category-card-specs > span { font-size: 11px; }
  #vehicleFilterCards .listing-card-price-row.has-finance-prices { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  #vehicleFilterCards .listing-card-finance-option strong { font-size: 21px; }
  #vehicleFilterCards .listing-seller-slot .listing-seller-name { font-size: 13px !important; }
  #vehicleFilterCards .listing-seller-avatar { display: inline-flex; }
}
