.market-ticker {
  --ticker-ink: #252a29;
  --ticker-paper: #f6f3e9;
  --ticker-brass: #d8be85;
  background: var(--ticker-ink);
  color: var(--ticker-paper);
}

.market-ticker-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
}

.market-ticker-label {
  display: flex;
  align-items: center;
  column-gap: 9px;
  padding-inline-end: clamp(12px, 2.1vw, 30px);
  border-inline-end: 1px solid #565a50;
  line-height: 1.1;
  white-space: nowrap;
}

.market-ticker-label > svg {
  width: 22px;
  height: 22px;
  color: var(--ticker-brass);
}

.market-ticker-heading {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .018em;
}

.market-ticker-sample {
  padding: 3px 5px 2px;
  border: 1px solid #7f755c;
  border-radius: 2px;
  color: var(--ticker-brass);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: .035em;
}

.market-ticker-window {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-behavior: auto;
}

.market-ticker-window::-webkit-scrollbar {
  display: none;
}

.market-ticker-track,
.market-ticker-sequence {
  display: flex;
  width: max-content;
}

.market-ticker-sequence {
  flex: none;
}

.market-ticker-item {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: clamp(12px, 1.5vw, 23px);
  color: inherit;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
}

.market-ticker-item + .market-ticker-item::before,
.market-ticker-sequence:not(:first-child) .market-ticker-item:first-child::before {
  content: "";
  position: absolute;
  inset-inline-start: -1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ticker-brass);
}

.market-ticker-item {
  position: relative;
}

.market-ticker-product {
  font-size: 14px;
  font-weight: 650;
}

.market-ticker-detail {
  color: #d2d1c6;
  font-size: 13px;
}

.market-ticker-item:is(:hover, :focus-visible) .market-ticker-product {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.market-ticker-toggle {
  display: grid;
  place-items: center;
  width: 45px;
  min-height: 44px;
  margin-inline-start: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ticker-brass);
}

.market-ticker-toggle svg {
  width: 17px;
  height: 17px;
}

.market-ticker-toggle:hover {
  background: #333936;
}

.market-ticker :is(a, button, [tabindex]):focus-visible {
  outline: solid 2px var(--ticker-brass);
  outline-offset: -3px;
}

@media (max-width: 650px) {
  .market-ticker-inner {
    width: calc(100% - 24px);
  }

  .market-ticker-label {
    display: grid;
    justify-items: start;
    gap: 4px;
    padding-inline-end: 11px;
  }

  .market-ticker-label > svg {
    display: none;
  }

  .market-ticker-heading {
    font-size: 12px;
  }

  .market-ticker-sample {
    border: 0;
    padding: 0;
    font-size: 12px;
  }

  .market-ticker-item {
    min-height: 54px;
    gap: 8px;
  }

  .market-ticker-product {
    font-size: 13px;
  }

  .market-ticker-detail {
    font-size: 12px;
  }

  .market-ticker-toggle {
    width: 44px;
    margin-inline-start: 0;
  }
}
