@use '@zywave/zui-base-styles/src/variables' as *;

:host {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0;
  color: transparent;
  animation: indicator 250ms ease-in-out forwards;
  transition: width 100ms ease-in-out, font-size 100ms ease-in-out, color 50ms ease-in-out, margin 100ms ease-in-out;

  @media (min-width: $bp-xs) {
    margin-bottom: 30px;
  }

  @media (min-width: $bp-s) {
    justify-content: space-around;
    box-shadow: none;
    font-size: inherit;
    color: inherit;
  }

  .sub-text {
    display: block;
    font-size: 0;
    font-style: italic;
    color: var(--zui-gray-300);

    @media (min-width: $bp-s) {
      font-size: rem(12);
    }
  }

  ::slotted(zui-step-flow-indicator-item:first-of-type) {
    &::before {
      content: none;
    }
  }

  ::slotted(zui-step-flow-indicator-item:last-of-type) {
    &::after {
      content: none;
    }
  }
}

:host(.hide) {
  display: none;
}

:host([orientation='vertical']) {
  width: calc(24px + 15px);
  flex-direction: column;
  flex-grow: 0;
  justify-content: flex-start;
  margin-top: 30px;
  margin-bottom: 0;

  @media (min-width: $bp-s) {
    width: 200px;
  }
}
