/* Hide Cap Pro / upgrade / Stripe CTAs on self-hosted cap.fieldschool.ai.
   Official cap-web image bakes NEXT_PUBLIC_IS_CAP=true at build time.
   Do not rebuild Cap. This file is separate so a restyle overlay.css swap keeps the hide.
*/

a[href="/dashboard/refer"],
a[href="/pricing"],
a[href^="/pricing?"],
a[href*="cap.so/pricing"],
a[href*="checkout.stripe.com"],
a[href*="billing.stripe.com"],
a[href="/dashboard/settings/organization/security"] {
  display: none !important;
}

[cmdk-item]:has([class*="text-amber-400"]),
[cmdk-item]:has(.text-amber-400) {
  display: none !important;
}

[class*="sm:max-w-[1100px]"].custom-scroll,
[class*="sm:max-w-[1100px]"][class*="custom-scroll"] {
  display: none !important;
}

body:has([class*="sm:max-w-[1100px]"].custom-scroll) [data-radix-dialog-overlay],
body:has([class*="sm:max-w-[1100px]"][class*="custom-scroll"]) [data-radix-dialog-overlay] {
  display: none !important;
}

/* Sidebar UsageButton: blue Cap Pro pill + check, or Upgrade to Pro */
a[href="/dashboard/settings/workspace"],
div.p-3.w-full.rounded-xl.bg-gray-3:has(a[href="/dashboard/settings/workspace"]),
div.p-3.w-full.rounded-xl.bg-gray-3:has(p.text-white),
button[aria-label="Upgrade to Pro"],
button.w-full:has(+ button) {
  display: none !important;
}

/* "What's included in Pro?" under the meter */
button.mt-2.w-full.text-center.text-gray-10,
button[class*="text-[11px]"][class*="text-gray-10"] {
  display: none !important;
}

/* "No custom domain set" under workspace selector. Do not hide Organization Settings nav. */
a.self-start[href="/dashboard/settings/organization"],
a.self-start[class*="gap-1.5"] {
  display: none !important;
}

/* Cap Software, Inc. 2026 footer under the pill */
nav p.mt-2.text-xs.text-center.truncate.text-gray-10,
p.mt-2.text-xs.text-center.truncate.text-gray-10 {
  display: none !important;
}

/* Add to Chrome / Record with Chrome leftover (ChromeRecorderButton). Cloud Cap only. */
a[href*="chromewebstore.google.com"],
a[href*="fefjaffcodfiogbbngmjkcjpbpclbdcp"],
a[href*="CAP_CHROME_EXTENSION"],
[data-cap-chrome-extension-installed],
a.group:has(img[src*="google-chrome.svg"]),
button.group:has(img[src*="google-chrome.svg"]),
a:has(img[src*="/logos/browsers/google-chrome.svg"]),
button:has(img[src*="/logos/browsers/google-chrome.svg"]) {
  display: none !important;
}
