@use "sass:math";

@import '~styles/config';

.profileListItem {
  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;
  }

  &__profile {
    width: calc(100% - 100px);

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

    &.noSelection {
      width: calc(100% - 40px);
    }

    &.noEdit {
      width: 100%;
    }

    .isDisabled & {
      opacity: 0.4;
    }
  }

  &__subscription {
    display: flex;
    align-items: center;
    margin-bottom: 10px;

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

  &__subscriptionWrapper {
    padding: 0 0 10px 10px;
    @media (min-width: $min-tablet) {
      padding: 0 20px;
    }
  }

  &__title {
    @include loadingColorText;
    height: 20px;
    width: 100px;

    opacity: 0.5;

    @media (min-width: $min-tablet) {
      height: 17px;
    }

    &.profile,
    &.usagePack {
      width: 160px;
    }

    &.profile {
      margin-top: 6px;
      @media (min-width: $min-tablet) {
        margin-top: 0;
      }
    }

    &.usagePack {
      margin-right: 10px;
      @media (max-width: $max-tablet) {
        @include loadingTextDefault;
        height: 16px;
        width: 100px;
      }
    }

    &.total {
      @include loadingTextDark;
    }

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

  &__subtitle {
    @include loadingTextDefault;
    display: block;
    height: 16px;
    width: 100px;

    @media (min-width: $min-tablet) {
      margin-top: 11px;
      height: 14px;
    }

    &.profile {
      margin-top: 9px;
    }

    &.profile,
    &.usagePack {
      width: 100px;

      @media (min-width: $min-tablet) {
        margin-top: 11px;
      }
    }

    &.total {
      margin-top: 10px;
      height: 12px;
    }
  }

  &__usagePacks {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;

    @media (min-width: $min-tablet) {
      flex-wrap: nowrap;
      width: percentage(math.div(4, 12));
    }
  }

  &__usagePack {
    @include responsive-font(15, 18);
    display: flex;
    padding: 0 10px 10px;

    @media (min-width: $min-tablet) {
      flex-direction: column;
      padding: 0 10px;
    }
  }

  &__usageListItems {
    display: flex;
    @media (min-width: $min-tablet) {
      width: percentage(math.div(5, 12));
    }
  }

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

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

  &__totalWrapper {
    display: flex;
    align-items: flex-end;
    flex-direction: column;

    padding: 0 20px 0 10px;
    width: 100%;

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

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

    width: 40px;
    cursor: pointer;
  }

}
