:root {
  --zd-bg: #020810;
  --zd-panel: #070e1a;
  --zd-accent: #00f0ff;
  --zd-accent-soft: rgba(0, 240, 255, 0.06);
  --zd-danger: #ff5555;
  --zd-text: #f5f7fb;
  --zd-muted: rgba(0, 240, 255, 0.66);
  --zd-label: rgba(0, 240, 255, 0.82);
  --zd-border: #0d2035;
  --zd-radius: 3px;
  --zd-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
  --zd-transition-fast: 0.18s ease-out;
  --zd-transition-med: 0.25s ease-out;
  --zd-font-label: 'Courier New', monospace;
  --zd-font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --zd-font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  font-family: var(--zd-font-body);
}

/* SMART SEARCH HUD */
.zd-smart-search {
  width: 100%;
  background: radial-gradient(circle at top left, #101624 0, #05070b 55%);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  padding: 14px 18px;
  position: relative;
  z-index: 30;
}

.zd-search-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto minmax(280px, 560px) auto;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.zd-browse-btn {
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--zd-accent);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background var(--zd-transition-fast), box-shadow var(--zd-transition-fast), transform var(--zd-transition-fast);
}

.zd-browse-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

.zd-add-vehicle-btn {
  background: linear-gradient(135deg, #00f0ff, #00a3ff);
  border: none;
  color: #020308;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  transition: transform var(--zd-transition-fast),
    box-shadow var(--zd-transition-fast), filter var(--zd-transition-fast);
}

.zd-add-vehicle-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.7);
}

/* Search box — input + inline search/mic/barcode icons behind one pill border,
   so all search entry points live inside a single control instead of competing
   for space as separate buttons in the bar. */
.zd-search-box {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  justify-self: start;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(4, 7, 14, 0.95);
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.08);
  padding: 0 6px 0 16px;
  transition: border-color var(--zd-transition-fast),
    box-shadow var(--zd-transition-fast), background var(--zd-transition-fast);
}

.zd-search-box:focus-within {
  border-color: var(--zd-accent);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.4),
    0 0 24px rgba(0, 240, 255, 0.25);
  background: rgba(4, 7, 14, 1);
}

#zd-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--zd-text);
  font-size: 14px;
  padding: 10px 6px;
}

#zd-search-input::placeholder {
  color: var(--zd-muted);
}

.zd-search-icon-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--zd-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background var(--zd-transition-fast), color var(--zd-transition-fast);
}

.zd-search-icon-btn:hover {
  background: rgba(0, 240, 255, 0.12);
}

.zd-search-icon-btn svg {
  width: 16px;
  height: 16px;
}

.zd-search-icon-btn.zd-mic-active {
  color: var(--zd-danger);
  animation: zd-mic-pulse 1.4s ease-in-out infinite;
}

.zd-search-divider {
  width: 1px;
  height: 20px;
  background: rgba(0, 240, 255, 0.25);
  margin: 0 2px;
  flex-shrink: 0;
}

@keyframes zd-mic-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 51, 85, 0.35); }
  60%  { box-shadow: 0 0 0 8px rgba(255, 51, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 51, 85, 0); }
}

/* BARCODE SCAN OVERLAY */
#zd-scan-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zd-scan-modal {
  background: radial-gradient(circle at top left, #151b2a 0, #05070b 55%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--zd-radius-lg);
  padding: 16px;
  width: 340px;
  max-width: 95vw;
  box-shadow: var(--zd-shadow-soft);
}

.zd-scan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--zd-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.zd-scan-viewport {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
  border-radius: var(--zd-radius);
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.18);
}

.zd-scan-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* AI CHAT */
.zd-chat-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.zd-chat-character {
  text-align: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--zd-border);
}

.zd-chat-avatar {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 4px;
}

.zd-chat-avatar-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  object-position: bottom;
  display: block;
  margin: 0 auto 4px;
}

.zd-chat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--zd-accent);
  letter-spacing: 0.04em;
}

.zd-chat-tagline {
  font-size: 10px;
  color: var(--zd-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.zd-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.zd-chat-bubble {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 92%;
}

.zd-chat-bubble.zd-chat-ai {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--zd-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.zd-chat-link {
  color: var(--zd-accent, #00e5ff);
  text-decoration: underline;
  font-weight: 600;
}

/* Sgt. Zero's Picks minimized pill — defined here (not in the board's injected <style>)
   so it's styled on EVERY page, including product pages reached via View details. */
#zd-zero-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99998;
  display: none;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00ff64, #00b34a);
  color: #04140a;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 255, 100, 0.4);
  font-family: var(--zd-font-body, system-ui, sans-serif);
}
#zd-zero-pill:hover { filter: brightness(1.08); transform: translateY(-1px); }
#zd-zero-pill .zzp-dot { font-size: 15px; }
@media (max-width: 560px) { #zd-zero-pill { right: 14px; bottom: 14px; } }

.zd-chat-bubble.zd-chat-user {
  background: rgba(0, 163, 255, 0.12);
  border: 1px solid rgba(0, 163, 255, 0.3);
  color: var(--zd-text);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.zd-chat-cards {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
  width: 100%;
}

.zd-chat-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: 7px;
  padding: 7px 10px;
  text-decoration: none;
  color: var(--zd-text, #f5f7fb);
  font-size: 12px;
  transition: border-color 0.18s;
  overflow: hidden;
}

.zd-chat-card:hover { border-color: var(--zd-accent, #00e5ff); }

.zd-chat-card-brand {
  color: var(--zd-accent, #00e5ff);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.zd-chat-card-title {
  flex: 1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zd-chat-card-meta {
  color: rgba(0,229,255,0.5);
  font-size: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.zd-chat-card-arrow {
  color: var(--zd-accent, #00e5ff);
  flex-shrink: 0;
  font-size: 13px;
}

.zd-chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

#zd-chat-input {
  padding: 8px 12px;
  border-radius: var(--zd-radius);
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(4, 7, 14, 0.95);
  color: var(--zd-text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--zd-transition-fast), box-shadow var(--zd-transition-fast);
}

#zd-chat-input:focus {
  border-color: var(--zd-accent);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.3);
}

/* ---- FLOATING CHAT PANEL ---- */
/* Active-state highlight for the #zd-chat-tab sticky tab (see .zda-sticky-tab in zd-app.js) */
.zd-chat-hud-active {
  background: linear-gradient(135deg, #00f0ff, #00a3ff) !important;
  color: #020308 !important;
  border-color: transparent !important;
}

/* Recalls tab alert — auto-scan flags open recalls on VIN decode.
   Pulses orange 5x to grab attention, then settles to solid orange. */
.zd-dossier-tabs button.zd-tab-recall-alert {
  color: #ffb347 !important;
  border-color: #ff8c00 !important;
  animation: zd-recall-pulse 0.9s ease-in-out 5;
}
.zd-dossier-tabs button.zd-tab-recall-alert.active,
.zd-dossier-tabs button.zd-tab-recall-alert {
  /* steady state after the pulses finish */
  background: rgba(255, 140, 0, 0.12);
}
@keyframes zd-recall-pulse {
  0%, 100% { background: rgba(255, 140, 0, 0.10); box-shadow: 0 0 0 0 rgba(255,140,0,0.55); }
  50%      { background: rgba(255, 140, 0, 0.38); box-shadow: 0 0 14px 2px rgba(255,140,0,0.6); }
}
.zd-tab-badge {
  display: inline-block;
  min-width: 16px;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 999px;
  background: #ff8c00;
  color: #1a0e00;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  vertical-align: middle;
}
/* Clean scan — subtle green check */
.zd-dossier-tabs button.zd-tab-recall-clear {
  color: #5ee6a8 !important;
  border-color: rgba(94, 230, 168, 0.5) !important;
}
/* VIN-verification disclaimer above the recall cards */
.zd-recall-disclaimer {
  color: #ffb347 !important;
  border-left: 2px solid #ff8c00;
  padding-left: 8px;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Mechanic Division — smart-search HUD button.
   Two-line, rotating CTA (find a mechanic / join the network). Stands out
   with a slow breathing glow; opens the dossier Mechanic tab on click. */
.zd-mechanic-hud-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.14), rgba(0, 163, 255, 0.05));
  border: 1.5px solid var(--zd-accent);
  color: var(--zd-accent);
  padding: 6px 15px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
  animation: zd-mech-hud-glow 3s ease-in-out infinite;
  transition: transform var(--zd-transition-fast),
    box-shadow var(--zd-transition-fast), background var(--zd-transition-fast),
    color var(--zd-transition-fast);
}

.zd-mechanic-hud-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #00f0ff, #00a3ff);
  color: #020308;
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.7);
}

.zd-mech-hud-icon {
  font-size: 18px;
  line-height: 1;
}

.zd-mech-hud-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.12;
  transition: opacity 0.2s ease;
}

.zd-mechanic-hud-btn.zd-mech-hud-fade .zd-mech-hud-text {
  opacity: 0;
}

.zd-mech-hud-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.zd-mech-hud-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

@keyframes zd-mech-hud-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(0, 240, 255, 0.25); }
  50%      { box-shadow: 0 0 22px rgba(0, 240, 255, 0.55); }
}

.zd-floating-chat {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: 600px;
  background: var(--zd-bg);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 240, 255, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.zd-floating-chat.zd-fc-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.zd-fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--zd-border);
}

.zd-fc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--zd-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zd-fc-minimize {
  background: none;
  border: none;
  color: var(--zd-muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s;
}

.zd-fc-minimize:hover { color: var(--zd-accent); }

.zd-fc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.zd-fc-character {
  text-align: center;
  padding: 12px 0 4px;
  flex-shrink: 0;
}

.zd-fc-avatar-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  object-position: bottom;
  display: block;
  margin: 0 auto;
}

.zd-fc-avatar-fallback {
  font-size: 64px;
  line-height: 1;
}

#zd-fc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  max-height: 200px;
}

.zd-fc-input-row {
  padding: 10px 12px 14px;
  border-top: 1px solid var(--zd-border);
}

#zd-fc-input {
  padding: 8px 12px;
  border-radius: var(--zd-radius);
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(4, 7, 14, 0.95);
  color: var(--zd-text);
  font-size: 13px;
  outline: none;
  width: 100%;
  transition: border-color var(--zd-transition-fast), box-shadow var(--zd-transition-fast);
}

#zd-fc-input:focus {
  border-color: var(--zd-accent);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.3);
}

.zd-btn {
  background: linear-gradient(135deg, #00f0ff, #00a3ff);
  border: none;
  color: #020308;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
  transition: transform var(--zd-transition-fast),
    box-shadow var(--zd-transition-fast), filter var(--zd-transition-fast);
}

.zd-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.7);
}

.zd-btn-ghost {
  background: transparent;
  color: var(--zd-accent);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: none;
}

/* DOSSIER OVERLAY + PANEL */
.zd-dossier-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 240, 255, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 51, 85, 0.12), transparent 60%);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--zd-transition-med);
  z-index: 80;
}

.zd-dossier-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.zd-dossier {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: radial-gradient(circle at top left, #151b2a 0, #05070b 55%);
  border-right: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.85);
  transform: translateX(-100%);
  opacity: 0;
  transition: transform var(--zd-transition-med), opacity var(--zd-transition-med);
  z-index: 90;
  display: flex;
  flex-direction: column;
}

.zd-dossier.open {
  transform: translateX(0);
  opacity: 1;
}

.zd-dossier-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: radial-gradient(circle at 30% 0, #182032 0, #05070b 70%);
  color: var(--zd-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
  transition: transform var(--zd-transition-fast),
    box-shadow var(--zd-transition-fast), border-color var(--zd-transition-fast);
}

.zd-dossier-close:hover {
  transform: translateY(-1px);
  border-color: var(--zd-accent);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

/* DOSSIER TABS — 2-column grid, all tabs visible */
.zd-dossier-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 48px 12px 12px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.18);
}

.zd-dossier-tabs button {
  background: rgba(4, 7, 14, 0.9);
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  color: var(--zd-text);
  font-size: 11px;
  padding: 9px 8px;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background var(--zd-transition-fast),
    color var(--zd-transition-fast), border-color var(--zd-transition-fast),
    box-shadow var(--zd-transition-fast), transform var(--zd-transition-fast);
}

.zd-dossier-tabs button.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(0, 163, 255, 0.18));
  color: var(--zd-accent);
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

/* VIN Scan action button in tab bar — cyan outline, not a panel switcher */
.zd-tab-action {
  border-color: rgba(0, 240, 255, 0.4) !important;
  color: var(--zd-accent) !important;
}

.zd-tab-action:hover {
  background: rgba(0, 240, 255, 0.1) !important;
  border-color: rgba(0, 240, 255, 0.7) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3) !important;
}

/* DOSSIER CONTENT */
.zd-dossier-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.zd-tab-panel {
  display: none;
}

.zd-tab-panel.active {
  display: block;
}

.zd-dossier-section {
  margin-bottom: 16px;
}

#zd-vin-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(4, 7, 14, 0.95);
  color: var(--zd-text);
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.08);
  transition: border-color var(--zd-transition-fast),
    box-shadow var(--zd-transition-fast), background var(--zd-transition-fast);
}

#zd-vin-input::placeholder {
  color: var(--zd-muted);
}

#zd-vin-input:focus {
  border-color: var(--zd-accent);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.4),
    0 0 24px rgba(0, 240, 255, 0.25);
  background: rgba(4, 7, 14, 1);
}

#zd-vin-input.zd-input-error {
  border-color: var(--zd-danger);
  box-shadow: 0 0 0 1px rgba(255, 51, 85, 0.5),
    0 0 24px rgba(255, 51, 85, 0.35);
}

.zd-alert.zd-vin-error {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 51, 85, 0.08);
  border: 1px solid rgba(255, 51, 85, 0.4);
  color: #ff9aa8;
  font-size: 12px;
}

/* Submodel gate — shown when >1 trim fits and the customer must pick before shopping */
.zd-submodel-gate-note {
  margin: 4px 0 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 200, 0, 0.08);
  border: 1px solid rgba(255, 200, 0, 0.45);
  color: #ffd76a;
  font-size: 12px;
  line-height: 1.4;
}

/* YMM STACK */
.ymm-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ymm-stack select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(4, 7, 14, 0.95);
  color: var(--zd-text);
  font-size: 13px;
  outline: none;
  transition: border-color var(--zd-transition-fast),
    box-shadow var(--zd-transition-fast), background var(--zd-transition-fast),
    color var(--zd-transition-fast);
}

.ymm-stack select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ymm-stack select:focus {
  border-color: var(--zd-accent);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.4),
    0 0 18px rgba(0, 240, 255, 0.25);
  background: rgba(4, 7, 14, 1);
}

/* Draws the eye to whichever dropdown(s) a "LIKELY FITS — select X to confirm"
   badge/modal sent the customer here to answer — clears itself once that field is picked. */
.ymm-stack select.zd-field-flash {
  animation: zdFieldFlash 1.1s ease-in-out infinite;
}

@keyframes zdFieldFlash {
  0%, 100% {
    border-color: rgba(255, 200, 0, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 200, 0, 0.3), 0 0 10px rgba(255, 200, 0, 0.15);
  }
  50% {
    border-color: #ffc800;
    box-shadow: 0 0 0 2px rgba(255, 200, 0, 0.55), 0 0 22px rgba(255, 200, 0, 0.45);
  }
}

.zd-note {
  font-size: 12px;
  color: var(--zd-text);
  margin-bottom: 12px;
}

.zd-no-vehicle-btn {
  width: 100%;
  background: transparent;
  border: 1px dashed rgba(0, 240, 255, 0.4);
  color: var(--zd-accent);
  box-shadow: none;
}

/* VEHICLE CHIP — compact display when vehicle already selected */
#zd-vehicle-chip {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.zd-chip-label {
  font-size: 15px;
  font-weight: 700;
  color: #00e5ff;
  letter-spacing: 1px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zd-chip-change-btn {
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--zd-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.zd-chip-change-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: #00e5ff;
}

/* RECALLS / TSB HEADER + STATUS */
.zd-recalls-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.zd-recalls-status {
  font-size: 12px;
  color: var(--zd-text);
}

.zd-recalls-status.zd-status-error {
  color: #ff9aa8;
}

.zd-error-note {
  color: #ff9aa8;
}

/* RECALL / TSB LIST + CARDS */
.zd-recalls-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zd-recall-card {
  background: radial-gradient(circle at top left, #151b2a 0, #05070b 55%);
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  padding: 10px 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

/* Dismissible NHTSA-source disclaimer shown once per session on opening Recalls with results */
.zd-recall-disclaimer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 200, 0, 0.08);
  border: 1px solid rgba(255, 200, 0, 0.4);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 4px;
  font-size: 12px;
  color: #ffc800;
}

.zd-recall-disclaimer-dismiss {
  flex: none;
  background: rgba(255, 200, 0, 0.15);
  border: 1px solid rgba(255, 200, 0, 0.5);
  border-radius: 6px;
  color: #ffc800;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
}

.zd-recall-disclaimer-dismiss:hover {
  background: rgba(255, 200, 0, 0.28);
}

.zd-recall-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.zd-recall-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.16);
  color: var(--zd-accent);
}

.zd-recall-id {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--zd-muted);
}

.zd-recall-component {
  font-size: 13px;
  font-weight: 600;
  color: var(--zd-text);
  margin-bottom: 6px;
}

.zd-recall-section {
  margin-top: 6px;
}

.zd-recall-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zd-label);
  margin-bottom: 2px;
}

.zd-recall-section-body {
  font-size: 12px;
  color: var(--zd-text);
}

/* LEFT PANEL — fixed overlay on all screen sizes */
#zd-left-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 88vw;
  height: 100vh;
  background: radial-gradient(circle at top left, #151b2a 0, #05070b 55%);
  border-right: 1px solid rgba(0, 240, 255, 0.18);
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.75);
  padding: 14px 10px 18px;
  z-index: 50;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--zd-transition-med);
}

#zd-left-panel.open,
body.zd-panel-active #zd-left-panel {
  transform: translateX(0);
}

#zd-left-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 3, 8, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--zd-transition-med);
  z-index: 35;
}

#zd-left-panel.open + #zd-left-panel-overlay,
#zd-left-panel-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Reflow the page's main content instead of letting the tree/flyout cover it —
   desktop/wide-viewport only. Below the cascade breakpoint (1099px) the panels
   go full-screen instead (see zd-app.js), so reflow doesn't apply there. */
@media screen and (min-width: 1100px) {
  #MainContent {
    transition: margin-left var(--zd-transition-med);
  }
  body.zd-panel-open #MainContent { margin-left: 300px; }
  body.zd-panel-open.zd-flyout-open #MainContent { margin-left: 580px; }
}

/* Mobile "BROWSE" re-entry tab — persistent left-edge tab shown once the shopper
   has browsed this session, so returning to the tree after viewing a product
   doesn't require scrolling back up to the search bar. Desktop reflows instead
   (see above), so this only ever shows below the cascade breakpoint. */
#zd-browse-tab {
  display: none;
  position: fixed;
  left: 0;
  bottom: 90px;
  z-index: 99997;
  align-items: center;
  gap: 6px;
  background: #00e5ff;
  color: #000;
  border: none;
  border-radius: 0 999px 999px 0;
  padding: 11px 16px 11px 12px;
  font-family: 'Courier New', monospace;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 2px 0 16px rgba(0, 229, 255, 0.35);
}
#zd-browse-tab:hover { background: #33eeff; }
@media screen and (max-width: 1099px) {
  #zd-browse-tab.zd-tab-visible { display: flex; }
}

/* CATEGORY TREE */
.zd-category-tree {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.zd-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 0;
  flex-shrink: 0;
}
.zd-tree-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--zd-muted);
}
.zd-tree-close-btn {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--zd-accent);
  color: var(--zd-accent);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 4px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.zd-tree-close-btn:hover {
  color: var(--zd-accent);
  border-color: var(--zd-accent);
}

.zd-tree-search {
  padding: 4px 6px 8px;
}

#zd-tree-search-input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(4, 7, 14, 0.95);
  color: var(--zd-text);
  font-size: 12px;
  outline: none;
  transition: border-color var(--zd-transition-fast),
    box-shadow var(--zd-transition-fast), background var(--zd-transition-fast);
}

#zd-tree-search-input::placeholder {
  color: var(--zd-muted);
}

#zd-tree-search-input:focus {
  border-color: var(--zd-accent);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.4),
    0 0 18px rgba(0, 240, 255, 0.25);
  background: rgba(4, 7, 14, 1);
}

.zd-tree-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

/* MAIN CATEGORY */
.zd-main-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  margin-bottom: 4px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--zd-text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(4, 7, 14, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.18);
  transition: background var(--zd-transition-fast),
    border-color var(--zd-transition-fast), box-shadow var(--zd-transition-fast),
    transform var(--zd-transition-fast), color var(--zd-transition-fast);
}

.zd-main-cat .zd-chevron {
  font-size: 10px;
  color: var(--zd-muted);
  transition: transform var(--zd-transition-fast), color var(--zd-transition-fast);
}

.zd-main-cat.open .zd-chevron {
  transform: rotate(90deg);
  color: var(--zd-accent);
}

.zd-main-cat.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(0, 163, 255, 0.18));
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
  color: var(--zd-accent);
  transform: translateY(-1px);
}

/* SUBCATEGORY WRAPPER */
.zd-subcat-wrapper {
  margin-left: 10px;
  border-left: 1px dashed rgba(0, 240, 255, 0.25);
  padding-left: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.zd-subcat-wrapper.open {
  max-height: 2000px;
}

/* Category product counts — shown when vehicle is filtered */
.zd-main-count {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: rgba(0, 240, 255, 0.5);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.zd-sub-count {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: rgba(0, 240, 255, 0.4);
  flex-shrink: 0;
}

/* SHOP BUTTON — flashing cyan CTA after vehicle confirmed */
.zd-shop-btn {
  display: block;
  width: 100%;
  margin: 14px 0 8px;
  padding: 13px 10px;
  background: rgba(0,255,100,0.08);
  border: 2px solid #00ff64;
  color: #00ff64;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  animation: zdShopPulse 1.4s ease-in-out infinite;
  transition: background 0.15s;
}
.zd-shop-btn:hover {
  background: rgba(0,255,100,0.18);
  animation: none;
}
@keyframes zdShopPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0,255,100,0);
    border-color: #00ff64;
    color: #00ff64;
    text-shadow: none;
  }
  50% {
    box-shadow: 0 0 20px rgba(0,255,100,0.6), 0 0 6px rgba(0,255,100,0.35);
    border-color: #66ffa0;
    color: #fff;
    text-shadow: 0 0 10px rgba(0,255,100,0.9), 0 0 4px rgba(0,255,100,0.6);
  }
}

/* "Save this vehicle to your garage?" — inline, right below the Shop button, not a
   bottom-of-screen toast (see #zd-garage-offer-inline in zda-builder/zd-app.js) */
#zd-garage-offer-inline {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -2px 0 10px;
  padding: 10px 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 6px;
  color: var(--zd-text);
  font-size: 13px;
}
#zd-garage-offer-inline .zd-garage-offer-yes,
#zd-garage-offer-inline .zd-garage-offer-no {
  flex: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
#zd-garage-offer-inline .zd-garage-offer-yes {
  background: var(--zd-accent);
  color: #000;
  border: none;
}
#zd-garage-offer-inline .zd-garage-offer-no {
  background: transparent;
  color: #7fb6c2;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

/* FITMENT BADGE STATES */
.zd-fit-indicator {
  display: inline-block;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 7px 12px;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}
.zd-fit-yes     { background: rgba(0,255,100,0.08); border: 1px solid rgba(0,255,100,0.4); color: #00ff64; }
.zd-fit-no      { background: rgba(255,60,60,0.08); border: 1px solid rgba(255,60,60,0.4); color: #ff4444; }
.zd-fit-warn    { background: rgba(255,200,0,0.08); border: 1px solid rgba(255,200,0,0.4); color: #ffc800; }
.zd-fit-unknown { background: rgba(0,240,255,0.06); border: 1px solid rgba(0,240,255,0.25); color: #00e5ff; }
.zd-fit-universal { background: rgba(80,80,100,0.15); border: 1px solid rgba(120,120,150,0.3); color: #8888aa; }

/* FITMENT CART GATE MODAL */
#zd-fitment-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.zd-fm-overlay   { position: absolute; inset: 0; background: rgba(0,0,0,0.75); }
.zd-fm-box {
  position: relative; z-index: 1;
  background: #0a0e14; border: 1px solid rgba(0,240,255,0.3);
  border-radius: 6px; padding: 28px 24px; max-width: 420px; width: 90%;
  box-shadow: 0 0 40px rgba(0,240,255,0.1);
}
.zd-fm-title { font-family: 'Courier New', monospace; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #ffc800; margin-bottom: 12px; }
.zd-fm-body  { font-size: 13px; color: #8899aa; line-height: 1.6; margin-bottom: 20px; }
.zd-fm-actions { display: flex; flex-direction: column; gap: 10px; }
.zd-fm-btn {
  width: 100%; padding: 11px 14px; border-radius: 4px;
  font-family: 'Courier New', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.zd-fm-add     { background: transparent; border: 1px solid rgba(255,60,60,0.4); color: #ff6666; }
.zd-fm-add:hover { border-color: #ff4444; color: #ff4444; }
.zd-fm-vehicle { background: rgba(0,240,255,0.08); border: 1px solid rgba(0,240,255,0.4); color: #00f0ff; }
.zd-fm-vehicle:hover { background: rgba(0,240,255,0.15); border-color: #00f0ff; }

/* VIN STATUS BUTTON — replaces VIN input when vehicle is active */
.zd-vin-status-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 4px;
  padding: 11px 12px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.15s;
  animation: zdBadgePulse 2.2s ease-in-out infinite;
}
.zd-vin-status-btn:hover {
  background: rgba(0, 240, 255, 0.13);
  border-color: #00f0ff;
  animation: none;
}

/* VEHICLE FILTER BADGE / ADD VEHICLE BUTTON */
.zd-tree-vehicle-badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.15s;
  animation: zdBadgePulse 2.2s ease-in-out infinite;
}
.zd-tree-vehicle-badge:hover {
  background: rgba(0, 240, 255, 0.13);
  border-color: #00f0ff;
  animation: none;
}
@keyframes zdBadgePulse {
  0%, 100% { border-color: rgba(0, 240, 255, 0.35); box-shadow: none; }
  50%       { border-color: #00f0ff; box-shadow: 0 0 10px rgba(0,240,255,0.35); }
}

/* SUBCATEGORY */
.zd-subcat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px;
  margin: 2px 0;
  border-radius: 6px;
  cursor: pointer;
  color: var(--zd-text);
  font-size: 12px;
  background: rgba(4, 7, 14, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.12);
  transition: background var(--zd-transition-fast),
    border-color var(--zd-transition-fast), color var(--zd-transition-fast),
    box-shadow var(--zd-transition-fast), transform var(--zd-transition-fast);
}

.zd-subcat .zd-chevron {
  font-size: 10px;
  color: var(--zd-muted);
  transition: transform var(--zd-transition-fast), color var(--zd-transition-fast);
}

.zd-subcat.open .zd-chevron {
  transform: rotate(90deg);
  color: var(--zd-accent);
}

.zd-subcat.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.5);
  color: var(--zd-accent);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

/* A — subcategory NAME was collapsing to 0 width (bare span, no flex basis) so only the
   count showed. Give the name the flex space; pin the count to the right. */
.zd-subcat > span:not(.zd-sub-count) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--zd-text);
}
.zd-subcat .zd-sub-count {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--zd-label);
}

/* LEAF WRAPPER */
.zd-subsubcat-wrapper {
  margin-left: 10px;
  padding-left: 6px;
  border-left: 1px dashed rgba(0, 240, 255, 0.18);
}

/* LEAF NODES */
.zd-subsubcat {
  padding: 4px 6px;
  margin: 2px 0;
  border-radius: 6px;
  cursor: pointer;
  color: var(--zd-text);
  font-size: 12px;
  background: rgba(4, 7, 14, 0.85);
  border: 1px solid transparent;
  transition: background var(--zd-transition-fast),
    border-color var(--zd-transition-fast), color var(--zd-transition-fast),
    box-shadow var(--zd-transition-fast), transform var(--zd-transition-fast);
}

.zd-subsubcat:hover {
  background: rgba(0, 240, 255, 0.08);
  color: var(--zd-accent);
}

.zd-subsubcat.active {
  background: rgba(0, 240, 255, 0.16);
  border-color: rgba(0, 240, 255, 0.6);
  color: var(--zd-accent);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
  transform: translateY(-1px);
}

/* PRODUCT GRID / CARDS */
.zd-product-card {
  background: radial-gradient(circle at top left, #151b2a 0, #05070b 55%);
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.18);
  padding: 10px 12px;
  margin: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  transition: transform var(--zd-transition-fast),
    box-shadow var(--zd-transition-fast), border-color var(--zd-transition-fast);
}

.zd-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.zd-product-card a {
  text-decoration: none;
}

.zd-product-title {
  color: var(--zd-text);
  font-size: 14px;
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  /* 2-column grid: buttons top, input full-width, tools bottom */
  .zd-search-wrapper {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
  }

  /* Row 1 — Browse | Add Vehicle */
  #zd-category-toggle  { order: 1; }
  .zd-add-vehicle-btn  { order: 2; }

  /* Row 2 — search box (input + search/mic/barcode icons) spans full width */
  .zd-search-box       { order: 3; grid-column: 1 / -1; max-width: none; }

  /* Row 3 — Mechanic Division CTA spans full width */
  #zd-hud-mechanic-btn {
    order: 4;
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
  }

  .zd-dossier {
    width: 100%;
  }
}

/* #6 — Fitment-aware "You may also like" recommendations on product pages */
.zd-recs-wrap {
  margin: 40px auto;
  padding: 0 16px;
  max-width: 1200px;
}
.zd-recs-heading {
  font-family: var(--zd-font-label, 'Courier New', monospace);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zd-accent);
  font-size: 16px;
  margin: 0 0 16px;
}
.zd-recs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
/* Hard-constrain rec card images (the shared .zd-res-thumb uses aspect-ratio:1/1,
   which balloons in a wide grid). Fixed height = can't blow up, regardless of Dawn globals. */
.zd-recs-grid .zd-res-card { width: 100%; max-width: 100%; }
.zd-recs-grid .zd-res-thumb {
  aspect-ratio: auto !important;
  height: 150px !important;
  width: 100% !important;
}
.zd-recs-grid .zd-res-thumb img {
  height: 100% !important;
  width: 100% !important;
  max-height: 150px !important;
  object-fit: contain !important;
}
@media (max-width: 749px) {
  .zd-recs-grid { grid-template-columns: repeat(2, 1fr); }
  .zd-recs-wrap { margin: 28px auto; }
  .zd-recs-grid .zd-res-thumb,
  .zd-recs-grid .zd-res-thumb img { height: 120px !important; max-height: 120px !important; }
}

/* Fitment cart gate — blocking warning when adding an unconfirmed-fit part */
.zd-cart-fitment-warn{
  margin:10px 0;padding:12px 14px;border-radius:6px;
  background:rgba(250,204,21,.08);border:1px solid rgba(250,204,21,.45);
  color:#facc15;font-family:'Courier New',monospace;font-size:13px;line-height:1.45;
  display:flex;flex-direction:column;gap:10px;box-shadow:0 0 14px rgba(250,204,21,.12);
}
.zd-cart-fitment-btns{display:flex;gap:10px;flex-wrap:wrap}
.zd-cart-fitment-addveh{
  background:#00e5ff;color:#00151b;border:none;border-radius:4px;padding:8px 14px;
  font-family:inherit;font-weight:800;letter-spacing:.5px;cursor:pointer;
}
.zd-cart-fitment-addveh:hover{background:#5cf0ff}
.zd-cart-fitment-proceed{
  background:transparent;color:#facc15;border:1px solid rgba(250,204,21,.5);border-radius:4px;
  padding:8px 14px;font-family:inherit;font-weight:700;letter-spacing:.5px;cursor:pointer;
}
.zd-cart-fitment-proceed:hover{background:rgba(250,204,21,.12)}
.zd-fitment-warn-flash{animation:zdFitFlash .5s ease 3}
@keyframes zdFitFlash{0%,100%{opacity:1}50%{opacity:.35}}

/* MORE VEHICLE OPTIONS — full-width bar under the YMM stack + enriched-options flyout.
   Spans both grid columns; hover (desktop) or tap (mobile) reveals the decoded factory
   options. Flies out to the right on desktop, expands downward inline on narrow screens. */
.zd-more-options{
  width:100%;
  position:relative;
  margin-top:8px;
}
.zd-more-options-btn{
  width:100%;
  display:flex;align-items:center;justify-content:space-between;
  padding:9px 12px;border-radius:8px;cursor:pointer;
  border:1px solid rgba(0,240,255,0.35);
  background:linear-gradient(180deg,rgba(0,240,255,0.10),rgba(4,7,14,0.95));
  color:var(--zd-accent);font-size:13px;font-weight:600;letter-spacing:.03em;
  transition:border-color var(--zd-transition-fast),box-shadow var(--zd-transition-fast),background var(--zd-transition-fast);
}
.zd-more-options:hover .zd-more-options-btn,
.zd-more-options.zd-open .zd-more-options-btn{
  border-color:var(--zd-accent);
  box-shadow:0 0 0 1px rgba(0,240,255,0.35),0 0 18px rgba(0,240,255,0.28);
  background:linear-gradient(180deg,rgba(0,240,255,0.16),rgba(4,7,14,1));
}
.zd-more-options-btn .zd-mo-chev{transition:transform var(--zd-transition-fast);}
.zd-more-options:hover .zd-more-options-btn .zd-mo-chev,
.zd-more-options.zd-open .zd-more-options-btn .zd-mo-chev{transform:translateX(3px);}
.zd-more-count{
  font-size:10px;color:var(--zd-muted);font-weight:500;
  background:rgba(0,240,255,0.08);border:1px solid var(--zd-border);
  padding:2px 7px;border-radius:999px;margin-left:8px;
}

/* Flyout is position:FIXED (beside the dossier), NOT absolute — the dossier's scrolling
   content area clips absolutely-positioned children, which is why it appeared trapped inside
   the panel. Fixed lets it escape and slide out beside the 420px dossier, same as the
   category-tree flyout. Anchored near the dossier TOP (not the button) so it reads as a
   controlled full-length slide-out. Double-width with a 2-column interior so most of the
   decoded data is visible at once; scrolls if it overflows. */
.zd-options-flyout{
  position:fixed;left:420px;top:12px;
  width:min(680px, calc(100vw - 440px));
  background:var(--zd-panel);border:1px solid rgba(0,240,255,0.35);
  border-radius:6px;padding:16px 18px;
  box-shadow:var(--zd-shadow-soft),0 0 24px rgba(0,240,255,0.12);
  opacity:0;visibility:hidden;transform:translateX(-8px);
  transition:opacity var(--zd-transition-fast),transform var(--zd-transition-fast),visibility var(--zd-transition-fast);
  max-height:calc(100vh - 24px);overflow-y:auto;z-index:95;
}
/* invisible bridge across the gap so the cursor can cross from bar → flyout without dropping hover */
.zd-options-flyout::before{content:"";position:absolute;top:0;left:-16px;width:16px;height:100%;}
.zd-more-options:hover .zd-options-flyout,
.zd-options-flyout:hover,
.zd-more-options.zd-open .zd-options-flyout{
  opacity:1;visibility:visible;transform:translateX(0);
}
/* 2-column masonry of category blocks; a category never splits across columns */
.zd-opt-cols{column-count:2;column-gap:22px;margin-top:4px;}
.zd-opt-cols .zd-opt-cat{break-inside:avoid;-webkit-column-break-inside:avoid;margin-bottom:14px;}

.zd-flyout-head{
  font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--zd-accent);margin-bottom:2px;
}
.zd-flyout-sub{font-size:10px;color:var(--zd-muted);margin-bottom:12px;}
.zd-opt-cat{margin-bottom:14px;}
.zd-opt-cat:last-child{margin-bottom:0;}
.zd-opt-cat-title{
  font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
  color:var(--zd-accent);margin-bottom:6px;padding-bottom:5px;border-bottom:1px solid var(--zd-border);
}
.zd-opt-row{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:11px;border-bottom:1px solid rgba(0,240,255,0.05);}
.zd-opt-row:last-child{border-bottom:none;}
.zd-opt-name{color:var(--zd-muted);}
.zd-opt-val{color:var(--zd-text);font-weight:600;text-align:right;}

/* Narrow screens: no room to the right — expand downward inline instead of flying out. */
@media (max-width:900px){
  .zd-options-flyout{
    position:static;width:100%;left:auto;top:auto;margin-top:8px;
    transform:none;max-height:0;padding:0 14px;overflow:hidden;border-color:transparent;
    box-shadow:none;
  }
  .zd-more-options:hover .zd-options-flyout,
  .zd-more-options.zd-open .zd-options-flyout{
    max-height:2000px;padding:14px;border-color:rgba(0,240,255,0.35);transform:none;
  }
  .zd-options-flyout::before{display:none;}
  .zd-opt-cols{column-count:1;}
}
