/* Sökformulär */
.gre-top-searchbox-wrapper {
   position: relative;
   max-width: 30em;

   margin-bottom: var(--env-spacing-medium);
      }

.gre-top-searchbox__input {
   font-size: 0.9em;
   padding: 0.5em 3.5em 0.5em 0.5em;
   box-sizing: border-box;
   border: 1px solid #b3b3b3;
   border-radius: 2px;
   width: 100%;

   /*font-size: .875rem;*/
   font-size: 1rem;
   /*padding: 0.375rem 2.5rem 0.375rem .75rem*/
   padding: 0.5rem 2.5rem 0.5rem 0.75rem;
   min-height: 2.5rem;
}

header .gre-top-searchbox__input {
    line-height: 1.375;
 }

@media (min-width: 768px) {
   .gre-top-searchbox__input {
      min-width: 17.5rem;
   }
}
@media (min-width: 992px) {
   .gre-top-searchbox__input {
      min-width: 20rem;
   }
}

.gre-top-searchbox__button {
   position: absolute;
   right: 0;
   top: 50%;
   border: none;
   margin: 0;
   padding: 0.5em 1em;
   background: transparent;
   transform: translate(0, -50%);
   cursor: pointer;

   border: 1px solid transparent;
   padding: 0.5rem 0.75rem;
   line-height: 1.375;
}

.gre-search-form-hide {
   display: none;
}

.gre-top-searchbox-mobile {
   background-color: transparent;
   border: none;
   padding: 0.5em 0em;
   cursor: pointer;
   min-width: 4em;
   text-align: center;
}

.gre-top-searchbox-wrapper.gre-mobile {
   /*margin: 0;
   top: 0;
   border-left: solid 7em #fff;*/
   margin: 0 auto;
}

.gre-searchbox-mobile-box {
   background-color: #fff;
   padding: 1.5rem 1rem 0rem 1rem;
   display: none;
}

.gre-searchbox-mobile-box.display {
   display: block;
}

/* Info */
.gre-search-info {
   margin-bottom: 1em;
}

/* Sökträffar */
.gre-search-result {
   max-width: 44em;
}

.gre-search-result .gre-search-result__path-text {
   margin-top: 0.5em;
   border-top: 1px solid #cbcbcb;
   padding-top: 0.5em;
   display: block;
}

.sv-search-hit {
   margin-bottom: 2em;
}

.gre-search-info-container ul {
   display: inline-block;
   list-style: none;
   padding: 0;
   margin: 0;
}

.gre-search-info-container li {
   font-weight: bold;
   display: inline-block;
}

.gre-search-summary {
   margin-bottom: 0.5em;
}

/* Taggar */
.gre-search-tags {
   list-style: none;
   padding: 0;
}

.gre-search-tags li {
   display: inline-block;
   color: #fff;
   font-size: 0.8rem;
   padding: 0.1rem 0.7rem;
   background-color: #275468;
   border-radius: 3px;
   margin-right: 0.5em;
}

.gre-search-tag-icon {
   height: 5px;
   width: 5px;
   background-color: #fff;
   border-radius: 50%;
   display: inline-block;
   margin-right: 0.5em;
   transform: translate(0, -50%);
}

/* Publikationer */
.gre-search-hit-container {
   padding: 1rem;
   border: 1px solid rgb(0 0 0 / 15%);
   transition: 0.2s;
   position: relative;
   background: #fdfcfa;
}
.gre-search-hit-container:hover {
   box-shadow: 0 2px 20px rgb(0 0 0 / 20%);
}
.gre-search-hit-container:hover a {
   text-decoration: underline;
}
.gre-search-hit-container a:before {
   content: "";
   position: absolute;
   left: 0;
   top: 0;
   right: 0;
   bottom: 0;
   width: 100%;
   height: 100%;
   cursor: pointer;
   z-index: 1;
}
.gre-search-hit-container ol > li {
   position: relative;
}

.gre-search-hit-container button {
   position: relative;
   z-index: 2;
}

/* Filter */
.gre-search-facet-desktop-heading {
   display: block;
}

.gre-search-facet-accordion-button {
   display: none;
   width: 100%;
   text-align: left;
   border: none;
   margin: 0;
   padding: 0;
   cursor: pointer;
   border-bottom: 1px solid #808080;
   background-color: #fff;
}
.gre-search-facet-accordion-button[aria-expanded="true"] {
   background-color: #ded8c2;
}

.gre-search-facet-accordion-button:hover {
   background-color: #e4eff4;
}

@media screen and (max-width: 575px) {
   .gre-search-facet-desktop-heading {
      display: none;
   }

   .gre-search-facet-accordion-button {
      display: block;
   }
}

.gre-search-facet-accordion-button-heading {
   display: flex;
}

.gre-search-facet-accordion-button-text {
   flex-grow: 1;
}

.gre-search-facet-accordion-button-icon {
   margin: 3px 0.5em 0 0.5em;
}

.gre-search-facet-accordion-content {
   /* display: none; */
}

.sv-search-facet {
   margin-bottom: 2em;
}

.sv-search-facet-name {
   margin: 0 0 0.75rem 0 !important;
}

.sv-search-facet-item {
   margin-bottom: 0.5em;
}

.gre-search-facet-icon {
   margin: 0 0.5em 4px 0;
   font-size: 130%;
   vertical-align: bottom;
}

/* Filtersida */
.gre-search-hit-content {
   display: flex;
   margin-top: 1em;
}

.gre-search-hit-image {
   margin-right: 1em;
   margin-top: 1em;
}

.gre-search-hit-image img {
   width: 100%;
}
.gre-search-hit-wide-image {
   border-radius: 4px;
}

@media screen and (min-width: 575px) {
   .gre-search-hit-wide-image {
      position: relative;
      overflow-x: hidden;
      height: 175px;
      width: 100%;
      min-width: 175px;
      margin-right: 1em;
   }

   .gre-search-hit-wide-image img {
      position: absolute;
      right: 50%;
      transform: translateX(50%);
      height: 100%;
      width: 100%;
      object-fit: cover;
   }
}

@media screen and (max-width: 575px) {
   .gre-search-hit-content {
      display: block;
   }

   .gre-search-hit-image img {
      width: 75%;
   }

   .gre-search-hit-wide-image img {
      width: 100%;
   }
}
