.igloo-upload-preview {
  display: flex;
  align-items: center;

  .igloo-upload-prevew-icon {
    cursor: pointer;
    width: 24px;
    height: 24px;
    margin-left: 8px;
  }
}

.igloo-upload-preview-modal {
  position: relative;

  & &-button {
    position: absolute;
    width: 24px;
    height: 44px;
    padding: 0;
    border: none !important;
    background: rgba(33, 33, 33, 0.3);
    color: #fff;

    &:hover {
      background: rgba(33, 33, 33, 0.6);
      color: #fff;
    }

    &[disabled] {
      background: rgba(33, 33, 33, 0.1);
      opacity: 1;
      color: #fff;

      &:hover {
        background: rgba(33, 33, 33, 0.1);
        color: #fff;
      }
    }

    &-left {
      top: 50%;
      left: 0;
      transform: translateY(-50%);
    }

    &-right {
      top: 50%;
      right: 0;
      transform: translateY(-50%);
    }
  }
}

.igloo-upload-preview-container {
  display: flex;
  justify-content: center;
  margin: auto;
  max-width: max-content;
  max-height: calc(~'100vh' - 308px);
  overflow: auto;

  .igloo-upload-preview-content {
    max-width: 100%;
  }

  .igloo-upload-preview-pdf {
    width: 100%;
    text-align: center;
  }
}

.igloo-upload-prevew-not-supported {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 386px;

  .igloo-upload-prevew-not-supported-icon {
    font-size: 64px;
    color: #bdbdbd;
  }

  .igloo-upload-prevew-not-supported-text {
    margin-top: 16px;
    color: @hint-color;
  }
}

@media screen and (max-width: 768px) {
  .igloo-upload-preview-container {
    max-height: calc(~'100vh' - 208px);
  }

  .igloo-upload-prevew-not-supported {
    height: 145px;

    .igloo-upload-prevew-not-supported-icon {
      font-size: 40px;
    }

    .igloo-upload-prevew-not-supported-text {
      margin-top: 8px;
    }
  }
}
