/* ============================================================
   MH Themes Black Friday – EINGEBETTETE Styles fuer mhthemes.com
   (mhthemes-Theme, EDD/Freemius-Shop).

   Enthaelt nur die seitenweite Sale-Leiste (#fdmbf-bar), gescopt auf
   diese ID, damit nichts ans Theme leckt. Der eigentliche Preis-Rabatt
   laeuft NATIV ueber die Theme-Konstanten (MHTHEMES_IS_SALE etc.) +
   EDD-Auto-Coupon, nicht ueber dieses Plugin.

   Marken-Look: dunkles Navy (#022557) / Blau (#405bdb) mit Tuerkis-Akzent
   (#18ffe1), passend zu den MH-Markenfarben.
   ============================================================ */

/* ---------- Scope-lokale Tokens (lecken nicht ins Theme) ---------- */
#fdmbf-bar {
  --navy: #022557;
  --navy-deep: #01173a;
  --blue: #405bdb;
  --teal: #18ffe1;
  --muted: #5b6a86;
  --pill: 999px;
  --fontbf: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================================
   SALE-LEISTE  (#fdmbf-bar) – dunkel mit Tuerkis-Akzent, sticky
   ============================================================ */
#fdmbf-bar {
  position: sticky; top: 0; z-index: 2147483000;
  background: linear-gradient(90deg, #01173a 0%, #06306b 50%, #01173a 100%);
  color: #fff; font-family: var(--fontbf); line-height: 1.2;
  box-shadow: 0 1px 0 rgba(24, 255, 225, .35);
}
/* WP-Admin-Bar (eingeloggt): Banner unter die Bar und deren Menues legen,
   damit die Bar beim Scrollen nicht verdeckt wird. WP-Hoehen/Breakpoints:
   >782px fixed 32px, 601-782px fixed 46px, <=600px absolut (scrollt weg) -> 0. */
body.admin-bar #fdmbf-bar { top: 32px; z-index: 99990; }
@media screen and (max-width: 782px) {
  body.admin-bar #fdmbf-bar { top: 46px; }
}
@media screen and (max-width: 600px) {
  body.admin-bar #fdmbf-bar { top: 0; }
}
#fdmbf-bar * { box-sizing: border-box; }
#fdmbf-bar .fdmbf-inner {
  display: flex; align-items: center; justify-content: center; gap: 10px 22px;
  max-width: 1340px; margin: 0 auto; padding: 14px 24px; flex-wrap: wrap;
  text-align: center; text-decoration: none; color: #fff;
}
#fdmbf-bar .fdmbf-badge {
  display: inline-flex; align-items: center; background: var(--teal); color: var(--navy-deep);
  font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--pill); white-space: nowrap;
}
#fdmbf-bar .fdmbf-text {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center;
  gap: 4px 10px; font-size: 16px; font-weight: 500;
}
#fdmbf-bar .fdmbf-text b { font-weight: 800; font-size: 19px; }
#fdmbf-bar .fdmbf-cd { display: flex; gap: 7px; }
#fdmbf-bar .fdmbf-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; color: var(--navy); border-radius: 10px; min-width: 54px; padding: 8px 13px; line-height: 1;
}
#fdmbf-bar .fdmbf-box b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
#fdmbf-bar .fdmbf-box i { font-size: 9px; font-weight: 600; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
#fdmbf-bar .fdmbf-link {
  display: inline-flex; align-items: center; background: var(--teal); color: var(--navy-deep);
  font-weight: 800; font-size: 15px; white-space: nowrap; padding: 9px 18px; border-radius: var(--pill);
}
#fdmbf-bar .fdmbf-inner:hover .fdmbf-link { filter: brightness(1.06); }
@media (max-width: 620px) {
  #fdmbf-bar .fdmbf-cd { display: none; }
  #fdmbf-bar .fdmbf-inner { gap: 8px 14px; padding: 11px 16px; }
  #fdmbf-bar .fdmbf-text { font-size: 15px; }
  #fdmbf-bar .fdmbf-text b { font-size: 17px; }
}
