/* #ifdef harmony */
/* #endif */
/* #ifndef harmony */
/* #endif */
.nut-progress {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}
.nut-progress-outer {
  flex: auto;
  border-radius: var(--nutui-progress-border-radius, 12px);
  height: var(--nutui-progress-height, 10px);
  background: var(--nutui-progress-background, var(--nutui-color-background, #f2f3f5));
}
.nut-progress-outer .nut-progress-active:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--nutui-progress-border-radius, 12px);
  animation: progressActive 2s ease-in-out infinite;
}
.nut-progress-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.4s;
  border-radius: var(--nutui-progress-border-radius, 12px);
  background: var(--nutui-progress-color, linear-gradient(135deg, var(--nutui-color-primary-stop-1, #ff475d) 0%, var(--nutui-color-primary-stop-2, #ff0f23) 100%));
}
.nut-progress-text {
  display: flex;
  align-items: center;
  position: absolute;
  top: var(--nutui-progress-text-position-top, -4px);
  bottom: var(--nutui-progress-text-position-bottom, -4px);
  transition: all 0.4s;
  transform: translate(-50%);
}
.nut-progress-text-inner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  color: var(--nutui-progress-text-color, #ffffff);
  padding: var(--nutui-progress-text-padding, 0 5px);
  border-radius: var(--nutui-progress-text-border-radius, 5px);
  font-size: var(--nutui-progress-text-font-size, 9px);
  line-height: 1;
  background: var(--nutui-progress-text-background, linear-gradient(135deg, var(--nutui-color-primary-stop-1, #ff475d) 0%, var(--nutui-color-primary-stop-2, #ff0f23) 100%));
}
@keyframes progressActive {
  0% {
    background: rgba(255, 255, 255, 0.1);
    width: 0;
  }
  20% {
    background: rgba(255, 255, 255, 0.5);
    width: 0;
  }
  to {
    background: rgba(255, 255, 255, 0);
    width: 100%;
  }
}

[dir=rtl] .nut-progress-text,
.nut-rtl .nut-progress-text {
  transform: translate(50%);
}

.nut-uploader {
  position: relative;
  display: flex;
  flex-wrap: wrap;
}
.nut-uploader-slot {
  position: relative;
}
.nut-uploader-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nutui-uploader-background, var(--nutui-color-background, #f2f3f5));
  width: var(--nutui-uploader-image-width, 100px);
  height: var(--nutui-uploader-image-height, 100px);
  border: var(--nutui-uploader-image-border, 0px);
  border-radius: var(--nutui-uploader-image-border-radius, 4px);
}
.nut-uploader-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--nutui-uploader-image-color, var(--nutui-color-text-help, #888b94));
}
.nut-uploader-icon i,
.nut-uploader-icon .nut-icon {
  color: var(--nutui-uploader-image-color, var(--nutui-color-text-help, #888b94));
  margin-bottom: var(--nutui-uploader-image-icon-margin-bottom, 6px);
}
.nut-uploader-icon-tip {
  font-size: var(--nutui-uploader-image-icon-tip-font-size, 12px);
}
.nut-uploader-input {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
}
.nut-uploader-input:disabled {
  cursor: not-allowed;
}
.nut-uploader-upload-disabled {
  background: var(--nutui-uploader-background-disabled, var(--nutui-color-background, #f2f3f5));
  color: var(--nutui-uploader-image-disabled, var(--nutui-color-text-disabled, #c2c4cc));
}
.nut-uploader-upload-disabled .nut-uploader-icon i,
.nut-uploader-upload-disabled .nut-uploader-icon .nut-icon {
  color: var(--nutui-uploader-image-disabled, var(--nutui-color-text-disabled, #c2c4cc));
  margin-bottom: var(--nutui-uploader-image-icon-margin-bottom, 6px);
}
.nut-uploader-preview {
  position: relative;
  margin-right: var(--nutui-uploader-preview-margin-right, 10px);
  margin-bottom: var(--nutui-uploader-preview-margin-bottom, 10px);
  border-radius: var(--nutui-uploader-image-border-radius, 4px);
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
}
.nut-uploader-preview-progress {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--nutui-uploader-preview-progress-background, var(--nutui-color-mask, rgba(0, 0, 0, 0.7)));
  border-radius: var(--nutui-uploader-image-border-radius, 4px);
}
.nut-uploader-preview-progress i {
  margin-bottom: var(--nutui-uploader-image-icon-margin-bottom, 6px);
}
.nut-uploader-preview-progress-msg {
  color: var(--nutui-color-text-help, #888b94);
  font-size: 12px;
}
.nut-uploader-preview.list {
  width: 100%;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-top: 10px;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.01);
}
.nut-uploader-preview-list {
  width: 100%;
  height: 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background-color: var(--nutui-color-background-sunken, #f7f8fc);
}
.nut-uploader-preview-list .nut-uploader-preview-img-file-name {
  display: flex;
  align-items: center;
  -webkit-line-clamp: 1;
  padding: 2px;
  height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nut-uploader-preview-list .nut-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.nut-uploader-preview-list .nut-progress .nut-progress-outer {
  height: 2px !important;
}
.nut-uploader-preview .close {
  position: absolute;
  right: var(--nutui-uploader-preview-close-right, 0px);
  top: var(--nutui-uploader-preview-close-top, 0px);
  transform: translate(50%, -50%);
  z-index: 1;
}
.nut-uploader-preview-img {
  position: relative;
  width: var(--nutui-uploader-image-width, 100px);
  height: var(--nutui-uploader-image-height, 100px);
  border-radius: var(--nutui-uploader-image-border-radius, 4px);
  overflow: hidden;
}
.nut-uploader-preview-img i {
  color: var(--nutui-color-title, #1a1a1a);
}
.nut-uploader-preview-img .tips {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 12px;
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;
  height: var(--nutui-uploader-preview-tips-height, 24px);
  line-height: var(--nutui-uploader-preview-tips-height, 24px);
  border-radius: var(--nutui-uploader-image-border-radius, 4px);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding: var(--nutui-uploader-preview-tips-padding, 0 5px);
  background: var(--nutui-uploader-preview-tips-background, var(--nutui-black-7));
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nut-uploader-preview-img-c {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: initial;
  border-radius: var(--nutui-uploader-image-border-radius, 4px);
}
.nut-uploader-preview-img-file {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.nut-uploader-preview-img-file-name {
  display: flex;
  width: 90%;
  font-size: 12px;
  color: var(--nutui-color-text, #505259);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-all;
}
.nut-uploader-preview-img-file-name.error {
  color: red !important;
}
.nut-uploader-preview-img-file-name.success {
  color: #1890ff !important;
}
.nut-uploader-preview-img-file-name .nut-icon-Link {
  flex-shrink: 0;
}

[dir=rtl] .nut-uploader-input,
.nut-rtl .nut-uploader-input {
  left: auto;
  right: 0;
}
[dir=rtl] .nut-uploader-preview,
.nut-rtl .nut-uploader-preview {
  margin-right: 0;
  margin-left: var(--nutui-uploader-preview-margin-right, 10px);
}
[dir=rtl] .nut-uploader-preview-progress,
.nut-rtl .nut-uploader-preview-progress {
  left: auto;
  right: 0;
}
[dir=rtl] .nut-uploader-preview.list,
.nut-rtl .nut-uploader-preview.list {
  margin-right: 0;
  margin-left: 0px;
}
[dir=rtl] .nut-uploader-preview .close,
.nut-rtl .nut-uploader-preview .close {
  right: auto;
  left: var(--nutui-uploader-preview-close-right, 0px);
  transform: translate(-50%, -50%);
}
[dir=rtl] .nut-uploader-preview-img .tips,
.nut-rtl .nut-uploader-preview-img .tips {
  left: auto;
  right: 0;
}