/* Black Friday 2026 (inc/black-friday.php, assets/js/black-friday.js). The theme's own type and colours: ink, the eBay band's
   uppercase labels, Gelasio numbers, the banner's gold, the site's red (--live) for the saving. */

/* ---- which phase: every phase's words are in the page; only the one that is true now shows. Nothing before the start. */
html:not([data-bf-phase]) .bf,
html[data-bf-phase="pre"] .bf,
html[data-bf-phase="ended"] .bf,
html[data-bf-phase="pre"] .bf [data-bf-p]:not([data-bf-p~="pre"]),
html[data-bf-phase="live"] .bf [data-bf-p]:not([data-bf-p~="live"]),
html[data-bf-phase="final"] .bf [data-bf-p]:not([data-bf-p~="final"]) { display: none !important }

.bf-tag { display: inline-flex; align-items: center; flex: none; padding: 6px 9px 5px; border-radius: var(--r); background: var(--live); color: #fff;
  font: 600 10.5px/1 'Poppins', sans-serif; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap }

/* ---- countdown chips */
.bf-cd { display: inline-flex; gap: 4px; font-variant-numeric: tabular-nums; white-space: nowrap }
.bf-cd:empty { display: none }
.bf-cd span { display: inline-flex; align-items: baseline; justify-content: center; gap: 1px; min-width: 36px; padding: 5px 6px 4px; border-radius: 4px; background: rgba(255,255,255,.13) }
.bf-cd b { font: 600 14px/1 'Poppins', sans-serif; letter-spacing: .02em }
.bf-cd i { font-style: normal; font-size: 11px; opacity: .72 }

/* ---- the bar, inside the phone-number bar */
.bf-bar { position: relative; background: var(--ink); color: #fff; font: 500 13.5px/1.35 'Poppins', sans-serif; letter-spacing: .01em }
html[data-bf-phase="final"] .bf-bar { background: var(--live) }
html[data-bf-phase="final"] .bf-bar .bf-tag { background: #fff; color: var(--live) }
html[data-bf-phase="final"] .bf-bar .bf-cd span { background: rgba(0,0,0,.18) }
.bf-bar-in { display: flex; align-items: center; gap: 8px 18px; min-height: 48px; padding-top: 7px; padding-bottom: 7px }
.bf-msgs { flex: 1; min-width: 0 }
.bf-m { display: none; margin: 0; text-wrap: balance }
.bf-bar:not(.bf-js) .bf-m.lead, .bf-bar.bf-js .bf-m.on { display: block; animation: bf-in .35s var(--out, ease) both }
@keyframes bf-in { from { opacity: 0; transform: translateY(4px) } }
.bf-bar-r { display: flex; align-items: center; gap: 14px; flex: none }
.bf-cta { display: inline-flex; align-items: center; gap: 7px; color: inherit; font: 600 12px/1 'Poppins', sans-serif; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap }
.bf-cta .i { transition: transform .3s var(--out, ease) }
@media (hover: hover) { .bf-cta:hover .i { transform: translateX(3px) } }
.bf-pause { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 -6px 0 -4px; border: 0; border-radius: 50%; background: none; color: inherit; opacity: .75; cursor: pointer }
.bf-pause:hover, .bf-pause:focus-visible { opacity: 1; background: rgba(255,255,255,.12) }
.bf-bar a:focus-visible, .bf-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px }

@media (max-width: 860px) {
  .bf-bar-in { flex-wrap: wrap; justify-content: center; text-align: center; gap: 6px 14px; padding-top: 8px; padding-bottom: 8px }
  .bf-bar .bf-tag { display: none }
  .bf-msgs { flex-basis: 100% }
  .bf-m { font-size: 13px }
}
@media (max-width: 380px) {
  .bf-cd span { min-width: 30px; padding: 4px 4px 3px }
  .bf-cd b { font-size: 13px }
  .bf-bar-r { gap: 10px }
}

/* ---- the homepage banner's panel, under its buttons */
.bf-hero { max-width: 560px; margin-top: 24px; padding: 15px 18px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--r);
  background: rgba(8,8,8,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff }
.bf-hero-k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font: 600 11.5px/1.3 'Poppins', sans-serif; letter-spacing: .14em; text-transform: uppercase }
.bf-cd-lg { display: flex; gap: 8px; margin-top: 12px }
.bf-cd-lg span { flex-direction: column; align-items: center; gap: 0; min-width: 60px; padding: 8px 8px 7px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14) }
.bf-cd-lg b { font: 400 26px/1 'Gelasio', serif; letter-spacing: 0 }
.bf-cd-lg i { margin-top: 5px; font: 500 9.5px/1 'Poppins', sans-serif; letter-spacing: .16em; text-transform: uppercase; opacity: .7 }
.bf-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 13px 0 0; padding: 0; list-style: none }
.bf-tiers li { display: grid; gap: 2px; padding-top: 8px; border-top: 2px solid var(--gold) }
.bf-tiers b { font: 600 15.5px/1.2 'Poppins', sans-serif; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap }
.bf-tiers span { font-size: 13px; line-height: 1.3; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums }
.bf-hero-n { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.78) }
/* a short window beside the banner's watch: the panel keeps to the banner */
@media (min-width: 701px) and (max-height: 820px) {
  .bf-hero { margin-top: 18px; padding-top: 12px; padding-bottom: 11px }
  .bf-cd-lg span { padding: 6px 7px 5px }
  .bf-cd-lg b { font-size: 22px }
  .bf-hero-n { display: none }
}
@media (max-width: 700px) {
  .bf-hero { margin-top: 24px; padding: 16px 16px 14px }
  .bf-cd-lg span { flex: 1; min-width: 0 }
  .bf-cd-lg b { font-size: 26px }
  .bf-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px }
}

/* ---- a watch's page: under the price */
.bf-pd { margin-top: 14px; padding: 13px 15px 12px; border: 1px solid var(--line); border-left: 3px solid var(--live); border-radius: var(--r); font-size: 14px; line-height: 1.5 }
.bf-pd-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px }
.bf-pd-k { font: 600 11px/1 'Poppins', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--live) }
.bf-pd-t { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted) }
.bf-pd .bf-cd span { min-width: 32px; padding: 4px 5px 3px; background: var(--counter); color: var(--ink) }
.bf-pd .bf-cd b { font-size: 13px }
.bf-pd p { margin: 8px 0 0 }
.bf-pd p b { font-weight: 600; font-variant-numeric: tabular-nums }
.bf-pd small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--muted) }

/* ---- cards: the saving on the photograph, bottom right (the number stays bottom left) */
.bf-pc { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 6px 8px 5px; border-radius: var(--r); background: var(--live); color: #fff;
  font: 600 11px/1 'Poppins', sans-serif; letter-spacing: .05em; font-variant-numeric: tabular-nums; pointer-events: none; transition: opacity .25s }
@media (hover: hover) { .pc:hover .bf-pc { opacity: 0 } }

/* ---- the bag, above the subtotal */
.bf-bag { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r); background: #fbeeec; color: var(--ink); font-size: 13.5px; line-height: 1.45 }
.bf-bag-r { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600 }
.bf-bag-r b { color: var(--live); font-variant-numeric: tabular-nums }
.bf-bag p { margin: 4px 0 0; font-size: 12.5px; color: #5c5c5c }
.bf-bag p.bf-bag-1 { margin: 0; font-size: 13px; color: var(--ink) }

@media (prefers-reduced-motion: reduce) { .bf-bar .bf-m { animation: none !important } }
