
/* Custom formulär / forms */
.sv-form-portlet form {
  background: #f2f2f2;
  padding: 1.5em;
}


/* Kommentar används som TITLE */
.sv-form-comment-field {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.sv-formFieldRow:first-of-type .sv-form-comment-field {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}



.sv-defaultFormTheme input[type=text], .sv-defaultFormTheme input[type=email], .sv-defaultFormTheme input[type=url], .sv-defaultFormTheme input[type=tel], .sv-defaultFormTheme input[type=number], .sv-defaultFormTheme textarea, .sv-defaultFormTheme select {
   border: 1px solid #ccc;
   padding: 10px;
   border-radius: 0;
   box-shadow: none;
   height: auto;
   box-sizing: border-box;
}
.sv-defaultFormTheme input[type=button], .sv-defaultFormTheme input[type=submit], .sv-defaultFormTheme input[type=reset] {
   padding: 1em 3em;
   max-width: 450px;
   line-height: 30px;
   border-radius: 100px;
   font-size: 16px;
   text-decoration: none;
   color: #0064a3!important;
   background-color: #fff;
   font-family: Poppins;
   cursor: pointer;
   box-shadow: 0 8px 24px 0 rgba(0,0,0,0.16);
   transition: background-color .25s ease;
   font-weight: 600;
   border: 0;
   display: block;
   margin: 2em auto 0;
}

.sv-defaultFormTheme input[type=button]:hover, .sv-defaultFormTheme input[type=submit]:hover, .sv-defaultFormTheme input[type=reset]:hover {
   color: #fff!important;
   background-color: #0064a3;
   box-shadow: 0 8px 24px 0 rgba(0,0,0,0.16);
}
.sv-field-title-container {
   text-align: left;
}
.sv-defaultFormTheme input[type="checkbox"], .sv-defaultFormTheme input[type="radio"] {
   position: absolute;
   visibility: hidden;
}

.sv-defaultFormTheme input[type="checkbox"]:checked + label:after, .sv-defaultFormTheme input[type="radio"]:checked + label:after {
   font-family: fontawesome;
   content: "\f00c";
}


.sv-defaultFormTheme .sv-form-singleselectionfield label, .sv-defaultFormTheme .sv-form-multipleselectionfield label {
   padding-left: 0px;
   text-align: left;
   float: left;
   height: 35px;
   line-height: 31px;
}

.sv-defaultFormTheme .sv-form-singleselectionfield label:after, .sv-defaultFormTheme .sv-form-multipleselectionfield label:after {
   content: "";
   position: relative;
   float: left;
   left: 0px;
   top: 5px;
   width: 20px;
   height: 20px;
   line-height: 20px;
   text-align: center;
   background: #fff;
   border: 1px solid #ccc;
   margin-right: 8px;
}

/* SÖK-sidan */
.sv-facetedsearch-portlet > form {
   position: relative;
   width: 60%;
   /*margin: 2em auto;*/
   margin-bottom: 1.5em;
}
.sv-facetedsearch-portlet > form input[type="text"], .sv-facetedsearch-portlet > form input[type="search"] {
   border: 1px solid #ccc;
   padding: 15px 20px;
   color: #0064a3;
   width: 100%;
   box-sizing: border-box;
   position: relative;
   padding-right: 105px;
   font-weight: 600;
}
.sv-facetedsearch-portlet > form input[type="submit"] {
   position: absolute;
   top: 0;
   right: 0;
   height: 100%;
   background: #0064a3;
   color: #fff;
   border: 0;
   width: 80px;
   text-align: center;
}

.sv-facetedsearch-portlet > div {
   float: left;
   width: 100%;
}
.sv-facetedsearch-portlet .sv-search-facets {
   float: right;
   width: 30%;
   box-sizing: border-box;
   padding: 0;
}
.sv-facetedsearch-portlet .sv-search-result {
   width: 60%;
   border-right: 1px solid #f2f2f2;
   padding-right: 65px;
}

.sv-search-facet .sv-search-facet-name {
   margin-top: 0;
   margin-bottom: 15px;
   display: block;
}

.sv-facetedsearch-portlet .sv-search-facets .sv-search-facet .sv-search-facet-items .sv-search-facet-item a {
   text-decoration: none;
   color: #0064a3;
}

.sv-facetedsearch-portlet .sv-search-facets .sv-search-facet .sv-search-facet-items .sv-search-facet-item a:before {
   font-family: Font Awesome\ 5 Free;
   font-size: 18px;
   content: "\f0c8";
   padding: 0 .294em 0 0;
   color: #0064a3;
   line-height: 2em;
   vertical-align: -1px;
}
.sv-facetedsearch-portlet .sv-search-facets .sv-search-facet .sv-search-facet-items .sv-search-facet-item.sv-search-facet-item-selected a:before {
   content: "\f14a";
   font-weight: 600;
}
.sv-facetedsearch-portlet .facet-value-count {
   color: #505050;
   background: #f2f2f2;
   border-radius: 20px;
   min-width: 30px;
   display: inline-block;
   text-align: center;
   font-size: 14px;
   padding: 4px 5px;
   box-sizing: border-box;
   line-height: 1em;
   margin-left: 2px;
   top: -1px;
   position: relative;
}
.sv-facetedsearch-portlet .pagination a, .sv-facetedsearch-portlet .pagination span {
   text-decoration: none;
}
/*.sv-facetedsearch-portlet .pagination .current:not(.prev):not(.next) {
   background: none repeat scroll 0 0 #0183c3;
   border: 1px solid #0183c3;
   font-weight: bold;
   color: #fff;
}*/

.savsjo-search-facets-toggle {
   /*font-family: "open sans",sans-serif;
   font-size: 110%;
   font-weight: 600;
   padding: 1.3em 2em;*/
   display: none;
   font-family: "Poppins",sans-serif;
   font-size: 110%;
   font-weight: 600;
   text-align: left;
   color: #FFF;
   word-break: normal;
}

.sv-facetedsearch-portlet form input[name="query"] {
   border-radius: 50px;
}

.sv-facetedsearch-portlet form input[name="submitButton"] {
   border-top-right-radius: 50px;
   border-bottom-right-radius: 50px;
}

.sv-facetedsearch-portlet .sv-search-facets-clear-button {
   display: inline-flex;
   align-items: center;
   background: #256db3;
   border-radius: 50px;
   margin-right: 1rem;
   color: #fff;
   border: 0;
   padding: 0 1rem;
   height: 2.5rem;
}

@media (min-width: 961px) {
   .savsjo-search-facets {
   	display: flex;
   	gap: 4px;
	}

	.savsjo-search-facets .sv-search-facet-item {
   	display: inline-flex;
   	align-items: center;
   	background: #256db3;
    	border-radius: 50px;
    	margin-right: 1rem;
	}
   
   .savsjo-search-facets .sv-search-facet-item a {
   	padding: 0.4rem 1rem;
	}
   
   .savsjo-search-facets .sv-search-facet-item-selected {
   	background: #1d5c96;
	}

	.savsjo-search-facets .sv-search-facet-item-selected a {
   	font-weight: 700;
	}
   
   .sv-facetedsearch-portlet .sv-search-facets.savsjo-search-facets {
      float: initial;
    	width: initial;
   }
   
   .sv-facetedsearch-portlet .sv-search-facets.savsjo-search-facets .sv-search-facet .sv-search-facet-items .sv-search-facet-item a:before {
      display: none;
   }
   
   .sv-facetedsearch-portlet .savsjo-search-facets .sv-search-facet .sv-search-facet-items .sv-search-facet-item a {
      color: #fff;
   }
   
   .sv-facetedsearch-portlet .savsjo-search-facets .sv-search-facet .sv-search-facet-items .sv-search-facet-item span {
      color: #fff;
   }
   
   .sv-facetedsearch-portlet .savsjo-search-facets .sv-search-facet .sv-search-facet-items .sv-search-facet-item {
      color: #fff;
   }
   
   .savsjo-search-facets .sv-search-facet .sv-search-facet-items .sv-search-facet-item-selected span {
   	font-weight: 700;
	}
}

/* Desktop-läge */
@media (min-width: 961px) {
   .sv-facetedsearch-portlet .sv-search-facets {
      /*display: block!important;*/
   }
}

/* Mobil-läge */
@media (max-width: 960px) {
   .sv-facetedsearch-portlet .sv-search-result {
      width: 100%;
      border-right: 0;
      padding-right: 0;
      margin-top: 2em!important;
      display: inline-block;
   }
   .sv-facetedsearch-portlet .pagination {
      text-align: center;
      display: inline-block;
      width: 100%;
   }
   .sv-facetedsearch-portlet .pagination a, .sv-facetedsearch-portlet .pagination span {
      float: none;
      display: inline-block;
   }
   .sv-facetedsearch-portlet .pagination label {
      display: none;
   }
   .sv-facetedsearch-portlet .pagination a:nth-child(5):not(.next),
   .sv-facetedsearch-portlet .pagination a:nth-child(6),
   .sv-facetedsearch-portlet .pagination a:nth-child(7) {
      display: none;
   }
   .sv-facetedsearch-portlet > form {
      position: relative;
      width: 100%;
      margin: 1em auto;
   }

   .savsjo-search-facets-toggle {
      display: block;
   }
   .sv-facetedsearch-portlet .sv-search-facets {
      display: none;
      border-color: #d6d6d6;
      box-shadow: 0 8px 24px 0 rgba(0,0,0,0.16);
      -webkit-border-radius: 0;
      -moz-border-radius: 0;
      -ms-border-radius: 0;
      border-radius: 0;
      margin: 0;
      padding: 0 2em 1em 2em!important;
      position: relative;
      float: right;
      width: 100%;
      margin-bottom: 1em;
   }
   
   .sv-facetedsearch-portlet .sv-search-facets .sv-search-facet:first-child {
      padding-top: 1.5em;
   }
}