/* JS-driven hiding (the early pre-render CSS lives in assets/dash-broom-early.css) */

/* Error (includes .notice.error; excludes .settings-error) */
body.dash-broom-hide-notices.dash-broom-affect-error       #wpbody-content .notice.notice-error,
body.dash-broom-hide-notices.dash-broom-affect-error       #wpbody           .notice.notice-error,
body.dash-broom-hide-notices.dash-broom-affect-error       #wpbody-content .notice.error,
body.dash-broom-hide-notices.dash-broom-affect-error       #wpbody           .notice.error { display:none; }

/* Warning */
body.dash-broom-hide-notices.dash-broom-affect-warning     #wpbody-content .notice.notice-warning,
body.dash-broom-hide-notices.dash-broom-affect-warning     #wpbody           .notice.notice-warning { display:none; }

/* Success */
body.dash-broom-hide-notices.dash-broom-affect-success     #wpbody-content .notice.notice-success,
body.dash-broom-hide-notices.dash-broom-affect-success     #wpbody           .notice.notice-success,
body.dash-broom-hide-notices.dash-broom-affect-success     #wpbody-content .updated,
body.dash-broom-hide-notices.dash-broom-affect-success     #wpbody           .updated { display:none; }

/* Info */
body.dash-broom-hide-notices.dash-broom-affect-info        #wpbody-content .notice.notice-info,
body.dash-broom-hide-notices.dash-broom-affect-info        #wpbody           .notice.notice-info { display:none; }

/* Elementor */
body.dash-broom-hide-notices.dash-broom-affect-elementor   #wpbody-content .e-notice,
body.dash-broom-hide-notices.dash-broom-affect-elementor   #wpbody           .e-notice { display:none; }

/* WooCommerce */
body.dash-broom-hide-notices.dash-broom-affect-woocommerce #wpbody-content .woocommerce-message,
body.dash-broom-hide-notices.dash-broom-affect-woocommerce #wpbody-content .woocommerce-error,
body.dash-broom-hide-notices.dash-broom-affect-woocommerce #wpbody-content .woocommerce-info,
body.dash-broom-hide-notices.dash-broom-affect-woocommerce #wpbody           .woocommerce-message,
body.dash-broom-hide-notices.dash-broom-affect-woocommerce #wpbody           .woocommerce-error,
body.dash-broom-hide-notices.dash-broom-affect-woocommerce #wpbody           .woocommerce-info { display:none; }

/* Yoast */
body.dash-broom-hide-notices.dash-broom-affect-yoast       #wpbody-content .notice.notice-yoast,
body.dash-broom-hide-notices.dash-broom-affect-yoast       #wpbody           .notice.notice-yoast,
body.dash-broom-hide-notices.dash-broom-affect-yoast       #wpbody-content .notice-yoast,
body.dash-broom-hide-notices.dash-broom-affect-yoast       #wpbody           .notice-yoast { display:none; }

/* Jetpack */
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody-content .notice.jetpack,
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody-content .notice-jetpack,
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody-content .jetpack-notice,
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody-content .jp-notice,
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody-content .jetpack-message,
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody-content .jetpack-connection__notice,
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody-content .jetpack-admin-notice,
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody           .notice.jetpack,
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody           .notice-jetpack,
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody           .jetpack-notice,
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody           .jp-notice,
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody           .jetpack-message,
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody           .jetpack-connection__notice,
body.dash-broom-hide-notices.dash-broom-affect-jetpack     #wpbody           .jetpack-admin-notice { display:none; }

/* WP Welcome */
body.dash-broom-hide-notices.dash-broom-affect-welcome     #wpbody-content .welcome-panel,
body.dash-broom-hide-notices.dash-broom-affect-welcome     #wpbody           .welcome-panel { display:none; }

/* Other (JS-marked only) */
body.dash-broom-hide-notices.dash-broom-affect-other       #wpbody-content .notice.notice-other,
body.dash-broom-hide-notices.dash-broom-affect-other       #wpbody           .notice.notice-other { display:none; }

/* UI layout */
#dash-broom-link-wrap { display:inline-flex; align-items:center; gap:6px; margin-right:6px; float:left; }
#dash-broom-badges.dash-broom-badges { display:inline-flex; align-items:center; gap:6px; }

/* Badges */
.dash-broom-badge {
  display:inline-flex; justify-content:center; align-items:center;
  min-width:20px; height:20px; padding:0 6px;
  border-radius:999px; font-size:11px; font-weight:600; line-height:1;
  color:#fff; user-select:none; transform:translateY(1px);
  cursor:pointer; border:0;
}
.dash-broom-badge:focus { outline:2px solid #72aee6; outline-offset:1px; }
.dash-broom-badge.is-active { box-shadow:0 0 0 2px rgba(0,0,0,.1) inset; }

.dash-broom-badge.badge-red       { background:#d63638; }  /* Error */
.dash-broom-badge.badge-orange    { background:#d9480f; }  /* Warning */
.dash-broom-badge.badge-green     { background:#00a32a; }  /* Success */
.dash-broom-badge.badge-blue      { background:#2271b1; }  /* Info */
.dash-broom-badge.badge-woo       { background:#96588a; }  /* WooCommerce */
.dash-broom-badge.badge-elementor { background:#93003f; }  /* Elementor */
.dash-broom-badge.badge-yoast     { background:#d63690; }  /* Yoast */
.dash-broom-badge.badge-jetpack   { background:#0a6a3b; }  /* Jetpack */
.dash-broom-badge.badge-gray      { background:#787c82; }  /* WP Welcome */
.dash-broom-badge.badge-black     { background:#1d2327; }  /* Other */

/* Toggle caret to match Screen Options */
#dash-broom-toggle.show-settings { position: relative; padding-right: 24px; }
#dash-broom-toggle.show-settings::after {
  content: ""; position: absolute; right: 8px; top: 50%; margin-top: -2px;
  border: 4px solid transparent; border-top-color: #50575e;
}
#dash-broom-toggle[aria-expanded="true"].show-settings::after {
  border-top-color: transparent; border-bottom-color: #50575e; margin-top: -6px;
}

/* Panel */
#dash-broom-wrap { border-top:1px solid #dcdcde; background:#fff; padding:12px 16px 16px; box-shadow:0 1px 1px rgba(0,0,0,.04); }
#dash-broom-wrap.hidden { display:none; }
#dash-broom-wrap .db-heading { margin:0 0 8px; font-size:14px; line-height:1.4; }
#dash-broom-wrap .db-explainer { margin:0 0 12px; color:#50575e; }
#dash-broom-wrap .db-options { display:flex; gap:16px; flex-wrap:wrap; }
#dash-broom-wrap .db-opt { display:flex; align-items:center; gap:6px; font-weight:500; }
#dash-broom-wrap .db-actions { margin-top:12px; display:flex; align-items:center; gap:10px; }
#dash-broom-wrap .db-status { color:#1d2327; }
