/* Black Friday floating bar - Compete High. Design: floting bar/ch/style.css (image paths are relative to this file). */

/*
 * Everything on desktop is sized in "design units" (--u) taken from the
 * 1440 x 135 artboard, so the bar scales as one piece and never reflows.
 * 1u = 1px at 1440px wide and above, and shrinks proportionally below that.
 */
.bf-bar {
  --bfbar-accent: #e7b95d;
  --u: min(1px, calc(100vw / 1440));
  --red: #d21934;
  --gold: #e7b95d;

  position: relative;
  overflow: hidden;
  width: 100%;
  height: calc(135 * var(--u));
  display: flex;
  align-items: center;
  background: #000;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.bf-bar:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

/* ===== Absolute decorations ===== */
.bf-bar__deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Left: megaphone + bunting + gifts (image) with "BLACK" text on top */
.bf-bar__deco--left {
  left: calc(-50 * var(--u));
  top: calc(-6 * var(--u));
  width: calc(381 * var(--u));
}

.bf-bar__deco--left img {
  display: block;
  width: 100%;
  height: auto;
}

.bf-bar__black {
  position: absolute;
  left: calc(112 * var(--u));
  top: calc(36 * var(--u));
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: calc(41.1 * var(--u));
  line-height: 1;
  color: #000;
  -webkit-text-stroke: max(1px, calc(1.4 * var(--u))) #fff;
  paint-order: stroke fill;
  white-space: nowrap;
}

/* Right: bunting + basket */
.bf-bar__deco--right {
  right: calc(-12 * var(--u));
  top: calc(2 * var(--u));
  width: calc(223 * var(--u));
  height: auto;
}

/* ===== Content ===== */
.bf-bar__inner {
  position: relative;
  z-index: 1;
  width: calc(1440 * var(--u));
  margin: 0 auto;
  padding-left: calc(316 * var(--u));
  display: flex;
  align-items: center;
}

.bf-bar__bigsale {
  display: block;
  width: calc(156 * var(--u));
  height: auto;
  flex-shrink: 0;
  margin-right: calc(7 * var(--u));
}

.bf-bar__offer {
  display: flex;
  align-items: center;
  gap: calc(17 * var(--u));
}

.bf-bar__text {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: calc(26.9 * var(--u));
  line-height: 1;
  color: #e8e0e0;
  white-space: nowrap;
}

.bf-bar__pricebox {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(233.5 * var(--u));
  height: calc(116.7 * var(--u));
  border: max(1px, calc(1.5 * var(--u))) solid var(--red);
  border-radius: calc(10 * var(--u));
  background: #000;
}

.bf-bar__price {
  position: relative;
  z-index: 1;
  font-family: "Yeseva One", Georgia, serif;
  font-size: calc(58.4 * var(--u));
  line-height: 1;
  color: var(--gold);
  background: linear-gradient(180deg, #f7dc8e 0%, #e7b95d 55%, #c9953a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(calc(2 * var(--u)) calc(2 * var(--u)) 0 #6b4a12);
  white-space: nowrap;
}

/* Balloons hang off the right edge of the price box */
.bf-bar__balloons {
  position: absolute;
  z-index: 2;
  left: calc(210.5 * var(--u));
  top: calc(-7 * var(--u));
  width: calc(123 * var(--u));
  height: auto;
  pointer-events: none;
}

.bf-bar__timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: calc(141 * var(--u));
  line-height: 1;
  white-space: nowrap;
}

.bf-bar__label {
  font-family: "Canva Sans", "Poppins", sans-serif;
  font-weight: 400;
  font-size: calc(21.9 * var(--u));
}

.bf-bar__clock {
  margin-top: calc(6 * var(--u));
  font-family: "Chewy", cursive;
  font-size: calc(34.7 * var(--u));
  letter-spacing: 0.02em;
}

/* fixed width per unit so the clock doesn't jiggle every second */
.bf-bar__clock span {
  display: inline-block;
  min-width: 1.1em;
  text-align: center;
}

/* ===== Tablet: drop "Big Sale", tighten spacing, scale up a little ===== */
@media (max-width: 991px) {
  .bf-bar {
    --u: calc(100vw / 1200);
  }

  .bf-bar__inner {
    width: 100%;
    padding-left: calc(335 * var(--u));
  }

  .bf-bar__bigsale {
    display: none;
  }

  .bf-bar__timer {
    margin-left: calc(80 * var(--u));
  }

  .bf-bar__balloons {
    width: calc(100 * var(--u));
    left: calc(205 * var(--u));
  }
}

/* ===== Mobile: offer on top, timer below ===== */
@media (max-width: 767px) {
  .bf-bar {
    height: auto;
    min-height: 108px;
  }

  .bf-bar__deco--left {
    display: none;
  }

  /* balloons move to the left edge of the bar (pricebox stops being their anchor) */
  .bf-bar__pricebox {
    position: static;
  }

  .bf-bar__balloons {
    z-index: -1;
    left: -14px;
    top: -6px;
    width: 64px;
    opacity: 0.9;
  }

  .bf-bar__deco--right {
    top: auto;
    bottom: -22px;
    right: -16px;
    width: 112px;
    opacity: 0.9;
  }

  .bf-bar__inner {
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px 12px;
  }

  .bf-bar__offer {
    justify-content: center;
    gap: 12px;
  }

  .bf-bar__text {
    font-size: 17px;
  }

  .bf-bar__pricebox {
    width: auto;
    height: auto;
    padding: 4px 14px 6px;
    border-width: 1.5px;
    border-radius: 8px;
  }

  .bf-bar__price {
    font-size: 32px;
    filter: drop-shadow(1.5px 1.5px 0 #6b4a12);
  }

  .bf-bar__timer {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    margin-left: 0;
  }

  .bf-bar__label {
    font-size: 14px;
  }

  .bf-bar__clock {
    margin-top: 0;
    font-size: 24px;
  }
}

@media (max-width: 380px) {
  .bf-bar__deco--right {
    width: 92px;
  }

  .bf-bar__balloons {
    width: 52px;
    left: -16px;
  }

  .bf-bar__offer {
    gap: 8px;
  }

  .bf-bar__text {
    font-size: 15px;
  }

  .bf-bar__price {
    font-size: 28px;
  }

  .bf-bar__label {
    font-size: 13px;
  }

  .bf-bar__clock {
    font-size: 22px;
  }
}

/* ===== Mobile: timer label reads "BLACK FRIDAY ends in" (same height, no extra row) ===== */
.bf-bar__label-mob {
  display: none;
}

@media (max-width: 767px) {
  .bf-bar__label-desk {
    display: none;
  }

  .bf-bar__label-mob {
    display: inline;
  }

  /* timer row ("BLACK FRIDAY offers end in …") goes on top, offer row below */
  .bf-bar__timer {
    order: -1;
  }

  .bf-bar__bf {
    display: inline-block;
    margin-right: 2px;
    font-family: "Archivo Black", "Arial Black", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: 1px;
    color: #e7b95d;
  }
}

@media (max-width: 380px) {
  .bf-bar__bf {
    font-size: 11.5px;
  }
}

/* ==========================================================================
   Floating wrapper, close button and coupon chip (shared by all brands)
   ========================================================================== */
.bfbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  display: none;
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), bottom .2s ease;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .35);
  line-height: normal;
}
.bfbar.is-on { display: block; }
.bfbar.is-in { transform: translateY(0); }
.bfbar, .bfbar *, .bfbar *::before, .bfbar *::after { box-sizing: border-box; }
.bfbar a, .bfbar a:hover, .bfbar a:focus, .bfbar a:visited { text-decoration: none; }
.bfbar img { max-width: none; border: 0; box-shadow: none; }
.bfbar-spacer { display: none; }
.bfbar-spacer.is-on { display: block; }

.bfbar-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  width: 26px;
  height: 26px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font: 400 18px/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: none;
  min-height: 0;
}
.bfbar-close:hover, .bfbar-close:focus-visible { background: #000; border-color: #fff; color: #fff; }

.bfbar-textcol {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: calc(9 * var(--u));
}
.bfbar-code {
  display: inline-block;
  padding: calc(4 * var(--u)) calc(14 * var(--u));
  border: max(1px, calc(1.6 * var(--u))) dashed var(--bfbar-accent);
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
  font-size: calc(15 * var(--u));
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.bfbar-code b { color: var(--bfbar-accent); font-weight: 700; }

@media (max-width: 767px) {
  .bfbar-close { top: 4px; right: 4px; width: 22px; height: 22px; font-size: 15px; }
  .bfbar-textcol { gap: 4px; }
  .bfbar-code { padding: 2px 8px; font-size: 10.5px; border-width: 1px; letter-spacing: .05em; }
}
@media (max-width: 380px) {
  .bfbar-code { font-size: 9.5px; padding: 2px 6px; }
}
