/* Applied only after the original page has been enhanced successfully. */
html.has-vehicle-config-nav {
  scroll-behavior: auto;
  scroll-padding-top: var(--vehicle-safe-top, 12px);
  scroll-padding-bottom: var(--vehicle-safe-bottom, 72px);
}
.vehicle-config-view {
  --vehicle-config-offset: 0px;
  --vehicle-tabs-height: 68px;
  min-width: 0;
  scroll-margin-top: 0;
}
.vehicle-config-model {
  max-width: 1260px;
  margin: 48px auto 64px;
  padding: 0 5%;
  box-sizing: border-box;
}
.vehicle-config-tabs {
  position: sticky;
  top: var(--vehicle-config-offset);
  z-index: 16;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  padding: 0;
  border: 1px solid #b8b5ac;
  background: #f7f5f0;
  box-shadow: 0 4px 12px #172f3d0d;
  box-sizing: border-box;
}
.vehicle-selection-context { margin: 0 0 24px; padding: 22px; border: 1px solid #b8b5ac; background: #eeece5; }
.vehicle-selection-context label { display: block; color: #172f3d; font-weight: 700; margin-bottom: 10px; }
.vehicle-selection-context select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #7f8789; background: #fffdf8; color: #172f3d; font: inherit; font-weight: 700; }
.vehicle-selection-note { margin: 12px 0 0; font-size: 14px; line-height: 1.6; }
.vehicle-lineup-name { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
.vehicle-lineup-selected { outline: 2px solid #174e80; outline-offset: -2px; }
.vehicle-colour-pick { display: block; width: calc(100% - 32px); min-height: 46px; margin: 16px; padding: 12px; border: 1px solid #174e80; background: #fffdf8; color: #174e80; font: inherit; font-weight: 700; cursor: pointer; }
.vehicle-colour-pick[aria-pressed='true'] { background: #174e80; color: white; }
.vehicle-colour-selected { outline: 2px solid #174e80; outline-offset: -2px; }
.vehicle-lineup-name:focus-visible,.vehicle-colour-pick:focus-visible,.vehicle-selection-context select:focus-visible { outline: 3px solid #174e80; outline-offset: 3px; }
.vehicle-config-panel [hidden],.vehicle-selection-context[hidden],.has-vehicle-config-nav .selection-bar[hidden] { display: none !important; }
.vehicle-offer-status { font-weight: 700; }
.vehicle-offer-basic { color: #164c3c; }
.vehicle-offer-free,.vehicle-offer-conditional { color: #174e80; }
.vehicle-offer-paid { color: #854215; }
.vehicle-offer-none { color: #64615c; font-weight: 400; }
.vehicle-finish-status { margin: 12px 0 0; font-size: 13px; line-height: 1.65; }
.vehicle-finish-status span { display: block; }
.vehicle-finish-photo { display: block; width: 170px; max-width: 100%; height: 110px; object-fit: contain; margin-bottom: 10px; }
.vehicle-config-maybach #craft .lux-table { min-width: 0; table-layout: fixed; }
.vehicle-config-maybach #craft .lux-table th,.vehicle-config-maybach #craft .lux-table td { min-width: 0; padding: 14px; overflow-wrap: anywhere; }
.vehicle-config-maybach #craft .lux-table th:first-child { width: 64px; }
.vehicle-config-tab {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 66px;
  margin: 0;
  padding: 10px 8px 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-right: 1px solid #d4d1c9;
  background: transparent;
  color: #454b4d;
  font-family: 'MBKS', sans-serif;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 400;
  cursor: pointer;
  border-radius: 0;
}
.vehicle-config-tab:last-child { border-right: 0; }
.vehicle-tab-state { font-size: 10px; line-height: 1.15; visibility: hidden; }
.vehicle-config-tab[aria-selected='true'] {
  background: #e8eff3;
  color: #174e80;
  border-bottom-color: #174e80;
  font-weight: 700;
}
.vehicle-config-tab[aria-selected='true'] .vehicle-tab-state { visibility: visible; }
.vehicle-config-tab:hover { background: #eef1f0; }
.vehicle-config-tab:focus-visible,
.vehicle-config-panel:focus-visible,
.vehicle-config-dock a:focus-visible { outline: 3px solid #174e80; outline-offset: -4px; }
.vehicle-config-panel {
  min-width: 0;
  padding-top: 34px;
  scroll-margin-top: 0;
}
.has-vehicle-config-nav .vehicle-config-panel[hidden] { display: none !important; }
.vehicle-config-panel [id] {
  scroll-margin-top: 0;
}
.vehicle-config-panel > .section,
.luxury .vehicle-config-panel > .section {
  max-width: none;
  padding: 0;
  margin: 0;
}
.vehicle-config-panel > h3:first-child,
.vehicle-config-subtitle { margin: 0 0 22px; }
.vehicle-config-panel .vehicle-config-open-details {
  padding: 0;
  margin-top: 0;
  border: 0;
  background: transparent;
}
.vehicle-config-panel .vehicle-config-open-details > summary[hidden] { display: none !important; }
.vehicle-config-panel .vehicle-config-open-details + .vehicle-config-open-details { margin-top: 48px; }
.vehicle-config-panel .s-subtitle { margin-top: 0; }
.vehicle-config-panel .colour-gallery,
.vehicle-config-panel .colour-grid,
.vehicle-config-panel .s-colours { min-width: 0; }
.has-vehicle-config-nav .lux-nav { position: static; }
.has-vehicle-config-nav .vehicle-config-dock {
  position: fixed;
  z-index: 25;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(560px, 100%);
  margin: 0;
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  border: 1px solid #687177;
  border-bottom: 0;
  background: #172329;
  color: #fff;
  box-sizing: border-box;
  box-shadow: 0 -3px 16px #0002;
}
.has-vehicle-config-nav .vehicle-config-dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  padding: 12px 4px;
  border: 0;
  border-right: 1px solid #ffffff20;
  border-top: 3px solid transparent;
  font-family: 'MBKS', sans-serif;
  font-size: 13px;
  line-height: 1.25;
  color: #fff;
  font-weight: 400;
  text-align: center;
  white-space: normal;
  text-decoration: none;
  box-sizing: border-box;
}
.has-vehicle-config-nav .vehicle-config-dock a[aria-current='true'] {
  background: #e8eff3;
  color: #174e80;
  border-top-color: #174e80;
  font-weight: 700;
}
.vehicle-config-dock a[aria-current='true']::before { content: '✓'; font-weight: 700; }
.has-vehicle-config-nav .vehicle-config-dock a.vehicle-config-consult {
  background: #e5e0d5;
  color: #172329;
  font-weight: 700;
  border-right: 0;
}
.has-vehicle-config-nav footer { padding-bottom: max(90px, calc(72px + env(safe-area-inset-bottom, 0px))); }
@media (max-width: 640px) {
  .vehicle-config-model { margin-top: 28px; margin-bottom: 40px; padding: 0 6%; }
  .vehicle-config-tab { min-height: 62px; font-size: 16px; padding-left: 4px; padding-right: 4px; }
  .vehicle-config-panel { padding-top: 26px; }
  .vehicle-config-subtitle { font-size: 22px; }
  .has-vehicle-config-nav .vehicle-config-dock a { font-size: 12px; }
}
/* The bottom menu remains available while short landscape screens keep room for photos. */
@media (max-height: 500px) and (orientation: landscape) {
  body.has-vehicle-config-nav > header,
  .has-vehicle-config-nav .selection-bar,
  .has-vehicle-config-nav .vehicle-config-tabs { position: static; }
  .has-vehicle-config-nav .vehicle-config-dock a { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
}
@media print {
  .vehicle-config-tabs, .vehicle-config-dock { display: none !important; }
  .has-vehicle-config-nav .vehicle-config-panel[hidden] { display: block !important; }
  .vehicle-config-panel { padding-top: 20px; }
}
