/* 1123 Black Friday offer bar — first row of the fixed public header (.hdr).
   Shown only when the head script adds html.nx-promo; it raises --hdr so every header offset moves with it.
   --promo-h is corrected to the real bar height by nxtl-promo-bar.js (the bar may wrap on phones).
   Rules are scoped to #nxPromoBar so page styles (links, .wrap, p) cannot change the bar. */

.nx-promo-bar { display: none; }

html.nx-promo { --promo-h: 40px; }
/* .nxtl-shell sets its own --hdr: 64px, so the raised value is set there too */
html.nx-promo,
html.nx-promo .nxtl-shell { --hdr: calc(64px + var(--promo-h)); }
html.nx-promo .hdr .hdr-in { height: calc(100% - var(--promo-h)); }

html.nx-promo #nxPromoBar {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 40px;
  margin: 0;
  padding: 0.375rem 0;
  box-sizing: border-box;
  background:
    linear-gradient(90deg, rgba(255, 61, 90, 0.20) 0%, rgba(216, 0, 68, 0.10) 45%, rgba(255, 61, 90, 0.04) 100%),
    #0D0F15;
  border-bottom: 1px solid rgba(255, 61, 90, 0.24);
  color: #fff;
}

#nxPromoBar .nx-promo-in {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 0 3rem;
  box-sizing: border-box;
}

#nxPromoBar .nx-promo-txt {
  margin: 0;
  padding: 0;
  min-width: 0;
  max-width: none;
  font-family: var(--fb, Inter, 'NXTL Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  color: #fff;
}
#nxPromoBar .nx-promo-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin: 0 0.625rem 0 0;
  padding: 0 0.625rem;
  border-radius: 999px;
  vertical-align: 1px;
  background: linear-gradient(135deg, #D9123E 0%, #A80037 100%);
  color: #fff;
  font-family: var(--ff, "Plus Jakarta Sans", 'NXTL Jakarta Fallback', sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
#nxPromoBar .nx-promo-txt strong,
#nxPromoBar .nx-promo-amt { font-weight: 700; color: #fff; white-space: nowrap; }
#nxPromoBar .nx-promo-until { margin-left: 0.25rem; color: #949AA5; }
#nxPromoBar .nx-promo-short { display: none; }

#nxPromoBar .nx-promo-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 28px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 61, 90, 0.65);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--ff, "Plus Jakarta Sans", 'NXTL Jakarta Fallback', sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
#nxPromoBar .nx-promo-cta::after { display: none; }
#nxPromoBar .nx-promo-cta:hover { background: rgba(255, 61, 90, 0.18); border-color: #FF3D5A; color: #fff; }

#nxPromoBar .nx-promo-x {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #949AA5;
  cursor: pointer;
}
#nxPromoBar .nx-promo-x:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
#nxPromoBar .nx-promo-x svg { width: 16px; height: 16px; }
#nxPromoBar .nx-promo-cta:focus-visible,
#nxPromoBar .nx-promo-x:focus-visible { outline: 2px solid #FF3D5A; outline-offset: 2px; }

@media (max-width: 760px) {
  html.nx-promo { --promo-h: 52px; }
  #nxPromoBar .nx-promo-long { display: none; }
  #nxPromoBar .nx-promo-short { display: inline; }
  #nxPromoBar .nx-promo-in { justify-content: flex-start; gap: 10px; padding: 0 52px 0 16px; }
  #nxPromoBar .nx-promo-txt { flex: 1 1 auto; font-size: 12.5px; line-height: 1.35; }
  #nxPromoBar .nx-promo-tag { height: 19px; margin-right: 6px; padding: 0 8px; font-size: 11px; }
  #nxPromoBar .nx-promo-cta { min-height: 32px; padding: 0 12px; }
  #nxPromoBar .nx-promo-x { right: 4px; width: 40px; height: 40px; }
}

/* Light theme */
html[data-theme="light"].nx-promo #nxPromoBar {
  background:
    linear-gradient(90deg, rgba(255, 61, 90, 0.12) 0%, rgba(216, 0, 68, 0.05) 45%, rgba(255, 61, 90, 0.02) 100%),
    #FFFFFF;
  border-bottom-color: rgba(216, 0, 68, 0.18);
  color: #11141F;
}
html[data-theme="light"] #nxPromoBar .nx-promo-txt,
html[data-theme="light"] #nxPromoBar .nx-promo-txt strong,
html[data-theme="light"] #nxPromoBar .nx-promo-amt { color: #11141F; }
html[data-theme="light"] #nxPromoBar .nx-promo-tag { color: #fff; }
html[data-theme="light"] #nxPromoBar .nx-promo-until { color: #4A5263; }
html[data-theme="light"] #nxPromoBar .nx-promo-cta { color: #B0003A; border-color: rgba(216, 0, 68, 0.45); }
html[data-theme="light"] #nxPromoBar .nx-promo-cta:hover { color: #B0003A; background: rgba(216, 0, 68, 0.08); border-color: #D80044; }
html[data-theme="light"] #nxPromoBar .nx-promo-x { color: #4A5263; }
html[data-theme="light"] #nxPromoBar .nx-promo-x:hover { color: #11141F; background: rgba(17, 20, 31, 0.06); }
html[data-theme="light"] #nxPromoBar .nx-promo-cta:focus-visible,
html[data-theme="light"] #nxPromoBar .nx-promo-x:focus-visible { outline-color: #D80044; }

@media (prefers-reduced-motion: reduce) {
  #nxPromoBar .nx-promo-cta { transition: none; }
}
