@use '../../_global/styles/mixins' as *;
@use '../../_global/styles/vars' as *;

.progress {
  --color-fg: var(--color-text);
  --color-bg: var(--color-surface-inset);
  --bg-opacity: 1;

  position: relative;
  width: 150px;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  margin: 0 -1;

  @media(max-width: 767px) {
    width: 120px;
    height: 12px;
  }

  &::before {
    content: '';
    @include full-size;
    background-color: var(--color-bg);
    opacity: var(--bg-opacity);
  }

  .bar {
    position: absolute;
    display: block;
    height: 100%;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    background-color: var(--color-fg);
  }
}
