/* Gabriel chrome overrides — applied to every generated page.
   Consolidates what the per-page injectors used to add:
     hide-nav-v2            hide "Sell" and "Ask Guru" nav entries
     kill-overlays-v1       cookie banners, chat widgets, marketing modals
     hide-notif-badge-v1    red notification badge
   Keeping these in one stylesheet instead of inlining them into 1,280 pages. */

/* ---- page canvas -------------------------------------------------
   The original pages never set a background, so in a dark-mode browser the
   canvas paints black behind the transparent layout and the dark body text
   becomes unreadable. Pin it explicitly. */
html, body {
  background: var(--surface-neutral-white, #fff);
  color: var(--text-almost-black, #0c0c11);
  color-scheme: light;
}

/* ---- hide Sell + Ask Guru ---------------------------------------- */
a[href$="sell-my-car.html" i],
a[href*="/sell-my-car" i],
button[data-href*="/sell-my-car" i],
li:has(> a[href$="sell-my-car.html" i]),
li:has(> a[href*="/sell-my-car" i]),
li:has(> button[data-href*="/sell-my-car" i]),
li:has(button[data-href*="/sell-my-car" i]),
a[class*="_linkNavItemDiscover"],
a[class*="_askGuruTile"],
button[class*="_linkNavItemDiscover"],
button[class*="_askGuruTile"],
button[data-href*="/ask-guru" i],
a[href*="/ask-guru" i],
li:has(> a[class*="_linkNavItemDiscover"]),
li:has(> a[class*="_askGuruTile"]),
li:has(> button[class*="_linkNavItemDiscover"]),
li:has(> button[class*="_askGuruTile"]),
li:has(button[data-href*="/ask-guru" i]),
li:has(a[href*="/ask-guru" i]) { display: none !important; }

/* ---- kill overlays ----------------------------------------------- */
#onetrust-consent-sdk, #onetrust-banner-sdk, #onetrust-pc-sdk,
#ot-sdk-container, #ot-sdk-btn-floating, .optanon-alert-box-wrapper,
.onetrust-pc-dark-filter,
#intercom-container, .intercom-lightweight-app, #intercom-frame,
#drift-widget, #drift-frame-chat, #drift-frame-controller,
iframe[id^='drift-'], iframe[id^='intercom-'], iframe[id^='webWidget'],
iframe[title*='chat' i], iframe[title*='Zendesk' i],
#launcher, #webWidget, #webchat-container, #hubspot-messages-iframe-container,
#app-promo, .app-promo, .smart-banner, .smart-app-banner,
[class*='AppPromo'], [class*='SmartBanner'],
[class*='NewsletterModal'], [class*='SignupModal'], [class*='SignupPopup'],
[class*='EmailCapture'], [class*='ExitIntent'], [class*='Overlay__modal'],
[class*='PromoBanner'], [class*='PromotionalBanner'],
[class*='NotificationPrompt'], [class*='notificationBanner'],
[class*='PushPrompt'], [class*='PushNotificationPrompt'],
[class*='Toast__container'], [class*='Snackbar__container'],
[class*='toast-container'], [class*='snackbar'],
[id*='cookie-banner' i], [class*='cookie-banner' i],
[id*='cookie-consent' i], [class*='cookie-consent' i],
[id*='gdpr' i], [class*='gdpr-banner' i],
[id*='ccpa' i], [class*='ccpa-banner' i] {
  display: none !important; visibility: hidden !important;
}
html, body { overflow: auto !important; }

/* ---- hide the notification badge --------------------------------- */
[data-testid="notification-badge"],
[class*="_avatarNotificationBadge"],
[class*="_badge_"][role="status"],
dfn[role="status"][title="notifications"] {
  display: none !important; visibility: hidden !important;
}

/* ---- VDP: history & documents buttons ---------------------------- */
.g-docs { display: flex; flex-wrap: wrap; gap: 12px; }
.g-doc-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--borders-dark, #c3c3c3);
  background: var(--surface-neutral-white, #fff);
  color: var(--text-almost-black, #0c0c11);
  font: 600 14px Graphik, "Rund Display", Helvetica, Arial, sans-serif;
  text-decoration: none;
}
.g-doc-btn:hover {
  border-color: var(--surface-brand-blue, #0763d3);
  color: var(--surface-brand-blue, #0763d3);
  background: var(--surface-brand-lightest-blue, #e4f5fe);
}
.g-doc-ico { font-size: 15px; line-height: 1; }

/* ---- generated pages have no sticky React header; keep chrome tidy -- */
.cg-header-footer-container { position: relative; z-index: 10; }

/* ------------------------------------------------------- account menu
   The profile button in the header ships as a trigger with no panel, so
   gabriel-nav.js builds one. These are its styles. */
.g-acct-panel{position:fixed;z-index:100000;width:268px;
  background:#fff;border-radius:10px;box-shadow:0 8px 28px #00000029,0 0 0 1px #0000000f;
  overflow:hidden;font-family:Graphik,"Rund Display",Helvetica,Arial,system-ui,sans-serif}
.g-acct-panel[hidden]{display:none}
.g-acct-list{list-style:none;margin:0;padding:8px 0}
.g-acct-list a{display:flex;align-items:center;gap:12px;padding:11px 20px;
  font-size:15px;color:var(--text-almost-black,#0c0c11);text-decoration:none}
.g-acct-list a:hover{background:var(--surface-neutral-lighter,#f4f5f7)}
.g-acct-ico{color:var(--surface-brand-blue,#0763d3);flex:0 0 auto}
.g-acct-foot{background:var(--surface-brand-darkest-blue,#05317b);color:#fff;padding:20px}
.g-acct-sync{margin:0 0 14px;font-size:17px;line-height:1.3;font-weight:700;
  color:var(--surface-brand-light-blue,#8fc3f5)}
.g-acct-cta{display:block;text-align:center;background:#fff;
  color:var(--text-almost-black,#0c0c11);border-radius:999px;padding:11px 16px;
  font-size:14.5px;font-weight:600;text-decoration:none}
.g-acct-cta:hover{background:#eef2f7}
.g-acct-who{margin:0 0 12px;font-size:14px;font-weight:700;color:#fff;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-acct-link{display:block;width:100%;text-align:left;background:none;border:0;padding:7px 0;
  font:inherit;font-size:14px;color:#fff;text-decoration:none;cursor:pointer;opacity:.92}
.g-acct-link:hover{opacity:1;text-decoration:underline}

/* Cars the dealership features on its own site. Lives here rather than in the
   search or detail stylesheet because the badge shows on both. Amber so it
   reads as a flag next to the blue "New" badge rather than competing with it. */
.g-badge-featured{display:inline-block;background:#b45309;color:#fff;font-size:11.5px;
  font-weight:700;letter-spacing:.4px;text-transform:uppercase;padding:4px 10px;
  border-radius:4px;box-shadow:0 1px 3px #00000033;white-space:nowrap}
.g-badge-new + .g-badge-featured{margin-left:6px}

/* Visually hidden, still read aloud. It was defined only in the search
   stylesheet, which car pages do not load -- so the price-alert field's label
   printed next to the input instead of being announced to screen readers.
   Lives here because every page loads this file. */
.g-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
