@use "sass:math";

@import '~styles/config';

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

  padding: $gutter 0;

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

  font-family: $font-heading;

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

    line-height: 30px;

    &.level1 {
      font-weight: 600;
    }

    &.level2 {
      padding-left: 10px;
      @media (min-width: $min-tablet) {
        padding-left: 30px;
      }
    }

    &.level3 {
      padding-left: 10px;
      color: $color-grey500;
      @media (min-width: $min-tablet) {
        padding-left: 45px;
      }
    }
  }

  &__label {
    @include grid-col(percentage(math.div(6, 12)));

    .level3 &::before {
      content: '-';
      margin-right: 5px;
    }
  }

  &__count {
    @include grid-col(percentage(math.div(3, 12)));
    text-align: right;
    white-space: nowrap;
  }

  &__amount {
    @include grid-col(percentage(math.div(3, 12)));
    text-align: right;
    white-space: nowrap;
  }
}
