/**
 * White-label WCFM UI as Solutions Provider Marketplace.
 * Hides vendor branding; fixes dashboard layout under Divi.
 */

/* ── Hide WC Lovers / WCFM promotional chrome ─────────────────────────── */
body.wdi-spm-wcfm a[href*="wclovers.com"],
body.wdi-spm-wcfm a[href*="wcfmmp.com"],
body.wdi-spm-wcfm .wcfm_footer,
body.wdi-spm-wcfm #wcfm_daily_check,
body.wdi-spm-wcfm .wcfmmp_social_follow_by {
  display: none !important;
}

/* ── Provider dashboard: strip Divi page builder above WCFM shell ─────── */
body.wdi-spm-provider-dashboard #main-content .et_pb_section,
body.wdi-spm-provider-dashboard .entry-content > .et_pb_section,
body.wdi-spm-provider-dashboard .entry-content > .et_pb_row {
  display: none !important;
}

body.wdi-spm-provider-dashboard #page-container,
body.wdi-spm-provider-dashboard #et-main-area,
body.wdi-spm-provider-dashboard #main-content,
body.wdi-spm-provider-dashboard #main-content > .container,
body.wdi-spm-provider-dashboard #content-area,
body.wdi-spm-provider-dashboard #left-area {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 0 !important;
}

body.wdi-spm-provider-dashboard #wcfm-content,
body.wdi-spm-provider-dashboard #wcfm-main-content,
body.wdi-spm-provider-dashboard .wcfm-content,
body.wdi-spm-provider-dashboard .wcfm-collapse-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Registration / provisioning views at top of content column */
body.wdi-spm-provider-dashboard .wdi-provision {
  margin-top: 0;
  max-width: none;
  width: 100%;
}

body.wdi-spm-provider-dashboard #wcfm-content .wdi-provision,
body.wdi-spm-provider-dashboard .wcfm-collapse-content .wdi-provision {
  order: -1;
}

body.wdi-spm-provider-dashboard .wcfm-collapse-content {
  display: flex;
  flex-direction: column;
}

/* Public provider storefront — WDI header stays; hide WCFM-only cruft */
body.wdi-spm-wcfm.wcfm-theme #wcfmmp-store .wcfm_store_title a[href*="wclovers"] {
  display: none !important;
}

/* Legacy WDI registration tabs (native WCFM registration replaces these). */
body.wdi-spm-provider-dashboard #wcfm_menu .wcfm_menu_items:has(a[href*="wdi-client-registration"]),
body.wdi-spm-provider-dashboard #wcfm_menu .wcfm_menu_items:has(a[href*="wdi-vendor-registration"]),
body.wdi-spm-provider-dashboard #wcfm_menu a[href*="wdi-client-registration"],
body.wdi-spm-provider-dashboard #wcfm_menu a[href*="wdi-vendor-registration"] {
  display: none !important;
}
