/* Black Friday floating bar - Career Education. Design: floting bar/ce/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.
 */
.ce-bar {
  --bfbar-accent: #f0ba53;
  --u: min(1px, calc(100vw / 1440));
  --red: #ee1924;
  --gold: #f0ba53;
  --soft-white: #e8e0e0;

  position: relative;
  overflow: hidden;
  width: 100%;
  height: calc(135 * var(--u));
  display: flex;
  align-items: center;
  background: #1a1d20 url("ce-bg.webp") center / cover no-repeat;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.ce-bar:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

/* ===== Absolute decoration: bags + BLACK FRIDAY sign ===== */
.ce-bar__deco {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.ce-bar__deco--left {
  left: calc(-55 * var(--u));
  top: 0;
  width: calc(354 * var(--u));
}

/* ===== Content ===== */
.ce-bar__inner {
  position: relative;
  z-index: 1;
  width: calc(1440 * var(--u));
  margin: 0 auto;
  padding-left: calc(297 * var(--u));
  display: flex;
  align-items: center;
}

/* "90%+ OFF" scalloped badge (image) */
.ce-bar__badge {
  display: block;
  width: calc(139 * var(--u));
  height: auto;
  flex-shrink: 0;
}

.ce-bar__text {
  margin-left: calc(12 * var(--u));
  font-family: "Intro Rust", "Montserrat", sans-serif;
  font-weight: 900;
  font-size: calc(34.2 * var(--u));
  line-height: 1;
  text-transform: uppercase;
  color: var(--soft-white);
  white-space: nowrap;
}

/* Rounded octagon price box */
.ce-bar__pricebox {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(310.1 * var(--u));
  height: calc(108 * var(--u));
  margin-left: calc(34 * var(--u));
  flex-shrink: 0;
}

.ce-bar__pricebox-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ce-bar__pricebox-shape path {
  fill: url(#ce-box-fill);
  stroke: var(--red);
  stroke-width: 3;
}

.ce-bar__price {
  position: relative;
  font-family: "Intro Rust", "Montserrat", sans-serif;
  font-weight: 900;
  font-size: calc(79 * var(--u));
  line-height: 1;
  color: var(--red);
  -webkit-text-stroke: max(1px, calc(1.2 * var(--u))) #000;
  paint-order: stroke fill;
  text-shadow:
    calc(-2 * var(--u)) calc(-1.5 * var(--u)) 0 #fff,
    calc(2 * var(--u)) calc(2 * var(--u)) 0 #000;
  white-space: nowrap;
}

.ce-bar__timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(204 * var(--u));
  margin-left: calc(22 * var(--u));
  line-height: 1;
  white-space: nowrap;
  font-family: "Misteryzero", "Caveat Brush", cursive;
  font-style: italic;
}

.ce-bar__label {
  font-size: calc(36 * var(--u));
  color: var(--soft-white);
}

.ce-bar__clock {
  margin-top: calc(2 * var(--u));
  font-size: calc(56 * var(--u));
  letter-spacing: 0.04em;
  color: var(--gold);
}

/* fixed width per unit so the clock doesn't jiggle every second */
.ce-bar__clock span {
  display: inline-block;
  min-width: 1em;
  text-align: center;
}

/* ===== Tablet: scale up a little, tighten spacing ===== */
@media (max-width: 991px) {
  .ce-bar {
    --u: calc(100vw / 1370);
  }

  .ce-bar__inner {
    width: 100%;
    padding-left: calc(286 * var(--u));
  }

  .ce-bar__pricebox {
    margin-left: calc(20 * var(--u));
  }

  .ce-bar__timer {
    margin-left: calc(16 * var(--u));
  }
}

/* ===== Mobile: badge + offer on top, timer below ===== */
@media (max-width: 767px) {
  .ce-bar {
    height: auto;
    min-height: 116px;
  }

  .ce-bar__deco--left {
    display: none;
  }

  .ce-bar__inner {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    padding: 10px 12px 12px;
  }

  .ce-bar__badge {
    width: 54px;
  }

  .ce-bar__text {
    margin-left: 0;
    font-size: 15px;
  }

  .ce-bar__pricebox {
    width: 124px;
    height: 48px;
    margin-left: 0;
  }

  .ce-bar__price {
    font-size: 30px;
    -webkit-text-stroke-width: 0.8px;
    text-shadow: -1px -0.8px 0 #fff, 1px 1px 0 #000;
  }

  .ce-bar__timer {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    width: auto;
    margin-left: 0;
  }

  .ce-bar__label {
    font-size: 21px;
  }

  .ce-bar__clock {
    margin-top: 0;
    font-size: 28px;
  }
}

@media (max-width: 380px) {
  .ce-bar__inner {
    column-gap: 7px;
  }

  .ce-bar__badge {
    width: 46px;
  }

  .ce-bar__text {
    font-size: 13px;
  }

  .ce-bar__pricebox {
    width: 108px;
    height: 44px;
  }

  .ce-bar__price {
    font-size: 26px;
  }

  .ce-bar__label {
    font-size: 19px;
  }

  .ce-bar__clock {
    font-size: 25px;
  }
}

/* ===== Mobile: timer label reads "BLACK FRIDAY ends in" (same height, no extra row) ===== */
.ce-bar__label-mob {
  display: none;
}

@media (max-width: 767px) {
  .ce-bar__label-desk {
    display: none;
  }

  .ce-bar__label-mob {
    display: inline;
  }

  /* timer row ("BLACK FRIDAY offers end in …") goes on top, offer row below */
  .ce-bar__timer {
    order: -1;
  }

  .ce-bar__bf {
    display: inline-block;
    margin-right: 2px;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 13px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: 1px;
    color: #fff;
    background: #ee1924;
    padding: 2px 6px 1px;
    border-radius: 3px;
  }
}

@media (max-width: 380px) {
  .ce-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; }
}
