/* Holiday sale bar (js/bb-sale-banner.js). Pinned to the bottom so it never collides with the pinned site header.
   Uses the theme's accent when one is set, with safe fallbacks. */
.bb-sale {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bb-surface, #0d1411) 92%, transparent);
  border-top: 2px solid var(--bb-accent, #2fd17a);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 500;
  color: var(--bb-text, #e8f1ec);
}
.bb-sale__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-right: 40px;
  position: relative;
}
.bb-sale__tag {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bb-accent, #2fd17a);
  white-space: nowrap;
}
.bb-sale__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  flex: 1 1 320px;
}
.bb-sale__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bb-sale__code {
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px dashed var(--bb-accent, #2fd17a);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 40px;
}
.bb-sale__code strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  color: var(--bb-accent, #2fd17a);
}
.bb-sale__code-label {
  font-size: 14px;
  opacity: 0.8;
}
.bb-sale__cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bb-accent, #2fd17a);
  color: #08110c;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.bb-sale__hint {
  font-size: 14px;
  opacity: 0.85;
}
.bb-sale__close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}
.bb-sale__close:hover,
.bb-sale__close:focus-visible { opacity: 1; }
/* leave room at the bottom of the page so the bar never covers the footer */
html.has-bb-sale body { padding-bottom: 96px; }
@media (max-width: 640px) {
  .bb-sale__text { font-size: 15px; flex-basis: 100%; }
  html.has-bb-sale body { padding-bottom: 150px; }
}
