@use "sass:math";

@import '~styles/config';

.transactionListItem {
  display: flex;
  padding: $gutter 0;

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

  &__checkbox {
    @include colorify('color');
    display: flex;
    justify-content: center;
    align-items: center;

    width: 60px;

    cursor: pointer;
  }

  &__transaction {
    margin: 5px 0 15px;
    width: calc(100% - 60px);

    @media (min-width: $min-tablet) {
      display: flex;
      padding: 0 $gutter*0.5;
    }
  }

  &__col {
    display: flex;
    justify-content: space-between;

    margin: 5px 0;

    @media (min-width: $min-tablet) {
      margin: 0;
      width: percentage(math.div(2, 12));

      &.title {
        width: percentage(math.div(3, 12));
      }

      &.SVG {
        width: percentage(math.div(1, 12));
      }

      &.amount {
        justify-content: flex-end;
      }
    }
  }

  &__label {
    @include responsive-font(14, 15);
    font-weight: 300;
    color: $font-color;

    @media (min-width: $min-tablet) {
      display: none;
    }
  }

  &__value {
    .title & {
      @include loadingColorText;
      margin: 0 0 0 5px;
      height: 17px;
      width: 100px;

      @media (min-width: $min-tablet) {
        margin: 0 5px;
      }

      &.color-purple {
        @include loadingColorText($color-purple);
      }
    }

    .SVG & {
      @include loading;
      margin: 0 0 0 5px;
      height: 20px;
      width: 20px;

      @media (min-width: $min-tablet) {
        margin: 0 5px;
      }
    }

    .status & {
      @include loadingTextDefault;
      margin: 0 0 0 5px;
      height: 15px;
      width: 90px;

      @media (min-width: $min-tablet) {
        margin: 0 5px;
      }
    }

    .amount & {
      @include loadingTextDefault;
      margin: 0 0 0 5px;
      height: 17px;
      width: 70px;

      @media (min-width: $min-tablet) {
        margin: 0 5px;
      }
    }

    .total & {
      @include loadingTextDark;
      width: 70px;
    }
  }

  &__svg {
    height: 20px;
    width: 20px;
    cursor: pointer;
  }

  &__edit {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    cursor: pointer;
  }
}
