/* Motion controls for the updates carousel. Included by the homepage integration. */
.updates-progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: #dfece2;
}

.updates-progress[hidden],
.updates-controls [data-slide-toggle][hidden],
.updates-controls > div[hidden] {
  display: none;
}

.updates-progress span[data-slide-progress] {
  display: block;
  width: var(--updates-progress, 0%);
  height: 100%;
  background: #2b8543;
}

.updates-controls {
  flex-wrap: wrap;
}

.updates-controls button[data-slide-toggle] {
  width: auto;
  min-width: 104px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
}

@media (max-width: 520px) {
  .updates-controls > span {
    flex: 1 1 100%;
  }

  .updates-controls button[data-slide-toggle] {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .updates-progress span[data-slide-progress] {
    transition: none;
  }
}
