﻿/* Trust Motors single vehicle page (Vehicle.aspx / tru-VehicleSingle.ascx).
   Loaded only on the vehicle page, after the template's vehicle-atf.min.css and vehicle.min.css,
   so these rules override the template without editing Motorcentral/Styles. */
/* ---------- Moved from app_custom-atf.scss (vehicle page only) ---------- */
@media only screen {
  .vehicle-sticky.sticky-nav-active {
    top: 85px;
  }
  .vehicle-price-tab .tabs-title > a {
    font-size: 14px;
  }
  .vehicle-ctas.small-ctas {
    display: flex !important;
  }
  .vehicle-ctas.small-ctas button {
    border: none !important;
    padding-left: 0 !important;
  }
  /* "html" prefix: must beat the shared heading rule in app_custom-atf.scss (letter-spacing: 0.75px), which loads after this file. */
  html h1.vehicle-title, html .vehicle-main-content h3 {
    letter-spacing: 2px;
  }
  .fav-link i {
    min-height: 24px;
    min-width: 24px;
    color: #fff !important;
  }
  .fav-link button {
    place-items: center;
  }
  .fav-link .vs-fav.active i {
    top: 5px;
  }
  .actions-list .fav-link {
    min-height: 32px;
    display: flex;
    place-items: center;
  }
  .actions-list .fav-link i {
    color: var(--base-60) !important;
    min-height: 24px;
    min-width: 24px;
    top: -3px;
  }
}
@media only screen and (min-width: 876px) {
  .vehicle-sticky .vehicle-snippet {
    width: 100%;
  }
}
@media only screen and (min-width: 64em) {
  .vehicle-sticky.sticky-nav-active {
    top: 92px;
  }
}
@media only screen and (max-width: 1279px) {
  .vehicle-sticky .sticky-ctas {
    display: none;
  }
  .vehicle-large-top-content .vehicle-ctas {
    display: none;
  }
  #mobile-options {
    position: fixed;
    display: flex;
    bottom: 2rem;
    right: 1rem;
    z-index: 100;
  }
}
@media only screen and (min-width: 1280px) {
  .vehicle-sticky .vehicle-snippet {
    width: calc(100% - 780px);
  }
  .vehicle-sticky .sticky-ctas {
    width: 780px;
  }
  .vehicle-ctas .standard-btn {
    color: #000;
    padding: 0 16px 0 12px;
    border-color: #fff;
  }
  .vehicle-ctas .standard-btn i {
    font-weight: 400;
    display: none;
  }
  .vehicle-ctas .standard-btn:hover {
    border-color: #fff;
  }
  .vehicle-ctas .standard-btn.border-btn {
    color: #fff;
    border-color: #797979;
  }
  .vehicle-ctas a, .vehicle-ctas button {
    border-radius: 0;
  }
  .vehicle-ctas button.actions-list:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  .vehicle-ctas .standard-btn i {
    display: block;
  }
}
@media only screen and (max-width: 639px) {
  .vehicle-sticky.sticky-nav-active {
    top: 68px;
  }
}
@media only screen {
  .favourite.vs-fav.active .acme-icon-fav {
    color: #fff !important;
  }
  .favourite.vs-fav.active .acme-icon-fav:before {
    color: #fff !important;
  }
}
@media only screen and (min-width: 876px) and (max-width: 1199px) {
  .vehicle-main-container {
    padding-top: 0;
  }
  .vehicle-large-top-content,
  .vehicle-large-sidebar {
    display: none;
  }
  .vehicle-price-tab-small {
    display: block;
  }
  .breadcrumbs-sm {
    display: block !important;
  }
  .small-ctas {
    display: flex !important;
  }
  .single-vehicle-wrap {
    padding-top: 28px;
  }
  .vehicle-price-tab .tabs-panel {
    padding: 34px 24px 24px;
  }
  .flex-gap {
    gap: normal;
  }
  .gallery-grid .vehicle-img {
    grid-column-gap: normal;
    grid-row-gap: normal;
  }
  .gallery-grid .gallery-overlay {
    top: 16px;
    right: 16px;
  }
  .small-ctas a, .small-ctas button {
    color: #a3a3a3;
    border-radius: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
  }
  #mobile-options {
    position: fixed;
    display: flex;
    bottom: 2rem;
    right: 1rem;
    z-index: 100;
  }
  .vehicle-sticky .sticky-ctas {
    display: none;
    width: auto;
    min-width: 0;
  }
  .small-branch-container {
    display: flex;
  }
  .large-branch-container {
    display: none;
  }
  .branch-main-information {
    padding: 24px 0 48px;
  }
  .branch-main-information .branch-main {
    display: block;
    width: auto;
  }
  .branch-main-information .branch-ctas {
    width: auto;
  }
  .single-vehicle-wrap .large-spacer {
    display: none;
  }
}
/* "You may also like": the template (vehicle.scss, 876px-1279px) sizes three cards at 33.333% - 12px with 24px gaps,
   which is 12px wider than the row, so the last card (and its favourite button) poked past the content edge.
   33.333% - 16px fits three cards and two 24px gaps exactly. From 1280px the template's own numbers fit. */
@media only screen and (min-width: 876px) and (max-width: 1279px) {
  .similar-vehicles-list .vehicle-inner {
    width: calc(33.333% - 16px);
    min-width: calc(33.333% - 16px);
  }
}
/* Two-column vehicle page: keep the right-hand column at least 380px wide (template minimum is 300px). */
@media only screen and (min-width: 1200px) {
  .vehicle-large-sidebar {
    min-width: 380px !important;
  }
}
/* Vehicle page: the "Add to favourites" icon next to Share was forced white; match the grey button text unless saved (active stays white). */
@media only screen {
  .small-ctas .fav-link .favourite:not(.active) i {
    color: inherit !important;
  }
}
