@use "../../wc";

.vs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;

  &__left {
    flex-shrink: 1;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 var(--zn-spacing-small);
  }

  &__icon {
    width: var(--zn-spacing-large);
    height: var(--zn-spacing-large);
    background-color: rgb(var(--zn-input-bg));
    border-width: 1px;
    border-radius: 100%;
  }

  &__line {
    min-height: 50px;
    width: 4px;
    border-width: 1px;
    border-top: none;
    border-bottom: none;
    background-color: rgba(var(--zn-input-bg));
    flex-grow: 1;
  }

  &__right {
    display: flex;
    flex-direction: column;
    gap: var(--zn-spacing-x-small);
    flex-grow: 1;
    margin-bottom: 50px;

    &:last-of-type {
      margin-bottom: 0;
    }
  }

  &__caption {
    font-size: 14px;
    color: rgb(var(--zn-text-heading));
    line-height: 20px;
    font-weight: 600;
  }


  &__description {
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    color: rgb(var(--zn-text));
  }
}

:host([last]) {
  .vs__line {
    display: none;
  }
}

:host([first]) {
  .vs {
    margin-top: 10px;
  }
}

:host([active]) {
  .vs__icon {
    background-color: rgb(var(--zn-primary));
  }

  .vs__line {
    background-color: rgb(var(--zn-primary));
  }
}
