/* ==========================================================================
   RIVAL Shoes - News Ticker
   ========================================================================== */

.news-ticker {
  height: var(--ticker-height);
  background: var(--color-black);
  overflow: hidden;
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
}

.news-ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.news-ticker__track:hover {
  animation-play-state: paused;
}

.news-ticker__content {
  display: flex;
  align-items: center;
  height: var(--ticker-height);
  white-space: nowrap;
  padding-right: 4rem;
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.news-ticker__content a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.news-ticker__content a:hover {
  color: var(--color-accent);
}

.news-ticker__separator {
  color: var(--color-accent);
  margin: 0 2rem;
  font-size: 0.5rem;
  line-height: 1;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.news-ticker--hidden {
  display: none;
}

/* ---- Ticker Offset for Body ---- */

body {
  --ticker-offset: var(--ticker-height);
}

body.ticker-hidden {
  --ticker-offset: 0px;
}
