/* Keep this page consistent with your marketplace look */
.ds-shell { padding: 34px 0 90px; }

/* ---------- Hero card ---------- */
.ds-heroCard{
  display:flex;
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.14);
  background: #e1dddd;
  box-shadow: 0 26px 70px rgba(0,0,0,0.45);
}

.ds-heroLeft{
  flex: 1 1 auto;
  display:flex;
  gap: 18px;
  min-width: 0;
}

.ds-avatar{
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display:grid;
  place-items:center;
  font-weight: 800;
  font-size: 22px;
  color: rgba(147,197,253,1);
  border: 1px solid rgba(148,163,184,0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.ds-heroText{ min-width:0; padding-top: 2px; }

.ds-title{
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.02em;
}

.ds-locRow{
  margin-top: 8px;
  display:flex;
  align-items:center;
  gap: 8px;
  color: rgba(226,232,240,0.75);
}
.ds-locIcon{ width: 16px; height: 16px; color: rgba(148,163,184,0.8); }

.ds-badges{
  margin-top: 58px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ds-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.22);
  color: rgba(226,232,240,0.86);
  font-size: 13px;
}

.ds-badgeIcon{ width: 16px; height: 16px; color: rgba(147,197,253,0.95); }

.ds-badge--verified{
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.12);
}

.ds-metaLine{
  margin-top: 24px;
  color: rgba(226,232,240,0.72);
  font-size: 14px;
}

.ds-note{
  margin-top: 8px;
  color: rgba(226,232,240,0.55);
  font-size: 13px;
}

/* ---------- Right column: actions + stats ---------- */
.ds-heroRight{
  width: 360px;
  flex: 0 0 360px;
  position: relative;
  display:flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.ds-actions{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.ds-btn{
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(2,6,23,0.25);
  color: #fff;
  font-weight: 700;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  cursor: pointer;
}

.ds-btnIcon{ width: 18px; height: 18px; color: rgba(147,197,253,0.95); }

.ds-btn--primary{
  border-color: rgba(59,130,246,0.35);
  background: linear-gradient(180deg, rgba(59,130,246,0.95), rgba(59,130,246,0.75));
  box-shadow: 0 14px 40px rgba(37,99,235,0.25);
}
.ds-btn--primary:hover{ filter: brightness(1.03); }

.ds-btn--ghost:hover{
  border-color: rgba(255,255,255,0.22);
  background: rgba(2,6,23,0.32);
}

.ds-btn.is-saved{
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.12);
}

.ds-stats{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(148,163,184,0.12);
}

.ds-stat{
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.12);
  background: rgba(2,6,23,0.20);
  padding: 12px 12px;
}

.ds-statTop{
  display:flex;
  align-items:center;
  gap: 10px;
}

.ds-statIcon{ width: 18px; height: 18px; color: rgba(147,197,253,0.95); }

.ds-statValue{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ds-statLabel{
  margin-top: 6px;
  color: rgba(226,232,240,0.6);
  font-size: 12px;
}

/* ---------- Message popover ---------- */
.ds-pop{
  position: absolute;
  top: 52px;
  right: 0;
  width: 220px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(2,6,23,0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  overflow: hidden;
  z-index: 5;
}
.ds-popItem{
  display:block;
  padding: 12px 14px;
  color: rgba(226,232,240,0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(148,163,184,0.10);
}
.ds-popItem:last-child{ border-bottom: none; }
.ds-popItem:hover{ background: rgba(59,130,246,0.12); }

/* ---------- Filters card ---------- */
.ds-filterCard{
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.12);
  background: #101b3f;
}

.ds-searchWrap{
  position: relative;
  width: 100%;
}
.ds-searchIcon{
  position:absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(148,163,184,0.75);
}

.ds-search{
  width: 100%;
  height: 54px;
  padding: 0 14px 0 44px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.12);
  background: rgba(2,6,23,0.26);
  color: rgba(0, 0, 0, 0.92);
  outline: none;
}

.ds-search:focus{
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}

.ds-chipRow{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ds-chip{
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.20);
  color: rgba(226,232,240,0.85);
  font-weight: 700;
  cursor: pointer;
}
.ds-chip:hover{ border-color: rgba(255,255,255,0.18); }
.ds-chip.is-active{
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.12);
  color: rgba(255,255,255,0.95);
}

.ds-bottomRow{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}

.ds-sort{
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(226,232,240,0.72);
  font-weight: 700;
}

.ds-sort select{
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.22);
  color: rgba(255,255,255,0.92);
  padding: 0 10px;
}

.ds-check{
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(226,232,240,0.86);
  font-weight: 700;
}
.ds-check input{ width: 16px; height: 16px; }

/* ---------- Plates section ---------- */
.ds-plates{ margin-top: 18px; }
.ds-platesHead{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 2px 12px;
}
.ds-h2{
  margin: 0;
  font-size: 18px;
  color: rgba(226,232,240,0.95);
}
.ds-count{
  color: rgba(226,232,240,0.6);
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .ds-heroCard{ flex-direction: column; }
  .ds-heroRight{ width: 100%; flex: 0 0 auto; }
  .ds-actions{ flex-direction: row; }
  .ds-btn{ flex: 1; }
}
@media (max-width: 640px){
  .ds-actions{ flex-direction: column; }
}

/* --- Example-only button state --- */
.ds-btn[disabled],
.ds-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --- Avatar callout --- */
.ds-avatarWrap {
  position: relative;
  display: inline-flex;
}

.ds-logoCallout {
  position: absolute;
  left: -6px;
  top: -14px;
  transform: translateX(-100%);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.ds-logoCallout::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(45deg);
  background: rgba(15, 23, 42, 0.85);
  border-right: 1px solid rgba(59, 130, 246, 0.35);
  border-top: 1px solid rgba(59, 130, 246, 0.35);
}

/* --- Reputation card --- */
.ds-repCard {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: radial-gradient(1100px 520px at 18% 0%, rgba(59,130,246,0.18), transparent 55%),
              rgba(2, 6, 23, 0.45);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.ds-repTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ds-repTitle {
  font-size: 16px;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.95);
}

.ds-repSub {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.85);
}

.ds-repScoreBlock {
  text-align: right;
  min-width: 160px;
}

.ds-repScore {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: rgba(226, 232, 240, 0.98);
}

.ds-repStars {
  margin-top: 6px;
  font-size: 28px;
  letter-spacing: 2px;
  color: rgba(59,130,246,0.95);
}

.ds-repStars .is-dim {
  color: rgba(148, 163, 184, 0.35);
}

.ds-repCount {
  margin-top: 6px;
  font-size: 16px;
  color: rgba(148, 163, 184, 0.85);
}

.ds-repGrid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

.ds-repBlurb {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.5;
}

.ds-repNote {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
}

/* --- Social links --- */
.ds-socials {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ds-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.25);
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
  font-size: 13px;
}

.ds-social:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.ds-socialIcon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,0.14);
  border: 1px solid rgba(59,130,246,0.28);
  color: rgba(226,232,240,0.95);
  font-weight: 800;
  font-size: 12px;
}

/* --- Reviews --- */
.ds-review {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.22);
}

.ds-review + .ds-review {
  margin-top: 10px;
}

.ds-reviewHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ds-reviewStars {
  color: rgba(59,130,246,0.95);
  letter-spacing: 2px;
  font-size: 12px;
}

.ds-reviewMeta {
  color: rgba(148, 163, 184, 0.8);
  font-size: 12px;
  white-space: nowrap;
}

.ds-reviewText {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .ds-repGrid { grid-template-columns: 1fr; }
  .ds-repScoreBlock { text-align: left; }
}

/* --- Hero: reputation block (inline, inside header card) --- */
.ds-heroRep{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(148,163,184,0.12);
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.ds-heroRepLeft{
  min-width: 0;
}

.ds-heroRep .ds-repBlurb{
  margin-top: 10px;
  color: rgba(148, 163, 184, 0.92);
}

.ds-heroRep .ds-repNote{
  margin-top: 10px;
}

@media (max-width: 640px){
  .ds-heroRep{ flex-direction: column; }
  .ds-heroRep .ds-repScoreBlock{ text-align: left; }
}

/* --- Reviews carousel card (replaces old reputation card) --- */
.ds-reviewsCard{
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
   background: #101b3f;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.ds-reviewsHead{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.ds-reviewsTitle{
  font-size: 16px;
  font-weight: 900;
  color: rgba(226,232,240,0.95);
}

.ds-reviewsSub{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(148,163,184,0.85);
}

.ds-reviewsHint{
  color: rgba(148,163,184,0.8);
  font-size: 12px;
  padding-top: 2px;
  white-space: nowrap;
}

/* Carousel mechanics */
.ds-reviewCarousel{
  position: relative;
  overflow: hidden;
}

.ds-reviewTrack{
  display:flex;
  transform: translateX(0%);
  transition: transform 560ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.ds-reviewSlide{
  flex: 0 0 100%;
}

.ds-reviewSlide .ds-review{
  margin: 0;
  min-height: 92px;
  background: #15224e
}

/* Dots */
.ds-reviewDots{
  margin-top: 12px;
  display:flex;
  gap: 8px;
}

.ds-reviewDot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.26);
  background: rgba(2,6,23,0.30);
  cursor: pointer;
}

.ds-reviewDot.is-active{
  border-color: rgba(59,130,246,0.55);
  background: rgba(59,130,246,0.45);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .ds-reviewTrack{ transition: none; }
}

/* Rating stars (top-right) */
.ds-repStars{
  margin-top: 6px;
  font-size: 24px;
  letter-spacing: 2px;
  color: rgba(250, 204, 21, 0.95); /* gold */
}
.ds-repStars .is-dim{
  color: rgba(250, 204, 21, 0.28);
}

/* Carousel review stars */
.ds-reviewStars{
  color: rgba(250, 204, 21, 0.95);
}

/* Right column: we now have Rating -> KPIs -> Actions */
.ds-repScoreBlock--top{
  text-align: right;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148,163,184,0.12);
  padding-top: 10px;
  padding-right: 15px;
}

/* KPIs no longer need the divider at the top */
.ds-stats{
  padding-top: 0;
  border-top: 0;
}

/* Divider now sits above the buttons (since they're bottom) */
.ds-actions{
  padding-top: 12px;
  border-top: 1px solid rgba(148,163,184,0.12);
}

.ds-logoCallout{
  position: absolute;
  left: -10px;
  top: 12px;
  transform: translateX(-100%);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.38);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
  white-space: nowrap;
}

/* outer (border) triangle */
.ds-logoCallout::before{
  content:"";
  position:absolute;
  right:-10px;
  top:50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 9px 0 9px 10px;
  border-color: transparent transparent transparent rgba(59,130,246,0.38);
}

/* inner (fill) triangle */
.ds-logoCallout::after{
  content:"";
  position:absolute;
  right:-9px;
  top:50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 8px 0 8px 9px;
  border-color: transparent transparent transparent rgba(2,6,23,0.88);
}

/* --- Make the page background slightly lighter (dealer/example only) --- */
body.ct-market.ct-market--browse{
  background: #0a0e21;
  background-attachment: fixed;
}

/* If reg-marketplace.css uses a dark overlay pseudo-element, this softens it (safe even if it doesn't exist) */
body.ct-market::before{
  opacity: 0.65;
}

/* --- Hero card: dark-blue top band (everything above KPIs + meta line) --- */
.ds-heroCard{
  position: relative;
  overflow: hidden; /* clips the top band to rounded corners */
}

/* Adjust this number until the cutoff sits exactly where you want */
.ds-heroCard{
  --dsHeroTopH: 140px; /* try 200–240px */
}

.ds-heroCard::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: var(--dsHeroTopH);
  pointer-events:none;

  /* Top portion colour */
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(3, 15, 36, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(9,22,58,0.92) 0%, rgba(1, 9, 31, 0.62) 100%);
  z-index: 0;
}

/* Ensure content sits above the band */
.ds-heroCard > *{
  position: relative;
  z-index: 1;
}

/* If the content wraps on smaller screens, bump the band height */
@media (max-width: 900px){
  .ds-heroCard{ --dsHeroTopH: 245px; }
}
@media (max-width: 520px){
  .ds-heroCard{ --dsHeroTopH: 285px; }
}

.ds-reviewsMetaRight{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.ds-reviewsCount{
  font-size: 13px;
  font-weight: 900;
  color: rgba(226,232,240,0.92);
}

.ds-search{
    background: #fff;
}

/* ================================
   Dealer hero card polish (fix washed-out grey)
   ================================ */

/* 1) Give the hero card a proper CarTrait dark/glass background */
.ds-heroCard{
  background:
    radial-gradient(1200px 520px at 18% 0%, rgba(59,130,246,0.18), transparent 60%),
    radial-gradient(900px 520px at 88% 18%, rgba(148,163,184,0.10), transparent 62%),
    linear-gradient(180deg, rgba(10,18,44,0.92) 0%, rgba(5,10,28,0.92) 100%) !important;
  border-color: rgba(148,163,184,0.14);
  box-shadow: 0 26px 70px rgba(0,0,0,0.42);
}

/* 2) Make the “top band” a subtle richer navy highlight (not a harsh cut) */
.ds-heroCard{
  --dsHeroTopH: 170px; /* adjust 150–210px if you want it deeper */
}
.ds-heroCard::before{
  height: var(--dsHeroTopH);
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(59,130,246,0.22), transparent 66%),
    linear-gradient(180deg, rgba(11,24,64,0.95) 0%, rgba(11,24,64,0.00) 100%);
}

/* 3) Tighten spacing so it doesn’t feel “empty” */

.ds-metaLine{ margin-top: 14px; }
.ds-note{ margin-top: 6px; }
.ds-heroRep{ margin-top: 14px; padding-top: 14px; }

/* 4) Ensure hero typography reads correctly on dark */
.ds-title{ color: rgba(255,255,255,0.96); }
.ds-locRow{ color: rgba(226,232,240,0.74); }
.ds-metaLine{ color: rgba(226,232,240,0.74); }
.ds-note{ color: rgba(148,163,184,0.82); }
.ds-repBlurb{ color: rgba(148,163,184,0.88); }

/* 5) Undo the white search input override so it matches the theme */
.ds-search{
  background: rgba(2,6,23,0.26) !important;
  color: rgba(226,232,240,0.92) !important;
  border-color: rgba(148,163,184,0.12);
}

/* --- Stronger/darker header band for the top of the hero card --- */
.ds-heroCard{
  --dsHeroTopH: 150px; /* tweak 135–175px */
}

.ds-heroCard::before{
  /* darker + more defined than the current fade */
  background:
    radial-gradient(980px 420px at 18% 0%, rgba(59,130,246,0.18), transparent 62%),
    linear-gradient(180deg, rgba(6,14,38,0.96) 0%, rgba(6,14,38,0.72) 55%, rgba(6,14,38,0.00) 100%);
}

/* --- Ensure the logo callout is visible (not clipped/hidden) --- */
.ds-heroLeft{
  position: relative;
  overflow: visible; /* allow the callout to sit outside */
}

.ds-logoCallout{
  z-index: 50;
  left: -14px;              /* nudge away from the card */
  top: 18px;
  transform: translateX(-100%);
  opacity: 1;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.55));
}

/* In case the hero card's overflow clips it, lift the card stacking context */
.ds-heroCard{
  z-index: 1;
}

.ds-heroWrap{ position: relative; } /* whatever wrapper contains the card */
.ds-logoCallout{ position:absolute; left: 40px; top: 120px; }

/* =========================================================
   HERO CARD: solid top + solid bottom (no gradients)
   + fix "YOUR LOGO HERE" callout being clipped
   ========================================================= */

/* 1) Make card NOT clip overflowing elements (so callout can sit outside) */
.ds-heroCard{
  position: relative;
  overflow: visible !important; /* key: prevents cutting the logo callout */
}

/* 2) Solid bottom block (no gradient) */
.ds-heroCard{
  background: rgba(10, 20, 52, 0.72) !important; /* slightly lighter navy */
  background-image: none !important;
}

/* 3) Solid top block (no gradient) */
.ds-heroCard::before{
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;

  /* adjust this until the top block ends where you want */
  height: 140px;

  background: rgba(5, 12, 32, 0.92) !important; /* darker top */
  background-image: none !important;

  border-top-left-radius: inherit;
  border-top-right-radius: inherit;

  /* subtle divider line between top and bottom blocks */
  box-shadow: inset 0 -1px 0 rgba(148,163,184,0.10);

  pointer-events: none;
  z-index: 0;
}

/* Ensure content stays above the top block */
.ds-heroCard > *{
  position: relative;
  z-index: 1;
}

/* 4) Logo callout: bring forward + nudge so it's fully visible */
.ds-avatarWrap{
  position: relative;
  z-index: 5;
}

.ds-logoCallout{
  z-index: 6;
  left: 10px;              /* was -6px */
  top: -12px;
  transform: translateX(-100%);
  opacity: 1;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.55));
}

/* Optional: if it still feels tight on small screens, pull it inside */
@media (max-width: 520px){
  .ds-logoCallout{
    left: 0;
    transform: translateX(-92%); /* less off-card */
  }
}

/* Remove the thin divider line near the rating */
.ds-repScoreBlock--top{
  border-bottom: 0 !important;
}

.ds-repScoreBlock--top::after,
.ds-repScoreBlock--top::before{
  content: none !important;
}

/* --- Social buttons: make SVGs sit perfectly centered --- */
.ds-social{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ds-socialIcon{
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(2,6,23,0.22);
}

/* Normalize any SVG inside the icon bubble */
.ds-socialIcon svg{
  width: 18px;
  height: 18px;
  display: block;
}

/* If you're using icon-font/text fallback (IG/FB/@), keep it centered too */
.ds-socialIcon{
  font-size: 12px;
  line-height: 1;
}

.ds-social--email{
  min-width: 168px; /* tweak 155–185 */
  justify-content: center;
}

/* =========================================================
   Dealer storefront hero — MOBILE polish
   Paste at VERY END of dealer-example.css
   ========================================================= */

/* 1) Force the topbar to behave like your other pages on mobile */
@media (max-width: 860px){
  .ct-topbar_nav{ display:none !important; }
  .ct-topbar_menuBtn{ display:inline-flex !important; }
}

/* 2) Hero card layout + spacing fixes for phones */
@media (max-width: 640px){

  /* overall page padding slightly tighter */
  .ds-shell{ padding: 22px 0 72px !important; }

  /* hero card */
  .ds-heroCard{
    padding: 16px !important;
    gap: 16px !important;
    border-radius: 22px !important;
  }

  /* left column */
  .ds-heroLeft{ gap: 14px !important; }
  .ds-avatar{
    width: 64px !important;
    height: 64px !important;
    border-radius: 18px !important;
    font-size: 20px !important;
  }

  .ds-title{
    font-size: 28px !important;
    line-height: 1.05 !important;
  }

  .ds-locRow{
    margin-top: 6px !important;
    font-size: 13px !important;
  }

  /* this was huge on mobile */
  .ds-badges{ margin-top: 14px !important; }

  .ds-metaLine{
    margin-top: 35px !important;
    font-size: 13px !important;
  }

  .ds-note{
    font-size: 12px !important;
  }

  /* Logo callout: bring it INSIDE the card on mobile (no clipping) */
  .ds-logoCallout{
    left: 10px !important;
    top: -10px !important;
    transform: none !important;
    font-size: 10px !important;
    padding: 7px 10px !important;
    letter-spacing: 0.10em !important;
  }

  /* right column (rating + KPIs + buttons) */
  .ds-heroRight{
    width: 100% !important;
    flex: 0 0 auto !important;
    gap: 12px !important;
  }

  /* Make rating block feel intentional on mobile (not “floating”) */
  .ds-repScoreBlock--top{
    text-align: left !important;
    padding: 10px 0 6px !important;
  }
  .ds-repScore{
    font-size: 34px !important;
  }
  .ds-repStars{
    font-size: 18px !important;
    margin-top: 2px !important;
  }

  /* KPIs */
  .ds-stats{ gap: 10px !important; }
  .ds-stat{ padding: 12px !important; }

  /* Buttons: nicer tap targets */
  .ds-btn{
    height: 50px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
  }

  /* Social pills: tighter so they don’t look “chunky” */
  .ds-social{
    padding: 9px 11px !important;
    font-size: 13px !important;
  }
  .ds-socialIcon{
    width: 36px !important;
    height: 36px !important;
  }
}
/* =========================================================
   Dealer storefront hero (mobile):
   - text flush to left margin
   - rating pinned top-right of lighter section
   ========================================================= */
@media (max-width: 640px){

  /* 1) Put avatar above text so text aligns to left margin */
  .ds-heroLeft{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .ds-heroText{
    width: 100% !important;
    padding-top: 0 !important;
  }

  /* keep everything left-aligned */
  .ds-title,
  .ds-locRow,
  .ds-badges,
  .ds-metaLine,
  .ds-note,
  .ds-repBlurb{
    text-align: left !important;
  }

  .ds-locRow{ justify-content: flex-start !important; }
  .ds-socials{ justify-content: flex-start !important; }

  /* 2) Move rating to top-right of the LIGHTER section (just below the top band) */
  .ds-repScoreBlock--top{
    position: absolute !important;
    top: calc(var(--dsHeroTopH) + 12px) !important;
    right: 16px !important;
    width: auto !important;
    min-width: 0 !important;
    text-align: right !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 5 !important;
  }

  /* rating sizing for mobile */
  .ds-repScore{ font-size: 34px !important; }
  .ds-repStars{ font-size: 16px !important; margin-top: 2px !important; }

  /* 3) Add a “rating gutter” so text doesn’t run under the rating */
  .ds-metaLine,
  .ds-note,
  .ds-heroRep{
    padding-right: 120px !important;
  }
}

/* Slightly smaller gutter for very small phones */
@media (max-width: 420px){
  .ds-metaLine,
  .ds-note,
  .ds-heroRep{
    padding-right: 108px !important;
  }
}

/* ---------------------------------------
   FINAL: mobile hero polish
   - keep title/location to the RIGHT of avatar
   - pin rating to top-right of the light section
---------------------------------------- */
@media (max-width: 640px) {
  /* make sure our split height is sane on mobile */
  .ds-heroCard{
    position: relative;
    --dsHeroTopH: 140px !important;
  }

  /* avatar + title side-by-side (not stacked) */
  .ds-heroLeft{
    flex-direction: row !important;
    align-items: flex-start;
  }

  .ds-heroText{
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 6px;
    padding-right: 120px; /* reserve space so title doesn't run under rating */
  }

  /* anchor the rating to the hero card (not the right column) */
  .ds-heroRight{ position: static !important; }

  .ds-repScoreBlock--top{
    position: absolute !important;
    right: 16px;
    top: calc(var(--dsHeroTopH) + 12px);
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 5;
    pointer-events: none; /* don't block taps */
    align-items: flex-end;
    text-align: right;
  }
}

/* =========================================
   MOBILE HERO: stop text collapsing + pin rating
   ========================================= */
@media (max-width: 520px){

  /* Make the left side a real 2-col layout: avatar + text */
  .ds-heroLeft{
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    width: 100% !important;
  }

  /* Ensure the text column can actually expand (not max-content) */
  .ds-heroText{
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    text-align: left !important;
    padding-right: 0 !important; /* cancels any earlier "make room" hack */
  }

  /* These were collapsing to a skinny column — force normal wrapping */
  .ds-metaLine,
  .ds-note,
  .ds-repBlurb{
    width: 100% !important;
    max-width: none !important;
    white-space: normal !important;
  }

  /* Pin rating to the top-right of the LIGHTER section */
  .ds-heroCard{ position: relative !important; }

  .ds-repScoreBlock--top{
    position: absolute !important;
    right: 14px !important;
    top: calc(var(--dsHeroTopH, 150px) + 12px) !important; /* uses your existing var */
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    z-index: 6 !important;
    text-align: right !important;
  }

  /* Reserve a bit of space so copy doesn't run behind the rating */
  .ds-badges,
  .ds-metaLine,
  .ds-note{
    padding-right: clamp(84px, 26vw, 120px) !important;
  }
}


/* =========================================================
   Dealer storefront hero — mobile:
   - flush-left body copy
   - hide avg response pill
   ========================================================= */
@media (max-width: 520px){

  /* Remove the avg response bubble on mobile */
  .ds-pill,
  .ds-pillWrap{
    display: none !important;
  }

  /* Make the “bio” copy flush-left within the light section */
  .ds-metaLine,
  .ds-note,
  .ds-repBlurb{
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
    max-width: none !important;
  }

  /* Ensure the whole left content column isn't centered */
  .ds-heroRep,
  .ds-heroLeft,
  .ds-heroText{
    text-align: left !important;
    align-items: flex-start !important;
  }
}

/* ==============================
   Mobile hero: full-width body copy
   Keep title/location next to avatar
   ============================== */
@media (max-width: 520px) {

  /* Remove the avg response bubble on mobile */
  .ds-badges { 
    display: none !important; 
  }

  /* Make left side a 2-col grid: avatar | title/location */
  .ds-heroLeft{
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 10px;
    align-items: start;
    overflow: visible; /* keep your logo callout behaviour */
    position: relative;
  }

  /* Flatten .ds-heroText so its children become grid items */
  .ds-heroText{
    display: contents !important;
  }

  /* Avatar stays in col 1 */
  .ds-avatarWrap{
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }

  /* Title + location stay to the right of avatar (col 2) */
  .ds-title,
  .ds-locRow{
    grid-column: 2;
  }

  /* These should start at the card's LEFT padding (span both cols) */
  .ds-metaLine,
  .ds-note,
  .ds-heroRep{
    grid-column: 1 / -1;
    width: 100%;
    max-width: none !important;
    text-align: left !important;
  }

  /* Extra safety: don't allow the left text block to be constrained */
  .ds-heroRepLeft{
    max-width: none !important;
  }
}

/* =========================================
   Dealer storefront — mobile CTA buttons larger
   ========================================= */
@media (max-width: 520px){
  /* both buttons */
  .ds-ctaRow .ds-btn{
    height: 56px !important;
    padding: 0 16px !important;
    border-radius: 18px !important;
    font-size: 16px !important;
  }

  /* icon inside the button */
  .ds-ctaRow .ds-btn svg{
    width: 18px !important;
    height: 18px !important;
  }

  /* "Save dealer" (secondary) a touch shorter but still bigger */
  .ds-ctaRow .ds-btn.ds-btn--ghost{
    height: 50px !important;
    font-size: 15px !important;
  }
}