/*
=========================================================
SMARTPHONE CSS
=========================================================
 * Innehåller styling för smartphones
 * 
 * Copyright (C) Limepark AB. Upprättad 2016.
=========================================================*/

/*
---------------------------------------------------------
FIXAR/FÄRBÄTTRINGAR
---------------------------------------------------------*/

html {
  font-size: 62.5%;
}

body {
  --lp-spacing: 2rem;
}

/* Anpassar bilder i nyhetslistningen för mobilläge */
.lp-news-listing.sv-archive-portlet li img {
  float: none;
  padding: 0 0 10px 0 !important;
}

/* Dölj utskriftslänk i smartphone */
.lp-print-link {
  display: none !important;
}

/* Fix så autocomplete inte kan bli bredare än tillgänglig yta */

.sv-autocomplete-search-result {
  box-sizing: border-box;
  max-width: 95% !important;
}

ul.sv-autocomplete-search-result .sv-autocomplete-result-item {
  box-sizing: border-box;
  padding: 3px 10px;
}

a.lp-skip-to-menu-smartphone {
  display: block;
}

a.lp-skip-to-menu-desktop {
  display: none;
}

/*
---------------------------------------------------------
GRUNDLAYOUT
--------------------------------------------------------- */

.lp-content,
.lp-secondary-content,
.lp-submenu {
  margin-top: 0;
}

.lp-content {
  padding: 20px;
}

.lp-secondary-content {
  padding: 0 20px 20px 20px;
}

.lp-smartphone-margin {
  padding: 0 20px;
}


/*
---------------------------------------------------------
INPUTFÄLT
--------------------------------------------------------- */

input[type=text],
input[type=email],
input[type=url],
input[type=tel],
input[type=number],
input[type=password],
textarea,
select,
.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 input[type=password],
.sv-defaultFormTheme textarea,
.sv-defaultFormTheme select {
  padding: 12px;
}


.lp-checkbox__input + .lp-checkbox__label:after {
  top: 3px;
}



/*
---------------------------------------------------------
KNAPPAR
--------------------------------------------------------- */

button,
input[type='button'],
input[type='submit'],
input[type='reset'],
.sv-defaultFormTheme input[type=button],
.sv-defaultFormTheme input[type=submit],
.sv-defaultFormTheme input[type=reset] {
  padding: 12px 20px;
}


/*
---------------------------------------------------------
SIDHUVUD
--------------------------------------------------------- */

header {
  padding: 20px 20px 0;
  position: relative;
}

.lp-logo img {
  height: 44px !important;
}

/*
---------------------------------------------------------
ÄNDRINGAR SIDHUVUD 2024
--------------------------------------------------------- */

.lp-logo {
  float: none;
  margin: 0;
}

header > .sv-layout:nth-child(2) .sv-column-10 {
  display: flex;
  margin-bottom: 0;

  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-end;
}

header > .sv-layout:nth-child(2) .sv-row {
  align-items: center;
  display: flex;

  justify-content: space-between;
}

header > .sv-layout:nth-child(2) .sv-row:before,
header > .sv-layout:nth-child(2) .sv-row:after {
  content: none;
}

header .sv-grid-1170 [class*='sv-column'] {
  margin-bottom: 0;
}


/*
---------------------------------------------------------
SIDFOT
--------------------------------------------------------- */

footer {
  margin: 0;
  padding: 10px;
}

footer .sv-row {
  align-items: flex-start;
  flex-direction: column;
}

footer .lp-quick-links {
  margin: 0;
}

footer .lp-quick-links li {
  margin: 0;
  width: 33.3%;
}

footer .lp-quick-links li a {
  padding: 10px 0;
}

/*
---------------------------------------------------------
TOPPMENY
--------------------------------------------------------- */

.lp-topmenu {
  display: none;
}


/*
---------------------------------------------------------
UNDERMENY 1/3 - Standardinställningar
--------------------------------------------------------- */

.lp-js body > .sv-layout:first-child {
  transition: filter 0.3s linear;
}

.lp-js body.lp-menu-open > .sv-layout:first-child {
  filter: blur(10px);
}

/* Lägger menyn off canvas - bortkommenterad efter länkad layoutbuggen
.lp-js .lp-menuu {
  background: #fff; 
  border: 0;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  left: -315px;
  min-height: 100%;
  padding-top: 44px;
  position: absolute;
  top: 0;
  -webkit-transition: left 0.4s ease;
  transition: left 0.4s ease;
  width: 300px;
  z-index: 9999;
} */


/* Visar alla huvudsidors menyer */
.lp-menu .lp-level-1 > li {
  display: block;
}

/* Visar alltid pilknappen på första nivån */
.lp-menu .lp-level-1 > li > button {
  display: block;
}

/* Direktlänk till mobilmenyn */
.lp-skip-to-menu-mobile {
  color: #07c;
  display: inline-block;
  /* float: left; */
  font-size: 25px;
  font-weight: bold;
  margin: 0;
  padding: 15px;
  text-align: left;
  text-decoration: none;
}

.lp-skip-to-menu-mobile:active,
.lp-skip-to-menu-mobile:hover,
.lp-skip-to-menu-mobile:focus {
  background-color: #555;
}

.lp-skip-to-menu-mobile .lp-icon {
  margin: 0 8px 0 0;
  width: 25px;
}


/* Stängknapp off canvas-meny */
.lp-menu .lp-close-button {
  background-color: #07c;
  border-radius: 100%;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
  display: block;
  height: 37.5px;
  left: 100vw;
  opacity: 0;
  right: auto;
  top: 17px;
  transform: translateX(50px);
  width: 37.5px;
}

.lp-menu--open .lp-close-button {
  opacity: 1;
  transform: translateX(-57px);
  transition: transform 0.4s ease, opacity 0.4s linear;
  transition-delay: 0.4s;
}

.lp-menu .lp-close-button:focus {
  background-color: rgba(255, 255, 255, 0.3);
  display: block;
}

.lp-close-button .lp-icon {
  height: 15px;
  width: 15px;

  fill: #fff;
}

/*
---------------------------------------------------------
UNDERMENY 2/3
--------------------------------------------------------- */

/* Tillbakalänk vid egen startpunkt */

.lp-child-root a.lp-back-link {
  background: #333;
  color: #fff;
  display: block;
  padding: 15px 44px 14px 10px;
}

.lp-child-root a.lp-back-link .lp-icon {
  height: 11px;
  margin: -3px 5px 0 0;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
  vertical-align: middle;
}

.lp-menu.lp-child-root .lp-level-1 > li > button {
  display: none;
}

/* Vanliga menyn */

.lp-menu a {
  border-bottom: 1px solid #e5e7dc;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: #4a4a4a !important;
  font-size: 16px;
}

.lp-level-1 > li > a {
  background: #fff;
  border-bottom: 1px solid #e5e7dc;
  font-size: 16px;
}

.lp-level-2 > li > a {
  padding-left: 20px;
}

.lp-level-3 > li > a {
  padding-left: 30px;
}

.lp-level-1 {
  border-bottom: 0;
}

/*
---------------------------------------------------------
UNDERMENY 3/3 - Knappar
--------------------------------------------------------- */

.lp-menu button {
  background-color: rgba(255, 255, 255, 0);
  height: 44px;
  top: 1px;
  width: 44px;
}


/*
---------------------------------------------------------
UNDERMENY 3/3 - Knappar
--------------------------------------------------------- */

.sv-multilevellink-portlet,
.sv-marketplace-sitevision-breadcrumbs {
  margin: 20px 20px 0;
}

.sv-marketplace-sitevision-breadcrumbs .env-breadcrumb {
  display: block;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

/*
---------------------------------------------------------
VERTKTYGSMENY
---------------------------------------------------------*/

.lp-site-tools {
  margin: 10px 0 0;
  text-align: left;
}


/*
---------------------------------------------------------
SNABBLÄNKSMENY STARTSIDA
---------------------------------------------------------*/

.lp-quick-links {
  margin: 0 10px;
}

.lp-quick-links li {
  width: 50%;
}

.lp-quick-links a {
  padding: 20px 10px;
}

/*
---------------------------------------------------------
LÄNK TILL SIDANS TOPP
--------------------------------------------------------- */

a.lp-page-top {
  background: #eee;
  display: block;
  margin: 10px 0 1px;
  padding: 20px 10px 20px;
  text-align: center;
  text-decoration: none;
}

a.lp-page-top:hover,
a.lp-page-top:active,
a.lp-page-top:focus {
  background-color: #ddd;
  text-decoration: underline;
}

a.lp-page-top .lp-icon {
  margin: 0 8px 0 0;
  -webkit-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

/*
---------------------------------------------------------
ANPASSNINGAR AV PUFFAR
--------------------------------------------------------- */
.lp-banner--normal {
  display: block;
}

.lp-banner--normal .lp-banner__image-container {
  display: block;
  padding-bottom: 0;
  width: 100%;
}

.lp-banner--normal .lp-banner__content {
  display: block;
  width: 100%;
}

.lp-banner--normal .lp-banner__image {
  display: block;
  height: 100%;
  left: 0;
  position: relative;
  transform: none;
  width: 100%;

  object-fit: cover;
}

.lp-banner,
.lp-image-banner {
  margin-bottom: 20px;
  max-height: initial;
}

.lp-banner .lp-banner__content {
  padding: 20px;
}

.lp-image-banner .lp-banner__content {
  padding: 20px;
}

.lp-image-banner--wide .lp-banner__content {
  padding: 10px;
  width: 100%;
}

.lp-image-banner--wide .lp-banner__content .lp-banner__title {
  margin-bottom: 5px;
}

.lp-cta-banner .lp-banner__image {
  display: block;
  height: 100%;
  left: 0;
  top: 0;
  transform: none;
  width: 100%;

  object-fit: cover;
}

.sv-column-8 .lp-banner-list__banner--banner-small,
.lp-banner-list__banner--banner-normal {
  width: 100%;
}

/*
---------------------------------------------------------
TOP BANNERS
--------------------------------------------------------- */
.lp-topbanners__large-image {
  float: none;
  padding-bottom: 30px;
  width: 100%;
}

.lp-topbanners__banners {
  float: none;
  width: 100%;
}

.lp-topimage__overlay {
  display: none;
}

.lp-topbanners__large-image > .lp-topimage {
  position: relative;
}

.lp-topimage__text {
  bottom: auto;
  color: #454545;
  left: auto;
  margin-top: 10px;
  position: relative;
  width: 100%;
}

/*
---------------------------------------------------------
SITE TOP
--------------------------------------------------------- */
.lp-site-top {
  display: none;
}

.lp-menu .lp-site-top {
  display: block;
  padding: 20px 0;
}

.lp-site-top .sv-horizontal,
.lp-site-top .sv-horizontal > div {
  display: block;
  padding: 0;
}

.lp-menu .lp-site-tools {
  padding: 0 0 20px 0;
}

.lp-site-tools li {
  display: block;
  margin: 0;
}

.lp-site-tools li > a {
  background: transparent;
  border: 0;
}

.lp-site-top .sv-horizontal > div:last-child {
  padding-right: 10px;
}

/*
---------------------------------------------------------
INFOBOX
--------------------------------------------------------- */
.lp-info-box__header + .lp-info-box__content--columns {
  display: block;
}

.lp-info-box__content + .lp-info-box__content {
  margin-top: 20px;
}

.lp-info-box__left-content {
  display: block;
  margin-bottom: 10px;
  width: 100%;
}

.lp-info-box__right-content {
  display: block;
  padding: 0;
}

/*
---------------------------------------------------------
LIMEPARK - VIKTIGT MEDDELANDE
--------------------------------------------------------- */

/* Textjustering, storlek */

.lp-crisis-banner__alert {
  font-size: 12px !important;
  text-align: left !important;

  -webkit-box-pack: start !important;
  justify-content: start !important;
}

/* Prefixtext på egen rad */

.lp-crisis-banner__alert-text-before {
  display: block;
}

/* Marginaljustering ikon */

.lp-crisis-banner__alert .lp-crisis-banner__alert-icon {
  margin-right: 6px;
}

/*
---------------------------------------------------------
FACETTERAD SÖK
--------------------------------------------------------- */
div .lp-search-hits {
  flex-wrap: wrap;
}

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

  order: 2;
}

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

  order: 1;
}

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

div .lp-search-details {
  width: 100%;
}

/*
---------------------------------------------------------
SÖKSEKTION STARTSIDA
--------------------------------------------------------- */

div .lp-search__section .sv-fixed-fluid-grid > .sv-layout > .sv-layout.sv-column-12 {
  gap: 2rem 0;
  grid-template-columns: 1fr;
}
