/* Full-width ticker below the topbar; content is duplicated to keep a continuous loop at every viewport width. */
.ticker {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  line-height: 18px;
  position: relative;
  z-index: 1;
  background: var(--ticker-bg, transparent);
  color: var(--ticker-color, inherit);
  border-bottom: var(--ticker-border, none);
}
.ticker.is-empty,
.ticker[hidden],
body.is-cashier .ticker,
body.is-admin .ticker { visibility: hidden; }
.ticker[hidden],
body.is-cashier .ticker,
body.is-admin .ticker {
  display: none;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
}
.tickerViewport { flex: 1 1 100%; width: 100%; min-width: 0; overflow: hidden; }
#tickerTrack {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  min-width: 100%;
  white-space: nowrap;
  gap: 0;
}
.tickerGroup {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: max-content;
  white-space: nowrap;
}
#tickerTrack span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 3px .65rem;
  font: 650 12px/18px system-ui, sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
#tickerTrack span::after {
  content: "•";
  margin-left: .6rem;
  color: var(--ticker-marker-color, var(--azure, #3E8FD0));
}
.ticker.is-overflowing #tickerTrack { animation: zt-marquee var(--ticker-duration, 30s) linear infinite; }
.ticker.is-paused #tickerTrack { animation-play-state: paused; }
.tickerViewport[role="button"] { cursor: default; }
.tickerViewport[role="button"]:focus-visible { outline: 2px solid var(--ticker-marker-color, var(--azure, #3E8FD0)); outline-offset: -2px; }
@keyframes zt-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  html body .ticker .tickerViewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  html body .ticker .tickerViewport::-webkit-scrollbar { display: none; }
  .ticker.is-overflowing:not(.is-user-playing) #tickerTrack { animation: none; }
  .ticker.is-user-playing.is-overflowing #tickerTrack { animation: zt-marquee var(--ticker-duration, 30s) linear infinite; }
  .ticker.is-paused #tickerTrack { animation-play-state: paused; }
}
