@use "_theme.scss";

.pdf-viewer-upload-document-btn {
  width: 100%;
  display: flex;
  justify-content: center;

  &.replace-file {
    @media (max-width: theme.$md) {
      margin-bottom: initial;
      padding: 0 20px;
    }
    .button {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6px 30px;
      height: 35px;

      @media (max-width: theme.$md) {
        height: 40px;
        width: 100%;
      }
    }
  }

  .button-primary {
    padding: 8px 10px 10px;
    max-width: 270px;
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;

    @media (max-height: 620px) {
      padding: 3px 30px;
      margin-top: 10px;
    }

    @media (max-width: theme.$md) {
      margin-top: 20px;
    }

    &:hover {
      cursor: pointer;
    }
  }

  .fileInput {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  &:focus-within .button {
    outline: 2px solid var(--dark);
    outline-offset: 2px;
  }
}
