@layer components {
  .site-section[data-section-type="textScroller"] {
    padding-block: 0;
  }
  .site-section[data-section-type="textScroller"] > .site-container {
    width: 100%;
    max-width: none;
  }
  .text-scroller {
    --text-scroller-duration: 120s;
    overflow: hidden;
  }
  .text-scroller-track {
    display: flex;
    width: max-content;
    will-change: transform;
  }
  .text-scroller-group {
    display: flex;
    min-width: 100vw;
    flex: none;
    align-items: center;
    gap: 0.8ch;
    padding-right: 0.8ch;
    white-space: nowrap;
  }
  .text-scroller-group > span {
    flex: none;
  }
  .site-text-scroller {
    border-block: var(--border-width) solid var(--border);
    padding-block: var(--space-md);
    color: var(--primary-foreground);
    background: var(--primary);
    font-family: var(--heading-font);
    font-size: var(--text-header2);
    font-weight: var(--font-weight-bold);
    line-height: var(--heading-leading);
    letter-spacing: var(--heading-tracking);
    text-transform: uppercase;
  }
  @keyframes text-scroller-left {
    to {
      transform: translateX(-50%);
    }
  }
  @keyframes text-scroller-right {
    from {
      transform: translateX(-50%);
    }
  }
  @media (prefers-reduced-motion: no-preference) {
    .text-scroller[data-direction="left"] .text-scroller-track {
      animation: text-scroller-left var(--text-scroller-duration) linear
        infinite;
    }
    .text-scroller[data-direction="right"] .text-scroller-track {
      animation: text-scroller-right var(--text-scroller-duration) linear
        infinite;
    }
  }
}
