/* Black Friday-pop-up (engangs) */
.yb-bf {
  --bf-bg: #17191c;
  --bf-ink: #fff;
  --bf-mute: #fff;
  --bf-line: rgba(255, 255, 255, 0.16);
  --bf-accent: #ffd60a;
  --bf-ease: cubic-bezier(0.23, 1, 0.32, 1);
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: grid;
  place-items: center;
  padding: 20px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

html.yb-bf-open { overflow: hidden; }

.yb-bf__scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 16, 0.5);
  -webkit-backdrop-filter: blur(9px) saturate(0.9);
  backdrop-filter: blur(9px) saturate(0.9);
  opacity: 0;
  transition: opacity 0.22s var(--bf-ease);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .yb-bf__scrim { background: rgba(12, 14, 16, 0.78); }
}

@media (prefers-reduced-transparency: reduce) {
  .yb-bf__scrim { background: rgba(12, 14, 16, 0.9); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.yb-bf__panel {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(22px, 4vw, 44px);
  background: var(--bf-bg);
  color: var(--bf-ink);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  outline: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.22s var(--bf-ease), transform 0.28s var(--bf-ease);
}

.yb-bf.is-in .yb-bf__scrim { opacity: 1; }
.yb-bf.is-in .yb-bf__panel { opacity: 1; transform: none; }

.yb-bf__top {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.yb-bf__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s var(--bf-ease);
}

.yb-bf__close:active { transform: scale(0.94); }

.yb-bf__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}

.yb-bf__name {
  margin: 0 0 0.08em;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bf-accent);
}

.yb-bf__big {
  margin: 0;
  font-size: clamp(6.5rem, 17vw, 12.5rem);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--bf-accent);
}

.yb-bf__pct {
  margin-left: 0.06em;
  font-size: 0.5em;
  letter-spacing: -0.02em;
}

.yb-bf__copy h2 {
  margin: 0 0 12px;
  max-width: 22ch;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bf-accent);
}

.yb-bf__copy p {
  margin: 0 0 24px;
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--bf-mute);
}

.yb-bf__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 6px;
  background: var(--bf-accent);
  color: #17191c;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s var(--bf-ease), background-color 0.15s ease;
}

.yb-bf__btn:active { transform: scale(0.97); }

.yb-bf__copy .yb-bf__small {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--bf-line);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.yb-bf__small a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.yb-bf__small a[href^="tel"] { white-space: nowrap; }

.yb-bf :focus-visible { outline: 2px solid var(--bf-accent); outline-offset: 3px; }
.yb-bf__panel:focus-visible { outline: 0; }

@media (hover: hover) and (pointer: fine) {
  .yb-bf__close:hover { background: rgba(255, 255, 255, 0.1); }
  .yb-bf__btn:hover { background: #ffe24d; }
}

/* Indhold toner ind lidt efter hinanden, kun én gang. */
.yb-bf__hero > *,
.yb-bf__copy > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--bf-ease), transform 0.3s var(--bf-ease);
}
.yb-bf.is-in .yb-bf__hero > *,
.yb-bf.is-in .yb-bf__copy > * { opacity: 1; transform: none; }
.yb-bf.is-in .yb-bf__big { transition-delay: 70ms; }
.yb-bf.is-in .yb-bf__copy > :nth-child(1) { transition-delay: 90ms; }
.yb-bf.is-in .yb-bf__copy > :nth-child(2) { transition-delay: 130ms; }
.yb-bf.is-in .yb-bf__copy > :nth-child(3) { transition-delay: 170ms; }
.yb-bf.is-in .yb-bf__copy > :nth-child(4) { transition-delay: 210ms; }

/* Lukning er hurtigere end åbning. */
.yb-bf:not(.is-in) .yb-bf__scrim { transition-duration: 0.16s; }
.yb-bf:not(.is-in) .yb-bf__panel { transition-duration: 0.16s; }

@media (max-width: 820px) {
  .yb-bf { padding: 12px; align-items: end; }
  .yb-bf__panel { max-height: calc(100dvh - 24px); }
  .yb-bf__grid { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .yb-bf__big { font-size: clamp(6rem, 30vw, 9rem); }
  .yb-bf__copy h2 { max-width: none; }
  .yb-bf__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .yb-bf__scrim,
  .yb-bf__panel,
  .yb-bf__hero > *,
  .yb-bf__copy > * { transition: opacity 0.15s linear !important; transition-delay: 0s !important; transform: none !important; }
}
