.file {
    position: relative;
    display: inline-block;
    cursor: pointer;
    height: 2.5rem;
    width: 100%;
  }
  
  .file input {
    width: 100%;
    margin: 0;
    opacity: 0;
  }
  
  .file-custom {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5;
    height: 2rem;
    padding: .5rem 1rem 0 1rem;
    line-height: 1.5;
    color: #5a5a5b;
    background-color: #fff;
    border: .075rem solid #e0e1e2;
    border-radius: .25rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .file-custom:after {
    content: var(--text);
    -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
      padding: .6rem 1rem .5rem 0;
  }
  
  .file-custom:before {
    background-image:url('/templates/default//images/camera.svg');
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 1rem 0.6rem;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    top: -.075rem;
    right: -.075rem;
    bottom: -.075rem;
    z-index: 6;
    display: block;
    content: var(--button);
    padding: .6rem 1rem .5rem 2.5rem;
    line-height: 1.5;
    color: #5a5a5b;
    background-color: #e0e1e2;
    border: .075rem solid #e0e1e2;
    border-radius: 0 .25rem .25rem 0;
  }
  
  .file-custom:hover:before {
    border: .075rem solid #c9c9cc;
    background-color: #c9c9cc;
  }
  .file-custom:hover {
    border: .075rem solid #c9c9cc;
  }