@use '../../theme/styles' as theme;

.wr-counter {
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--wr-color-dark);

  &__odo {
    display: inline-flex;
    align-items: flex-start;
    line-height: 1;
    white-space: nowrap;
  }

  &__static {
    display: inline-block;
    height: 1em;
    line-height: 1;
  }

  &__digit {
    position: relative;
    display: inline-block;
    width: 1ch;
    height: 1em;
    overflow: hidden;
    vertical-align: top;
  }

  &__strip {
    display: block;
    will-change: transform;
    transition: transform 60ms linear;

    > span {
      display: block;
      height: 1em;
      line-height: 1;
      text-align: center;
    }
  }
}
