.d35-vehicle-shop-section {
  display: grid;
  gap: 1.5rem;
}

.d35-carousel-skeleton {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.d35-vehicle-shop-section__viewport {
  position: relative;
  min-height: 546px;
}

.d35-carousel-skeleton__card {
  flex: 0 0 340px;
  height: 546px;
  border-radius: var(--d35-radius);
  background: #fff;
  border: 1px solid var(--d35-color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.d35-carousel-skeleton__card::before {
  content: "";
  display: block;
  height: 220px;
  background: #f0f0f0;
  flex-shrink: 0;
}

.d35-carousel-skeleton__card::after {
  content: "";
  display: block;
  flex: 1;
  margin: 1rem;
  border-radius: 4px;
  background: linear-gradient(
    to bottom,
    #e8e8e8 0.75rem, transparent 0.75rem,
    transparent 1.25rem, #e8e8e8 1.25rem,
    #e8e8e8 2.5rem, transparent 2.5rem,
    transparent 3.25rem, #efefef 3.25rem,
    #efefef 4.25rem, transparent 4.25rem,
    transparent 5rem, #efefef 5rem,
    #efefef 5.875rem, transparent 5.875rem,
    transparent 6.75rem, #efefef 6.75rem,
    #efefef 7.375rem, transparent 7.375rem
  );
}

.d35-carousel-skeleton {
  animation: d35-skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes d35-skeleton-shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.d35-vehicle-shop-section__inner {
  display: grid;
}

.d35-vehicle-shop-section__viewport {
  overflow: hidden;
  margin-right: calc(50% - 50vw);
  padding-right: max(var(--d35-gap), calc(50vw - 50%));
}


.d35-vehicle-shop-section__box {
  display: grid;
  gap: 1.25rem;
  width: min(100%, var(--d35-container));
  margin-inline: auto;
  padding: clamp(1.25rem, 2vw, 2rem);
  border-radius: var(--d35-radius);
  background: var(--d35-color-surface);
  color: var(--d35-color-text);
  border: 1px solid var(--d35-color-border);
}

#webshop-widget {
  background: transparent !important;
  background-color: transparent !important;
  color: inherit;
}

#webshop-widget > div,
#webshop-widget .ssr-carousel-slides,
#webshop-widget .ssr-carousel-slide {
  background: transparent !important;
}

.d35-vehicle-shop-section__box #webshop-widget {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

.d35-vehicle-shop-section custom-elements-wrapper {
  display: block;
  max-width: none !important;
  min-width: 0;
}

.d35-vehicle-shop-section custom-elements-wrapper > * {
  width: max-content;
  min-width: 100%;
  max-width: none;
  min-width: 0;
}

.d35-vehicle-shop-section__box #webshop-widget > *,
.d35-vehicle-shop-section__box #webshop-widget .ssr-carousel,
.d35-vehicle-shop-section__box #webshop-widget .ssr-carousel > * {
  width: max-content;
  min-width: 100%;
  max-width: none;
  min-width: 0;
}

.d35-vehicle-shop-section--carousel #webshop-widget .ssr-carousel-track {
  justify-content: flex-start;
}

.d35-vehicle-shop-section--carousel #webshop-widget .ssr-carousel-slide,
.d35-vehicle-shop-section--carousel #webshop-widget .slide {
  width: clamp(19.5rem, 26vw, 22rem) !important;
  min-width: 312px !important;
  max-width: clamp(19.5rem, 26vw, 22rem) !important;
  flex: 0 0 clamp(19.5rem, 26vw, 22rem) !important;
  overflow: hidden;
}

.d35-vehicle-shop-section--carousel #webshop-widget .ssr-carousel-slide > *,
.d35-vehicle-shop-section--carousel #webshop-widget .slide > * {
  width: 100%;
  min-width: 0;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget #carTypesWrapper,
.d35-vehicle-shop-section--quicksearch #webshop-widget #modelsWrapper,
.d35-vehicle-shop-section--quicksearch
  #webshop-widget
  #usedConditionTypesWrapper,
.d35-vehicle-shop-section--quicksearch #webshop-widget #fuelTypesWrapper,
.d35-vehicle-shop-section--quicksearch #webshop-widget #gearBoxTypesWrapper,
.d35-vehicle-shop-section--quicksearch
  #webshop-widget
  #minInitialRegistrationWrapper,
.d35-vehicle-shop-section--quicksearch #webshop-widget #maxMileAgeWrapper,
.d35-vehicle-shop-section--quicksearch
  #webshop-widget
  #vehicleDealerLocationsWrapper,
.d35-vehicle-shop-section--quicksearch #webshop-widget #engineCapacityMax,
.d35-vehicle-shop-section--quicksearch
  #webshop-widget
  #monthlyFinancingRateExampleMaxWrapper {
  display: none !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="brand" i],
.d35-vehicle-shop-section--quicksearch #webshop-widget [class*="brand" i],
.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="logo" i],
.d35-vehicle-shop-section--quicksearch #webshop-widget [class*="logo" i] {
  display: none !important;
}

.d35-vehicle-shop-section--quicksearch .d35-vehicle-shop-section__box:not(.d35-widget-loaded) {
  height: 154px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 40%, #1a1a1a 80%);
  background-size: 200% 100%;
  animation: d35-qs-shimmer 1.6s ease-in-out infinite;
  border: none;
}

@keyframes d35-qs-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.d35-vehicle-shop-section__header {
  margin-bottom: 1.5rem;
}

/* Carousel/hash section variants: a single light/dark variant drives the whole
   section — a full-width background band behind the header + widget, plus the
   matching SectionHeader treatment. Vertical padding comes from .d35-section and
   the dark colours from .d35-section-dark; only the light background is here. */
.d35-vehicle-shop-section--carousel.d35-vehicle-shop-section--light,
.d35-vehicle-shop-section--hash.d35-vehicle-shop-section--light {
  background: var(--d35-color-light);
}

.d35-vehicle-shop-section--quicksearch .d35-vehicle-shop-section__box {
  background: #111315;
  color: #fff;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget,
.d35-vehicle-shop-section--quicksearch #webshop-widget > div,
.d35-vehicle-shop-section--quicksearch #webshop-widget > div > div,
.d35-vehicle-shop-section--quicksearch #webshop-widget form,
.d35-vehicle-shop-section--quicksearch #webshop-widget .ssr-carousel-slides {
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget > div > div,
.d35-vehicle-shop-section--quicksearch #webshop-widget form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem 1.25rem !important;
  align-items: stretch !important;
  min-height: 88px !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid,
.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-2,
.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-3,
.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-4 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 1rem 1.25rem !important;
  min-height: 88px !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid > *,
.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-2 > *,
.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-3 > *,
.d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-4 > * {
  flex: 1 1 16rem !important;
  min-width: 16rem !important;
  max-width: none !important;
  align-self: stretch !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="Wrapper" i],
.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="wrapper" i] {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 14rem !important;
  min-width: 14rem !important;
  max-width: 100% !important;
}

.d35-vehicle-shop-section--quicksearch-search-results
  #webshop-widget
  [id*="Wrapper" i]:not(#searchTermWrapper):not(:has(button)),
.d35-vehicle-shop-section--quicksearch-search-results
  #webshop-widget
  [id*="wrapper" i]:not(#searchTermWrapper):not(:has(button)) {
  display: none !important;
}

.d35-vehicle-shop-section--quicksearch-search-results #webshop-widget #searchTermWrapper,
.d35-vehicle-shop-section--quicksearch-search-results #webshop-widget [id*="Wrapper" i]:has(button),
.d35-vehicle-shop-section--quicksearch-search-results #webshop-widget [id*="wrapper" i]:has(button) {
  display: flex !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="Wrapper" i] label,
.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="wrapper" i] label,
.d35-vehicle-shop-section--quicksearch #webshop-widget label {
  color: #fff !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget select,
.d35-vehicle-shop-section--quicksearch #webshop-widget input,
.d35-vehicle-shop-section--quicksearch #webshop-widget textarea {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 56px !important;
  background: #fff !important;
  color: #111827 !important;
  border-radius: 0.6rem !important;
}

@media (max-width: 768px) {
  .d35-vehicle-shop-section--quicksearch #webshop-widget select,
  .d35-vehicle-shop-section--quicksearch #webshop-widget input,
  .d35-vehicle-shop-section--quicksearch #webshop-widget textarea {
    min-height: unset !important;
  }
}

.d35-vehicle-shop-section--quicksearch #webshop-widget #searchTermWrapper,
.d35-vehicle-shop-section--quicksearch #webshop-widget #searchTermWrapper input#searchTerm {
  flex-basis: 100% !important;
  min-width: 100% !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget #searchTermWrapper input#searchTerm {
  background-color: #fff !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="wrapper" i] button,
.d35-vehicle-shop-section--quicksearch #webshop-widget [id*="Wrapper" i] button {
  background: #fff !important;
  color: #111827 !important;
  border-radius: 999px !important;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget .btn-primary {
  background: var(--d35-color-primary);
  border-color: var(--d35-color-primary);
  color: #fff;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget .btn-primary:hover {
  background: var(--d35-color-primary-hover);
  border-color: var(--d35-color-primary-hover);
}

.d35-vehicle-shop-section--quicksearch #webshop-widget .grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.d35-vehicle-shop-section--quicksearch #webshop-widget .btn-primary {
  background: var(--d35-color-primary) !important;
  border-color: var(--d35-color-primary) !important;
  color: #fff !important;
  justify-self: start;
}

.d35-vehicle-shop-section--quicksearch #webshop-widget .btn-primary:hover {
  background: var(--d35-color-primary-hover) !important;
  border-color: var(--d35-color-primary-hover) !important;
}

@media (max-width: 1024px) {
  .d35-vehicle-shop-section__box #webshop-widget .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .d35-vehicle-shop-section--quicksearch #webshop-widget form.grid > *,
  .d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-2 > *,
  .d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-4 > * {
    min-width: 14rem !important;
  }
}

@media (max-width: 768px) {
  .d35-vehicle-shop-section__box {
    padding: 1rem;
  }

  .d35-vehicle-shop-section__box #webshop-widget .grid-cols-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .d35-vehicle-shop-section--quicksearch #webshop-widget [id*="Wrapper" i],
  .d35-vehicle-shop-section--quicksearch #webshop-widget [id*="wrapper" i] {
    min-width: 100% !important;
  }

  .d35-vehicle-shop-section--quicksearch #webshop-widget form.grid > *,
  .d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-2 > *,
  .d35-vehicle-shop-section--quicksearch #webshop-widget form.grid-cols-4 > * {
    min-width: 100% !important;
  }
}
