/* Newsletter WhiteLabel – provider branding cleanup */
body.wp-admin #toplevel_page_mailpoet-homepage .wp-menu-image:before,
body.wp-admin #toplevel_page_mailpoet-newsletters .wp-menu-image:before {
  content: "\f465" !important;
  font-family: dashicons !important;
}

.wmnwl-provider-hidden,
.wmnwl-provider-notice-hidden,
.wmnwl-provider-link-hidden {
  display: none !important;
}

.wmnwl-disabled-provider-link {
  pointer-events: none !important;
  text-decoration: none !important;
  cursor: default !important;
  color: inherit !important;
}

.wmnwl-support-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0;
  padding: 8px 12px;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  background: #fff;
  color: #1d2327;
  text-decoration: none;
  font-weight: 500;
}

.wmnwl-support-link:hover,
.wmnwl-support-link:focus {
  color: #1d2327;
  border-color: #8c8f94;
}

.wmnwl-logo-replacement {
  max-height: 42px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Hard cleanup for provider dashboard/admin notices and external provider links. */
body.wp-admin [class*="mailpoet-premium"],
body.wp-admin [class*="mailpoet_upgrade"],
body.wp-admin [class*="mailpoet-upgrade"],
body.wp-admin .notice:has(a[href*="mailpoet.com"]),
body.wp-admin .components-notice:has(a[href*="mailpoet.com"]),
body.wp-admin .notice:has(a[href*="kb.mailpoet.com"]),
body.wp-admin .components-notice:has(a[href*="kb.mailpoet.com"]) {
  display: none !important;
}

body.wp-admin a[href*="mailpoet.com"],
body.wp-admin a[href*="kb.mailpoet.com"],
body.wp-admin a[href*="account.mailpoet.com"],
body.wp-admin a[href*="support.mailpoet.com"],
body.wp-admin a[href*="feedback.mailpoet.com"] {
  display: none !important;
}


/* Option: show only the user's saved newsletter templates. */
body.wp-admin.wmnwl-saved-templates-only [data-automation-id^="templates-"]:not([data-automation-id="templates-saved"]),
body.wp-admin .wmnwl-template-tab-hidden {
  display: none !important;
}
