/*
=========================================================
TABLET + SMARTPHONE CSS
=========================================================
 * Innehåller styling för skärmar upp till 1024px
 *
 * Copyright (C) Limepark AB.
 * https://limepark.se/licensvillkor
=========================================================*/

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

body {
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
  top: 0;
}

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

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

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

.lp-header {
  max-height: 70px;
  min-height: 70px;
}

.lp-header > .sv-layout,
.lp-header > .sv-layout > .sv-layout {
  display: block;
}

.lp-header > .sv-layout > .sv-layout {
  display: none; /* Söken: Tillfällig */
}

.lp-header > .sv-layout > .sv-layout .sv-jcrmenu-portlet,
.lp-header > .sv-layout > .sv-layout .sv-image-portlet {
  display: none;
}

.lp-logo {
  border: none;
  display: block;
  padding: 1rem 2rem;
}

.lp-logo img {
  height: 50px !important;
  width: auto !important;
}


/* Direktlänk till mobilmenyn */
.lp-skip-to-menu-mobile {
  background-color: transparent;
  border: 0;
  border-left: 1px solid #e7e7e7;
  display: inline-block;
  padding: 2.3rem;
  position: absolute;
  right: 0;
  text-decoration: none;
  top: 0;
}

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

.lp-skip-to-menu-mobile .lp-icon {
  font-size: 2.4rem;
  -webkit-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
}

.lp-skip-to-menu-mobile .lp-icon--close {
  left: 2.2rem;
  position: absolute;
  top: 2.2rem;
}

body > [aria-hidden='true'] .lp-skip-to-menu-mobile .lp-icon--open,
.lp-skip-to-menu-mobile .lp-icon--close {
  opacity: 0;
}

body > [aria-hidden='true'] .lp-skip-to-menu-mobile .lp-icon--close {
  opacity: 1;
}
/*
---------------------------------------------------------
TOPPMENY
--------------------------------------------------------- */

.lp-topmenu {
  display: none;
}


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

/* Lägger menyn off canvas */
.lp-js .lp-menu {
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  left: 105%;
  min-height: 90%;
  min-height: calc(100% - 71px);
  position: absolute;
  top: 71px;
  -webkit-transition: left 0.4s ease;
  transition: left 0.4s ease;
  width: 100%;
  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;
}


/* Stängknapp off canvas-meny */
.lp-menu .lp-close-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: block;
  height: 44px;
}


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

/* Tillbakalänk vid egen startpunkt */

.lp-child-root a.lp-back-link {
  background: #333;
  color: #fff;
  display: block;
  padding: 1.5rem 4.4rem 1.4rem 1rem;
}

.lp-child-root a.lp-back-link .lp-icon {
  height: 11px;
  margin: -0.3rem 0.5rem 0 0;
  -webkit-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 > ul {
  border-radius: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.lp-menu a {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}

.lp-level-1 > li {
  border-radius: 0;
}

.lp-menu .lp-current > a {
  background: rgba(255,255,255,0.8) !important;
}

.lp-menu .lp-level-1 > .lp-current > a {
  font-weight: bold;
}

/* Bakgrundsfärger */
.lp-level-1 > li .lp-open a {
  background: #fff;
}


/* Nivåer */
ul.lp-level-2 {
  padding-top: 0;
}

.lp-level-1 > li > a {
  background: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1.6rem;
}

.lp-level-1 > li:first-child > a {
  border: none;
}

.lp-level-2 > li > a {
  font-size: 1.6rem;
  padding: 1.5rem 6rem 1.5rem 2.5rem;
}

.lp-level-3 > li > a {
  padding-left: 4.5rem;
}

.lp-level-4 > li > a {
  padding-left: 6.5rem;
}

.lp-level-5 > li > a {
  padding-left: 8.5rem;
}


/* Sök i mobilmenyn */
.lp-menu .sv-searchform-portlet div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  position: relative;
}

.lp-menu .sv-searchform-portlet {
  border-bottom: 1px solid #e7e7e7;
  border-top: 1px solid #e7e7e7;
}

.lp-menu .sv-searchform-portlet input[type='text'] {
  background: transparent;
  border: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 1.4rem;
  margin: 0;
  outline: none;
  padding: 1.8rem 2rem;

  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

.lp-menu .sv-searchform-portlet button {
  background: none;
  border: none;
  cursor: pointer;
  margin: 0;
  padding: 1.2rem;
}

.lp-menu .sv-searchform-portlet button .lp-icon {
  color: #000;
  font-size: 1.8rem;
}


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

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

.lp-level-2 > li > button {
  height: 55px;
}


/*
  ---------------------------------------------------------
  UNDERMENY - Mobil-logotyp
  --------------------------------------------------------- */

.lp-mobile-nav-logo {
  display: block;
}


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

html .lp-site-tools {
  -ms-flex-pack: center;
  margin: 1rem 0 0;

  -webkit-box-pack: center;
  justify-content: center;
}

.lp-site-tools li > a {
  border: 0;
  padding: 1.5rem;
}
