/**
 * DealerCanada design system
 * Colors: #053361 (blue-900), #FFD900 (yellow), white
 * Font: Clean sans-serif
 */
:root {
  --cm-blue: #053361;
  --cm-blue-hover: #042a4d;
  --cm-blue-light: rgba(5, 51, 97, 0.08);
  --cm-yellow: #FFD900;
  --cm-yellow-hover: #e6c300;
  --cm-white: #ffffff;
  --cm-gray: #6b7280;
  --cm-gray-light: #e5e7eb;
  --cm-gray-bg: #f9fafb;
  --cm-text: #1f2937;
  --cm-text-light: #6b7280;
  --cm-font: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cm-shadow: 0 1px 3px rgba(0,0,0,0.1);
  --cm-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --cm-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --cm-radius: 8px;
  --cm-radius-lg: 12px;
  --cm-radius-xl: 24px;
  --cm-radius-2xl: 32px;
  --cm-max-width: 1280px;
  --cm-success: #16a34a;
  --cm-success-light: #dcfce7;
}

/* DealerCanada theme body */
body.cm-theme {
  margin: 0;
  padding: 0;
  font-family: var(--cm-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cm-text);
  background: #fff;
}

/* ========== DEALERCANADA HEADER ========== */
.cm-header {
  background: var(--cm-white);
  border-bottom: 1px solid var(--cm-gray-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--cm-shadow);
}
.cm-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.cm-header-top {
  display: flex;
  align-items: center;
  padding: 13px 0 5px;
  gap: 0;
}
.cm-header-top .cm-logo {
  flex-shrink: 0;
  margin-right: 48px;
}
.cm-header-top .cm-nav-main {
  flex-shrink: 0;
  margin-right: auto;
}
.cm-header-top .cm-header-right {
  flex-shrink: 0;
  margin-left: 24px;
}
.cm-logo {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--cm-blue);
}
.cm-logo:hover { color: var(--cm-blue-hover); }
.cm-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}
.cm-logo-underline {
  display: block;
  width: 100%;
  margin-top: 4px;
  border-bottom: 2px dashed var(--cm-blue);
}
.cm-logo img {
  height: 30px;
  max-height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}
.cm-nav-arrow { font-size: 0.65em; opacity: 0.8; margin-left: 2px; }
.cm-header-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--cm-text);
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}
.cm-header-location:hover { color: var(--cm-blue); }
.cm-header-preapproved {
  display: flex;
  align-items: center;
  color: var(--cm-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.cm-header-preapproved:hover { color: var(--cm-blue); }
.cm-icon-pin { flex-shrink: 0; }
.cm-location-text { color: var(--cm-text-light); }
.cm-location-zip { font-weight: 600; color: var(--cm-text); }
.cm-location-name { font-weight: 700; color: var(--cm-text); margin-left: 4px; }
.cm-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--cm-text);
  text-decoration: none;
  border-radius: var(--cm-radius);
  transition: color 0.2s, background 0.2s;
}
.cm-header-icon:hover { color: var(--cm-blue); background: var(--cm-blue-light); }
.cm-account-btn { background: none; border: none; cursor: pointer; padding: 0; font: inherit; }
.cm-header-pill {
  display: none;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cm-header-pill:hover { border-color: #d1d5db; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.cm-header-pill-user {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 50%;
  margin: 4px 0 4px 4px;
}
.cm-header-pill-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #1f2937;
  padding: 0 8px 0 4px;
}
.cm-account-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--cm-white);
  border: 1px solid var(--cm-gray-light);
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow-md);
  min-width: 180px;
  padding: 8px 0;
  z-index: 1001;
  display: none;
}
.cm-account-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--cm-text);
  text-decoration: none;
  font-size: 0.95rem;
}
.cm-account-dropdown a:hover { background: var(--cm-blue-light); color: var(--cm-blue); }

/* More dropdown */
.cm-more-wrap { position: relative; }
.cm-nav-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.cm-more-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: var(--cm-white);
  border: 1px solid var(--cm-gray-light);
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow-md);
  min-width: 200px;
  padding: 8px 0;
  z-index: 1001;
  display: none;
}
.cm-more-dropdown.is-open { display: block; }
.cm-more-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--cm-text);
  text-decoration: none;
  font-size: 0.9rem;
}
.cm-more-dropdown a:hover { background: var(--cm-blue-light); color: var(--cm-blue); }

/* Nav - horizontal links */
.cm-nav-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 24px;
}
.cm-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cm-blue);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--cm-radius);
  transition: color 0.2s, background 0.2s;
}
.cm-nav-link:hover {
  color: var(--cm-blue-hover);
  background: var(--cm-blue-light);
}
.cm-nav-link.cm-nav-active {
  font-weight: 600;
}

/* Header right */
.cm-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.cm-cta-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--cm-yellow);
  color: var(--cm-blue);
  border: none;
  border-radius: var(--cm-radius);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.2s;
}
.cm-cta-btn:hover {
  background: var(--cm-yellow-hover);
}
.cm-cta-btn-outline {
  background: transparent;
  border: 2px solid var(--cm-blue);
  color: var(--cm-blue);
}
.cm-cta-btn-outline:hover {
  background: var(--cm-blue-light);
}


/* Top 3 nav buttons - mobile (pill-shaped, CarMax-style) */
.cm-top-nav {
  display: none;
  flex-direction: row;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cm-gray-light);
  align-items: center;
  justify-content: center;
}
.cm-top-nav-btn {
  flex: 0 0 auto;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #000B26;
  text-decoration: none;
  text-align: center;
  border-radius: 50px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cm-top-nav-btn:hover {
  background: #FFFFFF;
  border-color: var(--cm-blue);
  color: var(--cm-blue);
}
.cm-top-nav-btn.cm-nav-active {
  background: #FFFFFF;
  border-color: var(--cm-blue);
  color: var(--cm-blue);
}

/* Sticky bottom bar - mobile (CarMax-style, stays on every page) */
.cm-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--cm-white);
  border-top: 1px solid var(--cm-gray-light);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  flex-direction: row;
  justify-content: space-around;
  align-items: stretch;
}
.cm-bottom-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--cm-text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  transition: color 0.2s;
}
.cm-bottom-bar-item:hover { color: var(--cm-blue); }
.cm-bottom-bar-item.cm-nav-active { color: var(--cm-blue); }
.cm-bottom-bar-item.cm-nav-active .cm-bottom-bar-icon { color: var(--cm-blue); }
.cm-bottom-bar-label { display: block; }
.cm-bottom-bar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.cm-bottom-bar-icon svg { display: block; }
.cm-bottom-bar-shop-wrap { position: relative; flex: 1; display: flex; justify-content: center; }
.cm-bottom-bar-shop-btn { max-width: 80px; }
.cm-bottom-bar-shop-panel {
  position: fixed;
  bottom: 56px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  background: var(--cm-white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 0 0 max(20px, env(safe-area-inset-bottom));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  max-height: 70vh;
  overflow-y: auto;
  transform: translateY(calc(100% + 80px));
  transition: transform 0.3s ease-out;
  visibility: hidden;
}
.cm-bottom-bar-shop-panel.is-open {
  transform: translateY(0);
  visibility: visible;
}
.cm-bottom-bar-shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--cm-gray-light);
}
.cm-bottom-bar-shop-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cm-blue);
  margin: 0;
}
.cm-bottom-bar-shop-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--cm-text);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.cm-bottom-bar-shop-close:hover { color: var(--cm-blue); }
.cm-bottom-bar-shop-items {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cm-bottom-bar-shop-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-radius: var(--cm-radius);
  text-decoration: none;
  color: var(--cm-blue);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.cm-bottom-bar-shop-item:hover {
  background: transparent;
  color: var(--cm-blue);
}
.cm-bottom-bar-shop-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cm-gray-bg);
  border-radius: 10px;
  color: var(--cm-text);
}
.cm-bottom-bar-shop-item:hover .cm-bottom-bar-shop-item-icon { color: var(--cm-blue); }
.cm-bottom-bar-shop-item-icon svg { display: block; }
.cm-bottom-bar-shop-item-label { flex: 1; }
.cm-bottom-bar-sell-wrap { position: relative; flex: 1; display: flex; justify-content: center; }
.cm-bottom-bar-sell-btn { max-width: 80px; }
.cm-bottom-bar-sell-panel {
  position: fixed;
  bottom: 56px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  background: var(--cm-white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 0 0 max(20px, env(safe-area-inset-bottom));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  max-height: 70vh;
  overflow-y: auto;
  transform: translateY(calc(100% + 80px));
  transition: transform 0.3s ease-out;
  visibility: hidden;
}
.cm-bottom-bar-sell-panel.is-open {
  transform: translateY(0);
  visibility: visible;
}
.cm-bottom-bar-sell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--cm-gray-light);
}
.cm-bottom-bar-sell-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cm-blue);
  margin: 0;
}
.cm-bottom-bar-sell-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--cm-text);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.cm-bottom-bar-sell-close:hover { color: var(--cm-blue); }
.cm-bottom-bar-sell-items {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cm-bottom-bar-sell-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-radius: var(--cm-radius);
  text-decoration: none;
  color: var(--cm-blue);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.cm-bottom-bar-sell-item:hover {
  background: transparent;
  color: var(--cm-blue);
}
.cm-bottom-bar-sell-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cm-gray-bg);
  border-radius: 10px;
  color: var(--cm-text);
}
.cm-bottom-bar-sell-item:hover .cm-bottom-bar-sell-item-icon { color: var(--cm-blue); }
.cm-bottom-bar-sell-item-icon svg { display: block; }
.cm-bottom-bar-sell-item-label { flex: 1; }
.cm-bottom-bar-finance-wrap { position: relative; flex: 1; display: flex; justify-content: center; }
.cm-bottom-bar-finance-btn { max-width: 80px; }
.cm-bottom-bar-finance-panel {
  position: fixed;
  bottom: 56px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  background: var(--cm-white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 0 0 max(20px, env(safe-area-inset-bottom));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  max-height: 70vh;
  overflow-y: auto;
  transform: translateY(calc(100% + 80px));
  transition: transform 0.3s ease-out;
  visibility: hidden;
}
.cm-bottom-bar-finance-panel.is-open {
  transform: translateY(0);
  visibility: visible;
}
.cm-bottom-bar-finance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--cm-gray-light);
}
.cm-bottom-bar-finance-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cm-blue);
  margin: 0;
}
.cm-bottom-bar-finance-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--cm-text);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.cm-bottom-bar-finance-close:hover { color: var(--cm-blue); }
.cm-bottom-bar-finance-items {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cm-bottom-bar-finance-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-radius: var(--cm-radius);
  text-decoration: none;
  color: var(--cm-blue);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.cm-bottom-bar-finance-item:hover {
  background: transparent;
  color: var(--cm-blue);
}
.cm-bottom-bar-finance-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cm-gray-bg);
  border-radius: 10px;
  color: var(--cm-text);
}
.cm-bottom-bar-finance-item:hover .cm-bottom-bar-finance-item-icon { color: var(--cm-blue); }
.cm-bottom-bar-finance-item-icon svg { display: block; }
.cm-bottom-bar-finance-item-label { flex: 1; }
.cm-bottom-bar-more-wrap { position: relative; flex: 1; display: flex; justify-content: center; }
.cm-bottom-bar-more-btn { max-width: 80px; }
.cm-bottom-bar-more-panel {
  position: fixed;
  bottom: 56px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  background: var(--cm-white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 0 0 max(20px, env(safe-area-inset-bottom));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  max-height: 70vh;
  overflow-y: auto;
  transform: translateY(calc(100% + 80px));
  transition: transform 0.3s ease-out;
  visibility: hidden;
}
.cm-bottom-bar-more-panel.is-open {
  transform: translateY(0);
  visibility: visible;
}
.cm-bottom-bar-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--cm-gray-light);
}
.cm-bottom-bar-more-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cm-blue);
  margin: 0;
}
.cm-bottom-bar-more-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--cm-text);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.cm-bottom-bar-more-close:hover { color: var(--cm-blue); }
.cm-bottom-bar-more-items {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cm-bottom-bar-more-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-radius: var(--cm-radius);
  text-decoration: none;
  color: var(--cm-blue);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.cm-bottom-bar-more-item:hover {
  background: transparent;
  color: var(--cm-blue);
}
.cm-bottom-bar-more-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cm-gray-bg);
  border-radius: 10px;
  color: var(--cm-text);
}
.cm-bottom-bar-more-item:hover .cm-bottom-bar-more-item-icon { color: var(--cm-blue); }
.cm-bottom-bar-more-item-icon svg { display: block; }
.cm-bottom-bar-more-item-label { flex: 1; }
.cm-bottom-bar-more-links {
  padding: 12px 20px 24px;
  border-top: 1px solid var(--cm-gray-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cm-bottom-bar-more-links a {
  padding: 10px 0;
  color: var(--cm-blue);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}
.cm-bottom-bar-more-links a:hover { color: var(--cm-blue-hover); }
.cm-bottom-bar-account-wrap { position: relative; flex: 1; display: flex; justify-content: center; }
.cm-bottom-bar-account-btn { max-width: 80px; }
.cm-bottom-bar-account-panel {
  position: fixed;
  bottom: 56px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  background: var(--cm-white);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 0 0 max(20px, env(safe-area-inset-bottom));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  max-height: 70vh;
  overflow-y: auto;
  transform: translateY(calc(100% + 80px));
  transition: transform 0.3s ease-out;
  visibility: hidden;
}
.cm-bottom-bar-account-panel.is-open {
  transform: translateY(0);
  visibility: visible;
}
.cm-bottom-bar-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--cm-gray-light);
}
.cm-bottom-bar-account-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cm-blue);
  margin: 0;
}
.cm-bottom-bar-account-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--cm-text);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.cm-bottom-bar-account-close:hover { color: var(--cm-blue); }
.cm-bottom-bar-account-items {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cm-bottom-bar-account-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-radius: var(--cm-radius);
  text-decoration: none;
  color: var(--cm-blue);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.cm-bottom-bar-account-item:hover {
  background: transparent;
  color: var(--cm-blue);
}
.cm-bottom-bar-account-item-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cm-gray-bg);
  border-radius: 10px;
  color: var(--cm-text);
}
.cm-bottom-bar-account-item:hover .cm-bottom-bar-account-item-icon { color: var(--cm-blue); }
.cm-bottom-bar-account-item-icon svg { display: block; }
.cm-bottom-bar-account-item-label { flex: 1; }
/* Header search bar - full width, pill-shaped per reference */
.cm-header-search-wrap {
  padding: 8px 0 12px;
}
.cm-header-search-form {
  display: flex;
  align-items: center;
  background: var(--cm-white);
  border: 1px solid var(--cm-gray-light);
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  min-height: 40px;
}
.cm-header-search-form input {
  flex: 1;
  padding: 10px 20px;
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--cm-text);
}
.cm-header-search-form input::placeholder { color: var(--cm-text-light); }
.cm-header-search-form input:focus { outline: none; }
.cm-header-search-btn {
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--cm-blue);
  cursor: pointer;
  flex-shrink: 0;
}
.cm-header-search-btn:hover { color: var(--cm-blue-hover); opacity: 0.9; }
@media (max-width: 1024px) {
  .cm-header-top {
    padding: 10px 0 4px;
  }
  .cm-header-top .cm-logo {
    margin-right: auto;
    display: flex !important;
  }
  .cm-header-top .cm-logo img {
    display: block !important;
    height: 30px;
    max-height: 30px;
    width: auto;
  }
  .cm-header-top .cm-nav-main { display: none; }
  .cm-header-top .cm-header-right { margin-left: 0; }
  .cm-header-location { display: none; }
  .cm-account-btn-desk { display: none !important; }
  .cm-header-pill { display: flex !important; }
  .cm-header-search-wrap { padding: 6px 0 12px; }
  .cm-bottom-bar { display: flex; }
  body.cm-theme.cm-has-bottom-bar main,
  body.cm-theme.cm-has-bottom-bar main.container,
  body.cm-theme.cm-has-bottom-bar main.page-home,
  body.cm-theme.cm-has-bottom-bar main.page-vehicle,
  body.cm-theme.cm-has-bottom-bar main.page-vehicles,
  body.cm-theme.cm-has-bottom-bar main.page-sell,
  body.cm-theme.cm-has-bottom-bar main.page-finance,
  body.cm-theme.cm-has-bottom-bar main.page-how-it-works,
  body.cm-theme.cm-has-bottom-bar main.page-faqs,
  body.cm-theme.cm-has-bottom-bar main.page-services,
  body.cm-theme.cm-has-bottom-bar main.page-contact,
  body.cm-theme.cm-has-bottom-bar main.page-privacy,
  body.cm-theme.cm-has-bottom-bar main.page-conditions,
  body.cm-theme.cm-has-bottom-bar main.page-returns {
    padding-bottom: 72px;
  }
  .cm-hero-content { padding: 40px 24px 48px; }
  body.cm-theme .cv-chat-fab {
    bottom: 72px;
  }
}

/* ========== DEALERCANADA HERO ========== */
.cm-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 560px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  background: linear-gradient(135deg, #e8f4fc 0%, #d4e8f5 50%, #b8d4e8 100%);
  background-size: cover;
  background-position: center;
  width: 100%;
}
.cm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 40%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.cm-hero.has-bg::before {
  background: linear-gradient(to right, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.15) 35%, transparent 60%);
}
.cm-hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.cm-hero-watermark-img {
  max-width: var(--hero-watermark-size, 25%);
  max-height: 50%;
  object-fit: contain;
  opacity: var(--hero-watermark-opacity, 0.5);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
.cm-hero-watermark-text {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: rgba(255,255,255,var(--hero-watermark-opacity, 0.5));
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  letter-spacing: 0.02em;
  max-width: var(--hero-watermark-size, 25%);
  text-align: center;
}
.cm-hero .cm-hero-ribbon {
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(calc(-50% + 6px)) rotate(-5deg);
  width: 45%;
  max-width: 500px;
  height: 120px;
  background: var(--cm-yellow);
  opacity: 0.9;
  z-index: 0;
  border-radius: 0 0 0 60px;
}
.cm-hero-content {
  position: relative;
  z-index: 2;
  padding: 56px 48px 64px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.cm-hero-eyebrow {
  font-size: var(--hero-eyebrow-size, clamp(2.75rem, 7vw, 4.5rem));
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  text-transform: uppercase;
  color: var(--hero-text-color, #fff);
  line-height: 1.05;
  font-family: var(--hero-font-family, inherit);
}
.cm-hero h1 {
  font-size: var(--hero-headline-size, clamp(1.15rem, 2.5vw, 1.4rem));
  font-weight: 600;
  margin: 0 0 32px;
  line-height: 1.35;
  color: var(--hero-text-color, #fff);
  font-family: var(--hero-font-family, inherit);
}
.cm-hero-cta {
  display: inline-block;
  padding: 16px 40px;
  background: var(--cm-yellow);
  color: var(--cm-blue);
  font-size: var(--hero-cta-size, 1rem);
  font-weight: 700;
  font-family: var(--hero-font-family, inherit);
  text-decoration: none;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cm-hero-cta:hover {
  background: var(--cm-yellow-hover);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transform: translateY(-1px);
  color: var(--cm-blue);
}

/* ========== DEALERCANADA SECTIONS ========== */
.cm-section {
  max-width: var(--cm-max-width);
  margin: 0 auto;
  padding: 48px 32px;
}
.cm-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cm-blue);
  margin: 0 0 24px;
}
.cm-section-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cm-text-light);
  margin: -8px 0 20px;
}

/* Sell section */
.cm-sell-section {
  background: var(--cm-gray-bg);
  padding: 48px 24px;
}
.cm-sell-inner {
  max-width: var(--cm-max-width);
  margin: 0 auto;
  padding: 40px;
  background: var(--cm-white);
  border-radius: var(--cm-radius-lg);
  box-shadow: var(--cm-shadow-md);
  text-align: center;
}
.cm-sell-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cm-blue);
  margin: 0 0 8px;
}
.cm-sell-inner p {
  font-size: 1.1rem;
  color: var(--cm-text-light);
  margin: 0 0 24px;
}
.cm-sell-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--cm-yellow);
  color: var(--cm-blue);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--cm-radius);
  transition: background 0.2s;
}
.cm-sell-btn:hover { background: var(--cm-yellow-hover); }

/* Budget calculator - desktop reference: full-width white card, 2x2 inputs left, light blue results right */
.cm-budget-calc-section {
  padding: 48px 24px;
}
.cm-budget-calc-card {
  max-width: var(--cm-max-width);
  margin: 0 auto;
  background: var(--cm-white);
  border: 1px solid var(--cm-gray-light);
  border-radius: 20px;
  padding: 40px 40px 44px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cm-budget-calc-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #050B20;
  margin: 0 0 28px;
}
.cm-finance-section {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}
.cm-finance-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
  align-items: stretch;
}
.cm-finance-inputs {
  min-width: 0;
}
.cm-finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.cm-finance-field-outlined {
  position: relative;
}
.cm-finance-field-outlined label {
  position: absolute;
  left: 14px;
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  background: var(--cm-white);
  padding: 0 4px;
  margin: 0;
  z-index: 1;
  pointer-events: none;
}
.cm-finance-field-outlined select,
.cm-finance-field-outlined input {
  width: 100%;
  padding: 14px 36px 14px 14px;
  border: 1px solid var(--cm-gray-light);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--cm-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.cm-finance-field-outlined select:focus,
.cm-finance-field-outlined input:focus {
  outline: none;
  border-color: #0056D2;
  box-shadow: 0 0 0 2px rgba(0,86,210,0.15);
}
.cm-finance-results {
  background: #f0f7ff;
  border-radius: 14px;
  padding: 28px 32px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}
.cm-finance-results-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}
.cm-finance-results-label .cm-info-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background: #94a3b8;
  color: white;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  flex-shrink: 0;
  line-height: 1;
}
.cm-finance-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #050B20;
  margin: 0 0 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.cm-finance-apr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #166534;
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 24px;
  width: fit-content;
}
.cm-finance-apr-badge .cm-info-icon {
  background: rgba(255,255,255,0.35);
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.cm-finance-btn {
  display: block;
  width: 100%;
  padding: 14px 32px;
  background: #0056D2;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.cm-finance-btn:hover {
  background: #004bb5;
  color: white;
}
.cm-finance-results .cm-finance-btn {
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}
.cm-finance-disclaimer {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 16px 0 0;
  text-align: center;
  width: 100%;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .cm-finance-inner { grid-template-columns: 1fr; gap: 24px; padding: 0; max-width: none; }
  .cm-finance-grid { grid-template-columns: 1fr 1fr; }
}

/* Budget calculator - mobile clone of reference design */
@media (max-width: 768px) {
  .cm-budget-calc-section {
    padding: 28px 16px;
  }
  .cm-budget-calc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px 20px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  }
  .cm-budget-calc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 24px;
    text-align: left;
  }
  .cm-finance-section {
    border: none;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
  .cm-finance-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }
  .cm-finance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 14px;
  }
  .cm-finance-grid .cm-finance-field-full {
    grid-column: 1 / -1;
  }
  .cm-finance-field-outlined {
    position: relative;
  }
  .cm-finance-field-outlined label {
    position: absolute;
    left: 14px;
    top: 0;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    background: #fff;
    padding: 0 4px;
    margin: 0;
    pointer-events: none;
    z-index: 1;
  }
  .cm-finance-field-outlined select {
    width: 100%;
    padding: 14px 36px 14px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
  }
  .cm-finance-field-outlined select:focus {
    outline: none;
    border-color: #053361;
    box-shadow: 0 0 0 2px rgba(5, 51, 97, 0.15);
  }
  .cm-finance-results {
    background: #f0f7ff;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    min-width: auto;
  }
  .cm-finance-results-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .cm-finance-results-label .cm-info-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background: #6b7280;
    color: white;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    flex-shrink: 0;
  }
  .cm-finance-price {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 12px;
  }
  .cm-finance-apr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #166534;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 20px;
    align-self: center;
  }
  .cm-finance-apr-badge .cm-info-icon {
    background: rgba(255,255,255,0.3);
    width: 14px;
    height: 14px;
    font-size: 0.6rem;
  }
  .cm-finance-btn {
    display: block;
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 28px;
    background: #0056D2;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 86, 210, 0.3);
  }
  .cm-finance-btn:hover {
    background: #004bb5;
    color: white;
  }
  .cm-finance-disclaimer {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 12px 0 0;
    text-align: center;
  }
}

/* Cars near me - carousel */
.cm-cars-near {
  max-width: var(--cm-max-width);
  margin: 0 auto;
  padding: 48px 24px;
}
.cm-cars-near-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.cm-cars-near-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cm-blue);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cm-cars-near-location {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--cm-blue-light);
  color: var(--cm-blue);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 20px;
}
.cm-cars-near-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cm-cars-near-shop-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cm-blue);
  background: transparent;
  border: 2px solid var(--cm-blue);
  border-radius: var(--cm-radius);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cm-cars-near-shop-btn:hover { background: var(--cm-blue-light); color: var(--cm-blue); }
.cm-carousel-nav {
  display: flex;
  gap: 8px;
}
.cm-carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--cm-gray-light);
  background: var(--cm-white);
  color: var(--cm-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.cm-carousel-btn:hover { border-color: var(--cm-blue); background: var(--cm-blue-light); color: var(--cm-blue); }
.cm-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.cm-carousel::-webkit-scrollbar { height: 8px; }
.cm-carousel::-webkit-scrollbar-track { background: var(--cm-gray-bg); border-radius: 4px; }
.cm-carousel::-webkit-scrollbar-thumb { background: var(--cm-gray-light); border-radius: 4px; }
.cm-car-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--cm-white);
  border-radius: var(--cm-radius-xl);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.cm-car-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.cm-car-card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--cm-gray-bg);
  overflow: hidden;
}
.cm-car-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cm-car-card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cm-text);
  transition: color 0.2s;
}
.cm-car-card-fav:hover { color: #dc2626; }
.cm-car-card-more {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cm-text);
  font-size: 1.2rem;
  line-height: 1;
}
.cm-car-card-body {
  padding: 16px;
}
.cm-car-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cm-blue);
  margin: 0 0 8px;
  line-height: 1.3;
}
.cm-car-card-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cm-blue);
  margin: 0 0 4px;
}
.cm-car-card-miles {
  font-size: 0.9rem;
  color: var(--cm-text-light);
  margin: 0 0 8px;
}
.cm-car-card-shipping {
  font-size: 0.8rem;
  color: var(--cm-text-light);
}

/* Sell/Trade - full-width banner + white floating card */
.cm-sell-banner {
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 48px 24px;
  border-radius: var(--cm-radius-xl);
  overflow: hidden;
}
.cm-sell-banner.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5,51,97,0.85) 0%, rgba(5,51,97,0.4) 50%, transparent 100%);
  pointer-events: none;
}
.cm-sell-banner.has-bg .cm-sell-card { position: relative; z-index: 1; }
.cm-sell-card {
  max-width: var(--cm-max-width);
  margin: 0 auto;
  width: 100%;
}
.cm-sell-card-inner {
  background: var(--cm-white);
  border-radius: var(--cm-radius-xl);
  padding: 32px 40px;
  max-width: 440px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.cm-sell-card-eyebrow {
  font-size: 0.9rem;
  color: var(--cm-text-light);
  margin: 0 0 4px;
}
.cm-sell-card-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cm-blue);
  margin: 0 0 24px;
}
.cm-sell-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 2px solid var(--cm-gray-light);
  border-radius: 24px;
  padding: 4px;
}
.cm-sell-toggle-btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--cm-text-light);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.cm-sell-toggle-btn.is-active {
  background: var(--cm-white);
  color: var(--cm-blue);
  border: 1px solid var(--cm-blue);
  box-shadow: var(--cm-shadow);
}
.cm-sell-form .cm-finance-field { margin-bottom: 16px; }
.cm-sell-form .cm-finance-field:last-of-type { margin-bottom: 0; }

/* Get Pre-Approved CTA - above Shop by Make */
.cm-preapproval-cta {
  padding: 24px 20px 8px;
  text-align: center;
}
.cm-preapproval-cta-btn {
  text-decoration: none;
  display: inline-block;
  padding: 18px 48px;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: inherit;
  background: var(--cm-yellow);
  color: var(--cm-blue);
  border: none;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 217, 0, 0.4);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cm-preapproval-cta-btn:hover {
  background: var(--cm-yellow-hover);
  box-shadow: 0 6px 18px rgba(255, 217, 0, 0.5);
  transform: translateY(-1px);
  color: var(--cm-blue);
}

/* Finance Promo Card - lifestyle image + APR badge below Get Pre-Approved */
.cm-finance-promo-card {
  background: #fff;
  padding: 48px 24px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.cm-finance-promo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cm-finance-promo-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cm-finance-promo-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #1a1d29;
  line-height: 1.2;
  margin: 0;
}
.cm-finance-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 400;
  font-family: var(--font-body, "Open Sans", Arial, sans-serif);
  text-align: center;
  text-decoration: none;
  background: linear-gradient(var(--blue-300, #5fcbfb), var(--blue-400, #07a3ee));
  color: #fff;
  border: none;
  border-radius: var(--radius-btn, 6px);
  box-shadow: var(--shadow-btn, 0 3px 10px #455b6329);
  transition: transform 0.15s, background 0.15s;
  width: fit-content;
  white-space: nowrap;
}
.cm-finance-promo-btn:hover {
  transform: translateY(-1px);
  color: #fff;
}
.cm-finance-promo-left .btn {
  width: fit-content;
  max-width: 100%;
}
.cm-finance-promo-right {
  display: flex;
  justify-content: flex-end;
}
.cm-finance-promo-image-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.cm-finance-promo-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.cm-finance-promo-apr-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #d4f1e8;
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cm-finance-promo-apr-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #14532d;
  text-transform: uppercase;
}
.cm-finance-promo-apr-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #14532d;
}
.cm-finance-promo-disclaimer {
  margin: 20px 0 0;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
  max-width: 900px;
}
@media (max-width: 768px) {
  .cm-finance-promo-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cm-finance-promo-right { order: -1; justify-content: center; }
  .cm-finance-promo-left { order: 1; }
  .cm-finance-promo-card { padding: 32px 16px 24px; }
}

/* Get Pre-Approved Modal */
.cm-preapproval-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.cm-preapproval-modal.cm-preapproval-modal-open {
  opacity: 1;
  visibility: visible;
}
.cm-preapproval-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.cm-preapproval-modal-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}
.cm-preapproval-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--cm-text-light);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.cm-preapproval-modal-close:hover {
  background: var(--cm-gray-bg);
  color: var(--cm-text);
}
.cm-preapproval-modal-content h3 {
  margin: 0 0 24px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cm-blue);
}
.cm-preapproval-radios {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.cm-preapproval-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--cm-gray-light);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--cm-text);
  transition: border-color 0.2s, background 0.2s;
}
.cm-preapproval-radio:hover {
  border-color: var(--cm-blue);
  background: rgba(5, 51, 97, 0.04);
}
.cm-preapproval-radio input {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--cm-blue);
}
.cm-preapproval-continue-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.1rem;
}

/* Shop by Make - brand logo slider */
.cm-shop-by-make {
  padding: 40px 24px 32px;
  max-width: var(--cm-max-width);
  margin: 0 auto;
}
.cm-shop-by-make-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cm-blue);
  margin: 0 0 20px;
  text-align: left;
}
.cm-shop-by-make-slider-wrap {
  overflow: hidden;
}
.cm-shop-by-make-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0 16px;
}
.cm-shop-by-make-slider::-webkit-scrollbar { display: none; }
.cm-shop-by-make-card {
  flex: 0 0 100px;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--cm-gray-light);
  border-radius: 12px;
  padding: 14px 10px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  scroll-snap-align: start;
}
.cm-shop-by-make-card:hover {
  border-color: var(--cm-blue);
  box-shadow: 0 4px 12px rgba(5, 51, 97, 0.15);
  transform: translateY(-2px);
}
.cm-shop-by-make-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.cm-shop-by-make-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cm-shop-by-make-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cm-gray-bg);
  color: var(--cm-blue);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cm-shop-by-make-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cm-text);
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .cm-preapproval-cta {
    padding: 20px 16px 4px;
  }
  .cm-preapproval-cta-btn {
    padding: 16px 40px;
    font-size: 1.15rem;
  }
  .cm-shop-by-make {
    padding: 32px 16px 24px;
  }
  .cm-shop-by-make-slider {
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Explore cars you'll love — Carvana 1:1 card system */
.cm-explore {
  --cv-ink: #05141f;
  --cv-blue: #00a3e0;
  --cv-blue-deep: #004c8f;
  --cv-sky: #d7eefc;
  --cv-mist: #f3f5f7;
  --cv-card-radius: 16px;
  --cv-card-h: 420px;
  --cv-title: 20px;
  --cv-desc: 14px;
  --cv-cta-h: 44px;
  padding: 48px 24px 56px;
  max-width: 1280px;
  margin: 0 auto;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
.cm-explore-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.cm-explore-title {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--cv-ink);
  text-align: left;
  margin: 0;
}
.cm-explore-nav {
  display: none;
  gap: 10px;
  flex-shrink: 0;
}
.cm-explore-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #e8eef3;
  color: var(--cv-ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.cm-explore-nav-btn:not(:disabled) {
  background: var(--cv-ink);
  color: #fff;
}
.cm-explore-nav-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (min-width: 1100px) {
  .cm-explore-nav { display: flex; }
}

.cm-explore-carousel-wrap { margin-top: 0; position: relative; }
.cm-dc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.cm-dc-slide { min-width: 0; }
.cm-dc-slide-animate { opacity: 1; visibility: visible; }

.cm-dc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--cv-card-h);
  min-height: var(--cv-card-h);
  overflow: hidden;
  border-radius: var(--cv-card-radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cm-dc-slide:hover .cm-dc-card {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(5, 20, 31, 0.16);
}
.cm-dc-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.cm-dc-title {
  margin: 0;
  font-size: var(--cv-title);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cm-dc-desc {
  margin: 0;
  font-size: var(--cv-desc);
  line-height: 1.45;
  font-weight: 500;
  opacity: 1;
}

.cm-dc-cta {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  width: auto !important;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  pointer-events: none;
  white-space: nowrap;
}
.cm-dc-slide:hover .cm-dc-cta.btn-gradient { filter: brightness(1.05); }
.cm-dc-slide:hover .cm-dc-cta.btn-hero-light {
  background: #fff;
  color: var(--gray-500, #4a4a4a);
}

/* Card 1 */
.cm-dc-affordable { background: var(--cv-sky); }
.cm-dc-affordable .cm-dc-title,
.cm-dc-affordable .cm-dc-desc { color: var(--cv-blue-deep); }
.cm-dc-card-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  position: relative;
  z-index: 1;
}
.cm-dc-slot-wrap {
  position: relative;
  height: 110px;
  min-height: 90px;
  overflow: hidden;
  color: var(--cv-blue-deep);
}
.cm-dc-slot-wrap::before,
.cm-dc-slot-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  height: 36px;
  pointer-events: none;
}
.cm-dc-slot-wrap::before {
  top: 0;
  background: linear-gradient(to bottom, var(--cv-sky) 0%, rgba(215, 238, 252, 0.92) 35%, rgba(215, 238, 252, 0) 100%);
}
.cm-dc-slot-wrap::after {
  bottom: 0;
  height: 22px;
  background: linear-gradient(to top, var(--cv-sky) 0%, rgba(215, 238, 252, 0.75) 40%, rgba(215, 238, 252, 0) 100%);
}
.AffordableCarsCard_fadeIn { opacity: 1; }
.cm-dc-affordable .cm-dc-slot-row { opacity: 1; }
.cm-dc-slot-row {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  font-weight: 800;
  z-index: 2;
  transform: translateY(-50%);
}
.t-brand-xl { font-size: 52px; font-weight: 800; line-height: 1; }
.w-35 { width: 34px; min-width: 34px; text-align: center; }
.AffordableCarsCard_slotMachine {
  width: 34px;
  min-width: 34px;
  overflow: hidden;
  height: 110px;
  line-height: 64px;
  text-align: center;
  color: var(--cv-blue-deep);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%);
}
.cm-slot-reel { transform: translateY(0); }
.AffordableCarsCard_slotMachine .cm-slot-reel div {
  height: 64px;
  font-size: 52px;
  font-weight: 800;
  line-height: 64px;
  text-align: center;
}
.AffordableCarsCard_slotMachine .invisible { visibility: hidden; }
.cm-dc-comma {
  margin: 0 0 0 1px;
  font-size: 52px;
  font-weight: 800;
  line-height: 64px;
  color: var(--cv-blue-deep);
  height: 110px;
  display: flex;
  align-items: center;
}
.w-35.text-center:first-child {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 800;
}
@keyframes cmSlotLoop {
  0% { transform: translateY(calc(var(--start-number) * 2 * -64px + 23px)); }
  35% { transform: translateY(calc(var(--stop-number) * 2 * -64px + 23px)); }
  75% { transform: translateY(calc(var(--stop-number) * 2 * -64px + 23px)); }
  100% { transform: translateY(calc(var(--start-number) * 2 * -64px + 23px)); }
}
.cm-slot-ready .cm-slot-reel {
  transform: translateY(calc(var(--start-number) * 2 * -64px + 23px));
}
#cm-budget-slot-wrap:not(.cm-slot-ready) .AffordableCarsCard_slotMachine .cm-slot-reel {
  animation: cmSlotLoop 5.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
#cm-budget-slot-wrap:not(.cm-slot-ready) .AffordableCarsCard_slotMachine:nth-child(2) .cm-slot-reel { animation-delay: 0s; }
#cm-budget-slot-wrap:not(.cm-slot-ready) .AffordableCarsCard_slotMachine:nth-child(3) .cm-slot-reel { animation-delay: 0.08s; }
#cm-budget-slot-wrap:not(.cm-slot-ready) .AffordableCarsCard_slotMachine:nth-child(5) .cm-slot-reel { animation-delay: 0.16s; }
#cm-budget-slot-wrap:not(.cm-slot-ready) .AffordableCarsCard_slotMachine:nth-child(6) .cm-slot-reel { animation-delay: 0.24s; }
#cm-budget-slot-wrap:not(.cm-slot-ready) .AffordableCarsCard_slotMachine:nth-child(7) .cm-slot-reel { animation-delay: 0.32s; }
.AffordableCarsCard_overlay { display: none; }
.cm-dc-suv-img {
  position: relative;
  margin: 0 auto 8px;
  max-height: 148px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  align-self: center;
}

/* Card 2 */
.cm-dc-deals {
  background-color: var(--cv-mist);
  background-size: 92% auto;
  background-position: center bottom 72px;
  background-repeat: no-repeat;
}
.cm-dc-deals .cm-dc-title { color: var(--cv-ink); }
.cm-dc-deals .cm-dc-desc { color: #5b6570; }
.cm-dc-pricetag {
  position: absolute;
  right: 18px;
  bottom: 86px;
  width: 78px;
  height: 90px;
  z-index: 2;
}
@keyframes cmPricetagSwing {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(4deg); }
}
.cm-explore.cm-anim-ready .cm-dc-deals .cm-dc-pricetag {
  animation: cmPricetagSwing 3s ease-in-out infinite;
  transform-origin: top right;
}

/* Card 3 */
.cm-dc-fast {
  padding: 0;
  background: #0d375f;
}
.cm-dc-fast::before {
  display: none;
}
.cm-dc-fast-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #0d375f;
}
.cm-dc-fast-calendar {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 124%;
  max-width: 380px;
  aspect-ratio: 285 / 350;
  transform: translate(-50%, -50%);
}
.cm-dc-fast-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.cm-dc-fast-cell {
  position: absolute;
  left: 62.8%;
  top: 45.4%;
  width: 22.4%;
  height: 18.4%;
  background: #00a3e0;
  clip-path: polygon(0% 10%, 91% 0%, 100% 90%, 8% 100%);
  -webkit-clip-path: polygon(0% 10%, 91% 0%, 100% 90%, 8% 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  box-shadow: none;
  outline: 2px solid #00a3e0;
  outline-offset: -1px;
  transform: none;
}
.cm-dc-truck-icon {
  position: relative;
  z-index: 2;
  width: 58%;
  max-width: 26px;
  height: auto;
  color: #fff;
  will-change: transform;
  transform: rotate(-4deg);
}
.cm-dc-truck-speed {
  position: absolute;
  left: 10%;
  top: 38%;
  width: 18%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.9);
  z-index: 1;
  transform-origin: right center;
  opacity: 0;
}
.cm-dc-truck-speed--2 { top: 50%; width: 14%; left: 8%; }
.cm-dc-truck-speed--3 { top: 62%; width: 11%; left: 12%; }
@keyframes cmTruckDrive {
  0% { transform: rotate(-4deg) translateX(-140%); opacity: 0; }
  12% { opacity: 1; }
  35%, 55% { transform: rotate(-4deg) translateX(0); opacity: 1; }
  88% { opacity: 1; }
  100% { transform: rotate(-4deg) translateX(140%); opacity: 0; }
}
@keyframes cmTruckSpeed {
  0%, 30% { opacity: 0; transform: scaleX(0.4); }
  40%, 55% { opacity: 0.95; transform: scaleX(1); }
  70%, 100% { opacity: 0; transform: scaleX(0.4); }
}
.cm-explore.cm-anim-ready .cm-dc-fast .cm-dc-truck-icon {
  animation: cmTruckDrive 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.cm-explore.cm-anim-ready .cm-dc-fast .cm-dc-truck-speed {
  animation: cmTruckSpeed 2.8s ease-in-out infinite;
}
.cm-dc-card-overlay {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  height: 100%;
  box-sizing: border-box;
}
.cm-dc-fast .cm-dc-title { color: #fff; }
.cm-dc-fast .cm-dc-desc { color: rgba(255,255,255,0.82); }

/* Card 4 */
.cm-dc-fuel { background: #0b0b0b; }
.cm-dc-fuel .cm-dc-title { color: #fff; }
.cm-dc-fuel .cm-dc-desc { color: rgba(255,255,255,0.82); }
.cm-dc-fuel-cars {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  z-index: 1;
}
.cm-dc-fuel-card {
  position: relative;
  width: 100%;
  max-width: 240px;
  height: 118px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  overflow: visible;
  box-sizing: border-box;
}
.cm-dc-fuel-card-title {
  position: relative;
  z-index: 2;
  font-size: 15px;
  font-weight: 700;
  color: var(--cv-ink);
  line-height: 1.2;
  max-width: 48%;
}
.cm-dc-fuel-card-price {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}
.cm-dc-fuel-leaf {
  position: absolute;
  right: 78px;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #22c55e;
  color: #0d375e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.cm-dc-fuel-rav4 {
  position: absolute;
  right: -18px;
  bottom: -8px;
  width: 148px;
  height: auto;
  max-width: none;
  z-index: 1;
  pointer-events: none;
}
@keyframes cmFuelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.cm-explore.cm-anim-ready .cm-dc-fuel-card {
  animation: cmFuelFloat 3.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cm-explore.cm-anim-ready .cm-dc-deals .cm-dc-pricetag,
  .cm-explore.cm-anim-ready .cm-dc-fast .cm-dc-truck-icon,
  .cm-explore.cm-anim-ready .cm-dc-fast .cm-dc-truck-speed,
  .cm-explore.cm-anim-ready .cm-dc-fuel-card {
    animation: none !important;
  }
  .cm-explore.cm-anim-ready .cm-dc-fast .cm-dc-truck-icon { opacity: 1; transform: rotate(-4deg); }
  #cm-budget-slot-wrap .cm-slot-reel {
    animation: none;
    transform: translateY(calc(var(--stop-number) * 2 * -64px + 23px));
  }
}

@media (max-width: 1099px) {
  .cm-dc-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding: 0 0 20px;
  }
  .cm-dc-grid::-webkit-scrollbar { display: none; }
  .cm-dc-grid .cm-dc-slide {
    flex: 0 0 78%;
    max-width: 320px;
    scroll-snap-align: start;
  }
  .cm-dc-card { height: 400px; min-height: 400px; }
  .cm-explore-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
  }
  .cm-explore-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: #c5d5e0;
    padding: 0;
    cursor: pointer;
  }
}
@media (max-width: 1099px) {
  .cm-explore-dot { background: #c5d5e0; }
  .cm-explore-dot-active { background: var(--cv-ink); }
}
@media (min-width: 1100px) {
  .cm-explore-dots { display: none; }
}
@media (max-width: 600px) {
  .cm-explore { padding: 36px 16px 48px; }
  .cm-explore-title { font-size: 24px; }
  .cm-dc-grid .cm-dc-slide { flex-basis: 86%; }
  .cm-dc-card { height: 390px; min-height: 390px; padding: 20px; }
  .cm-dc-title { font-size: 18px; }
  .cm-dc-desc { font-size: 13px; }
}

/* Card 5: Zero shipping costs */
.cm-dc-shipping {
  position: relative;
  padding: 0;
  background: var(--cm-blue);
}
.cm-dc-shipping-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://assets.fastly.carvana.io/merchui/images/home-reskin/budget-free-shipping-background.jpg?format=auto&height=350&quality=90');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.cm-dc-hauler-img {
  position: absolute;
  top: 160px;
  left: 0;
  width: 100%;
  height: 100px;
  object-fit: cover;
  z-index: 1;
}
.cm-dc-shipping .cm-dc-card-overlay { padding: 24px; }
.cm-dc-shipping .cm-dc-title,
.cm-dc-shipping .cm-dc-desc { color: white; }

/* Find your ride - 4 cards */
.cm-find-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cm-find-card {
  background: var(--cm-white);
  border: 1px solid var(--cm-gray-light);
  border-radius: var(--cm-radius-xl);
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.cm-find-card:hover {
  box-shadow: var(--cm-shadow-md);
  border-color: var(--cm-blue);
}
.cm-find-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cm-blue);
  margin: 0 0 8px;
}
.cm-find-card .cm-find-count {
  font-size: 0.9rem;
  color: var(--cm-text-light);
}
@media (max-width: 768px) {
  .cm-find-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cm-find-grid { grid-template-columns: 1fr; }
}

/* DealerCanada difference */
.cm-difference {
  background: var(--cm-gray-bg);
  padding: 48px 24px;
}
.cm-difference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--cm-max-width);
  margin: 0 auto;
}
.cm-difference-item {
  text-align: center;
}
.cm-difference-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cm-blue);
  margin: 0 0 12px;
}
.cm-difference-item p {
  font-size: 0.95rem;
  color: var(--cm-text-light);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .cm-difference-grid { grid-template-columns: 1fr; }
}

/* Find cars your way */
.cm-find-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.cm-find-tab {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cm-text);
  background: var(--cm-white);
  border: 1px solid var(--cm-gray-light);
  border-radius: var(--cm-radius);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.cm-find-tab:hover,
.cm-find-tab.is-active {
  border-color: var(--cm-blue);
  color: var(--cm-blue);
}
.cm-models-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cm-model-pill {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cm-text);
  background: var(--cm-white);
  border: 1px solid var(--cm-gray-light);
  border-radius: 24px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.cm-model-pill:hover {
  border-color: var(--cm-blue);
  color: var(--cm-blue);
}
.cm-price-links {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--cm-gray-light);
}
.cm-price-links a {
  display: inline-block;
  margin-right: 16px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cm-blue);
  text-decoration: none;
}
.cm-price-links a:hover { text-decoration: underline; }

/* Vehicle cards */
.cm-vehicle-card {
  background: var(--cm-white);
  border: 1px solid var(--cm-gray-light);
  border-radius: var(--cm-radius-xl);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.cm-vehicle-card:hover {
  box-shadow: var(--cm-shadow-md);
  border-color: var(--cm-blue);
}
.cm-vehicle-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.cm-vehicle-thumb {
  aspect-ratio: 16/10;
  background: var(--cm-gray-bg);
  overflow: hidden;
}
.cm-vehicle-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cm-vehicle-body {
  padding: 16px;
}
.cm-vehicle-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cm-blue);
  margin: 0 0 4px;
}
.cm-vehicle-meta {
  font-size: 0.9rem;
  color: var(--cm-text-light);
  margin: 0 0 8px;
}
.cm-vehicle-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cm-blue);
  margin: 0 0 8px;
}
.cm-vehicle-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cm-blue);
}
.cm-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ========== DEALERCANADA FOOTER ========== */
.cm-footer {
  background: var(--cm-blue);
  color: white;
  padding: 0;
  margin-top: 48px;
}
.cm-footer .cv-footer-inner { max-width: var(--cm-max-width); margin: 0 auto; padding: 0 24px; }
.cm-footer .cv-footer-back-top {
  display: block; text-align: center; padding: 14px 0;
  color: rgba(255,255,255,0.95); text-decoration: none; font-size: 0.9rem;
  background: var(--cm-blue-hover); margin: 0 -24px 0; transition: background 0.2s;
}
.cm-footer .cv-footer-back-top:hover { background: #0a4a7a; color: white; }
.cm-footer .cv-footer-browse {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 24px;
  padding: 40px 0 24px; max-width: 1200px; margin: 0 auto;
}
.cm-footer .cv-footer-section { margin: 0; }
.cm-footer .cv-footer-heading {
  font-size: 0.85rem; font-weight: 700; margin: 0 0 14px; color: white; letter-spacing: 0.02em;
}
.cm-footer .cv-footer-links { display: flex; flex-direction: column; gap: 8px; }
.cm-footer .cv-footer-links a {
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; transition: color 0.2s;
}
.cm-footer .cv-footer-links a:hover { color: white; text-decoration: underline; }
.cm-footer .cv-footer-other { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15); }
.cm-footer .cv-footer-other-heading { font-size: 0.85rem; font-weight: 700; margin: 0 0 10px; color: white; }
.cm-footer .cv-footer-other a { display: block; color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; margin-bottom: 4px; }
.cm-footer .cv-footer-other a:hover { color: white; text-decoration: underline; }
.cm-footer .cv-footer-secondary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px;
  padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; font-weight: 600;
}
.cm-footer .cv-footer-secondary a { color: rgba(255,255,255,0.9); text-decoration: none; }
.cm-footer .cv-footer-secondary a:hover { color: white; text-decoration: underline; }
.cm-footer .cv-footer-sep { color: rgba(255,255,255,0.4); }
.cm-footer .cv-footer-social { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 0; }
.cm-footer .cv-footer-social-icon {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,0.15); color: white; text-decoration: none; transition: background 0.2s;
}
.cm-footer .cv-footer-social-icon:hover { background: rgba(255,255,255,0.25); }
.cm-footer .cv-footer-legal {
  padding: 20px 0 16px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem; color: rgba(255,255,255,0.6); text-align: center;
}
.cm-footer .cv-footer-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-top: 12px; }
.cm-footer .cv-footer-legal-links a { color: rgba(255,255,255,0.8); text-decoration: none; white-space: nowrap; }
.cm-footer .cv-footer-legal-links a:hover { color: white; text-decoration: underline; }
.cm-footer .cv-footer-copyright { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.cm-footer .cv-footer-address { margin: 12px 0 0; font-size: 0.75rem; color: rgba(255,255,255,0.5); text-align: center; }
@media (max-width: 1024px) {
  .cm-footer .cv-footer-browse { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; padding: 32px 0 24px; }
}
@media (max-width: 768px) {
  .cm-footer .cv-footer-browse { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
}

/* Account dropdown */
.cm-account-wrap { position: relative; }
.cm-account-dropdown.is-open { display: block !important; }

/* Chat FAB */
body.cm-theme .cv-chat-fab {
  position: fixed; bottom: 80px; right: 24px; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cm-blue); color: white; border: none; border-radius: 50%;
  box-shadow: 0 4px 16px rgba(5, 51, 97, 0.4); z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; text-decoration: none;
}
body.cm-theme .cv-chat-fab:hover {
  transform: scale(1.05); box-shadow: 0 6px 20px rgba(5, 51, 97, 0.5); color: white;
}

/* Breadcrumbs */
body.cm-theme .breadcrumbs {
  font-size: 0.875rem;
  color: var(--cm-text-light);
  margin: 16px 0;
  padding: 0 24px;
}
body.cm-theme .breadcrumbs .container-vehicle-full {
  max-width: var(--cm-max-width);
  margin: 0 auto;
  padding: 0;
}
body.cm-theme .breadcrumbs a {
  color: var(--cm-blue);
  text-decoration: none;
}
body.cm-theme .breadcrumbs a:hover {
  text-decoration: underline;
}
body.cm-theme .breadcrumbs .crumb-sep {
  margin: 0 8px;
  color: var(--cm-text-light);
  opacity: 0.7;
}

/* Override when DealerCanada theme */
body.cm-theme .topbar { display: none !important; }
body.cm-theme main.container { max-width: var(--cm-max-width); }
body.cm-theme main.page-home { padding: 20px 20px 0; max-width: none; width: 100%; }
body.cm-theme main.page-vehicle { padding: 0; max-width: none; width: 100%; background: #fff; }
body.cm-theme main.page-sell,
body.cm-theme main.page-how-it-works,
body.cm-theme main.page-faqs,
body.cm-theme main.page-services,
body.cm-theme main.page-contact,
body.cm-theme main.page-privacy,
body.cm-theme main.page-conditions,
body.cm-theme main.page-returns { padding: 20px 20px 48px; max-width: none; width: 100%; }

/* ========== MOBILE FULL WIDTH - fit perfectly to screen ========== */
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
body.cm-theme {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
body.cm-theme main.container,
body.cm-theme main.page-home,
body.cm-theme main.page-finance,
body.cm-theme main.page-vehicles,
body.cm-theme main.page-vehicle {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
body.cm-theme main.page-vehicles {
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 768px) {
  html, body.cm-theme { overflow-x: hidden; }
  body.cm-theme main.container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    max-width: 100%;
  }
  body.cm-theme main.page-vehicles {
    padding-left: 0;
    padding-right: 0;
  }
  .cm-header-inner {
    padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
    max-width: 100%;
  }
  .cm-hero-content {
    padding: 40px 16px 48px;
    max-width: 100%;
    transform: translateY(-10px);
  }
  .cm-hero {
    border-radius: 24px;
    min-height: 450px;
    margin-top: 28px;
  }
  .cm-hero .cm-hero-ribbon {
    transform: translateY(calc(-50% + 16px)) rotate(-5deg);
  }
  .cm-section {
    padding: 32px 16px;
    max-width: 100%;
  }
  .cm-cars-near {
    padding: 32px 16px;
    max-width: 100%;
  }
  .cm-finance-inner { padding: 0 16px; }
  .cm-find-section,
  .cm-difference { padding: 32px 16px; }
  .cm-footer .cv-footer-inner { padding: 0 16px; }
  .cm-car-card { flex: 0 0 280px; min-width: 280px; }
  .cm-header-search-wrap { padding: 6px 0 16px; }
  img { max-width: 100%; height: auto; }
  .cm-header-top .cm-logo img {
    display: block !important;
    height: 30px;
    max-height: 30px;
    width: auto;
    max-width: none;
  }
  .cm-hero.has-bg img,
  .cm-car-card-thumb img,
  .cm-vehicle-thumb img { max-width: none; }
}
@media (max-width: 480px) {
  .cm-header-inner { padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right)); }
  .cm-hero-content { padding: 32px max(12px, env(safe-area-inset-left)) 40px max(12px, env(safe-area-inset-right)); }
  .cm-section { padding: 24px max(12px, env(safe-area-inset-right)) 24px max(12px, env(safe-area-inset-left)); }
  .cm-cars-near { padding: 24px max(12px, env(safe-area-inset-left)) 24px max(12px, env(safe-area-inset-right)); }
  .cm-car-card { flex: 0 0 260px; min-width: 260px; }
  .cm-footer .cv-footer-inner { padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right)); }
  body.cm-theme main.container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  body.cm-theme main.page-vehicles {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Vehicle archives – Dealer Canada branding for guide/browse */
body.cm-theme .cv-srp-browse-links a { color: var(--cm-blue); }
body.cm-theme .cv-srp-browse-links a:hover { color: var(--cm-blue-hover); }

/* ========== AUTH PAGE (DealerCanada - no card, white bg) ========== */
body.cm-theme .page-auth {
  background: #fff;
}
body.cm-theme .page-auth ~ .cm-footer {
  display: none;
}
.page-auth .cm-auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 70vh;
  padding: 48px 24px 80px;
  background: #fff;
}
.cm-auth-inner {
  width: 100%;
  max-width: 440px;
  text-align: left;
}
.cm-auth-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a1628;
  margin: 0 0 24px;
  line-height: 1.3;
}
.cm-auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.cm-auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 400;
  color: #1f2937;
}
.cm-auth-benefit-icon {
  flex-shrink: 0;
  color: #000;
  margin-top: 2px;
}
.cm-auth-instruction {
  font-size: 0.9rem;
  color: #1f2937;
  margin: 0 0 24px;
  line-height: 1.5;
}
.cm-auth-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.cm-auth-success {
  background: var(--cm-success-light);
  color: var(--cm-success);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.cm-auth-info {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.cm-auth-form { margin: 0 0 24px; }
.cm-auth-field {
  margin-bottom: 20px;
  position: relative;
}
.cm-auth-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: #374151;
  margin-bottom: 8px;
}
.cm-auth-field.is-error label { color: #b91c1c; }
.cm-auth-field input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.cm-auth-field input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.cm-auth-field.is-error input {
  border-color: #b91c1c;
}
.cm-auth-field.is-error input:focus {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}
.cm-auth-field-error {
  display: block;
  font-size: 0.8rem;
  color: #b91c1c;
  margin-top: 6px;
}
.cm-auth-continue {
  width: 100%;
  padding: 16px 24px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  margin-top: 8px;
}
.cm-auth-continue:hover {
  background: #1d4ed8;
}
.cm-auth-forgot {
  display: inline-block;
  font-size: 0.9rem;
  color: #2563eb;
  text-decoration: none;
  margin-bottom: 20px;
}
.cm-auth-forgot:hover { text-decoration: underline; }
.cm-auth-divider {
  display: flex;
  align-items: center;
  margin: 28px 0 24px;
  color: #9ca3af;
  font-size: 0.875rem;
}
.cm-auth-divider::before,
.cm-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.cm-auth-divider span {
  padding: 0 16px;
  text-transform: lowercase;
}
.cm-auth-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cm-auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.cm-auth-social-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.cm-auth-social-btn svg { flex-shrink: 0; }
.cm-auth-apple { color: #1d1d1f !important; }
.cm-auth-back {
  margin-top: 24px;
  font-size: 0.9rem;
}
.cm-auth-back a {
  color: #2563eb;
  text-decoration: none;
}
.cm-auth-back a:hover { text-decoration: underline; }
.cm-auth-footer {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
  font-size: 0.7rem;
  color: #9ca3af;
  line-height: 1.5;
  max-width: 500px;
}
.cm-auth-footer a {
  color: #2563eb;
  text-decoration: underline;
}
.cm-auth-footer a:hover { color: #1d4ed8; }
@media (max-width: 480px) {
  .page-auth .cm-auth-page { padding: 32px 16px 80px; }
  .cm-auth-heading { font-size: 1.35rem; }
}
