/* =========================================================
   Black Friday — 50% off all packages (switches off automatically)
   <html class="bf"> is set in <head> while the offer is live.
   ========================================================= */
.p-bf { display: none !important; }
html.bf .p-reg { display: none !important; }
html.bf .p-bf { display: revert !important; }
html.bf span.p-bf, html.bf s.p-bf, html.bf b.p-bf { display: inline !important; }
html.bf .bf-banner.p-bf { display: flex !important; }
html.bf .bf-pill.p-bf { display: inline-flex !important; }

/* badge inside the price tiles */
.bf-badge { background: #0b0b0b !important; color: #ffd24d !important; border: 1px solid rgba(255,210,77,.45) !important; letter-spacing: .02em; direction: ltr; }

/* crossed-out old price on course cards */
.course__price s.p-bf {
  font-family: var(--font-wix); font-size: 15px;
  color: rgba(255,255,255,.4); margin-inline-end: 6px;
  align-self: center;
}

/* hero pill */
.bf-pill {
  align-items: center; gap: 8px;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px; color: #f1f1f1;
  background: rgba(245,170,3,.08);
  border: 1px solid rgba(245,170,3,.35);
  transition: background .3s, border-color .3s;
}
.bf-pill b { color: #ffd24d; font-weight: 700; direction: ltr; }
.bf-pill:hover { background: rgba(245,170,3,.14); border-color: rgba(245,170,3,.6); }

/* banner above the packages */
.bf-banner {
  position: relative;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: max(30px, calc(40 * var(--u)));
  padding: 16px 18px 16px 22px;
  border-radius: 24px;
  color: #0b0b0b;
  background:
    radial-gradient(80% 140% at 85% 0%, rgba(255,255,255,.4), transparent 60%),
    linear-gradient(160deg, #ffd65a 0%, #f5aa03 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 20px 50px -20px rgba(245,170,3,.45);
}
.bf-banner + .wpk { margin-top: 18px; }
.bf-banner__tag {
  direction: ltr;
  padding: 7px 14px; border-radius: 999px;
  background: #0b0b0b; color: #ffd24d;
  font-family: var(--font-wix); font-size: 13px; font-weight: 700; letter-spacing: .12em;
}
.bf-banner__text { flex: 1 1 260px; font-size: max(16px, calc(19 * var(--u))); font-weight: 500; }
.bf-banner__text b { font-weight: 800; }
.bf-count { display: flex; gap: 8px; }
.bf-count > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 58px; padding: 8px 6px;
  border-radius: 14px;
  background: #0b0b0b; color: #fff;
}
.bf-count b { font-family: var(--font-wix-display); font-size: 22px; line-height: 1; font-variant-numeric: tabular-nums; }
.bf-count i { font-style: normal; font-size: 11px; color: #a9a9ad; margin-top: 4px; }

@media (max-width: 560px) {
  .bf-banner { padding: 16px; border-radius: 20px; }
  .bf-banner__text { flex-basis: 100%; font-size: 15.5px; }
  .bf-count { width: 100%; justify-content: space-between; }
  .bf-count > span { flex: 1; min-width: 0; }
}
