@use "sass:math";

@import '~styles/config';

.summaryListItemLoading {
  display: flex;
  flex-direction: column;

  padding: $gutter 0;

  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: $color-grey100;

  &__line {
    @include grid-row;
    justify-content: space-between;

    padding-top: 10px;
    padding-bottom: 10px;

    &.level1 {
      font-weight: 600;
    }

    &.level3 {
      color: $color-grey500;
    }
  }

  &__text {
    @include loadingTextDefault;
    height: 16px;
    width: 90px;

    .level1 & {
      @include loadingTextDark;
    }
  }

  &__label {
    @include grid-col(percentage(math.div(8, 12)));
    height: 16px;

    @media (min-width: $min-tablet) {
      @include grid-col(percentage(math.div(6, 12)));
    }
  }

  &__label &__text {
    width: 180px;
  }

  &__count {
    @include grid-col(percentage(math.div(4, 12)));
    height: 16px;

    @media (min-width: $min-tablet) {
      @include grid-col(percentage(math.div(3, 12)));
    }
  }

  &__amount {
    @include grid-col;
    margin-top: 15px;
    height: 16px;

    @media (min-width: $min-tablet) {
      @include grid-col(percentage(math.div(3, 12)));
      margin-top: 0;
      text-align: right;
    }
  }
}
