/* Black Friday campaign. Visibility per sale state is handled by the bf-when-* rules in
   head.twig; this file only styles the pieces. */

:root {
  --bf-gold: var(--color-primary, #ffb53d);
  --bf-hot: #ff3d3d;
  --bf-ink: #0a0a0c;
  --bf-gold-soft: color-mix(in srgb, var(--bf-gold) 9%, transparent);
  --bf-gold-line: color-mix(in srgb, var(--bf-gold) 45%, transparent);
  --bf-gold-glow: color-mix(in srgb, var(--bf-gold) 55%, transparent);
}

/* ---------- Shared pieces ---------- */

.bf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.28em 0.62em;
  border-radius: 6px;
  background: var(--bf-gold);
  color: var(--bf-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

/* Inline coupon button: sale bar and basket */
.bf-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px dashed var(--bf-gold-line);
  border-radius: 7px;
  background: var(--bf-gold-soft);
  color: var(--bf-gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bf-code:hover {
  background: color-mix(in srgb, var(--bf-gold) 18%, transparent);
  border-color: var(--bf-gold);
}

.bf-code i {
  font-size: 12px;
  opacity: 0.8;
}

.bf-code__hint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bf-code.is-copied {
  border-style: solid;
  border-color: #50ff76;
  color: #50ff76;
}

.bf-code.is-copied .bf-code__hint {
  color: #50ff76;
}

/* Coupon ticket: hero and package page */
.bf-ticket {
  --bf-notch: var(--dark-color-primary, #111114);
  position: relative;
  display: inline-flex;
  align-items: stretch;
  padding: 0;
  border: 1.5px dashed var(--bf-gold-line);
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bf-gold) 17%, transparent), color-mix(in srgb, var(--bf-gold) 5%, transparent));
  max-width: 100%;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bf-ticket:hover {
  transform: translateY(-2px);
  border-color: var(--bf-gold);
  box-shadow: 0 14px 34px -14px var(--bf-gold-glow);
}

.bf-ticket__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 12px 18px;
}

.bf-ticket__label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bf-ticket__code {
  color: var(--bf-gold);
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.09em;
  overflow-wrap: anywhere;
}

.bf-ticket__action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 80px;
  padding: 0 16px;
  border-left: 1.5px dashed var(--bf-ink);
  border-radius: 0 12px 12px 0;
  background: var(--bf-gold);
  color: var(--bf-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.bf-ticket__action i {
  font-size: 16px;
}

.bf-ticket__action::before,
.bf-ticket__action::after {
  content: "";
  position: absolute;
  left: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bf-notch);
}

.bf-ticket__action::before {
  top: -8px;
}

.bf-ticket__action::after {
  bottom: -8px;
}

.bf-ticket.is-copied .bf-ticket__action {
  background: #50ff76;
}

/* Sized for the product page's side column, which is only about 250px wide on most laptops. */
.bf-ticket--compact .bf-ticket__main {
  padding: 9px 12px;
}

.bf-ticket--compact .bf-ticket__code {
  font-size: 15px;
  letter-spacing: 0.05em;
}

.bf-ticket--compact .bf-ticket__action {
  min-width: 52px;
  padding: 0 10px;
}

.bf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bf-btn--primary {
  background: var(--bf-gold);
  color: var(--bf-ink);
  box-shadow: 0 12px 32px -10px var(--bf-gold-glow);
}

.bf-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -10px var(--bf-gold-glow);
}

.bf-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: blur(8px);
}

.bf-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Sticky sale bar ---------- */

.bf-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--bf-gold) 30%, transparent);
  background: var(--bf-ink);
  color: #fff;
}

html.bf-bar-closed .bf-bar {
  display: none !important;
}

/* Hazard tape on both ends */
.bf-bar::before,
.bf-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  background: repeating-linear-gradient(-45deg, var(--bf-gold) 0 10px, var(--bf-ink) 10px 20px);
  opacity: 0.85;
  pointer-events: none;
}

.bf-bar::before {
  left: 0;
  -webkit-mask-image: linear-gradient(to right, #000 20%, transparent);
  mask-image: linear-gradient(to right, #000 20%, transparent);
}

.bf-bar::after {
  right: 0;
  -webkit-mask-image: linear-gradient(to left, #000 20%, transparent);
  mask-image: linear-gradient(to left, #000 20%, transparent);
}

.bf-bar__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  min-height: 46px;
  padding: 7px 130px;
  font-size: 14px;
}

.bf-bar__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--bf-gold);
  color: var(--bf-ink);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bf-bar__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.bf-bar__text strong {
  color: #fff;
  font-weight: 700;
}

.bf-bar__fine {
  display: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  white-space: nowrap;
}

.bf-bar__timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  white-space: nowrap;
}

.bf-bar__timer i {
  color: var(--bf-gold);
  font-size: 12px;
}

.bf-bar__timer b {
  color: var(--bf-gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bf-bar__close {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.85);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.bf-bar__close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ---------- Home hero ---------- */

.bf-hero {
  position: relative;
  padding-top: clamp(34px, 5vw, 76px);
  /* The cutout and the sticker reach past the edges; keep them from widening the page. */
  overflow-x: clip;
}

/* The store's hero cutout in front of a neon ring, both behind the hero copy. */
.bf-hero__stage {
  position: absolute;
  top: 26px;
  right: -4vw;
  z-index: -1;
  width: min(70vw, 1060px);
  aspect-ratio: 1240 / 980;
  pointer-events: none;
}

/* The cutout is semi-transparent by design, so whatever sits behind it shows through:
   the ring fades out before it reaches the bodies. */
.bf-hero__sun {
  position: absolute;
  top: -3%;
  left: 20%;
  width: 54%;
  aspect-ratio: 1;
  border: 3px solid var(--bf-gold);
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bf-gold) 30%, transparent), color-mix(in srgb, var(--bf-hot) 10%, transparent) 70%, transparent 100%);
  box-shadow: 0 0 36px var(--bf-gold-glow), inset 0 0 36px color-mix(in srgb, var(--bf-gold) 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 26%, transparent 62%);
  mask-image: linear-gradient(to bottom, #000 26%, transparent 62%);
}

.bf-hero__cutout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Pulls the artwork's own colours towards black and gold. */
  filter: sepia(0.5) saturate(1.35) hue-rotate(-8deg) contrast(1.1) brightness(0.95) drop-shadow(0 0 30px color-mix(in srgb, var(--bf-gold) 30%, transparent));
}

.bf-hero__sparks {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bf-hero__sparks span {
  position: absolute;
  bottom: 60px;
  width: var(--bf-spark-size, 3px);
  height: var(--bf-spark-size, 3px);
  border-radius: 50%;
  background: var(--bf-gold);
  box-shadow: 0 0 8px 2px var(--bf-gold-glow);
  opacity: 0;
  animation: bf-spark 9s linear infinite;
}

@keyframes bf-spark {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  12% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translate(var(--bf-spark-drift, 30px), -520px);
  }
}

.bf-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.bf-hero__kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 8px 15px;
  border: 1px solid color-mix(in srgb, var(--bf-gold) 26%, transparent);
  border-radius: 999px;
  background: var(--bf-gold-soft);
  color: var(--bf-gold);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.bf-hero__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bf-hot);
}

.bf-hero__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1.5px solid var(--bf-hot);
  border-radius: 50%;
  animation: bf-ping 1.6s ease-out infinite;
}

.bf-hero__dot--idle {
  background: var(--bf-gold);
}

.bf-hero__dot--idle::after {
  border-color: var(--bf-gold);
}

@keyframes bf-ping {
  0% {
    opacity: 0.9;
    transform: scale(0.5);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.bf-hero__sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.22);
}

.bf-hero__headline {
  position: relative;
  display: inline-block;
}

.bf-hero__title {
  margin: 0;
  font-size: clamp(58px, 10.4vw, 150px);
  font-weight: 900;
  line-height: 0.87;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  filter: drop-shadow(0 10px 38px color-mix(in srgb, var(--bf-gold) 30%, transparent));
}

.bf-hero__title span {
  display: block;
  line-height: inherit;
}

.bf-hero__title span:first-child {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.92);
}

.bf-hero__title span:last-child {
  padding-right: 0.06em;
  background: linear-gradient(100deg, #fff3d6 0%, var(--bf-gold) 34%, #ff8a1f 68%, var(--bf-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Discount sticker: sized in em so one font-size scales the whole badge. */
.bf-sticker {
  position: absolute;
  top: -4%;
  left: calc(100% + 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 10em;
  height: 10em;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ffe3a6 0%, var(--bf-gold) 45%, #f08a1a 100%);
  color: var(--bf-ink);
  font-size: clamp(9.6px, 1.28vw, 18px);
  box-shadow: 0 18px 50px -12px var(--bf-gold-glow), inset 0 -8px 18px rgba(0, 0, 0, 0.14);
  transform: rotate(11deg);
  animation: bf-bob 4.5s ease-in-out infinite;
}

.bf-sticker__ring {
  position: absolute;
  inset: -0.75em;
  border: 2px dashed var(--bf-gold-line);
  border-radius: 50%;
  animation: bf-spin 22s linear infinite;
}

.bf-sticker__value {
  font-size: 3.5em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.bf-sticker__label {
  margin-top: 0.25em;
  font-size: 0.98em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes bf-bob {
  0%,
  100% {
    transform: rotate(11deg) translateY(0);
  }
  50% {
    transform: rotate(8deg) translateY(-8px);
  }
}

@keyframes bf-spin {
  to {
    transform: rotate(360deg);
  }
}

.bf-hero__lead {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.6;
}

.bf-hero__lead strong {
  color: #fff;
  font-weight: 700;
}

.bf-hero__offer {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px 22px;
}

.bf-clock {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.bf-clock__title {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bf-clock__units {
  display: flex;
  gap: 8px;
}

.bf-clock__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
  padding: 8px 8px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(16, 16, 20, 0.62);
  backdrop-filter: blur(10px);
}

.bf-clock__unit b {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.bf-clock__unit span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bf-clock__unit--hot {
  border-color: var(--bf-gold-line);
}

.bf-clock__unit--hot b {
  color: var(--bf-gold);
}

.bf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.bf-hero__note {
  margin: -6px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12.5px;
}

/* Crossing marquee tapes under the hero */
/* Clipped so the oversized, tilted tapes never widen the page on phones. */
.bf-tapes {
  position: relative;
  height: 150px;
  margin-top: 14px;
  overflow: hidden;
}

.bf-tape {
  position: absolute;
  left: -5%;
  width: 110%;
  overflow: hidden;
  padding: 10px 0;
}

/* Same anchor, opposite tilt: the two tapes cross in the middle of the page. */
.bf-tape--gold {
  top: 56px;
  z-index: 2;
  background: var(--bf-gold);
  color: var(--bf-ink);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.8);
  transform: rotate(-2.2deg);
}

.bf-tape--dark {
  top: 56px;
  z-index: 1;
  border-top: 1px solid color-mix(in srgb, var(--bf-gold) 32%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--bf-gold) 32%, transparent);
  background: #141418;
  color: var(--bf-gold);
  transform: rotate(2.2deg);
}

.bf-tape__track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: bf-marquee 70s linear infinite;
}

.bf-tape__track i {
  font-size: 11px;
  opacity: 0.75;
}

.bf-tape--dark .bf-tape__track {
  animation-direction: reverse;
}

@keyframes bf-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Home deals section ---------- */

.bf-deals:not(.is-ready) {
  display: none !important;
}

.bf-deals__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.bf-deals__head .bf-chip {
  font-size: 0.6em;
  margin-right: 0.2em;
}

.bf-deals__all {
  padding: 11px 20px;
  font-size: 15px;
}

/* ---------- Package cards ---------- */

html.bf-live .package-card-shell[data-bf-deal] {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bf-gold) 16%, transparent);
}

html.bf-live .package-card-shell[data-bf-deal]:hover {
  box-shadow: 0 0 0 1px var(--bf-gold-line), 0 20px 44px -16px var(--bf-gold-glow);
}

/* Sits on the bottom edge of the card image (200 / 250 / 277px tall). */
.bf-card-flag {
  position: absolute;
  top: 185px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 10px;
  border: 1px solid var(--bf-gold-line);
  border-radius: 8px;
  background: var(--bf-ink);
  color: var(--bf-gold);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.bf-card-flag i {
  font-size: 10px;
}

.bf-card-flag b {
  margin-left: 2px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--bf-hot);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.bf-card-deal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  margin-bottom: 10px;
  padding: 9px 12px;
  border: 1px dashed var(--bf-gold-line);
  border-radius: 11px;
  background: var(--bf-gold-soft);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.bf-card-deal__label i {
  margin-right: 3px;
  color: var(--bf-gold);
}

.bf-card-deal__label b {
  color: var(--bf-gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bf-card-deal__price {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------- Package page ---------- */

.bf-pdp {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--bf-gold) 32%, transparent);
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bf-gold) 11%, transparent), color-mix(in srgb, var(--bf-hot) 5%, transparent) 60%, transparent), var(--dark-color-primary, #111114);
}

.bf-pdp__head,
.bf-pdp__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.bf-pdp__timer {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.bf-pdp__timer i {
  margin-right: 2px;
  color: var(--bf-gold);
  font-size: 12px;
}

.bf-pdp__timer b {
  color: var(--bf-gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bf-pdp__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bf-pdp__label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 500;
}

.bf-pdp__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.bf-pdp .bf-ticket {
  --bf-notch: color-mix(in srgb, var(--bf-gold) 7%, var(--dark-color-primary, #111114));
}

.bf-pdp__amount strong {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.bf-pdp__amount s {
  color: rgba(255, 255, 255, 0.38);
  font-size: 15px;
}

.bf-pdp__amount em {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bf-hot);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

/* ---------- Basket ---------- */

.bf-basket {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px dashed var(--bf-gold-line);
  border-radius: 10px;
  background: var(--bf-gold-soft);
}

.bf-basket__icon {
  color: var(--bf-gold);
  font-size: 16px;
}

.bf-basket__title {
  flex: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.bf-basket__note {
  flex-basis: 100%;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11.5px;
  line-height: 1.35;
}

/* ---------- Responsive ---------- */

@media (min-width: 768px) {
  .bf-card-flag {
    top: 235px;
    left: 18px;
  }
}

@media (min-width: 1280px) {
  .bf-bar__fine {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .bf-card-flag {
    top: 262px;
  }

  /* Three deals per row; the theme's fixed 470px cards only fit two in the container. */
  .bf-deals__grid > .package-card-shell {
    width: calc((100% - 70px) / 3);
  }
}

@media (max-width: 1199px) {
  /* No room for the hazard stripes: without them the bar stays on one or two lines. */
  .bf-bar::before,
  .bf-bar::after {
    display: none;
  }

  .bf-bar__inner {
    padding: 7px 44px 7px 12px;
  }
}

@media (max-width: 1023px) {
  /* Behind the copy on narrow screens, so it is dimmed to keep the text readable. */
  .bf-hero__stage {
    top: -30px;
    right: -34vw;
    width: 118vw;
    opacity: 0.42;
  }
}

@media (max-width: 767px) {
  .bf-bar__inner {
    gap: 5px 9px;
    font-size: 12.5px;
  }

  /* Phones: offer and timer without their connecting words, so the bar stays at two lines. */
  .bf-bar__long,
  .bf-bar__timer span {
    display: none;
  }

  .bf-bar__tag {
    font-size: 10.5px;
  }

  .bf-bar .bf-code {
    padding: 3px 8px;
    font-size: 12px;
  }

  .bf-bar .bf-code__hint,
  .bf-basket .bf-code__hint {
    display: none;
  }

  .bf-bar__timer {
    padding-left: 0;
    border-left: 0;
    font-size: 12px;
  }

  .bf-hero__inner {
    gap: 18px;
  }

  .bf-hero__kicker {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .bf-sticker {
    top: 0;
    left: calc(100% + 2px);
  }

  .bf-hero__offer {
    width: 100%;
  }

  .bf-ticket:not(.bf-ticket--compact) {
    width: 100%;
  }

  .bf-ticket:not(.bf-ticket--compact) .bf-ticket__main {
    flex: 1;
  }

  .bf-clock {
    width: 100%;
  }

  .bf-clock__unit {
    flex: 1;
    min-width: 0;
  }

  .bf-hero__actions {
    width: 100%;
  }

  .bf-hero__actions .bf-btn {
    flex: 1;
    padding: 13px 10px;
    font-size: 15px;
  }

  .bf-tapes {
    height: 96px;
    margin-top: 16px;
  }

  .bf-tape {
    top: 32px;
    padding: 8px 0;
  }

  .bf-tape__track {
    gap: 16px;
    padding-right: 16px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-tape__track,
  .bf-sticker,
  .bf-sticker__ring,
  .bf-hero__dot::after {
    animation: none;
  }
}
