/**
 * Ghost Mode branding controls (Phase 1.8 entitlements rollout).
 *
 * When entitlements.flags.branding === false (i.e. the couple purchased the
 * `ghost_mode` add-on), `<body>` receives the `wb-ghost-mode` class.
 *
 * Anything tagged with `data-wb-brand` will be hidden. Elements tagged with
 * `data-wb-brand="footer"` collapse their surrounding padding so the
 * template's final scene doesn't leave an empty gap.
 */

body.wb-ghost-mode [data-wb-brand] {
  display: none !important;
}

/* When the whole branded footer block is hidden we also collapse any
   wrapping container that has data-wb-brand-container so the page
   doesn't leave a blank strip. */
body.wb-ghost-mode [data-wb-brand-container] {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
}

/* Utility badge templates can apply for their own "powered by" text. */
body.wb-ghost-mode .wb-brand-text,
body.wb-ghost-mode .wedding-bestie-brand {
  display: none !important;
}
