.#{$ns}Cell-img-wrapper {
  // line-height: calc(var(--tableHeight, 36px) - 2px);
  height: 100%;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: normal;
  text-overflow: ellipsis;
  text-align: center;
  text-align: left;

  &>img {
    width: 28px;
    height: 28px;

    @media screen and (min-width:1280px) and (max-width:1440px) {
      width: 20px;
      height: 20px;
    }

    @media screen and (min-width:1441px) and (max-width:1680px) {
      width: 25px;
      height: 25px;
    }

    cursor: pointer;
    object-fit: cover;

    &:not(:first-child) {
      margin-left: 4px;
    }
  }
}

.table-media-format-popover {
  padding-top: 5px;
  z-index: 1000;

  .amis-scope {
    background: none;

    .ant-popover-inner-content {
      padding: 0;
    }
  }

  .ant-popover-arrow {
    display: none;
  }

  .ant-popover-inner-content {
    padding: 0 !important;
  }
}

.mediaPopoverContent {
  width: 250px;

  .topAction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    height: 36px;

    .actionTitle {
      color: #2A3E61;
      font-size: 14px;
      font-weight: bold;
    }

    .afterActionWrapper {
      color: #2A87EB;
      font-size: 12px;
      cursor: pointer;
    }
  }

  .bottomBorder {
    border-bottom: 1px solid #E2E6ED;
  }

  .centerContent {
    height: 124px;

    &::-webkit-scrollbar {
      width: 0;
    }
  }

  .bottomAction {
    border-top: 1px solid #E2E6ED;
    height: 60px;
    display: flex;

    .actionItem {
      height: 100%;
      flex: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      cursor: pointer;

      .actionItemName {
        margin-top: 4px;
        font-size: 12px;
        color: #2A3E61;
      }
    }

    .actionDisabled {
      opacity: 0.5;
    }
  }

  .allImgContent {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
    padding-left: 13px;
    padding-top: 4px;
    overflow-x: hidden;
    overflow-y: auto;

    .commonBorder {
      border: 1px solid #E2E6ED;
    }

    .singleImgWrapper {
      height: 110px;
      width: calc(100% - 13px);
    }

    .doubleImgWrapper {
      height: 110px;
      width: 110px;

      &:nth-child(2) {
        margin-left: 4px;
      }
    }

    .mostImgWrapper {
      height: 72px;
      width: 72px;
      margin-bottom: 4px;

      &:not(:nth-child(3n)) {
        margin-right: 4px;
      }
    }

    img {
      height: 100%;
      width: 100%;
      cursor: pointer;
      object-fit: cover;
    }
  }

  .fileListWarp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    padding-right: 5px;

    .fileNameWarp {
      min-width: 40px;
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .popoverContentScrollBar {
    &::-webkit-scrollbar {
      width: 13px;
      height: 0;
    }

    &::-webkit-scrollbar-thumb {
      background-color: #D2D6DE;
      background-clip: content-box;
      border-width: 0 3px 0 3px;
      border-style: solid;
      border-color: #FFFFFF;
    }
  }

  .MediaSelectedWrapper_common {
    position: relative;

    .selectCheckBox {
      display: none;
      position: absolute;
      top: 2px;
      left: 2px;
      line-height: 16px;

      .ant-checkbox-inner {
        border-radius: 50%;
      }

      .ant-checkbox-checked::after {
        display: none;
      }
    }

    &:hover {
      .selectCheckBox {
        display: unset;
      }

      border: 1px solid #2A87EB !important;
    }
  }

  .MediaSelectedWrapper_selected {
    .selectCheckBox {
      display: unset;
    }

    border: 1px solid #2A87EB !important;
  }

}

.#{$ns}Cell-img-wrapper-isImage {
  max-width: 200px;
  font-size: 13px;
  background-color: var(--saas-form-table-cell-img-color);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  width: auto;
  padding-left: 4px;
  cursor: pointer;

  .#{$ns}Cell-img-wrapper-content {
    display: flex;
    flex: 1;
    overflow: hidden;

    .textfile_icon {
      width: 13px;
      margin-right: 2px;
    }

    .text {
      flex: 1;
      overflow: hidden;
      word-wrap: normal;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .item-select-tag-btn {
    width: 20px;
  }

}
