.container {
  margin-bottom: 15px;
  text-align: center;
  max-width: 330px;
  margin-left: auto;
  margin-right: auto;
}

.wrapper {
  margin-bottom: 15px;
}

.header {
  margin-bottom: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;

  & .text {
    display: inline-block;
    margin-left: 4px;
    color: var(--typography-200-with-opacity-50);
    text-align: center;
    font-size: 12px;
    line-height: 120%;
  }

  & > .counter {
    margin-left: 36px;
    padding: 4px 8px;
    border-radius: 50px;
    background: var(--primary-800);
    color: var(--primary-200);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
  }
}

.stepper {
  display: flex;
  flex-direction: row;
  -webkit-box-align: center;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  z-index: 1;
  padding: 0 0 32px !important;
}

.step {
  padding: 0 !important;
  display: flex;
  position: relative;

  &.completed {
    .circle {
      background: var(--primary-300);
      color: var(--typography-800);
    }

    .progress::after {
      font-weight: 700;
      color: var(--typography-100);
    }
  }

  & > .circle {
    background: var(--primary-800);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--typography-300);
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    line-height: 150%;
  }

  .step-label {
    display: flex;
    -webkit-box-align: center;
    align-items: center;

    & > .svg {
      flex-shrink: 0;
      display: flex;
      padding-right: 0;

      & > svg {
        user-select: none;
        fill: currentcolor;
        flex-shrink: 0;
        font-size: 1.5rem;
        display: block;
        transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
        width: 16px;
        height: 16px;
        border-radius: 50%;

        &.completed {
          color: var(--primary-800);
          border: none;
        }
      }
    }
  }
}

.progress {
  position: relative;
  padding: 0 !important;
  background: none !important;
  width: 92px;
  color: rgba(0, 0, 0, 0.87);
  box-shadow: none;
  display: flex;
  flex-direction: row;
  -webkit-box-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  align-items: center;
  transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);

  &::after {
    content: attr(data-label);
    width: 95px;
    position: absolute;
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
    text-align: center;
    font-size: 12px;
    line-height: 150%;
    color: var(--typography-400);
  }

  & > .progress-bar {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    height: 4px;
    background: var(--primary-800);
    z-index: 0;

    & > .progress-bar-fill {
      width: 100%;
      position: absolute;
      left: 0px;
      bottom: 0px;
      top: 0px;
      transition: transform 0.4s linear;
      transform-origin: left center;
      background: var(--primary-300);
    }
  }
}
