@import "../../../style/mixin";

@include export-module('file-upload-common-service-input-layout') {
  .file-upload-common-service-input {
    min-width: $tp-host-min-width;
    width: $tp-host-width;
    height: 100%;

    .upload-wrapper {
      height: 100%;
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .upload-area {
      height: 100%;
      width: 100%;
      cursor: pointer;
    }

    .file-selected {
      margin-left: $tp-file-selected-margin-horizontal;
      margin-right: $tp-file-selected-margin-horizontal;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .file-info {
        display: flex;
        flex-direction: column;
        gap: $tp-file-info-gap;
      }

      .reset-file {
        cursor: pointer;
        width: $tp-reset-file-size;
        height: $tp-reset-file-size;

        co-icon {
          height: 100%;
          width: 100%;
        }
      }

      .upload-status {
        align-self: flex-start;
        margin-top: $tp-upload-status-margin-top;
      }
    }

    .upload-progress {
      display: flex;
      align-items: center;
      gap: $tp-upload-progress-gap;
      margin-top: $tp-upload-progress-margin-top;
      margin-left: $tp-upload-progress-margin-horizontal;
      margin-right: $tp-upload-progress-margin-horizontal;

      .progress-container {
        width: $tp-progress-container-width;
        height: $tp-progress-container-height;
        overflow: hidden;
      }

      .progress-bar {
        height: 100%;
        width: 0;
      }
    }

    .requirements-info {
      display: flex;
      justify-content: space-between;
      margin: $tp-requirements-info-margin $tp-requirements-info-margin 0 $tp-requirements-info-margin;
    }
  }
}
