/* Black Friday pop-up: one component, desktop modal + mobile bottom
 * sheet. Tokens per the approved design; fonts reuse what the site
 * already loads. All pairs meet 4.5:1 on their backgrounds; all tap
 * targets are 44px or larger. */

.bfp {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The explicit display values above and on the pill would otherwise
 * beat the UA [hidden] rule, leaving the close button apparently dead
 * (the dialog never visually closed). */
.bfp[hidden],
.bfp-pill[hidden] { display: none; }

.bfp__scrim {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 12, 0.7);
}

.bfp__card {
  position: relative;
  background: #F1ECE4;
  color: #111110;
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: 90dvh;
  overflow-y: auto;
  border-radius: 28px;
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.bfp__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bfp__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111110;
}

.bfp__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #C8E000;
  box-shadow: 0 0 0 1.5px #111110;
}

.bfp__close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 1.5px solid #CFC8BB;
  background: none;
  color: #111110;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bfp__close:hover { border-color: #111110; }

.bfp__heading {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 68px;
  line-height: 0.98;
  margin: 0;
  color: #111110;
}

.bfp__heading em { font-style: italic; }

.bfp__hl {
  background: linear-gradient(to bottom, transparent 58%, #C8E000 58%, #C8E000 92%, transparent 92%);
  padding: 0 4px;
  margin-left: -4px;
}

.bfp__prices {
  display: flex;
  gap: 12px;
}

.bfp__price-box {
  flex: 1 1 0;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bfp__price-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4F4B44;
}

.bfp__label-short { display: none; }

.bfp__price {
  font-weight: 600;
  font-size: 24px;
  color: #111110;
}

.bfp__was {
  font-weight: 400;
  font-size: 15px;
  color: #6A655C;
  margin-left: 4px;
}

.bfp__code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px dashed #111110;
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  min-height: 56px;
}

.bfp__code-caption { font-size: 14px; color: #4F4B44; }

.bfp__code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: #111110;
  flex: 1 1 auto;
}

.bfp__copy {
  border: none;
  background: #C8E000;
  color: #111110;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 22px;
  cursor: pointer;
}

.bfp__copy-short { display: none; }

.bfp__sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bfp__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  border-radius: 999px;
  background: #111110;
  color: #F1ECE4;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.bfp__cta:hover { opacity: 0.9; color: #F1ECE4; }

.bfp__divider {
  border: none;
  border-top: 1px solid #D8D1C4;
  margin: 0;
}

.bfp__also-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4A5310;
  margin: 0 0 -14px;
}

.bfp__also {
  font-size: 15px;
  line-height: 1.5;
  color: #4F4B44;
  margin: 0;
}

.bfp__also strong { color: #111110; }

.bfp__also-link {
  color: #111110;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 10px;
  display: inline-block;
  padding: 10px 0;
}

.bfp__fine {
  font-size: 12px;
  line-height: 1.5;
  color: #57534B;
  margin: 0;
}

/* Reopen pill */
.bfp-pill {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9400;
  border: none;
  border-radius: 999px;
  background: #C8E000;
  color: #111110;
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  padding: 0 20px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(14, 14, 12, 0.25);
}

/* Mobile: bottom sheet */
@media (max-width: 640px) {
  .bfp { align-items: flex-end; }

  .bfp__card {
    width: 100%;
    max-width: none;
    border-radius: 28px 28px 0 0;
    padding: 12px 20px calc(28px + env(safe-area-inset-bottom, 0px));
    gap: 18px;
    animation: bfp-rise 260ms ease-out;
  }

  .bfp__card::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: #D8D1C4;
    margin: 0 auto 2px;
  }

  .bfp__heading { font-size: 48px; }
  .bfp__label-long, .bfp__copy-long { display: none; }
  .bfp__label-short, .bfp__copy-short { display: inline; }

  .bfp-pill {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
}

@keyframes bfp-rise {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

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