@import '~@cainiaofe/cn-ui-m-theme/token.px';
$class-prefix: 'cn-ui-m';

.#{$class-prefix}-list-pro-item {
  min-height: $m-s-48;
  height: 100%;
  position: relative;
  overflow: hidden;
  padding: 0 $m-s-12;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  &--normal {
    &:not(:last-child) {
      border-bottom: $m-s-1 solid $m-color-bg-disabled;
    }
  }
  &--card {
    border: $m-s-1 solid $m-color-bg;
    border-radius: $m-s-8;
    background-color: $m-color-bg-white;
  }
  &__middile-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  &__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: $m-s-48;
    padding: $m-s-12 0;
    box-sizing: border-box;
    &--image--top {
      min-height: $m-s-6;
      padding: 0 0 $m-s-2;
    }
    &--check {
      margin-right: $m-s-10;
    }
    &--avatar {
      height: 100%;
      margin-right: $m-s-12;
      &--top {
        text-align: center;
        height: auto;
        margin: 0 calc(#{$m-s-14} * -1) $m-s-8;
        > .cn-format-array-view2
          > .cn-format-array-view2-content
          > .cn-format-array-view2-item {
          flex: 1;
          display: flex;
          justify-content: center;
        }
      }
    }
    &--details {
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    &--title {
      color: $m-color-text;
      font-size: $m-font-size-body-1;
      .cn-format-array-view2-content {
        gap: $m-s-4;
      }
    }
    &--description {
      color: $m-color-text-tip;
      font-size: $m-font-size-caption;
      margin-top: $m-s-4;
      width: 100%;
      .lc-container {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: $m-s-4;
        margin-bottom: $m-s-4;
        &:last-child {
          margin-bottom: 0;
        }
        .cn-format-array-view2 {
          width: 100%;
          //margin-bottom: $m-s-4;
          &:last-child {
            margin-bottom: 0;
          }
          .cn-format-array-view2-content {
            display: flex;
          }
        }
      }
      .cn-format-array-view2-content {
        gap: $m-s-4;
      }
    }

    &--actions {
      margin-left: $m-s-12;
      .cn-format-array-view2-content {
        gap: $m-s-4;
      }
    }
  }
  &__extra {
    margin-bottom: $m-s-12;
  }
  &--disabled {
    opacity: 0.3;
  }
  &__bottom-area {
    border-top: solid $m-s-1 $m-color-bg;
    padding: $m-s-8 0;
  }
}
