.member-card {
  position: relative;
  margin-bottom: 10px;
  padding: 15px;
  background: $blue-transparent10;
  border-radius: $ac-border-radius;

  &.member-card-admin {
    background: $dark-blue-transparent10;

    .member-card__footer {
      justify-content: flex-end;
    }
  }

  &.member-card-select {
    display: flex;
    background: $blue-transparent10;

    .member-card {
      &__select {
        display: flex;
        flex-wrap: wrap;
        margin-right: 10px;
      }

      &__name {
        max-width: 100%;
      }

      &__email {
        margin-bottom: 0;
      }

      &__footer {
        display: none;
      }
    }
  }

  &__name,
  &__email {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5rem;
    color: $blue-dark;
    margin-bottom: 20px;
    word-break: break-word;
  }

  &__name {
    max-width: 80%;
  }

  &__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  &__date {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5rem;
    margin: 0;
  }

  &__label {
    position: absolute;
    right: 0;
    top: 0;
    display: inline-block;
    padding: 4px 17px;
    border-radius: 0 10px 0 16px;
    background: $blue-dark;
    color: $white;
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 500;
    max-width: max-content;
  }

  &:last-of-type {
    margin-bottom: 0;
  }
}

@include media-breakpoint-up(sm) {
  .member-card {
    &__name {
      max-width: 90%;
    }
  }
}

@include media-breakpoint-up(md) {
  .member-card {
    &__label {
      font-size: .875rem;
      padding: 8px 30px;
    }

    &__footer {
      align-items: flex-end;
    }

    &__name {
      max-width: 85%;
    }

    &__email {
      margin-bottom: 10px;
    }
  }

  &.member-card {
    padding: 20px;
  }
}
