:root {
  --customer-bg: #f4f7fb;
  --customer-surface: #ffffff;
  --customer-surface-soft: #f8fafc;
  --customer-ink: #152238;
  --customer-muted: #66758c;
  --customer-line: #dbe3ee;
  --customer-line-soft: #e9eef5;
  --customer-border: #dbe3ee;
  --customer-primary: #1769d2;
  --customer-primary-soft: #edf5ff;
  --customer-danger: #d14343;
  --customer-radius: 16px;
  --customer-shadow-sm: 0 8px 24px rgba(17, 37, 68, 0.06);
  --customer-shadow-md: 0 18px 48px rgba(17, 37, 68, 0.1);
  --customer-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-portal="customer"] .card-foot {
  display: flex;
  margin-top: auto;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--customer-line-soft);
  padding-top: 14px;
}

body[data-portal="customer"] .card-price {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body[data-portal="customer"] .card-price strong {
  color: #e4522f;
  font-size: 20px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

body[data-portal="customer"] .card-price small {
  color: #8b97a9;
  font-size: 10px;
}

body[data-portal="customer"] .detail-price-row {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

body[data-portal="customer"] .detail-price-row > strong {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  color: #2f6df6;
  font-size: clamp(26px, 2vw, 32px);
  line-height: 1.08;
}

body[data-portal="customer"] .platform-price-amount-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

body[data-portal="customer"] .platform-price-amount-wrap > b {
  font: inherit;
  white-space: nowrap;
}

body[data-portal="customer"] .detail-price-row > strong > small {
  color: #8a94a5;
  font-size: 14px;
  font-weight: 800;
}

body[data-portal="customer"] .platform-price-panel {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

body[data-portal="customer"] .platform-price-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-portal="customer"] .platform-price-option-group {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body[data-portal="customer"] .platform-price-option-group > span {
  color: #536174;
  font-size: 11px;
  font-weight: 900;
}

body[data-portal="customer"] .platform-price-select.ant-select {
  width: 100%;
}

body[data-portal="customer"] .platform-price-select .ant-select-selector {
  min-height: 38px;
  border-radius: 9px;
  background: #f7f9fc;
}

body[data-portal="customer"] .platform-price-breakdown.ant-collapse {
  overflow: hidden;
  border: 1px solid #dce5f2;
  border-radius: 10px;
  background: #fff;
}

body[data-portal="customer"] .platform-price-breakdown .ant-collapse-header {
  align-items: center;
  color: var(--customer-primary);
  background: #f3f7ff;
  font-size: 12px;
  font-weight: 760;
}

body[data-portal="customer"] .platform-price-breakdown .ant-collapse-content-box {
  padding: 0;
}

body[data-portal="customer"] .platform-price-amount-wrap.is-price-pending,
body[data-portal="customer"] .platform-price-pending-text {
  color: var(--customer-danger);
}

html {
  scroll-behavior: smooth;
}

body[data-portal="customer"] {
  min-width: 320px;
  margin: 0;
  background: #f4f7fb;
  color: var(--customer-ink);
}

body[data-portal="customer"] button,
body[data-portal="customer"] a,
body[data-portal="customer"] input,
body[data-portal="customer"] textarea {
  transition-duration: 220ms;
  transition-timing-function: var(--customer-ease);
}

body[data-portal="customer"] .page-back-button.ant-btn {
  width: fit-content;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: flex-start;
  flex: none;
  gap: 7px;
  border: 1px solid #a9c9f5;
  border-radius: 10px;
  padding: 0 15px;
  color: #0f5fbd;
  background: #edf5ff;
  box-shadow: 0 5px 14px rgba(23, 105, 210, 0.12);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

body[data-portal="customer"] .page-back-button.ant-btn:hover {
  border-color: #1769d2;
  color: #0f4e9d;
  background: #e0eeff;
  box-shadow: 0 7px 18px rgba(23, 105, 210, 0.18);
  transform: translateX(-2px);
}

body[data-portal="customer"] .page-back-button.ant-btn:active {
  transform: translateX(-1px) scale(0.98);
}

body[data-portal="customer"] .page-back-button.ant-btn:focus-visible {
  outline: 3px solid rgba(23, 105, 210, 0.24);
  outline-offset: 2px;
}

body[data-portal="customer"] .ant-card,
body[data-portal="customer"] .ant-select-selector {
  transition-duration: 220ms;
  transition-timing-function: var(--customer-ease);
}

.customer-ant-app,
.next-car-home {
  min-height: 100vh;
}

.customer-route-frame {
  min-width: 0;
}

/* Header */

body[data-portal="customer"] .customer-site-header {
  position: sticky;
  top: 0;
  z-index: 220;
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(212, 222, 235, 0.82);
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(17, 37, 68, 0.035);
  backdrop-filter: blur(18px) saturate(1.35);
}

/* 首页首屏让主视觉延伸到导航栏后方；开始滚动后恢复为独立的白色导航。 */

body[data-portal="customer"] .next-logo {
  width: 132px;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0;
}

body[data-portal="customer"] .next-logo .customer-custom-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Keep the decorative logo out of native WebView image-style rewrites. */
body[data-portal="customer"] .next-logo .customer-logo-mark {
  width: 100%;
  height: auto;
  aspect-ratio: 992 / 249;
  display: block;
  background: url("/store/static/assets/verax-logo.png") center / contain no-repeat;
}

body[data-portal="customer"] .customer-header-menu.ant-menu {
  /* Preserve horizontal navigation before streamed component styles arrive. */
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin-block: 0;
  padding-inline-start: 0;
  list-style: none;
  min-width: 0;
  justify-content: flex-end;
  border: 0;
  background: transparent;
  line-height: 46px;
}

body[data-portal="customer"] .customer-header-menu .ant-menu-item {
  margin-inline: 4px;
  border-radius: 10px;
  padding-inline: 18px;
  color: #4f6077;
  font-weight: 650;
}

body[data-portal="customer"] .customer-header-menu .ant-menu-item::after {
  display: none;
}

body[data-portal="customer"] .customer-header-menu .ant-menu-item:hover {
  color: var(--customer-primary);
  background: #f5f8fc;
}

body[data-portal="customer"] .customer-header-menu .ant-menu-item-selected {
  color: var(--customer-primary);
  background: var(--customer-primary-soft);
}

body[data-portal="customer"] .customer-header-menu a {
  color: inherit;
}

body[data-portal="customer"] .customer-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

body[data-portal="customer"] .customer-header-language.ant-btn {
  min-width: 58px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding-inline: 10px;
  color: #4f6077;
  font-size: 14px;
  font-weight: 700;
}

body[data-portal="customer"] .customer-header-language.ant-btn:hover {
  color: var(--customer-primary);
  background: var(--customer-primary-soft);
}

.customer-language-option {
  min-width: 154px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.customer-language-option small {
  color: #8390a3;
}

body[data-portal="customer"] .next-main {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

body[data-portal="customer"] .filter-group {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

body[data-portal="customer"] .filter-name {
  color: #43546b;
  font-size: 12px;
  font-weight: 680;
}

body[data-portal="customer"] .customer-filter-select.ant-select {
  width: 100%;
}

body[data-portal="customer"] .customer-filter-select .ant-select-selector {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* 首页搜索框不使用 Select 默认的主色聚焦描边和光晕。 */

/* 搜索型 Select 内部的原生 input 不应继承首页旧表单的输入框外观。 */

.customer-brand-option {
  min-width: 180px;
}

.customer-brand-option > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.customer-brand-option strong,
.customer-brand-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-brand-option small {
  color: #8793a5;
  font-size: 11px;
}

.customer-brand-select-popup .customer-brand-picker-popup {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
}

.customer-brand-select-popup.ant-select-dropdown {
  border: 1px solid #c9dcf2;
  box-shadow: 0 16px 36px rgba(23, 105, 210, 0.14), 0 4px 12px rgba(17, 37, 68, 0.08);
}

.customer-brand-select-popup .customer-brand-picker-menu {
  min-width: 0;
}

.customer-brand-select-popup .customer-brand-picker-menu .rc-virtual-list-scrollbar {
  display: none;
}

.customer-brand-select-popup .customer-brand-picker-menu .ant-select-item-group.customer-brand-initial-group {
  min-height: 24px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #7f8b9d;
  background: #f4f6f9;
  font-size: 10px;
  font-weight: 700;
  line-height: 24px;
}

.customer-brand-select-popup .customer-brand-picker-menu .ant-select-item-option {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding-inline: 10px;
}

.customer-brand-select-popup .customer-brand-picker-menu .ant-select-item-option-grouped {
  padding-inline-start: 10px;
}

.customer-brand-initial-index {
  height: 408px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid #e1ebf7;
  padding-block: 8px;
  background: #f6f9fd;
}

.customer-brand-initial-button {
  width: 14px;
  min-height: 14px;
  display: grid;
  flex: 1 1 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #536277;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.customer-brand-initial-button:hover,
.customer-brand-initial-button:focus-visible {
  color: var(--customer-primary);
  background: var(--customer-primary-soft);
  outline: none;
}

.customer-brand-initial-button.is-active {
  color: #fff;
  background: var(--customer-primary);
}

.customer-brand-initial-button:disabled {
  color: #c7ced8;
  background: transparent;
  cursor: default;
}

/* 桌面首页优先露出完整的一排推荐车源：把找车表单收成横向搜索条。 */

/* Inventory filters and cards */

body[data-portal="customer"] .smart-filter {
  overflow: visible;
  border: 1px solid var(--customer-line-soft);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--customer-shadow-sm);
}

body[data-portal="customer"] .smart-filter:focus-within {
  border-color: #c9dbef;
  box-shadow: var(--customer-shadow-md);
}

body[data-portal="customer"] .filter-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

body[data-portal="customer"] .filter-head > div {
  display: grid;
  gap: 5px;
}

body[data-portal="customer"] .filter-head span {
  color: var(--customer-primary);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body[data-portal="customer"] .filter-head h2 {
  margin: 0;
  color: var(--customer-ink);
  font-size: 25px;
  line-height: 1.3;
}

body[data-portal="customer"] .filter-head p {
  max-width: 720px;
  margin: 3px 0 0;
  color: var(--customer-muted);
  line-height: 1.6;
}

body[data-portal="customer"] .filter-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
}

body[data-portal="customer"] .inventory-shell {
  margin-top: 24px;
}

body[data-portal="customer"] .inventory-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

body[data-portal="customer"] .inventory-summary h3.ant-typography {
  margin: 0;
  color: var(--customer-ink);
  font-size: 22px;
}

body[data-portal="customer"] .next-car-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

body[data-portal="customer"] .next-car-grid .vehicle-query-status {
  grid-column: 1 / -1;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--customer-muted);
  font-size: 12px;
  line-height: 20px;
}

body[data-portal="customer"] .customer-vehicle-card-link {
  height: 100%;
  min-width: 0;
  display: block;
  color: inherit;
  text-decoration: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 620px;
}

body[data-portal="customer"] .next-car-card.ant-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--customer-line-soft);
  border-radius: 16px;
  background: var(--customer-surface);
  box-shadow: none;
  transition: border-color 180ms ease;
}

body[data-portal="customer"] .next-car-card.ant-card:hover {
  border-color: #bed3ea;
  box-shadow: none;
  transform: none;
}

body[data-portal="customer"] .next-car-card.ant-card .ant-card-cover {
  flex: none;
  overflow: hidden;
  border-radius: 0;
}

body[data-portal="customer"] .next-car-card .card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #eaf0f7, #f7f9fc);
}

body[data-portal="customer"] .next-car-card .card-media img,
body[data-portal="customer"] .next-car-card .card-media-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body[data-portal="customer"] .next-car-card:hover .card-media img {
  transform: scale(1.045);
}

body[data-portal="customer"] .next-car-card .card-media-placeholder {
  position: relative;
  background:
    linear-gradient(135deg, transparent 46%, rgba(23, 105, 210, 0.08) 46% 54%, transparent 54%),
    linear-gradient(145deg, #edf2f7, #f8fafc);
}

body[data-portal="customer"] .vehicle-recommended-badge.ant-tag {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  background: rgba(15, 78, 157, 0.86);
  box-shadow: 0 8px 20px rgba(4, 36, 78, 0.2);
  backdrop-filter: blur(10px);
}

body[data-portal="customer"] .next-car-card .ant-card-body {
  display: flex;
  flex: 1;
  padding: 18px;
}

body[data-portal="customer"] .next-car-card .card-body {
  width: 100%;
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

body[data-portal="customer"] .next-car-card .card-body h4.ant-typography {
  min-height: 48px;
  margin: 0;
  color: var(--customer-ink);
  font-size: 17px;
  font-weight: 720;
  line-height: 1.4;
}

body[data-portal="customer"] .next-car-card .card-description.ant-typography {
  margin: 0;
  font-size: 13px;
}

body[data-portal="customer"] .card-facts {
  height: 43px;
  min-height: 43px;
  display: block;
  overflow: hidden;
  border-top: 0;
  padding-top: 0;
}

body[data-portal="customer"] .card-condition-fact {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border-radius: 9px;
  padding: 8px 10px;
  overflow: hidden;
  background: #f7f9fc;
}

body[data-portal="customer"] .card-condition-fact span {
  color: #8491a4;
  font-size: 11px;
}

body[data-portal="customer"] .card-condition-fact strong {
  min-width: 0;
  display: block;
  overflow: hidden;
  color: #47586e;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

body[data-portal="customer"] .customer-grid-message {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--customer-radius);
}

body[data-portal="customer"] .customer-grid-message.ant-alert {
  min-height: 0;
  justify-content: flex-start;
  border: 1px solid rgba(217, 145, 28, 0.28);
  padding: 20px 22px;
  background: linear-gradient(135deg, #fffdf7, #fff9e8);
  box-shadow: 0 12px 32px rgba(83, 52, 6, 0.08);
}

body[data-portal="customer"] .customer-grid-message.ant-alert .ant-alert-message {
  color: #68420b;
  font-weight: 740;
}

body[data-portal="customer"] .customer-grid-message.ant-alert .ant-alert-description {
  color: #7a633f;
}

body[data-portal="customer"] .customer-grid-message.ant-alert .ant-alert-action {
  margin-inline-start: auto;
  padding-inline-start: 20px;
}

body[data-portal="customer"] .customer-inventory-results .customer-grid-message.ant-alert {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: none;
}

body[data-portal="customer"] .customer-inventory-results .customer-grid-message.ant-alert .ant-alert-icon {
  margin: 2px 0 0;
  font-size: 18px;
}

body[data-portal="customer"] .customer-inventory-results .customer-grid-message.ant-alert .ant-alert-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-portal="customer"] .customer-inventory-results .customer-grid-message.ant-alert .ant-alert-message {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

body[data-portal="customer"] .customer-inventory-results .customer-grid-message.ant-alert .ant-alert-description {
  font-size: 13px;
  line-height: 1.5;
}

body[data-portal="customer"] .customer-inventory-results .customer-grid-message.ant-alert .ant-alert-action {
  margin: 0;
  padding: 0;
}

@media (max-width: 600px) {
  body[data-portal="customer"] .customer-inventory-results .customer-grid-message.ant-alert {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  body[data-portal="customer"] .customer-inventory-results .customer-grid-message.ant-alert .ant-alert-action {
    grid-column: 2;
    justify-self: start;
  }
}

body[data-portal="customer"] .vehicle-card-skeleton {
  overflow: hidden;
  border: 1px solid var(--customer-line-soft);
  border-radius: 16px;
  background: #fff;
}

body[data-portal="customer"] .vehicle-card-skeleton .vehicle-card-skeleton-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

body[data-portal="customer"] .vehicle-card-skeleton-media .ant-skeleton-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

body[data-portal="customer"] .vehicle-card-skeleton-media .ant-skeleton-image-svg {
  display: none;
}

body[data-portal="customer"] .vehicle-card-skeleton .card-body.ant-skeleton {
  padding: 18px;
}

body[data-portal="customer"] .next-car-grid .scroll-sentinel,
body[data-portal="customer"] .next-car-grid .scroll-loading-note {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 16px;
  border: 0;
  border-radius: 0;
  padding: 10px 18px;
  color: var(--customer-muted);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

body[data-portal="customer"] .next-car-grid .scroll-end-note:not(.ant-alert) {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  margin: 0 auto 16px;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--customer-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

body[data-portal="customer"] .scroll-load-error.ant-alert {
  grid-column: 1 / -1;
}

body[data-portal="customer"] .detail-error-note {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

body[data-portal="customer"] .platform-vehicle-unavailable-page {
  display: grid;
  place-items: center;
  min-height: min(640px, calc(100svh - 180px));
  padding: 64px 24px;
}

body[data-portal="customer"] .platform-vehicle-unavailable {
  display: grid;
  justify-items: center;
  width: min(100%, 480px);
  gap: 24px;
  text-align: center;
}

body[data-portal="customer"] .platform-vehicle-unavailable-icon {
  position: relative;
  width: 112px;
  height: 80px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #dbe1e8;
  color: #a0adbc;
  font-size: 64px;
}

body[data-portal="customer"] .platform-vehicle-unavailable-marker {
  position: absolute;
  inset-inline-end: 0;
  bottom: 5px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid #f5f7fb;
  border-radius: 50%;
  background: #f5f7fb;
  color: #7f8996;
  font-size: 24px;
}

body[data-portal="customer"] .platform-vehicle-unavailable-copy {
  min-width: 0;
  width: 100%;
}

body[data-portal="customer"] .platform-vehicle-unavailable-copy > span {
  color: #7a8696;
  font-size: 13px;
  font-weight: 500;
}

body[data-portal="customer"] .platform-vehicle-unavailable-copy h1 {
  margin: 10px 0 12px;
  color: #27313f;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

body[data-portal="customer"] .platform-vehicle-unavailable-copy p {
  margin: 0;
  color: #788494;
  font-size: 15px;
  line-height: 1.75;
}

body[data-portal="customer"] .platform-vehicle-unavailable-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 26px;
  border: 1px solid #2369d4;
  border-radius: 6px;
  background: #2369d4;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
  transition: background-color 150ms, border-color 150ms;
}

body[data-portal="customer"] .platform-vehicle-unavailable-action:hover {
  border-color: #1957b5;
  background: #1957b5;
  color: #fff;
}

body[data-portal="customer"] .platform-vehicle-unavailable-action:focus-visible {
  outline: 3px solid #9fc2f5;
  outline-offset: 4px;
}

@media (max-width: 640px) {
  body[data-portal="customer"] .platform-vehicle-unavailable-page {
    min-height: 420px;
    padding: 48px 8px 64px;
  }

  body[data-portal="customer"] .platform-vehicle-unavailable {
    gap: 20px;
  }

  body[data-portal="customer"] .platform-vehicle-unavailable-copy h1 {
    font-size: 24px;
  }
}

/* Existing rich pages: normalize surfaces without changing business layout */

body[data-portal="customer"] .vehicle-detail-summary,
body[data-portal="customer"] .vehicle-detail-panel,
body[data-portal="customer"] .detail-anchor-nav,
body[data-portal="customer"] .detail-media-card {
  border-color: var(--customer-line-soft);
  border-radius: 16px;
  box-shadow: var(--customer-shadow-sm);
}

body[data-portal="customer"] .vehicle-detail-gallery,
body[data-portal="customer"] .vehicle-detail-media {
  border-radius: 18px;
}

body[data-portal="customer"] .vehicle-detail-gallery {
  align-items: stretch;
}

body[data-portal="customer"] .vehicle-detail-gallery .vehicle-detail-media {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
}

body[data-portal="customer"] .vehicle-detail-gallery .detail-main-media-stage > img,
body[data-portal="customer"] .vehicle-detail-gallery .detail-main-media-stage > video {
  object-fit: cover;
}

body[data-portal="customer"] .detail-gallery-image,
body[data-portal="customer"] .detail-gallery-image-status {
  position: absolute;
  inset: 0;
}

body[data-portal="customer"] .detail-gallery-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

body[data-portal="customer"] .detail-gallery-image-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px;
  color: #526176;
  text-align: center;
}

body[data-portal="customer"] .vehicle-detail-gallery .detail-thumb-shell {
  align-self: stretch;
  height: auto;
  max-height: none;
}

body[data-portal="customer"] .vehicle-detail-gallery .detail-thumb-rail {
  position: absolute;
  inset: 0;
  height: auto;
  max-height: none;
}

/* Vehicle detail: keep the thumbnail rail in flow below the main image on touch layouts. */
@media (max-width: 980px) {
  body[data-portal="customer"] .vehicle-detail-page .vehicle-detail-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-detail-gallery .detail-thumb-shell {
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-detail-gallery .detail-thumb-rail {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 2px 7px;
    scrollbar-gutter: auto;
    scroll-snap-type: x proximity;
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-thumb-rail button {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
    scroll-snap-align: start;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-archive-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-archive-group[data-archive-group] .detail-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-anchor-nav {
    position: static;
    display: flex;
    min-width: 0;
    overflow-x: auto;
    gap: 4px;
    padding: 4px;
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-anchor-nav a {
    flex: 0 0 auto;
    min-height: 44px;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-detail-panel {
    scroll-margin-top: 88px;
  }
}

@media (max-width: 680px) {
  body[data-portal="customer"]:has(.vehicle-detail-page) .customer-site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 8px 12px 4px;
  }

  body[data-portal="customer"]:has(.vehicle-detail-page) .customer-site-header > .next-logo {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-portal="customer"]:has(.vehicle-detail-page) .customer-header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  body[data-portal="customer"]:has(.vehicle-detail-page) .customer-header-menu.ant-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    line-height: 44px;
  }

  body[data-portal="customer"]:has(.vehicle-detail-page) .customer-header-menu .ant-menu-item {
    flex: 0 0 auto;
    height: 44px;
    line-height: 44px;
  }
  body[data-portal="customer"] .vehicle-detail-page,
  body[data-portal="customer"] .vehicle-detail-page .vehicle-detail-layout {
    min-width: 0;
    gap: 12px;
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-crumb {
    flex-wrap: wrap;
    overflow-wrap: anywhere;
  }

  body[data-portal="customer"] .vehicle-detail-page :is(.vehicle-detail-summary, .vehicle-detail-panel) {
    min-width: 0;
    padding: 16px;
    border-radius: 12px;
    box-shadow: none;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-detail-media {
    border-radius: 12px;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-detail-panel {
    scroll-margin-top: 124px;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-detail-summary {
    gap: 12px;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-detail-summary h1 {
    font-size: 18px;
    line-height: 1.45;
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-price-row > strong {
    line-height: 1.3;
  }

  body[data-portal="customer"] .vehicle-detail-page .platform-price-amount-wrap {
    min-width: 0;
    max-width: 100%;
  }

  body[data-portal="customer"] .vehicle-detail-page .platform-price-amount-wrap > b {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body[data-portal="customer"] .vehicle-detail-page .platform-price-controls {
    align-items: end;
  }

  body[data-portal="customer"] .vehicle-detail-page :is(.platform-price-select.ant-select, .customer-fixed-trade-method.ant-input) {
    height: 44px;
  }

  body[data-portal="customer"] .vehicle-detail-page .platform-price-breakdown table {
    table-layout: fixed;
    width: 100%;
  }

  body[data-portal="customer"] .vehicle-detail-page .platform-price-breakdown :is(th, td) {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body[data-portal="customer"] .vehicle-detail-page :is(.detail-quick-facts, .detail-media-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-quick-facts {
    gap: 0;
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-quick-facts > div {
    align-content: start;
    padding: 10px;
    border: 0;
    text-align: start;
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-quick-facts > div:nth-child(2n) {
    border-inline-start: 1px solid var(--customer-line-soft);
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-quick-facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--customer-line-soft);
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-quick-facts :is(strong, span) {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-quick-facts strong {
    font-size: 14px;
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-panel-heading {
    align-items: start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-panel-heading h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-archive-groups {
    gap: 16px;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-archive-group {
    padding: 0;
    border: 0;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-archive-group h3 {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.5;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-archive-group[data-archive-group] .detail-field-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-archive-group .customer-vehicle-detail-field {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
    align-items: baseline;
    gap: 12px;
    min-height: 0;
    padding: 9px 0;
    border-bottom: 1px solid var(--customer-line-soft);
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-archive-group .customer-vehicle-detail-field :is(dt, dd) {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.5;
    text-align: start;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-archive-group .customer-vehicle-detail-field dt {
    font-size: 12px;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-archive-group .customer-vehicle-detail-field dd {
    font-size: 14px;
    font-weight: 600;
  }

  body[data-portal="customer"] .vehicle-detail-page .vehicle-detail-summary .detail-actions {
    margin-top: 0;
    padding-top: 12px;
  }

  body[data-portal="customer"] .vehicle-detail-page .detail-actions .ant-btn {
    min-height: 44px;
    height: auto;
    white-space: normal;
  }
}

body[data-portal="customer"] .detail-image-nav.ant-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

body[data-portal="customer"] .detail-image-nav.ant-btn:hover,
body[data-portal="customer"] .detail-image-nav.ant-btn:focus-visible {
  color: #fff;
  background: rgba(15, 23, 42, 0.82);
  transform: translateY(-50%) scale(1.05);
}

body[data-portal="customer"] .detail-image-nav.ant-btn::before {
  display: none;
}

body[data-portal="customer"] .detail-image-nav-prev.ant-btn {
  left: 18px;
}

body[data-portal="customer"] .detail-image-nav-next.ant-btn {
  right: 18px;
}

body[data-portal="customer"] .detail-media-card.ant-btn {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  padding: 0;
}

body[data-portal="customer"] .detail-media-card.ant-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-portal="customer"] .detail-media-card.ant-btn video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-portal="customer"] .customer-detail-image-preview .ant-image-preview-mask {
  background: rgba(3, 10, 22, 0.88);
  backdrop-filter: blur(10px);
}

body[data-portal="customer"] .customer-detail-image-preview .ant-image-preview-operations {
  top: 20px;
  inset-inline-end: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

body[data-portal="customer"] .customer-detail-image-preview .ant-image-preview-operations-operation {
  width: 44px;
  height: 44px;
  margin: 0;
  display: grid;
  place-items: center;
  transition: color 160ms ease, background-color 160ms ease;
}

body[data-portal="customer"] .customer-detail-image-preview .ant-image-preview-operations-operation:hover {
  background: rgba(255, 255, 255, 0.12);
}

body[data-portal="customer"] .customer-detail-image-preview .ant-image-preview-switch-left,
body[data-portal="customer"] .customer-detail-image-preview .ant-image-preview-switch-right {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  transition: background-color 160ms ease, transform 160ms ease;
}

body[data-portal="customer"] .customer-detail-image-preview .ant-image-preview-switch-left:hover,
body[data-portal="customer"] .customer-detail-image-preview .ant-image-preview-switch-right:hover {
  background: rgba(37, 99, 235, 0.88);
  transform: translateY(-50%) scale(1.05);
}

body[data-portal="customer"] .customer-detail-image-preview .ant-image-preview-img {
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

body[data-portal="customer"] .customer-detail-video-preview .ant-modal-content {
  overflow: hidden;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 72px rgba(15, 23, 42, 0.24);
}

body[data-portal="customer"] .customer-detail-video-preview .ant-modal-header {
  margin-bottom: 18px;
  padding-inline-end: 36px;
}

body[data-portal="customer"] .customer-detail-video-player {
  width: 100%;
  max-height: calc(100vh - 190px);
  display: block;
  border-radius: 12px;
  background: #060b16;
}

body[data-portal="customer"] .customer-detail-video-link {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  border: 1px solid var(--customer-line-soft);
  border-radius: 12px;
  padding: 36px;
  background: var(--customer-surface-soft);
  text-align: center;
}

body[data-portal="customer"] .detail-anchor-nav {
  top: 86px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

/* The capability cards still receive a compact, conventional elevation. */

/* Customer inventory search workspace */

body[data-portal="customer"] .customer-inventory-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

body[data-portal="customer"] .customer-filter-sidebar {
  position: sticky;
  top: 96px;
  /* Keep filter menus above the sticky header (220) and below modal overlays. */
  z-index: 221;
  min-width: 0;
  align-self: start;
}

body[data-portal="customer"] .customer-filter-sidebar .smart-filter {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 120px);
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  padding: 0;
}

body[data-portal="customer"] .customer-filter-sidebar .filter-head {
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  border-bottom: 1px solid var(--customer-line-soft);
  padding: 18px 18px 16px;
}

body[data-portal="customer"] .customer-filter-sidebar .filter-head > div {
  gap: 2px;
}

body[data-portal="customer"] .customer-filter-sidebar .filter-head h2 {
  font-size: 19px;
}

body[data-portal="customer"] .customer-filter-sidebar .filter-head .ant-btn {
  flex: 0 0 auto;
  padding-inline: 8px;
  color: var(--customer-muted);
}

body[data-portal="customer"] .customer-filter-sidebar .filter-matrix {
  display: block;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  padding: 0;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-filter-section {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--customer-line-soft);
  padding: 20px 18px 22px;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-filter-section:first-child {
  border-top: 0;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-filter-section h3 {
  margin: 0;
  color: #263b57;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-catalog-filter-section {
  gap: 16px;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-filter-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-range-reset {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  color: var(--customer-muted);
  background: transparent;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-range-reset:not(:disabled):hover {
  color: var(--customer-primary);
}

body[data-portal="customer"] .customer-filter-sidebar .customer-range-reset:disabled {
  color: #aab4c2;
  cursor: default;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-range-filter .ant-slider {
  margin: 6px 7px 30px;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-range-filter .ant-slider-mark-text {
  color: #8995a7;
  font-size: 10px;
  white-space: nowrap;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-range-filter .ant-slider-mark-text-active {
  color: var(--customer-primary);
  font-weight: 700;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-range-selects {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 7px;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-range-selects label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-range-selects label > span {
  color: var(--customer-muted);
  font-size: 11px;
  font-weight: 650;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-range-selects .ant-select {
  width: 100%;
  min-width: 0;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-range-selects .ant-select-selector {
  min-height: 38px;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-range-separator {
  padding-bottom: 10px;
  color: #a2adba;
}

body[data-portal="customer"] .customer-filter-sidebar .filter-group,
body[data-portal="customer"] .customer-filter-sidebar .customer-filter-select,
body[data-portal="customer"] .customer-filter-sidebar .ant-select,
body[data-portal="customer"] .customer-filter-sidebar .ant-select-selector {
  width: 100%;
  min-width: 0;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-filter-select.ant-select {
  height: 38px;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-filter-select .ant-select-selector {
  min-height: 38px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body[data-portal="customer"] .customer-filter-sidebar .customer-filter-select.ant-select-disabled .ant-select-selector {
  border-color: #e3e8ef;
  background: #f3f5f8;
  color: #aab4c2;
  cursor: not-allowed;
  box-shadow: none;
}

body[data-portal="customer"] .customer-filter-sidebar .filter-name {
  color: #43546b;
  font-size: 13px;
  font-weight: 700;
}

body[data-portal="customer"] .customer-inventory-results.inventory-shell {
  min-width: 0;
  margin-top: 0;
}

body[data-portal="customer"] .customer-result-toolbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  border: 1px solid var(--customer-line-soft);
  border-radius: 14px;
  padding: 11px 13px 11px 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--customer-shadow-sm);
}

body[data-portal="customer"] .customer-result-toolbar .inventory-summary {
  min-width: 0;
  margin: 0;
}

body[data-portal="customer"] .customer-result-toolbar .inventory-summary h3.ant-typography {
  font-size: 20px;
}

body[data-portal="customer"] .customer-result-search {
  flex: 1 1 320px;
  min-width: 180px;
  max-width: 440px;
}

body[data-portal="customer"] .customer-result-search .ant-input-affix-wrapper {
  height: 38px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body[data-portal="customer"] .customer-result-search .ant-input-affix-wrapper:hover,
body[data-portal="customer"] .customer-filter-sidebar .customer-filter-select:not(.ant-select-disabled):hover .ant-select-selector {
  border-color: #aab8c8;
}

body[data-portal="customer"] .customer-result-search .ant-input-affix-wrapper-focused,
body[data-portal="customer"] .customer-filter-sidebar .customer-filter-select.ant-select.ant-select-focused:not(.ant-select-disabled) .ant-select-selector {
  border-color: var(--customer-primary);
  box-shadow: 0 0 0 2px rgba(23, 105, 210, 0.1);
}

body[data-portal="customer"] .customer-result-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

body[data-portal="customer"] .customer-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-portal="customer"] .customer-sort-control > span {
  color: var(--customer-muted);
  font-size: 13px;
  font-weight: 680;
  white-space: nowrap;
}

body[data-portal="customer"] .customer-sort-select.ant-select {
  width: 174px;
  height: 38px;
}

body[data-portal="customer"] .customer-sort-select .ant-select-selector {
  min-height: 38px;
  border-radius: 9px;
}

body[data-portal="customer"] .customer-sort-control.is-disabled > span {
  color: #aab4c2;
}

body[data-portal="customer"] .customer-sort-control.is-disabled .customer-sort-select .ant-select-selector {
  border-color: #e3e8ef;
  background: #f3f5f8;
  color: #aab4c2;
  cursor: not-allowed;
  box-shadow: none;
}

body[data-portal="customer"] .customer-view-switch {
  display: inline-flex;
  gap: 3px;
  border: 1px solid var(--customer-line);
  border-radius: 10px;
  padding: 3px;
  background: var(--customer-surface-soft);
}

body[data-portal="customer"] .customer-view-button.ant-btn {
  width: 34px;
  min-width: 34px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  color: var(--customer-muted);
  background: transparent;
  box-shadow: none;
}

body[data-portal="customer"] .customer-view-button.ant-btn.is-active {
  color: #fff;
  background: var(--customer-primary);
}

body[data-portal="customer"] .customer-inventory-results .next-car-grid.is-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body[data-portal="customer"] .next-car-grid.is-list {
  grid-template-columns: 1fr;
  gap: 14px;
}

body[data-portal="customer"] .next-car-grid.is-list .customer-vehicle-card-link {
  height: auto;
  contain-intrinsic-size: auto 220px;
}

body[data-portal="customer"] .next-car-grid.is-list .next-car-card.ant-card {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(250px, 31%) minmax(0, 1fr);
  border-radius: 14px;
}

body[data-portal="customer"] .next-car-grid.is-list .next-car-card.ant-card:hover {
  transform: none;
}

body[data-portal="customer"] .next-car-grid.is-list .next-car-card .ant-card-cover,
body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-media {
  height: 220px;
}

body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-media {
  min-height: 0;
  aspect-ratio: auto;
}

body[data-portal="customer"] .next-car-grid.is-list .next-car-card .ant-card-body {
  min-width: 0;
  padding: 20px 22px;
}

body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 196px;
  grid-template-rows: auto auto 1fr;
  column-gap: 24px;
  align-items: start;
}

body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-body h4.ant-typography {
  min-height: 0;
  grid-column: 1;
  font-size: 20px;
}

body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-description.ant-typography,
body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-facts {
  grid-column: 1;
}

body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-facts {
  width: min(100%, 520px);
  align-self: end;
}

body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-foot {
  min-height: 100%;
  grid-column: 2;
  grid-row: 1 / -1;
  align-items: center;
  border-top: 0;
  border-left: 1px solid var(--customer-line-soft);
  padding: 6px 0 6px 24px;
}

body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-price strong {
  font-size: 24px;
  white-space: nowrap;
}

body[data-portal="customer"] .next-car-grid.is-list .vehicle-card-skeleton {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(250px, 31%) minmax(0, 1fr);
}

body[data-portal="customer"] .next-car-grid.is-list .vehicle-card-skeleton .vehicle-card-skeleton-media {
  height: 100%;
  aspect-ratio: auto;
}

@media (max-width: 1180px) {
  body[data-portal="customer"] .customer-inventory-workspace {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
  }

  body[data-portal="customer"] .customer-inventory-results .next-car-grid.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-body {
    grid-template-columns: minmax(0, 1fr) 176px;
    column-gap: 18px;
  }

  body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-foot {
    padding-left: 18px;
  }

}

@media (max-width: 920px) {
  body[data-portal="customer"] .customer-inventory-workspace {
    grid-template-columns: 1fr;
  }

  body[data-portal="customer"] .customer-filter-sidebar {
    position: relative;
    top: auto;
    z-index: auto;
  }

  body[data-portal="customer"] .customer-filter-sidebar .smart-filter {
    max-height: none;
  }

  body[data-portal="customer"] .customer-filter-sidebar .filter-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    overscroll-behavior-y: auto;
    scrollbar-gutter: auto;
  }

  body[data-portal="customer"] .customer-result-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-portal="customer"] .customer-result-search {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }

  body[data-portal="customer"] .customer-result-controls {
    width: 100%;
    justify-content: flex-end;
  }

  body[data-portal="customer"] .next-car-grid.is-list .next-car-card.ant-card,
  body[data-portal="customer"] .next-car-grid.is-list .vehicle-card-skeleton {
    grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  }

}

@media (max-width: 680px) {
  body[data-portal="customer"] .customer-filter-sidebar .filter-matrix {
    grid-template-columns: 1fr;
  }

  body[data-portal="customer"] .customer-result-controls {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-portal="customer"] .customer-sort-control,
  body[data-portal="customer"] .customer-sort-select.ant-select {
    width: 100%;
  }

  body[data-portal="customer"] .customer-sort-control {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-portal="customer"] .customer-view-switch {
    align-self: flex-end;
  }

  body[data-portal="customer"] .customer-inventory-results .next-car-grid.is-grid {
    grid-template-columns: 1fr;
  }

  body[data-portal="customer"] .next-car-grid.is-list .next-car-card.ant-card,
  body[data-portal="customer"] .next-car-grid.is-list .vehicle-card-skeleton {
    grid-template-columns: 1fr;
  }

  body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  body[data-portal="customer"] .next-car-grid.is-list .vehicle-card-skeleton .vehicle-card-skeleton-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Responsive */

@media (max-width: 1180px) {
  body[data-portal="customer"] .customer-site-header {
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 14px;
  }

  body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-body {
    display: flex;
  }

  body[data-portal="customer"] .next-car-grid.is-list .next-car-card .card-foot {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--customer-line-soft);
    padding: 12px 0 0;
  }

  body[data-portal="customer"] .next-car-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {

  body[data-portal="customer"] .customer-site-header {
    grid-template-columns: 112px minmax(0, 1fr) auto;
    padding-inline: 18px;
  }

  body[data-portal="customer"] .next-logo {
    width: 112px;
  }

  body[data-portal="customer"] .customer-header-menu .ant-menu-item {
    padding-inline: 11px;
  }

  body[data-portal="customer"] .filter-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-portal="customer"] .next-car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {

  body[data-portal="customer"] .customer-site-header {
    min-height: 104px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 16px;
    padding: 8px 16px 4px;
  }

  body[data-portal="customer"] .next-logo {
    width: 116px;
    min-height: 40px;
    height: 40px;
  }

  body[data-portal="customer"] .customer-header-actions {
    grid-column: 2;
    grid-row: 1;
    min-height: 48px;
  }

  body[data-portal="customer"] .customer-header-menu.ant-menu {
    grid-row: 2;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    overflow: hidden;
    line-height: 40px;
  }

  body[data-portal="customer"] .customer-header-menu .ant-menu-item {
    margin-inline: 1px;
    padding-inline: 12px;
    font-size: 13px;
    border-radius: 6px;
  }

  body[data-portal="customer"] .customer-header-language.ant-btn {
    min-width: 40px;
    width: 40px;
    padding-inline: 0;
  }

  body[data-portal="customer"] .customer-header-language.ant-btn .anticon {
    display: none;
  }

  body[data-portal="customer"] header.customer-site-header:has(.customer-header-actions .storefront-header-account) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body[data-portal="customer"] .next-main {
    width: calc(100% - 24px);
    padding: 16px 0 40px;
  }

  body[data-portal="customer"] .filter-matrix,
  body[data-portal="customer"] .next-car-grid {
    grid-template-columns: 1fr;
  }

  body[data-portal="customer"] .filter-head {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Operation feedback is compact, centered above dialogs, and never shifts page content. */
.ant-message .ant-message-notice-content {
  max-width: min(480px, calc(100vw - 32px));
  text-align: start;
  overflow-wrap: anywhere;
}


body[data-portal="customer"] .next-car-card .card-media-placeholder[role="alert"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  box-sizing: border-box;
  background: #f1f4f8;
  color: #526176;
  font-size: 13px;
  text-align: center;
}

body[data-portal="customer"] .card-media-placeholder[role="alert"]::after {
  content: none;
}

body[data-portal="customer"] .card-media-placeholder[role="alert"] button {
  padding: 4px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
