a:is([data-reference-library-link], [href*="/flux-3-prompt-guide"], [href*="/prompt-library"], [href*="/inspiration-library"], [href$="/prompts"], [href$="/explore"], [href*="/blog/flux-3-product-demo-video-prompts"], [href*="/blog/flux-3-ugc-ad-video-prompts"]) {
  display: none !important;
}

/* A library card or footer item has no visible content once its only link is removed. */
li:has(> a:only-child:is([data-reference-library-link], [href*="/flux-3-prompt-guide"], [href*="/prompt-library"], [href*="/inspiration-library"], [href$="/prompts"], [href$="/explore"], [href*="/blog/flux-3-product-demo-video-prompts"], [href*="/blog/flux-3-ugc-ad-video-prompts"])) {
  display: none !important;
}

/* The captured promotions and legacy wallet controls do not apply to Dodo checkout. */
html[data-magi-billing]:not([data-magi-billing="disabled"]) :is(
  [data-promo-banner],
  [data-testid="nav-badge"][data-campaign],
  [data-testid="campaign-offer-strip"],
  [data-testid="promo-offer-strip"],
  [data-testid="first-order-badge"],
  [data-testid="first-order-anchor"],
  [data-testid="plan-campaign-badge"],
  [data-testid="studio-save-tag"],
  [data-testid="studio-price"] s,
  [data-testid="studio-billed"] + s,
  [data-testid="express-pay"]
) {
  display: none !important;
}

.magi-billing-notice {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 120;
  max-width: 30rem;
  margin: auto;
}
