.ComponentList {
  h1 {
    margin: 0;
    margin-bottom: 3px;
    font-weight: bold;
  }

  &__component {
    position: relative;
    margin-bottom: 20px;
    padding-left: 10px;

    &--even {
      padding-right: 10px;
      padding-left: 0;
    }
  }

  &__component-wrapper {
    display: flex;
    padding: 16px;
    background: $color-light-grey-background;
    box-shadow: 0 1px 1px rgba(51, 51, 51, .18);
  }

  &__component-image-wrapper {
    width: 170px;
    height: 170px;
    overflow: hidden;
    @media (max-width: 1200px) {
      width: 100px;
      height: 100px;
    }

    & > img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  &__install-actions {
    text-align: center;
  }

  &__buttons-container {
    display: flex;
    max-height: 24px;

    & > div {
      margin-right: 10px;
    }
  }

  &__component-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(100% - 170px);
    min-height: 170px;
    padding-left: 10px;

    @media (max-width: 1200px) {
      width: calc(100% - 100px);
    }

    h1 {
      font-family: Open Sans;
      font-size: 18px;
      font-style: normal;
      font-weight: 600;
      line-height: 25px;
    }
  }

  &__component-category {
    color: $color-ecr-component-date;
    font-family: Open Sans;
    font-size: 14px;
    font-style: normal;
    font-weight: normal;
    line-height: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  &__component-footer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: solid 1px $color-grey-border;
    vertical-align: middle;

    & > div {
      display: flex;
    }
  }

  &__failed-state {
    display: flex;
    align-items: center;
    margin-left: 10px;
    //sass-lint:disable no-misspelled-properties
    gap: 20px;
  }

  &__image-placeholder {
    width: 100%;
    height: 100px;
  }

  &__date {
    display: block;
    margin-bottom: 8px;
    color: $color-ecr-component-date;
    font-size: 14px;
    font-weight: bold;
    line-height: normal;
  }

  &__version-container {
    display: flex;
  }

  &__version {
    display: block;
    margin-bottom: 8px;
    color: $color-ecr-component-dark-grey;
    font-size: 14px;
    font-weight: bold;
    line-height: normal;
  }

  &__show-install-plan {
    padding: 0;
    font-weight: bold;

    &:hover {
      text-decoration: none;
    }
  }

  &__status {
    display: block;
    border: 1px solid $color-ecr-component-installed-button-border;
    background-color: $color-ecr-component-installed-button;
    color: $color-white;
    font-family: Open Sans;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: center;
    box-sizing: border-box;
  }

  &__status-caution {
    background-color: $color-ecr-component-inprogress-button;
    color: $color-black;
  }

  &__status-danger {
    border: 0;
    background-color: $color-white;
    color: $color-ecr-error-text;
  }

  &__description {
    padding-top: 5px;
    color: $color-ecr-component-text-grey;
    font-family: Open Sans;
    font-size: 12px;
    line-height: 20px;
  }

  //sass-lint:disable class-name-format nesting-depth
  .progress {
    height: 24px;
    margin-bottom: 0;

    .progress-bar {
      padding: 2px 12px;
    }
  }
}

.ComponentListListView {
  & .ComponentList__list-item {
    padding: 16px;
    background: $color-light-grey-background;
    box-shadow: 0 1px 1px rgba(51, 51, 51, .18);
  }

  & .ComponentList__list-item + .ComponentList__list-item {
    margin-top: 10px;
  }

  & .ComponentList__install-actions {
    display: flex;
    width: 100%;
    height: 100%;
  }
}

.ComponentListGridView {
  display: flex;
  flex-direction: column;
  align-items: center;

  @media (min-width: 992px) {
    flex-direction: row;
    align-items: normal;
  }

  @media (max-width: 1536px) {
    .ComponentList__component-footer {
      flex-direction: column;

      .ComponentListInstallButtons {
        flex: 1;

        //sass-lint:disable class-name-format nesting-depth
        .btn-group {
          display: flex;
        }
      }

      .btn:first-child {
        flex: 1;
        max-width: 220px;
      }
      //sass-lint:enable class-name-format nesting-depth
    }
  }
}

//sass-lint:disable class-name-format
.progress-bar {
  height: 24px;
  min-height: 24px;
  padding-right: 20px;
  padding-left: 20px;
  line-height: 24px;
}

.progress {
  height: 24px;
  min-height: 24px;
  line-height: 24px
}
