/* Black Friday / Cyber Monday promo — banner + popup (Nov 27–30, 2026).
   Loaded after style.css on the pages that carry the sale. */

.announce--sale {
  background: var(--lime);
  color: var(--green-deep);
}
.announce--sale p {
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .06em;
}
.announce--sale strong { font-weight: 800; }
@media (max-width: 620px) {
  .announce--sale p { font-size: .66rem; letter-spacing: .03em; }
}
.announce--sale span { color: var(--green-deep); opacity: .55; }

.bfpop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
}
.bfpop[hidden] { display: none; }

.bfpop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 23, 15, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.bfpop__panel {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 42px);
  background: var(--green-deep);
  color: var(--cream);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(20, 23, 15, .45);
  animation: bfpop-in .3s var(--ease-out) both;
}
@keyframes bfpop-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.bfpop__x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250, 246, 236, .35);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.bfpop__x:hover,
.bfpop__x:focus-visible {
  background: var(--lime);
  color: var(--green-deep);
  border-color: var(--lime);
  transform: rotate(90deg);
}

.bfpop__eyebrow {
  margin: 0 0 12px;
  padding-right: 40px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lime);
}

.bfpop__title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: var(--display-w);
  font-size: clamp(1.9rem, 6.4vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--cream);
  text-transform: uppercase;
}
.bfpop__title em { font-style: normal; color: var(--lime); }

.bfpop__body strong { color: var(--lime); }
.bfpop__body {
  margin: 0 0 20px;
  font-size: .98rem;
  line-height: 1.55;
  color: rgba(250, 246, 236, .78);
}

.bfpop__code {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: rgba(250, 246, 236, .08);
  border: 1px dashed var(--lime);
  border-radius: 12px;
}
.bfpop__code code {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--lime);
  word-break: break-all;
}
.bfpop__copy {
  flex: none;
  min-height: 36px;
  padding: 9px 14px;
  border: 1px solid rgba(161, 232, 90, .5);
  border-radius: 999px;
  background: transparent;
  color: var(--lime);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.bfpop__copy:hover { background: var(--lime); color: var(--green-deep); }

.bfpop__cta { width: 100%; }

.bfpop__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: .9rem;
  color: rgba(250, 246, 236, .7);
}
.bfpop__price s { font-size: .82rem; opacity: .6; }
.bfpop__price strong { color: var(--lime); font-size: 1.15rem; font-weight: 800; }

.bfpop__fine {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(250, 246, 236, .68);
}

body.bfpop-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .bfpop__panel { animation: none; }
  .bfpop__x { transition: none; }
}
