

/*
=========================================================
SEARCH CSS
=========================================================
 * Innehåller styling av modulen Sök och Sök Facetterad
 * som är modifierad med exempelvis SVG-ikon
 *
 * Copyright (C) Limepark AB.
 * https://limepark.se/licensvillkor
=========================================================*/
/*
---------------------------------------------------------
VARIABLER
--------------------------------------------------------- */
.lp-search {
  --lp-font-size-medium: clamp(1.8rem, 2.2vw, 2.2rem);
  --lp-font-size-small: clamp(1.6rem,1.8vw,1.8rem);
  --lp-spacing: 3.5rem;
  --lp-spacing-small: calc(var(--lp-spacing) * 0.75);
  --lp-spacing-x-small: calc(var(--lp-spacing) * 0.5);
}

/*
---------------------------------------------------------
SÖK + Sök facetterad
--------------------------------------------------------- */

/* Ny facettsök */

.lp-search-hits {
  display: flex;
  margin-top: 2rem;
}

/* Nytt sökresultat */

.lp-search-result,
.lp-search .sv-facetedsearch-portlet form {
  width: 65.81196581196582%;
}

.lp-search-result__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Sortering + */

.lp-search-details {
  align-items: baseline;
  display: flex;
  margin: var(--lp-spacing-x-small) 0 var(--lp-spacing);
  width: 65.81196581196582%;

  flex-wrap: wrap;
  justify-content: space-between;
}

.lp-search-details .lp-search-hit-count,
.lp-search-details .lp-search-sort {
  font-size: var(--lp-font-size-small);
}
   
/* Nollar marginal */
p.lp-search-sort__name,
.lp-search-details .lp-search-hit-count {
 margin-bottom: 0;
}

.lp-search-sort {
  align-items: baseline;
  display: flex;
}

p.lp-search-sort__name {
  margin-top: 0.4em;
}

.lp-search-sort__options {
  display: flex;
  list-style-type: none;
  margin: 0.4em 0 0;
  padding: 0;
}

.lp-search-sort__option {
  margin: 0 0 0 1rem;
}

.lp-search-sort__option--selected {
  font-weight: bold;
}

/* Nya facetter */

.lp-search-facets {
  display: grid;
  margin-bottom: var(--lp-spacing-small);
  margin-left: 3rem;
  width: 31.62393162393162%;

  gap: 0 var(--lp-spacing-small);
  grid-auto-rows: max-content;
  grid-template-columns: repeat(auto-fit,minmax(34rem, 1fr));
  order: 2;
}

.lp-search-facet p.normal {
  font-size: var(--lp-font-size-small);
  margin: 0;

  flex-grow: 1;
}
   
h2.lp-search-facet__name {
  font-size: 1.6rem;
  font-weight: bold;
  font-family: "playfair display", georgia, serif;
  line-height: 140%;
}

.lp-search-facet__items {
  align-items: center;
  background-color: #fff;
  display: flex;
  margin: 0;

  flex-wrap: wrap;
  gap: 1rem;
}

.lp-search-facet--has-selected .sv-search-facet-item {
  display: none;
}

.lp-search-facet--has-selected .sv-search-facet-item-selected {
  display: block;

  flex: 1 1 auto;
}

.lp-search-facet.lp-search-facet--has-selected .sv-search-facet-item-selected a {
  display: flex;

  justify-content: space-between;
}

.lp-search-facet.lp-search-facet--has-selected .sv-search-facet-item-selected a:after {
    background-color: #fff;
    content: '';
    display: inline-block;
    height: 1.2em;
    margin-bottom: -0.2em;
    margin-left: .3em;
    width: 1.2em;
    -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%2032%2032\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23000\'%3E%3Cpath%20%20d%3D%22M16%203C8.832%203%203%208.832%203%2016s5.832%2013%2013%2013%2013-5.832%2013-13S23.168%203%2016%203zm0%202c6.087%200%2011%204.913%2011%2011s-4.913%2011-11%2011S5%2022.087%205%2016%209.913%205%2016%205zm-3.781%205.781L10.78%2012.22%2014.562%2016l-3.78%203.781%201.437%201.438L16%2017.437l3.781%203.782%201.438-1.438L17.437%2016l3.782-3.781-1.438-1.438L16%2014.562l-3.781-3.78z%22%2F%3E%3C%2Fsvg%3E');
    mask-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%2032%2032\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23000\'%3E%3Cpath%20%20d%3D%22M16%203C8.832%203%203%208.832%203%2016s5.832%2013%2013%2013%2013-5.832%2013-13S23.168%203%2016%203zm0%202c6.087%200%2011%204.913%2011%2011s-4.913%2011-11%2011S5%2022.087%205%2016%209.913%205%2016%205zm-3.781%205.781L10.78%2012.22%2014.562%2016l-3.78%203.781%201.437%201.438L16%2017.437l3.781%203.782%201.438-1.438L17.437%2016l3.782-3.781-1.438-1.438L16%2014.562l-3.781-3.78z%22%2F%3E%3C%2Fsvg%3E');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.lp-search-facet .lp-search-facet__items a {
  align-items: center;
  background-color: #faf5e6;
  border: 1px solid #faf5e6;
  color: #333;
  display: inline-flex;
  font-size: 1.3rem;
  padding: 0.4em 0.8em 0.5em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lp-search-facet .lp-search-facet__items a:hover,
.lp-search-facet .lp-search-facet__items a:focus,
.lp-search-facet .lp-search-facet__item--selected a {
  background-color: #d19700;
  border-color: #d19700;
  color: #fff;
}
.lp-search-facet .lp-search-facet__items a:hover .lp-icon,
.lp-search-facet .lp-search-facet__items a:focus .lp-icon,
.lp-search-facet .lp-search-facet__item--selected a .lp-icon {
  color: #fff;
}

.lp-search-facet .lp-search-facet__items span {
  background-color: #ededed;
  color: #333;
  display: inline-block;
  font-size: var(--lp-font-size-x-small);
  padding: 0.5rem 1rem;
}

.lp-search-facet__items.lp-expandable-content__content .lp-search-facet__item--selected a:after {
  background-color: #fff;
  content: '';
  height: 1.2em;
  margin: 0 0 -0.1em 0.5em;
  width: 1.2em;

  -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%2032%2032\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23000\'%3E%3Cpath%20%20d%3D%22M16%203C8.832%203%203%208.832%203%2016s5.832%2013%2013%2013%2013-5.832%2013-13S23.168%203%2016%203zm0%202c6.087%200%2011%204.913%2011%2011s-4.913%2011-11%2011S5%2022.087%205%2016%209.913%205%2016%205zm-3.781%205.781L10.78%2012.22%2014.562%2016l-3.78%203.781%201.437%201.438L16%2017.437l3.781%203.782%201.438-1.438L17.437%2016l3.782-3.781-1.438-1.438L16%2014.562l-3.781-3.78z%22%2F%3E%3C%2Fsvg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%2032%2032\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23000\'%3E%3Cpath%20%20d%3D%22M16%203C8.832%203%203%208.832%203%2016s5.832%2013%2013%2013%2013-5.832%2013-13S23.168%203%2016%203zm0%202c6.087%200%2011%204.913%2011%2011s-4.913%2011-11%2011S5%2022.087%205%2016%209.913%205%2016%205zm-3.781%205.781L10.78%2012.22%2014.562%2016l-3.78%203.781%201.437%201.438L16%2017.437l3.781%203.782%201.438-1.438L17.437%2016l3.782-3.781-1.438-1.438L16%2014.562l-3.781-3.78z%22%2F%3E%3C%2Fsvg%3E');
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
   
.lp-search-facet:not(:has(*)) {
  display: none;
}

/* Sökformulär och knapp*/
.lp-search form div {
  display: flex;
  flex-direction: row;
}

.lp-search input[type='search'] {
  background-color: #fff;
  border: 1px solid rgba(0,0,0,0.418);
  border-radius: 8px;
  box-sizing: border-box;
  font-size: var(--lp-font-size-small);
  margin: 0; /* Fix för extra margin i Safari*/
  outline: 0;
  padding: 1rem 2rem;

  -webkit-appearance: none;
  appearance: none;
}

.lp-search input[type='search']::-webkit-search-cancel-button {
  background-color: #333;
  height: 1.2em;
  margin-right: -0.5rem;
  opacity: 0;
  transition: all 0.3s ease;
  width: 1.2em;

  -webkit-appearance: none;
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%2032%2032\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23000\'%3E%3Cpath%20%20d%3D%22M16%203C8.832%203%203%208.832%203%2016s5.832%2013%2013%2013%2013-5.832%2013-13S23.168%203%2016%203zm0%202c6.087%200%2011%204.913%2011%2011s-4.913%2011-11%2011S5%2022.087%205%2016%209.913%205%2016%205zm-3.781%205.781L10.78%2012.22%2014.562%2016l-3.78%203.781%201.437%201.438L16%2017.437l3.781%203.782%201.438-1.438L17.437%2016l3.782-3.781-1.438-1.438L16%2014.562l-3.781-3.78z%22%2F%3E%3C%2Fsvg%3E');
  /* background: var(--lp-icon-lp-close-circle) no-repeat 50% 50%; */
  mask-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%2032%2032\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23000\'%3E%3Cpath%20%20d%3D%22M16%203C8.832%203%203%208.832%203%2016s5.832%2013%2013%2013%2013-5.832%2013-13S23.168%203%2016%203zm0%202c6.087%200%2011%204.913%2011%2011s-4.913%2011-11%2011S5%2022.087%205%2016%209.913%205%2016%205zm-3.781%205.781L10.78%2012.22%2014.562%2016l-3.78%203.781%201.437%201.438L16%2017.437l3.781%203.782%201.438-1.438L17.437%2016l3.782-3.781-1.438-1.438L16%2014.562l-3.781-3.78z%22%2F%3E%3C%2Fsvg%3E');
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
}

.lp-search input[type='search']:focus::-webkit-search-cancel-button {
  color: #000;
  cursor: pointer;
  opacity: 1;

  pointer-events: all;
}

.lp-search input[type='submit'],
.lp-search form button {
  background-color: #d19700;
  border: 1px solid #d19700;
  border-radius: 0 8px 8px 0;
  margin: 0 0 0 -1px;
  padding: 0 1.5rem;
  transition: all 0.3s ease;
}

.lp-search input[type='submit']:hover,
.lp-search form button:hover, 
.lp-search input[type='submit']:focus,
.lp-search form button:focus {
  background-color: #d19700;
}

.lp-search form button .lp-icon {
  color: #fff;
  fill: #fff;
  transition: all ease 0.3s;
}
   
.lp-search input[type='submit']:hover .lp-icon,
.lp-search form button:hover .lp-icon, 
.lp-search input[type='submit']:focus .lp-icon,
.lp-search form button:focus .lp-icon {
  transform: scale(1.2);
}

.lp-search form button:focus-visible {
  background-color: #d19700;
  box-shadow: inset 0 0 0 calc(2px * 2) #fff;
  outline-offset: calc(-1 * 2px);
}

/* Sökresultat */
.lp-search .sv-search-result > li {
  padding: var(--lp-spacing-small) !important;
}
   
.lp-search .sv-search-result > li:last-child {
  margin-bottom: var(--lp-spacing-small);
}

.lp-search .sv-search-result li div:last-child span:last-child a:first-child {
  display: none;
}

.lp-search .sv-search-result li h2.subheading,
.lp-search .sv-search-result li span.subheading {
  font-size: var(--lp-font-size-medium);
  line-height: 1.2;
  margin: 0 1rem 0 0;
}

.sv-search-result > li > div:first-child {
  align-items: center;
  display: flex;

  flex-wrap: wrap;
}

.sv-search-result > li > div > img {
  margin-right: 0.8rem;
}

.lp-search .sv-search-result a.subheading {
  font-size: var(--lp-font-size-medium);
}
   
.lp-search-result__items span.lp-content-type {
  background: #fff;
  border-radius: 4px;
  border: 1px solid #d19700;
  color: #000;
  display: inline-block;
  font-size: 1.4rem;
  padding: .1rem .4rem;
 }

   
/* Brödsmula för sökresultat */
.lp-search-result__item__path {
  align-items: center;
  display: flex;
  list-style: none;
  margin: 0 0 var(--lp-spacing-small);
  padding: 0;
  position: relative;
  z-index: 1;

  flex-wrap: wrap;
}
   
.lp-search-result__item__path li {
   padding: 0 !important;
   border-bottom: 0;
}

.lp-search-result__item__path {
  margin-bottom: 0;
  margin-top: 0.4rem;
}

.lp-search-result__item__path a {
  display: inline-block;
  /* margin-right: 0.8rem;
  padding-right: 1.2em; */
  text-decoration: underline;
  transition: var(--lp-transition-default);

  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.lp-search-result__item__path a:after,
.lp-search-result__item__path > a:nth-child(2):before {
  background-color: #000;
  content: '';
  display: inline-block;
  height: 0.9em;
  margin: 0 0.2em -0.1em;
  opacity: 0.8;
  /* margin-right: -1.2em; */
  width: 0.9em;

  -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%207%2015\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23777\'%3E%3Cg%20%20id%3D%22done%22%20opacity%3D%22.802%22%3E%3Cg%20id%3D%22Start-niv%C3%A5-1%22%20transform%3D%22translate(-112%20-148)%22%3E%3Cpath%20id%3D%22Startsida%2FR%C3%A5d%26amp%3Bst%C3%B6d%22%20d%3D%22M113.88%20162.56l4.272-13.92h-.96l-4.272%2013.92z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%207%2015\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23777\'%3E%3Cg%20%20id%3D%22done%22%20opacity%3D%22.802%22%3E%3Cg%20id%3D%22Start-niv%C3%A5-1%22%20transform%3D%22translate(-112%20-148)%22%3E%3Cpath%20id%3D%22Startsida%2FR%C3%A5d%26amp%3Bst%C3%B6d%22%20d%3D%22M113.88%20162.56l4.272-13.92h-.96l-4.272%2013.92z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E');
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.lp-search-result__item__path > a:nth-child(2):before {
  margin-left: -0.4rem;
  margin-right: 0.8rem;
}

.lp-search-result__item__path > a:last-child:after {
  content: none;
}

.lp-search-result__item__path a:hover {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}   

/* Döljer "föregående" och "nästa" i pagineringen när det inte är någon länk utan bara disabled-knappar */

.lp-search .pagination span.next.current,
.lp-search .pagination span.prev.current {
  display: none;
}

/* Nollställ filtrering */

.lp-search-details {
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 1.5rem 2rem;
  position: relative;

  isolation: isolate;
}

.lp-search-details p,
.lp-search-details .lp-search-sort__options {
  margin-top: 0;
}

.lp-search-details .lp-search-hit-count {
  margin-top: 0 !important;
}

.lp-search-details:after {
  background-color: #faf5e6;
  content: '';
  display: block;
  position: absolute;
  z-index: -1;

  inset: 0;
}

p.lp-search__reset-filters {
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;

  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

p.lp-search__reset-filters span:first-child {
  min-width: min(35rem, 100%);

  flex: 1 1 1px;
}

p.lp-search__reset-filters a:after {
  background-color: #333;
  content: '';
  display: inline-block;
  height: 1.2em;
  margin-bottom: -0.2em;
  margin-left: 0.3em;
  width: 1.2em;

  -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%2032%2032\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23000\'%3E%3Cpath%20%20d%3D%22M16%203C8.832%203%203%208.832%203%2016s5.832%2013%2013%2013%2013-5.832%2013-13S23.168%203%2016%203zm0%202c6.087%200%2011%204.913%2011%2011s-4.913%2011-11%2011S5%2022.087%205%2016%209.913%205%2016%205zm-3.781%205.781L10.78%2012.22%2014.562%2016l-3.78%203.781%201.437%201.438L16%2017.437l3.781%203.782%201.438-1.438L17.437%2016l3.782-3.781-1.438-1.438L16%2014.562l-3.781-3.78z%22%2F%3E%3C%2Fsvg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%2032%2032\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23000\'%3E%3Cpath%20%20d%3D%22M16%203C8.832%203%203%208.832%203%2016s5.832%2013%2013%2013%2013-5.832%2013-13S23.168%203%2016%203zm0%202c6.087%200%2011%204.913%2011%2011s-4.913%2011-11%2011S5%2022.087%205%2016%209.913%205%2016%205zm-3.781%205.781L10.78%2012.22%2014.562%2016l-3.78%203.781%201.437%201.438L16%2017.437l3.781%203.782%201.438-1.438L17.437%2016l3.782-3.781-1.438-1.438L16%2014.562l-3.781-3.78z%22%2F%3E%3C%2Fsvg%3E');
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/*
---------------------------------------------------------
EXPANDERBART INNEHÅLL
--------------------------------------------------------- */

.lp-expandable-content {
  margin: var(--lp-spacing) 0;
}

.sv-edit-mode .lp-expandable-content > *:nth-child(odd),
.lp-expandable-content__wrap .lp-expandable-content__toggler {
  padding: var(--lp-spacing-small);
}

.sv-edit-mode .lp-expandable-content > *:nth-child(even),
.lp-expandable-content__content {
  padding: var(--lp-spacing-small);
}

/* ModulavstÃĨnd i innehÃĨllsytor (ej textmoduler) */
.lp-expandable-content__content > .sv-portlet,
.sv-edit-mode .lp-expandable-content > *:nth-child(even) > .sv-portlet {
  margin-bottom: var(--lp-spacing);
}

/*
---------------------------------------------------------
WRAP
--------------------------------------------------------- */

.sv-edit-mode .lp-expandable-content > *:nth-child(odd),
.sv-edit-mode .lp-expandable-content > *:nth-child(even),
.lp-expandable-content__wrap {
  border: 1px solid #d19700;
  border-radius: 8px;
}

.sv-edit-mode .lp-expandable-content > *:nth-child(odd),
.lp-expandable-content__wrap {
  background-color: #fff;
  margin-bottom: var(--lp-spacing-x-small);
  overflow: hidden;
}

.sv-edit-mode .lp-expandable-content > *:nth-child(even) {
  margin-bottom: var(--lp-spacing-x-small);
}

.sv-edit-mode .lp-expandable-content > *:nth-child(odd) {
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.sv-edit-mode .lp-expandable-content > *:nth-child(even) {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/*
---------------------------------------------------------
QUESTION/BUTTON
--------------------------------------------------------- */

.lp-expandable-content__wrap .lp-expandable-content__toggler {
  border: 0;
  cursor: pointer;
}

.sv-edit-mode .lp-expandable-content > *:nth-child(odd),
.lp-expandable-content__wrap .lp-expandable-content__toggler {
  background-color: transparent;
  box-sizing: border-box;
  font-weight: 700;
  margin-bottom: 0;
  text-align: left;
  width: 100%;
}

.lp-expandable-content__wrap .lp-expandable-content__toggler {
  align-items: center;
  display: flex;
}

.lp-expandable-content__wrap .lp-expandable-content__toggler {
  color: inherit;
}

.sv-edit-mode .lp-expandable-content > *:nth-child(odd) .subheading,
.sv-edit-mode .lp-expandable-content > *:nth-child(odd) .heading3,
.sv-edit-mode .lp-expandable-content > *:nth-child(odd) .heading4,
.sv-edit-mode .lp-expandable-content > *:nth-child(odd) .normal,
.lp-expandable-content__toggler .subheading,
.lp-expandable-content__toggler .normal,
.lp-expandable-content__toggler .heading3,
.lp-expandable-content__toggler .heading4 {
  color: #333;
  font-size: var(--lp-font-size-small);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0 !important;
}

.lp-expandable-content__toggler > .sv-text-portlet {
  flex-grow: 1;
}

.lp-expandable-content__toggler > .lp-toggler-icon {
  color: #333;
  font-size: 1em;
  margin-left: 1.5em;

  flex-shrink: 0;
  order: 1;
  pointer-events: none;
}

.lp-search-facet .lp-expandable-content__toggler .lp-icon {
  fill: #333;
}


/*
---------------------------------------------------------
ANSWER
--------------------------------------------------------- */

.sv-edit-mode .lp-expandable-content > *:nth-child(even),
.lp-expandable-content__content {
  background-color: transparent;
}

.lp-expandable-content__content .sv-portlet {
  margin: 0 0 var(--lp-spacing);
}

/* Ingen marginal under sista modulen */

.lp-expandable-content__content > .sv-text-portlet-content:last-child p.normal:last-child,
.lp-expandable-content__content > .sv-text-portlet:last-child > .sv-text-portlet-content > p.normal:last-child,
.lp-expandable-content__content .sv-portlet:last-child,
.sv-edit-mode .lp-expandable-content > *:nth-child(even) > .sv-portlet:last-child,
.sv-edit-mode .lp-expandable-content > *:nth-child(even) > .sv-text-portlet:last-child .sv-text-portlet-content > p.normal:last-child,
.sv-edit-mode .lp-expandable-content > *:nth-child(even) > .sv-text-portlet-content > p.normal:last-child {
  margin-bottom: 0;
}

/*
---------------------------------------------------------
STATES
--------------------------------------------------------- */

.lp-expandable-content__wrap .lp-expandable-content__toggler:hover,
.lp-expandable-content__wrap .lp-expandable-content__toggler:focus {
  text-decoration: underline;
}

/* Closed/Opened */
.lp-expandable-content__toggler[aria-expanded='false'] .lp-toggler-icon--close {
  display: none;
}

.lp-expandable-content__toggler[aria-expanded='true'] .lp-toggler-icon--open {
  display: none;
}

/* Aktiv */

.lp-expandable-content__wrap .lp-expandable-content__toggler {
  position: relative;
  z-index: 1;

  isolation: isolate;
}

.lp-expandable-content__wrap .lp-expandable-content__toggler:after {
  background-color: #d19700;
  bottom: 0;
  content: '';
  display: block;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.lp-expandable-content__wrap .lp-expandable-content__toggler.lp-expandable-content--is-open:after,
.lp-expandable-content__wrap .lp-expandable-content__toggler[aria-expanded='true']:after,
.lp-expandable-content__wrap .lp-expandable-content__toggler:hover:after,
.lp-expandable-content__wrap .lp-expandable-content__toggler:focus:after {
  opacity: 0.1;
}

.lp-search-facet .lp-expandable-content__toggler:hover {
  background-color: transparent;
  transition: all 0.3s ease;
}

.lp-search-facet .lp-expandable-content__toggler:focus {
  background-color: transparent;
}
   
   
   
/*
---------------------------------------------------------
SÖK 2024
--------------------------------------------------------- */
   
@media screen and (max-width: 900px) {
   
   .lp-search-hits {
      flex-direction: column;
   }
   
  .lp-search {
  --lp-spacing: 2rem;
   }

  .lp-search .sv-facetedsearch-portlet form,
  .lp-search-details {
  width: 100%;
  }

  .lp-search-facets {
  margin-left: 0;
  width: 100%;

  order: 1;
  gap: 1rem;
  }

.lp-search-result {
  width: 100%;

  order: 2;
  }

  .sv-edit-mode .lp-expandable-content > *:nth-child(odd), 
  .lp-expandable-content__wrap {
     margin: 0;
  }
     
}
   
/* MARKERING AV SÖKORD*/
mark {
   background-color: #D19700;
}
