/* write style here */
.yw-file {
  border-radius: 6px;
  font-family: PingFangSC-Regular;
  font-size: 14px;
  font-weight: normal;
  background-color: #fff;
  width: 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  .action {
    cursor: pointer;
    width: 16px;
  }
  .action:not(:only-child) {
    cursor: pointer;
    margin-left: 8px;
  }
  &-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
  }
  &-uploading {
    opacity: 0.6;
  }

  &-border {
    border: 1px solid #eeeeee;
    padding: 8px;
  }
  &-error {
    border-color: #ff4d4f;
    color: #ff4d4f;
  }
  &-name {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
  }
  &-type-icon {
    width: 24px;
    height: 30px;
    margin-right: 8px;
  }

  &-options {
    width: 64px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
  }
  &:hover {
    .yw-file-options {
      opacity: 1;
    }
  }
}
:global {
  .ant-upload-list-text-container:not(:only-child) {
    .yw-file-container {
      margin-bottom: 12px;
    }
  }
  .ant-upload-list-text-container:last-child {
    .yw-file-container {
      margin-bottom: 0px;
    }
  }
}
