.next-year-banner {
  position: relative;
  width: 100%;
  padding-block: var(--mp8);
  overflow: hidden;
}

.next-year-banner .nyb-fade-right {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: var(--mp4);
  width: 9vw;
  background: linear-gradient(
    to left,
    var(--text-white),
    rgba(255, 255, 255, 0)
  );
  z-index: 2;
}

.next-year-banner__pill {
  position: relative;
  background: var(--primary-color);
  color: var(--text-white);
  padding: calc(var(--mp8) * 0.4) var(--mp16);
  overflow: hidden;
}

.next-year-banner__track {
  white-space: nowrap;
  display: inline-block;
  will-change: transform;
  animation: nyb-scroll 35s linear infinite;
}

.next-year-banner__copy {
  font-weight: var(--font-weight-700);
  font-size: var(--font-size-24);
  line-height: var(--line-height-28);
  display: inline-block;
  padding-right: var(--mp16);
  padding: 1.538rem;

  p {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

.next-year-banner:hover .next-year-banner__track {
  animation-play-state: paused;
}

@keyframes nyb-scroll {
  to {
    transform: translateX(-33.333%);
  }
}

@media (max-width: 768px) {
  .next-year-banner__track {
    animation-duration: 28s;
  }
  .next-year-banner__copy {
    font-size: var(--font-size-14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .next-year-banner__track {
    animation: none !important;
  }
}
