/*
 * Black Friday 2026 sitewide deals banner (parts/site-banner.php).
 * Colours follow the Black Friday 2025 banner (slate + lime/green). Loaded only while the banner is on.
 */
.sbf-banner {
  --sbf-bg: #0f172a; /* slate-900 */
  --sbf-tile: #1e293b; /* slate-800 */
  --sbf-line: #334155; /* slate-700 */
  --sbf-text: #f8fafc;
  --sbf-muted: #cbd5e1; /* slate-300 */
  --sbf-lime: #bef264; /* lime-300 */
  --sbf-lime-hover: #84cc16; /* lime-500 */
  --sbf-green: #4ade80; /* green-400 */
  --sbf-ink: #0f172a;
  --sbf-tag-bg: var(--sbf-green);
  --sbf-tag-text: var(--sbf-ink);
  --sbf-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;

  position: relative;
  z-index: 60;
  display: block;
  background: var(--sbf-bg);
  border-bottom: 1px solid var(--sbf-tile);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  color: var(--sbf-text);
  font-family: Poppins, system-ui, sans-serif;
}
.sbf-banner.is-final {
  --sbf-tag-bg: #ef4444;
  --sbf-tag-text: #fff;
}
.sbf-banner[hidden],
.sbf-banner [hidden] {
  display: none !important;
}
.sbf-banner *,
.sbf-banner *::before,
.sbf-banner *::after {
  box-sizing: border-box;
}
.sbf-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.sbf-link:hover {
  color: inherit;
}
.sbf-link:focus-visible,
.sbf-close:focus-visible {
  outline: 3px solid var(--sbf-lime);
  outline-offset: -3px;
}
.sbf-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 84px;
  max-width: 1440px;
  margin-inline: auto;
  padding: 12px 72px;
}

/* Phase name with a tilted tag ("Black Friday" + "Early sale"). */
.sbf-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  white-space: nowrap;
}
.sbf-title__name {
  display: block;
  font: 900 34px/1 var(--sbf-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.sbf-title__tag {
  position: absolute;
  right: -18px;
  bottom: -4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sbf-tag-bg);
  color: var(--sbf-tag-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* "Ends in" + countdown tiles. */
.sbf-timer {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.sbf-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--sbf-muted);
  white-space: nowrap;
}
.sbf-digits {
  display: inline-flex;
  gap: 8px;
}
.sbf-unit {
  display: grid;
  justify-items: center;
  min-width: 62px;
  padding: 8px 8px 6px;
  border: 1px solid var(--sbf-line);
  border-radius: 10px;
  background: var(--sbf-tile);
}
.sbf-unit b {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.sbf-unit small {
  margin-top: 2px;
  font-size: 11px;
  color: var(--sbf-muted);
}

/* Offer block, like the 2025 "30% OFF" badge. */
.sbf-offer {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 60px;
  padding: 6px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a3e635, #22c55e);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
  color: var(--sbf-ink);
  white-space: nowrap;
}
.sbf-offer small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a2e05;
}
.sbf-offer strong {
  font: 900 32px/1 var(--sbf-display);
  text-transform: uppercase;
}

.sbf-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--sbf-lime);
  color: var(--sbf-ink);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(132, 204, 22, 0.6);
  transition:
    background-color 0.15s,
    transform 0.15s;
}
.sbf-link:hover .sbf-cta {
  background: var(--sbf-lime-hover);
  transform: translateY(-1px);
}

/* Close: hides the banner on this page only. */
.sbf-close {
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 0.15s,
    color 0.15s;
}
.sbf-close:hover {
  background: var(--sbf-tile);
  color: #fff;
}

@media (max-width: 1180px) {
  .sbf-inner {
    gap: 22px;
    padding-inline: 64px;
  }
  .sbf-label {
    display: none;
  }
}
@media (max-width: 980px) {
  .sbf-cta {
    display: none;
  }
}
/* Phone: two rows — title + offer, then countdown + button. */
@media (max-width: 680px) {
  .sbf-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px 12px;
    padding: 14px 52px 14px 16px;
  }
  .sbf-title {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .sbf-title__name {
    font-size: 28px;
  }
  .sbf-title__tag {
    right: -14px;
    font-size: 10px;
  }
  .sbf-offer {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-height: 50px;
    padding: 4px 14px;
  }
  .sbf-offer strong {
    font-size: 26px;
  }
  .sbf-timer {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .sbf-digits {
    gap: 6px;
  }
  .sbf-unit {
    min-width: 0;
    flex: 1;
    padding: 6px 4px 5px;
  }
  .sbf-unit b {
    font-size: 20px;
  }
  .sbf-timer,
  .sbf-digits {
    width: 100%;
  }
  .sbf-close {
    top: 8px;
    right: 6px;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sbf-cta,
  .sbf-close {
    transition: none;
  }
  .sbf-link:hover .sbf-cta {
    transform: none;
  }
}
