
  .searchForm {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    justify-content: flex-start;
  }
  
  #allPurchasedBooks .searchForm .primaryButton {
    margin-left: 1em;
    margin-top: 0em;
  }
  
  #searchFilters {
    margin-bottom: 1em;
    padding: 1em;
  }
  
  #searchFilters {
    position: absolute;
    top: 7em;
    bottom: 0;
    left: 0;
    width: 80vw;

    box-sizing: border-box;
    
    border: 0.05em solid #ebe0e0;
    background-color: #fff;
    z-index: 100;
    overflow-y: scroll;
  }
  
  #searchFilters .closeButtonCont {
    position: inherit;
    top: 0em;
    
    display: flex;
    width: calc(80vw - 3em);
    padding-top: 1em;
    background: var(--colour-bg-light);
  }
  
  #searchFilters #closeButton {
    display: block;
    margin-left: auto;
    margin-top: 0.5em;
    position: sticky;
    top: 0em;
  }
  
  #searchFilters #closeButton::before {
    content: "";
    margin-right: 0.5rem;
    mask-image: var(--icon-fa-chevron-left);
    width: 0.625em;
    color: #000;
  }
  
  #searchFilters .searchBar input {
    width: 10em;
  }
  
  #searchFilters .searchBar button[type=submit] {
    margin: 0em;
  }
  
  #formHeader {
    margin-bottom: 0.5em;
  }
  
  #formHeader > .secondaryButton {
    margin: 0em 0em 0em auto;
  }
  
  .filterOptions > input[name=search_string] {
    width: 100%;
  }
  
  .filterOptions > fieldset {
    margin-top: 1.5em;
  }
  
  .filterOptions > fieldset.longList > div {
    max-height: 12em;
    overflow-y: scroll;
  }
  
  .filterOptions > fieldset:last-child > label > input {
    margin-right: 0.5em;
  }
  
  .filterOptions label:hover {
    cursor: pointer;
  }
  
  .filterOptions > fieldset:last-child > label {
    flex-flow: row nowrap;
  }
  
  .filterOptions > fieldset > legend {
    font-weight: bold;
  }
  
  .filterOptions .secondaryButton {
    margin-top: 0.5em;
  }
  
  .filterOptions .applyBtn {
    margin: 0.5em 1em 0em 0em;
    padding: 0.2em 1em;
  }
  
  .filterOptions label {
    font-size: 0.9em;
    margin-top: 0.2em;
  }
  
  #clearAllBtn {
    padding: 0.2em 1em;
  }
  
  .clearBtn {
    color: var(--colour-main-blue);
  }
  
  .clearBtn:hover {
    cursor: pointer;
  }
  
  #filterChoices {
    flex: 0 0 100%;
  }
  
  .filterChoice {
    margin: 0em 0.5em 1em 0em;
    border: 1px solid var(--colour-border-color);
    border-radius: 0.3em;
    background: var(--colour-light-grey2);
  }
  
  .filterChoice span:first-of-type {
    display: inline-block;
    padding: 0.5em;
    border-right: 1px solid var(--colour-border-color);
  }
  
  .filterChoice .closeIcon::after {
    content: "";
    mask-image: var(--icon-fa-xmark);
    width: 0.75em;
    padding: 0.5em;
  }

  @media screen and (min-width: 768px) {
    #filterDropdown form {
      flex-flow: row wrap;
      justify-content: space-between;
    }
    
    #filterDropdown form fieldset {
      flex: 0 0 calc(100%/4 - 1em);
    }
    
    #filterDropdown form .searchBar {
      flex-basis: 100%;
    }
    
    #filterDropdown form #formHeader {
      flex-basis: 100%;
    }
  }
 
