// core-file-uploader

.sln-uploader-wallpaper {
  width: 100%;
  border-radius: var(--UPLOADER-RADIUS, 4px);
  background: var(--UPLOADER-BG, transparent);
  border: var(--UPLOADER-BORDER-WIDTH, 0) solid var(--UPLOADER-BORDER-COLOR, transparent);

  button {
    border: none;
    background: transparent;

    img {
      width: var(--UPLOADER-ICON-SIZE, 44px);
      height: var(--UPLOADER-ICON-SIZE, 44px);
      margin-left: 5px;
      cursor: pointer;
    }
  }

  .wrap-control {
    width: 100%;
  }

  .wrap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--UPLOADER-HEADER-GAP, 8px);
    min-height: var(--UPLOADER-HEADER-HEIGHT, 43px);
    padding: 0 var(--UPLOADER-HEADER-PADDING-X, 0);

    &__title {
      flex: 1 1 auto;
      min-width: 0;
    }

    &__actions {
      display: flex;
      align-items: center;
      flex-shrink: 0;
      gap: var(--UPLOADER-ACTIONS-GAP, 0);
      padding: 0;
      background: transparent;
      border: none;

      button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: var(--UPLOADER-HEADER-ACTION-SIZE, auto);
        height: var(--UPLOADER-HEADER-ACTION-SIZE, auto);
        padding: 0;
        border: none;
        border-radius: var(--UPLOADER-HEADER-ACTION-RADIUS, 0);
        background: var(--UPLOADER-HEADER-ACTION-BG, transparent);
        cursor: pointer;
      }
    }

    .control__sln-h3 {
      font-family: var(--font-medium);
      text-transform: var(--UPLOADER-TITLE-TRANSFORM, uppercase);
      font-style: normal;
      font-weight: var(--UPLOADER-TITLE-FONT-WEIGHT, 500);
      font-size: var(--UPLOADER-TITLE-FONT-SIZE, 14px);
      line-height: 1.14;
      margin: 0;
      display: inline-block;
      color: var(--UPLOADER-TITLE-COLOR, inherit);

      .mat-error {
        margin-left: 4px;
        display: contents;
      }
    }

    .control__btn {
      min-width: var(--UPLOADER-CHOOSE-BTN-MIN-WIDTH, auto);
      height: var(--UPLOADER-CHOOSE-BTN-HEIGHT, auto);
      padding: var(--UPLOADER-CHOOSE-BTN-PADDING, 0 12px);
      border-radius: var(--UPLOADER-CHOOSE-BTN-RADIUS, 0);
      border: var(--UPLOADER-CHOOSE-BTN-BORDER, none);
      background: var(--UPLOADER-CHOOSE-BTN-BG, transparent);
      color: var(--UPLOADER-CHOOSE-BTN-COLOR, inherit);
      display: var(--UPLOADER-CHOOSE-BTN-DISPLAY, inline);
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;

      p {
        font-size: var(--UPLOADER-CHOOSE-BTN-FONT-SIZE, 13px);
        font-family: var(--font-medium);
        letter-spacing: 0;
        margin-bottom: 0;
        color: inherit;
        text-transform: var(--UPLOADER-CHOOSE-BTN-TEXT-TRANSFORM, none);
        white-space: nowrap;
      }
    }
  }

  .wrap-body {
    display: flex;
    flex-direction: column;
    gap: var(--UPLOADER-LIST-GAP, 0);
    margin-top: var(--UPLOADER-LIST-MARGIN-TOP, 0);
  }

  .sln-uploader-more-link {
    margin-top: 8px;
    padding: 0;
    font-family: var(--font-medium);
    font-size: 13px;
    color: var(--PRIMARY);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    width: fit-content;
    &:hover {
      text-decoration: underline;
    }
  }

  .action-buttons__flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: auto;
    padding: var(--UPLOADER-LIST-PADDING, 16px);

    .btn {
      border: none;
      background: transparent;
      box-shadow: none;
      padding-right: 0;
      padding-left: 6px;
      text-decoration: none;
      cursor: pointer;
    }

    .control__left {
      flex: 1 1 auto;
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 0;
      position: relative;

      p {
        font-family: var(--UPLOADER-FILE-NAME-FONT, var(--font-bold));
        cursor: pointer;
        color: var(--UPLOADER-FILE-NAME-COLOR, var(--MIDLE-GRAY));
        text-decoration: none;
        font-size: var(--UPLOADER-FILE-NAME-FONT-SIZE, 13px);
        padding: 0;
        margin: 0;
      }
    }

    .control__right {
      display: flex;
      align-items: center;
      flex-shrink: 0;
      gap: var(--UPLOADER-ITEM-ACTIONS-GAP, 6px);
    }
  }
}

.sln-uploader-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--UPLOADER-ACTION-BTN-SIZE, auto);
  height: var(--UPLOADER-ACTION-BTN-SIZE, auto);
  border-radius: var(--UPLOADER-ACTION-BTN-RADIUS, 0);
  background: var(--UPLOADER-ACTION-BTN-BG, transparent);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  margin: 0;

  &--download {
    background-color: var(--UPLOADER-ACTION-DOWNLOAD-BG, var(--UPLOADER-ACTION-BTN-BG, transparent));
  }

  &--remove {
    background-color: var(--UPLOADER-ACTION-REMOVE-BG, var(--UPLOADER-ACTION-BTN-BG, transparent));
  }
}

.sln-clip {
  vertical-align: unset;
}

.uploader-title-th {
  height: 70px !important;
  background-color: #d0d0d0 !important;
  border-bottom: 3px solid var(--ADD-COLOR-2);
  color: var(--DARK-GREY);
}

.uploader-title-thtd {
  font-size: revert;
  text-align: left !important;
  color: #fff !important;
}

.uploader-title-tr {
  height: 36px !important;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
}

.uploader-left-btn {
  float: left;
  margin-left: 0 !important;
  margin-right: 5px;
}

.sln-text-hide {
  position: absolute;
  max-width: 95%;
  left: 15px;

  p {
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.sln-dropzone {
  height: var(--UPLOADER-DROPZONE-HEIGHT, 20vh);
  width: 100%;
  border: var(--UPLOADER-DROPZONE-BORDER, dashed 1px var(--GRAY-SOFT));
  padding: var(--UPLOADER-DROPZONE-PADDING, 10px);
  border-radius: var(--UPLOADER-DROPZONE-RADIUS, 4px);
  background-color: var(--UPLOADER-DROPZONE-BG, var(--WHITE)) !important;
}
