.uppy-uploader {
  & div.img {
    width: 100%;
    flex: 1;
  }

  & img {
    display: block;

    /* This rule is very important, please don't ignore this */
    max-width: 100%;
  }
}

.uppy-field {
  position: relative;
  height: 175px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  .uploader {
    width: 100%;

    & label {
      position: absolute;
      top: 0;
      left: 0;
      margin: 0;
      padding: 0.25rem;
      background-color: white;
      border-bottom: 1px solid var(--border-color);
      border-right: 1px solid var(--border-color);
      border-bottom-right-radius: 0.25rem;
    }

    .uppy-DragDrop--isDragDropSupported {
      border: none;
      border-radius: 0;
    }

    .uppy-DragDrop-inner {
      width: 100%;
    }

    .uppy-DragDrop-label {
      font-size: 1em;
    }

    .uppy-DragDrop-note {
      color: var(--gray-500);
      font-size: 0.875rem;
    }
  }

  .uppy-Root {
    height: 0;

    & button:focus {
      outline: none;
      box-shadow: none;
    }
  }

  .uppy-status-bar {
    background-color: white;
    color: var(--danger-color);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    position: absolute;
    inset: 0;
    padding: 1rem;
    z-index: 1;
  }

  .actions {
    position: absolute;
    top: 0;
    right: 0;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0 0 0 0.25rem;
    display: flex;
    gap: 0;
    background-color: white;
    text-align: center;
    overflow: hidden;

    .btn {
      border: none;
      font-size: 0.75rem;
      padding: 0.25rem;
      border-radius: 0;
      padding-top: 0.1rem;
      padding-bottom: 0.1rem;
    }

    .btn:not(:last-child) {
      border-right: 1px solid var(--border-color);
    }
  }
}

.uppy-field.small {
  width: 300px;
}
