@use '../abstracts' as *;

/* Organism - component yap stepper */
.o-yap-stepper {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;

  &__header {
    display: flex;
    width: 100%;
    flex: 0 0 10%;
    max-height: toRem(70);
  }

  .m-stepper-item-wrapper {
    display: flex;
    align-items: center;

    &.has-step-line {
      flex: 1;
    }
  }

  .m-stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    &.-pointer {
      cursor: pointer;
    }

    &__count {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      background-color: #C2D1D9;
      font-size: toRem(13);
      font-weight: 500;
      color: white;
      border-radius: 50%;

      &.-active {
        background-color: #424B5A;
      }

      &.-complete {
        background-color: #6C7784;
      }
    }

    &__title {
      margin: 0;
      padding-top: toRem(3);
      font-size: toRem(13);
      font-weight: 500;
    }
  }

  .m-stepper-line {
    flex: 1;
    height: toRem(4);
    transform: translateY(-12px);
    background: #d2d2d2;
    border-radius: toRem(10);

    &__percent {
      height: inherit;
      width: 0;

      &.-active {
        background: #424B5A;
        width: 50%;
      }

      &.-complete {
        width: 100%;
        background: #6C7784;
      }
    }
  }

  &__content {
    width: 100%;
    flex: 1 1 90%;
    position: relative;

    yap-step {
      display: none;
      padding: 10px;

      &.active-step {
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        position: absolute;
        bottom: 0;
        top: 0;
        left: 0;
        right: 0;
      }
    }

    .m-btn-group.actions{
      padding-top: toRem(25);
      padding-bottom: toRem(10);
    }
  }
}




