.search-results-wrapper {
  display: flex;
}

.search-results {
  flex-grow: 1;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
}

.search-view-type.active {
  font-weight: bold;
}

.search-facets {
  flex-basis: 25%;
  flex-shrink: 0;
  order: -1;
  padding: 0 0.5em;
}

.search-facets > ul {
  padding-left: 0;
}

.search-facet {
  display: block;
}

.search-facet > h3 {
  margin-bottom: 0.5em;
}

.search-facet-items {
  padding-left: 1em;
}

.search-facet-item {
  display: block;
}

.search-facet-item a::before {
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  width: 1.5em;
  content: "";
}

.search-facet-item .active a::before {
  content: "\f00c";
}

.resource-list {
  display: flex;
}

.resource-list.list {
  flex-direction: column;
}

.resource-list.grid {
  flex-direction: row;
  flex-wrap: wrap;
}

.resource-list.grid > * {
  flex-basis: 33%;
}

.resource-list.grid .description {
  display: none;
}

.search-form-standard-match-group-items {
  padding-left: 2em;
  margin-top: 0.5em;
}

.search-form-standard-match-group-item {
  margin-bottom: 0.5em;
}

.search-delete-filter {
  width: 45px;
  height: 45px;
}

#save-query-form {
  display: flex;
  flex-direction: column;
  width: fit-content;
}

#saved-queries-table {
  margin-left: 0;
}

.search-form-standard-filter-proximity {
  width: 4em;
}

.search-highlights-section {
  font-size: smaller;
  background-color: rgba(128, 128, 128, 0.1);
  margin: 0.5em 0 0.5em 0;
  padding: 0.5em;
}

.search-highlights-section-comment {
  font-style: italic;
  color: rgba(0, 0, 0, 0.5);
}

.search-highlights {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
  margin-top: 0;
}

.search-highlight-extra {
    display: none;
}
.search-highlights-section-open .search-highlight-extra {
    display: block;
}

.search-highlight q > mark {
  background-color: rgb(253, 231, 200);
  font-weight: 600;
}

.search-highlight-position {
  font-size: smaller;
  font-weight: bolder;
}

.search-highlights-show-more {
    display: inline;
}
.search-highlights-section-open .search-highlights-show-more {
    display: none;
}
.search-highlights-show-less {
    display: none;
}
.search-highlights-section-open .search-highlights-show-less {
    display: inline;
}

#search-form-wrapper {
    margin-bottom: 1em;
}

.search-summary__element {
    background-color: rgb(0 0 0 / 4%);
    border-radius: 3px;
    display: inline-flex;
    font-size: 70%;
    margin-bottom: 2px;
    max-width: 100%;
}

.search-summary__element-name {
    background-color: rgb(0 0 0 / 4%);
    border-radius: 3px 0 0 3px;
    padding: 0 6px;
}

.search-summary__element-value {
    overflow: hidden;
    padding: 0 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
