body {
  background-color: #fffefc;
}
.ais-SearchBox-form {
  background-color: transparent !important;
  height: 50px !important;
}
.ais-SearchBox-input {
  border-radius: 6px !important;
  color: #141617;
  font-size: 18px;
  outline: none;  
}

.header_title {
  overflow: hidden; 
  text-overflow: ellipsis;
  white-space: nowrap;
}

.component_group {
  background-color: rgb(255, 255, 255);
  box-shadow: rgba(99, 127, 151, 0.2) 0px 1px 2px;
  border: 1px solid rgb(202, 211, 218);
  border-radius: 3px;
  height: 50px;
  overflow-wrap:break-word;
  overflow: hidden;
  box-sizing: border-box; 
  display: inline-block;
  width: 100%;
  margin-top: -5px;
}
.component_group_child {
  background-color: rgb(255, 255, 255);
  box-shadow: rgba(99, 127, 151, 0.2) 0px 1px 2px;
  border: 1px solid rgb(202, 211, 218);
  border-radius: 3px;
  height: 50px;
  overflow-wrap:break-word;
  overflow: hidden;
  box-sizing: border-box; 
  display: inline-block;
  width: 100%;
  margin-top: -5px;
  margin-left: 5px;
}
.component_group_child_child {
  background-color: rgb(255, 255, 255);
  box-shadow: rgba(99, 127, 151, 0.2) 0px 1px 2px;
  border: 1px solid rgb(202, 211, 218);
  border-radius: 3px;
  height: 50px;
  overflow-wrap:break-word;
  overflow: hidden;
  box-sizing: border-box; 
  display: inline-block;
  width: 100%;
  padding-left: 5px !important;
  margin-top: -5px;
  margin-left: 10px;
}

.component_group p {
  overflow: hidden; 
  text-overflow: ellipsis;
  white-space: nowrap;
}
.component_group_child p {
  overflow: hidden; 
  text-overflow: ellipsis;
  white-space: nowrap;
}
.component_group_child_child p {
  overflow: hidden; 
  text-overflow: ellipsis;
  white-space: nowrap;
}
.component_group_title {
  padding: 10px 5px 5px 10px !important;  
}
.active {
  background-color: #dce1e5;
}

.component_group:hover {
  background-color: #dce1e5;
}

.component_group:active {
  background-color: #dce1e5;
}

.hitbox.component {
  background-image: url(/wp-content/uploads/2023/06/icon_substance_front.png);
  /* background-image: url(https://farmakologiportalen.no/wp-content/uploads/2023/06/icon_substance_front.png); */
  background-repeat: no-repeat;
  background-position: 5px 5px;
  padding: 15px 10px 10px 50px;
  font-size: 16px;
  color: #F8805C;
}

.hitbox.component a { 
  text-decoration: none !important;
  color: #006cba !important;
}

.header {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0.5rem 1rem;
  background-image: linear-gradient(284deg, #fedd4e, #fcb43a);
  color: #fff;
  margin-bottom: 1rem;
}

.header a {
  color: #fff;
  text-decoration: none;
}

.header-title {
  font-size: 1.2rem;
  font-weight: normal;
}

.header-title::after {
  content: ' ▸ ';
  padding: 0 0.5rem;
}

.header-subtitle {
  font-size: 1.2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.search-panel {
  display: flex;
}

.search-panel__filters {
  flex: 1;
  padding-right: 2rem;
}

.search-panel__results {
  flex: 3;
}

#searchbox {
  margin-bottom: 1rem;
}

#pagination {
  /* margin: 2rem auto; */
  text-align: center;
}

.custom-checkbox {
  background-color: #fff;
  background-position: 50%;
  background-size: 180%;
  border: 1px solid currentcolor;
  border-radius: 3px;
  box-shadow: inset 0 1px 4px 0 rgb(119 122 175 / 40%);
  color: #d6d6e7;
  cursor: inherit;
  height: 1rem;
  margin: 0 0.5rem 0 0;
  min-width: 1rem;  
  outline: 0;
}

.custom-checkbox {
  background-color: #fff;
  background-position: 50%;
  background-size: 180%;
  border: 1px solid currentcolor;
  border-radius: 3px;
  box-shadow: inset 0 1px 4px 0 rgb(119 122 175 / 40%);
  color: #d6d6e7;
  cursor: inherit;
  height: 1rem;
  margin: 0 0.5rem 0 0;
  min-width: 1rem;  
  outline: 0;
}

@media (min-width: 320px) and (max-width: 480px) {
  .show-more-button {
    margin-top: 5px !important;
  }  
}

@media (min-width: 150px) and (max-width: 767px) {
  .search-left-column {
    float: left;
    width: 100% !important;
  }
  
  .search-right-column {
    float: left;
    width: 100% !important;
  }

  .filter-box {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: #F5F7F8;
    box-shadow: 0 0 0 1px rgb(35 38 59 / 5%), 0 1px 3px 0 rgb(35 38 59 / 15%);
    /* display: -webkit-box;
    display: -ms-flexbox; */
    display: none;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.25rem;
    padding: 1.5rem;
    height:auto;
  }
  .filters {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    align-content: center;
    text-align: center;
    background: #F5F7F8;
    box-shadow: 0 0 0 1px rgb(35 38 59 / 5%), 0 1px 3px 0 rgb(35 38 59 / 15%);
    display: block;
    padding-bottom: 40px;
    padding-top: 5px;
    height:20px;
    cursor: pointer;
    margin-bottom: 20px;
    margin-top: 20px;
  }    

}  
@media (min-width: 767px) {
  .filters {
    display: none;
  }  
  .filter-box {
    display: block;
  }    
}

.search-left-column {
  float: left;
  width: 25%;
}

.search-right-column {
  float: left;
  width: 75%;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
} */


.show-more-button {
  background-color: #00539C;
  color: #fff;
  text-align: center;
  font-family: "Inter", Sans-serif;
  font-size: 13px;
  font-weight: 500;  
  padding: 10px 10px;
  border-radius: 3px;
  float: right !important; 
  margin-top: -25px;
}

.ais-Hits--empty {
  display: none !important;
}

.ais-Hits-item:hover {
  background-color: #F8F4EF !important;
}

.ais-Hits-item {
  height: 50px;
  margin-bottom: 5px !important;
}
.show-more .row{
  margin-left: 1px;
}

.show-more-button:hover {
  background-color: #F8F4EF;
  color: #00539C;
  border: none !important;
}

.white_space_pre_wrap {
  white-space: pre-wrap;
}

.hit-name:hover{
  cursor: pointer;
}