.tip {
  margin: 5px 0;
  line-height: 23px;
}

.button {
  background: var(--button-gradient);
  border-color: var(--primary-color);
  &:hover,
  &:focus {
    background:var(--button-gradient);
    border-color: var(--primary-color);
    /* opacity: 0.8; */
  }
}

.uploader {
  :global(.el-upload) {
    display: flex;
    text-align: left;
    position: relative;
  }
  :global(.el-upload-list__item.is-success .el-upload-list__item-name:focus),
  :global(.el-upload-list__item.is-success .el-upload-list__item-name:hover) {
    color: var(--primary-color);
  }
}

.box {
  width: 120px;
  height: 120px;
  position: relative;
  box-sizing: border-box;
  margin-right: 20px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

.loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(83, 235, 85, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  color: #fff;
  font-size: 14px;
  z-index: 10;
  transition: opacity 0.3s ease;
  cursor: pointer;
  .loading:not(:global(.slide-fade-enter-active)),
  .loading:not(:global(.slide-fade-leave-active)) {
    transition: unset;
    animation: loading 5s infinite ease-in-out; 
  }
}


.image {
  width: 120px;
  height: 120px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.svg {
  /* .empty {
    border-style: solid;
      &:global(.el-icon-plus:before) {
      display: none;
    }
  }

  .button {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translate(0, -50%);
    z-index: -1;
  } */
}

.empty {
  width: 120px;
  height: 120px;
  margin-right: 20px;
  border: 1px dashed #d8dce6;
  padding: 2px;
  overflow: hidden;
  border-radius: 4px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  &:global(.el-icon-plus:before) {
    font-size: 40px !important;
  }

  &:hover{
    border-color: var(--primary-color);
    color: var(--primary-color);
  }
}

:global(.el-form-item.is-error.is-required) {
  .empty { 
    border-color: #F56C6C;
    color: #F56C6C;
  }
}

:global(.dir--rtl) {
  .box {
    margin-right: 0;
    margin-left: 20px;
  }
}
