/* Black Friday banner as the homepage hero + readable tier line.
   Loaded on the front page while slpr_bf_enabled() is true, on live .com / .fr
   and English staging only. Hero-position rules are gated by body.slpr-bf-as-hero. */

/* ---------- Tier line contrast (homepage banner) ----------
   On EN staging, assets/slpr-bf-tiers.css styles the product-page table with
   the same class name (.slpr-bf-tiers), which leaks a light grey box onto the
   banner's white text and makes the tiers almost invisible. Restore a
   readable pill: dark type on a light chip, compact, not a full-width bar.
   Keep the existing desktop/mobile swap so only one pill shows. */
body.slpr-redesign section.slpr-bf p.slpr-bf-tiers,
body.slpr-bf-tiers section.slpr-bf p.slpr-bf-tiers,
body.slpr-redesign section.slpr-bf .slpr-bf-tiers,
body.slpr-bf-tiers section.slpr-bf .slpr-bf-tiers {
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 28px !important;
  padding: 8px 14px !important;
  background: #f6f7f6 !important;
  color: #111 !important;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

body.slpr-redesign section.slpr-bf p.slpr-bf-tiers.slpr-bf-desktop,
body.slpr-bf-tiers section.slpr-bf p.slpr-bf-tiers.slpr-bf-desktop {
  display: inline-block !important;
}
body.slpr-redesign section.slpr-bf p.slpr-bf-tiers.slpr-bf-mobile,
body.slpr-bf-tiers section.slpr-bf p.slpr-bf-tiers.slpr-bf-mobile {
  display: none !important;
}

@media (max-width: 700px) {
  body.slpr-redesign section.slpr-bf p.slpr-bf-tiers,
  body.slpr-bf-tiers section.slpr-bf p.slpr-bf-tiers,
  body.slpr-redesign section.slpr-bf .slpr-bf-tiers,
  body.slpr-bf-tiers section.slpr-bf .slpr-bf-tiers {
    margin-bottom: 24px !important;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  body.slpr-redesign section.slpr-bf p.slpr-bf-tiers,
  body.slpr-bf-tiers section.slpr-bf p.slpr-bf-tiers,
  body.slpr-redesign section.slpr-bf .slpr-bf-tiers,
  body.slpr-bf-tiers section.slpr-bf .slpr-bf-tiers {
    margin-bottom: 22px !important;
    padding: 8px 12px !important;
    font-size: 15px;
    line-height: 1.5;
  }
  body.slpr-redesign section.slpr-bf p.slpr-bf-tiers.slpr-bf-desktop,
  body.slpr-bf-tiers section.slpr-bf p.slpr-bf-tiers.slpr-bf-desktop {
    display: none !important;
  }
  body.slpr-redesign section.slpr-bf p.slpr-bf-tiers.slpr-bf-mobile,
  body.slpr-bf-tiers section.slpr-bf p.slpr-bf-tiers.slpr-bf-mobile {
    display: inline-block !important;
  }
}

/* ---------- Hide the original hero (not deleted) ---------- */
body.slpr-bf-as-hero.slpr-home-v1 .slpr-hero {
  display: none !important;
}

body.slpr-bf-as-hero.home:not(.slpr-home-v1) #main #content > section.section:first-of-type,
body.slpr-bf-as-hero.home:not(.slpr-home-v1) #content > section.section:first-of-type {
  display: none !important;
}

/* ---------- Classic Flatsome: solid header, banner sits under it ---------- */
body.slpr-bf-as-hero.home:not(.slpr-home-v1) #header.transparent,
body.slpr-bf-as-hero.home:not(.slpr-home-v1) #header.has-transparent,
body.slpr-bf-as-hero.home:not(.slpr-home-v1) #header.transparent .header-wrapper,
body.slpr-bf-as-hero.home:not(.slpr-home-v1) .header.has-transparent .header-wrapper {
  position: relative !important;
  top: auto !important;
}

body.slpr-bf-as-hero.home:not(.slpr-home-v1) #header,
body.slpr-bf-as-hero.home:not(.slpr-home-v1) #header .header-wrapper,
body.slpr-bf-as-hero.home:not(.slpr-home-v1) #header .header-bg-color,
body.slpr-bf-as-hero.home:not(.slpr-home-v1) #masthead,
body.slpr-bf-as-hero.home:not(.slpr-home-v1) #top-bar,
body.slpr-bf-as-hero.home:not(.slpr-home-v1) .header-top {
  background-color: #0a0a0a !important;
  background-image: none !important;
}

body.slpr-bf-as-hero.home:not(.slpr-home-v1) #header .shade,
body.slpr-bf-as-hero.home:not(.slpr-home-v1) #header .top-divider {
  display: none !important;
}

/* ---------- Hero slot / banner sizing ---------- */
body.slpr-bf-as-hero .slpr-bf-hero-slot {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #0a0a0a;
}

body.slpr-bf-as-hero .slpr-bf,
body.slpr-bf-as-hero .slpr-bf-hero-slot .slpr-bf {
  width: 100%;
  margin: 0;
  padding-top: 64px;
  padding-bottom: 68px;
}

@media (max-width: 1024px) {
  body.slpr-bf-as-hero .slpr-bf,
  body.slpr-bf-as-hero .slpr-bf-hero-slot .slpr-bf {
    padding-top: 52px;
    padding-bottom: 56px;
  }
}

@media (max-width: 700px) {
  body.slpr-bf-as-hero .slpr-bf,
  body.slpr-bf-as-hero .slpr-bf-hero-slot .slpr-bf {
    padding-top: 36px;
    padding-bottom: 40px;
  }
}

@media (max-width: 480px) {
  body.slpr-bf-as-hero .slpr-bf,
  body.slpr-bf-as-hero .slpr-bf-hero-slot .slpr-bf {
    padding-top: 28px;
    padding-bottom: 32px;
  }
}

/* Photo stays uncropped (contain, not cover). */
body.slpr-bf-as-hero .slpr-bf-card img,
section.slpr-bf .slpr-bf-card img {
  object-fit: contain !important;
  object-position: center !important;
  height: auto !important;
  width: 100% !important;
  max-width: 100%;
}

/* ---------- BF top bar text must stay visible on mobile ----------
   slpr-redesign.css hides every span inside .announcement below 620px
   (it was meant to drop the old "SHIPPED FROM LITHUANIA" fragment).
   The BF bar puts its copy in .slpr-bf-desktop / .slpr-bf-mobile spans,
   so from 481px to 620px both spans were display:none and the sticky
   bar rendered as an empty dark strip. */
@media (max-width: 620px) {
  body.slpr-bf-active.slpr-redesign .slpr-home-v1-root > .announcement .slpr-bf-topbar,
  body.slpr-bf-active.slpr-redesign .slpr-site-announcement--bf .slpr-bf-topbar,
  body.slpr-bf-active #top-bar .slpr-bf-topbar {
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    letter-spacing: 0.02em !important;
  }
  body.slpr-bf-active.slpr-redesign .slpr-home-v1-root > .announcement .slpr-bf-topbar .slpr-bf-desktop,
  body.slpr-bf-active.slpr-redesign .slpr-site-announcement--bf .slpr-bf-topbar .slpr-bf-desktop,
  body.slpr-bf-active #top-bar .slpr-bf-topbar .slpr-bf-desktop {
    display: none !important;
  }
  body.slpr-bf-active.slpr-redesign .slpr-home-v1-root > .announcement .slpr-bf-topbar .slpr-bf-mobile,
  body.slpr-bf-active.slpr-redesign .slpr-site-announcement--bf .slpr-bf-topbar .slpr-bf-mobile,
  body.slpr-bf-active #top-bar .slpr-bf-topbar .slpr-bf-mobile {
    display: inline !important;
    color: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

