.njs-top-promotion {
  --promotion-background: #111;
  --promotion-accent: #b9d8ff;
  --promotion-tile: #a7cfff;
  --promotion-tile-text: #14213d;
  --promotion-edge: #4678ff;
  display: flex;
  min-height: 46px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px clamp(12px, 5vw, 74px);
  padding: 5px 12px;
  border-bottom: 2px solid var(--promotion-edge);
  background: var(--promotion-background);
  color: #fff;
  font-family: system-ui, sans-serif;
  line-height: 1.2;
}

.njs-top-promotion[data-style="christmas"] {
  --promotion-background: #111216;
  --promotion-tile: #ebf3ff;
  --promotion-tile-text: #182946;
  --promotion-edge: #7e9ed6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content) max-content minmax(0, 1fr);
  grid-template-areas: ". offer clock tail";
  gap: 0 clamp(9px, 2.5vw, 24px);
  min-height: 54px;
  padding: 0 14px;
  border-bottom-width: 1px;
}

.njs-top-promotion[hidden],
.njs-top-promotion [hidden] {
  display: none;
}

.njs-promotion-offer,
.njs-promotion-countdown,
.njs-promotion-tiles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.njs-promotion-offer {
  min-width: 0;
  flex-wrap: wrap;
}

.njs-promotion-winter-art {
  display: none;
  pointer-events: none;
}

.njs-top-promotion[data-style="christmas"] .njs-promotion-winter-art {
  display: block;
}

.njs-promotion-winter-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.njs-promotion-winter-tail {
  grid-area: tail;
  width: min(100%, 104px);
  height: 43px;
}

.njs-top-promotion[data-style="christmas"] .njs-promotion-offer {
  grid-area: offer;
  justify-content: flex-start;
  gap: 4px clamp(9px, 2.5vw, 24px);
}

.njs-top-promotion[data-style="christmas"] .njs-promotion-countdown {
  grid-area: clock;
}

.njs-promotion-headline {
  display: grid;
  gap: 2px;
}

.njs-promotion-headline > span {
  color: var(--promotion-accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.njs-promotion-headline strong {
  color: inherit;
  font: 800 22px/1 var(--njs-display, system-ui, sans-serif);
  letter-spacing: .035em;
  white-space: nowrap;
}

.njs-promotion-code-group {
  position: relative;
  display: flex;
  min-width: 0;
  max-width: 100%;
}

.njs-promotion-claim {
  display: flex;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.njs-top-promotion .njs-promotion-code {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid var(--promotion-accent);
  border-radius: 2px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 750 11px/1.2 system-ui, sans-serif;
  overflow-wrap: anywhere;
  text-decoration: none;
  box-shadow: none;
}

.njs-top-promotion .njs-promotion-code:disabled {
  cursor: default;
  opacity: 1;
}

.njs-promotion-code small {
  color: var(--promotion-accent);
  font-size: 9px;
}

.njs-promotion-feedback {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  inset-inline-end: 0;
  padding: 4px 7px;
  border-radius: 3px;
  background: #fff;
  color: #14213d;
  font-size: 11px;
  box-shadow: 0 1px 6px #0003;
}

.njs-promotion-feedback:empty {
  padding: 0;
  box-shadow: none;
}

.njs-promotion-countdown-label {
  color: #f1f3f6;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.njs-promotion-tiles > span {
  display: inline-flex;
  min-width: 32px;
  box-sizing: border-box;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  padding: 3px 4px;
  background: var(--promotion-tile);
  color: var(--promotion-tile-text);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  box-shadow: 1px 1px var(--promotion-edge);
}

.njs-promotion-tiles small {
  font-size: 8px;
  font-weight: 700;
}

.njs-top-promotion[data-style="christmas"] .njs-promotion-headline {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  align-content: end;
  min-width: 194px;
  min-height: 52px;
  padding: 3px 9px 8px 81px;
}

.njs-top-promotion[data-style="christmas"] .njs-promotion-headline strong {
  color: #f8fcff;
  font-size: 30px;
  line-height: .88;
  letter-spacing: .025em;
  -webkit-text-stroke: .3px #f8fcff;
  text-shadow: 0 2px #a7c6e8;
}

.njs-top-promotion[data-style="christmas"] .njs-promotion-code {
  padding: 5px 7px;
  border-color: #829bc0;
  font-size: 10px;
  line-height: 1;
}

.njs-top-promotion[data-style="christmas"] .njs-promotion-code small {
  color: inherit;
  font-size: 8px;
}

.njs-top-promotion[data-style="christmas"] .njs-promotion-countdown-label {
  font-size: 9px;
  font-weight: 750;
}

.njs-top-promotion[data-style="christmas"] .njs-promotion-tiles {
  gap: 4px;
}

.njs-top-promotion[data-style="christmas"] .njs-promotion-tiles > span {
  min-width: 30px;
  padding: 2px 3px 3px;
  border: 1px solid #d3e5ff;
  border-radius: 2px;
  box-shadow: none;
}

.njs-top-promotion[data-style="christmas"] .njs-promotion-tiles b {
  font: 800 16px/1 var(--njs-display, "Arial Narrow", system-ui, sans-serif);
}

.njs-top-promotion[data-style="christmas"] .njs-promotion-tiles small {
  font-size: 7px;
}

.njs-promotion-settings {
  max-width: 780px;
  margin-block: 28px 20px;
  padding-block-start: 12px;
  border-top: 1px solid #c3c4c7;
}

.njs-promotion-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.njs-promotion-fields label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.njs-promotion-fields :is(input, select) {
  width: 100%;
}

.njs-promotion-settings h3 small {
  margin-inline-start: 5px;
  color: #50575e;
  font-weight: 400;
}

@media (max-width: 480px) {
  .njs-top-promotion {
    gap: 5px 10px;
    padding-inline: 8px;
  }

  .njs-promotion-headline strong {
    font-size: 18px;
  }

  .njs-promotion-countdown-label {
    display: none;
  }

  .njs-promotion-tiles {
    gap: 4px;
  }

  .njs-promotion-tiles > span {
    min-width: 25px;
    padding: 2px 3px;
    font-size: 12px;
  }
}

@media (max-width: 610px) {
  .njs-top-promotion[data-style="christmas"] {
    grid-template-columns: max-content minmax(0, max-content);
    grid-template-areas: "headline code" "headline clock";
    gap: 4px 9px;
    min-height: 64px;
    padding: 6px 9px 7px;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-winter-tail {
    display: none;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-offer {
    display: contents;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-headline {
    grid-area: headline;
    min-width: 154px;
    min-height: 43px;
    gap: 1px;
    padding: 3px 5px 7px 65px;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-headline > span {
    font-size: 8px;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-headline strong {
    font-size: 24px;
    text-shadow: 0 1.5px #a7c6e8;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-code-group {
    grid-area: code;
    align-self: end;
    justify-self: start;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-code {
    padding: 4px 6px;
    font-size: 9px;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-code small {
    font-size: 7px;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-countdown {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-countdown-label {
    display: inline;
    font-size: 8px;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-tiles {
    gap: 3px;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-tiles > span {
    min-width: 24px;
    padding: 1px 3px 2px;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-tiles b {
    font-size: 13px;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-tiles small {
    font-size: 6px;
  }

  .njs-top-promotion[data-style="christmas"] .njs-promotion-feedback {
    top: calc(100% + 27px);
  }
}
