/* Keep vehicle tools beside the list while the desktop viewport has room. */
@media (min-width: 1000px) and (min-height: 640px) {
  body .sf8-page .sf8-layout > .sf8-filter {
    position: sticky !important;
    align-self: start;
    inset-block-start: calc(120px + var(--wp-admin--admin-bar--height, 0px)) !important;
    max-block-size: calc(100dvh - 120px - var(--wp-admin--admin-bar--height, 0px) - 1rem);
    overflow-y: auto;
    overscroll-behavior-y: auto;
    scrollbar-width: thin;
  }
}
@media (min-width: 1100px) and (min-height: 640px) {
  body .jf-results-layout > .jf-results-side {
    position: sticky !important;
    align-self: start;
    inset-block-start: calc(120px + var(--wp-admin--admin-bar--height, 0px)) !important;
    max-block-size: calc(100dvh - 120px - var(--wp-admin--admin-bar--height, 0px) - 1rem);
    overflow-y: auto;
    overscroll-behavior-y: auto;
    scrollbar-width: thin;
  }
}
@media (max-height: 639px) {
  body .sf8-page .sf8-layout > .sf8-filter,
  body .jf-results-layout > .jf-results-side {
    position: static !important;
    inset-block-start: auto !important;
    max-block-size: none !important;
    overflow: visible;
  }
}

@media (min-width:1000px) {
  .article-body .scc-fleet-models, :is(article,.p114-content):has(+ aside) .scc-fleet-models {
    display:grid!important;grid-auto-flow:column!important;grid-template-columns:none!important;
    grid-auto-columns:minmax(215px,calc((100% - 32px)/3))!important;gap:16px!important;
    overflow-x:auto!important;scroll-snap-type:x proximity;
  }
  .article-body .scc-fleet-model {width:auto!important;max-width:none!important;scroll-snap-align:start}
  .vehicle-results .quote-card {container-type:inline-size}
  @container (max-width: 510px) {
    .vehicle-results .quote-card > .quote-price {width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box;align-self:stretch!important;justify-self:stretch!important;grid-column:1/-1;margin:0!important;padding:16px 0 0!important;border-inline-start:0!important}
    .vehicle-results .quote-card > .quote-price .quote-add {width:100%;min-height:44px}
  }
}
