/* ============================================================
   AAWP Black Friday – EINGEBETTETE Styles fuer fremde Seiten
   (getaawp.com / aawp.de, Astra-Theme).

   Enthaelt nur noch die seitenweite Sale-Leiste (#fdmbf-bar), gescopt
   auf diese ID, damit nichts ans Theme leckt. Der Preis-Rabatt laeuft
   ueber den globalen Theme-Rabatt (class-pricing-swap.php), nicht ueber
   eigene Styles.
   ============================================================ */

/* ---------- Gilroy (lokal, aus page-en/assets/fonts/) ---------- */
@font-face { font-family: "GilroyBF"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("page-en/assets/fonts/gilroy-medium-webfont.woff2") format("woff2"); }
@font-face { font-family: "GilroyBF"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("page-en/assets/fonts/gilroy-bold-webfont.woff2") format("woff2"); }
@font-face { font-family: "GilroyBF"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("page-en/assets/fonts/gilroy-extrabold-webfont.woff2") format("woff2"); }

/* ---------- Scope-lokale Tokens (lecken nicht ins Theme) ---------- */
#fdmbf-bar {
  --navy: #0e1e40;
  --muted: #5b6178;
  --pill: 999px;
  --fontbf: "GilroyBF", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ============================================================
   SALE-LEISTE  (#fdmbf-bar) – Optik 1:1 der .sale-bar, sticky
   ============================================================ */
#fdmbf-bar {
  position: sticky; top: 0; z-index: 2147483000;
  background: linear-gradient(90deg, #2a63f6 0%, #6a2bf5 100%);
  color: #fff; font-family: var(--fontbf); line-height: 1.2;
}
/* 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(--navy); color: #fff;
  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 { color: #fff; font-weight: 700; font-size: 15.5px; white-space: nowrap; }
#fdmbf-bar .fdmbf-inner:hover .fdmbf-link { text-decoration: underline; text-underline-offset: 3px; }
@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; }
}
