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

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

/* 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 {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  max-width: 95% !important;
}

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

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

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

.lp-content {
  padding: 20px 10px;
}

.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],
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 textarea,
.sv-defaultFormTheme select {
  padding: 12px;
}

/*
---------------------------------------------------------
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
--------------------------------------------------------- */

.lp-header {
  padding: 0 10px;
}

.lp-header-top {
  display: block;
}

.lp-header-top > .lp-logo img {
  width: 140px !important;
}

.lp-header-top > .sv-horizontal-column {
  display: block;
}

.lp-header-top > .sv-jcrmenu-portlet {
  display: none;
  position: absolute;
  right: 10px;
  top: 0;
  width: auto !important;
}

.lp-header-top > .sv-searchform-portlet {
  margin-top: 20px;
}

header .sv-searchform-portlet input[type='submit'] {
  top: -2px;
}

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

.lp-footer {
  margin: 0;
  padding-left: 20px;
  padding-right: 20px;
}

footer .sv-column-4 {
  margin-bottom: 20px;
}

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

.lp-topmenu {
  display: none;
}

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

/* Lägger menyn off canvas */

.lp-js .lp-menu {
  background: #eaeaea;
  -webkit-box-shadow: 0 15px 5px rgba(0, 0, 0, 0.4);
  box-shadow: 0 15px 5px rgba(0, 0, 0, 0.4);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  left: -315px;
  min-height: 100%;
  padding-top: 60px;
  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 {
  background-color: #fff;
  border: none;
  color: #4d7050;
  display: inline-block;
  font-size: 25px;
  font-weight: bold;
  padding: 15px;
  position: absolute;
  right: 10px;
  text-align: left;
  text-decoration: none;
  top: 5px;
}

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

/* Hoppa direkt till meny-länkar */

.lp-skip-links li a.lp-skip-to-menu-smartphone {
  display: block;
  font-weight: initial;
  right: initial;
  text-decoration: underline;
  top: initial;
}

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

/*.lp-skip-to-menu-mobile:active,
.lp-skip-to-menu-mobile:hover,
.lp-skip-to-menu-mobile:focus {

}

.lp-skip-to-menu-mobile .lp-icon {

}*/

/* Stängknapp off canvas-meny */

.lp-menu .lp-close-button {
  background-color: rgba(255, 255, 255, 0.1);
  display: block;
  height: auto;
  padding: 15px;
  width: auto;
}

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

  fill: #000;
}

/*
---------------------------------------------------------
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);
  transform: rotate(180deg);
  vertical-align: middle;
}

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

/* Vanliga menyn */

.lp-menu a {
  font-size: 14px;
}

.lp-level-1 > li > a {
  background: #4d7050;
  color: #fff;
  font-size: 15px;
}

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

.lp-menu button {
  width: 44px;
}

.lp-has-children > button .lp-icon {
  fill: #ececec;
}

.lp-level-2 li button .lp-icon {
  fill: #4d7050;
}

/*
---------------------------------------------------------
BRÖDSMULA
--------------------------------------------------------- */

.sv-multilevellink-portlet {
  display: none;
}

/*
---------------------------------------------------------
INGÅNGAR PÅ STARTSIDAN
---------------------------------------------------------*/

.lp-startpage-feature-wrapper ul {
  display: block;
  padding: 10px 0;
}

.lp-startpage-feature-wrapper ul > li {
  display: inline-block;
  margin-bottom: 15px;
  margin-right: -4px;
  vertical-align: top;
  width: 50%;
}

/*
---------------------------------------------------------
ARKIV PÅ STARTSIDAN
---------------------------------------------------------*/

.lp-startpage-archive {
  padding: 0 20px;
}

.lp-startpage-archive .sv-channel-item {
  display: inline-block;
  float: none;
  margin-right: -4px;
  vertical-align: top;
  width: 100%;
}

/* new code */

.lp-startpage-archive.lp-smartphone-margin ul {
  display: block;
}

.lp-startpage-archive.lp-smartphone-margin li {
  margin: 0 0 30px;
  width: 100%;
}

/*
---------------------------------------------------------
BILDSPEL
---------------------------------------------------------*/

.lp-slideshow-wrapper.lp-has-slides {
  height: auto;
  padding-bottom: 0;
}

.lp-slideshow {
  border-bottom: 1px solid #ddd;
  height: 400px;
  left: 0;
  position: relative;
  top: 0;
}

.lp-slideshow-slide-content {
  background: #fff;
  bottom: 0;
  left: 0;
  margin: 0;
  right: auto;
  width: 100%;
}

/*
---------------------------------------------------------
FUNKTIONSMENYN I VÄNSTERMENYN
---------------------------------------------------------*/

.lp-menu .sv-visible-lp-smartphone.lp-toolsmenu {
  padding: 0;
  width: 100%;
}

.lp-menu .sv-visible-lp-smartphone.lp-toolsmenu ul {
  text-align: center;
}

.lp-menu .lp-mobile-tools {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  left: 0;
  position: absolute;
  top: 0;
}

.lp-menu .lp-mobile-tools a {
  font-size: 13px;
  padding: 10px 16px 8px;
}

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

.sv-archive-portlet.lp-alert li {
  display: block;
  margin: 25px 10px 0;
  max-width: initial;
  width: auto;
}

.lp-alert .sv-channel-item h1 a {
  font-size: 20px;
  padding: 8px 10px 10px 72px;
}

.lp-alert .sv-channel-item h1 a:hover,
.lp-alert .sv-channel-item h1 a:focus {
  text-decoration: underline;
}

.lp-alert .sv-channel-item a:before {
  display: block;
  font-size: 14px;
}

/*
---------------------------------------------------------
HERO
---------------------------------------------------------*/

.lp-hero {
  align-items: center;
  height: 220px;
  margin: 0;
}

.lp-hero h1 {
  background: none;
  color: #fff;
  margin: 0 0 60px !important;
  padding: 0;
  text-align: center;
  text-shadow: 0 0 10px #000;
}

/*
---------------------------------------------------------
SNABBLÄNKAR PÅ STARTSIDAN
---------------------------------------------------------*/

.lp-quick-links {
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

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

.lp-quick-links li,
.lp-quick-links li:first-child {
  border-bottom: 1px solid #bcbcbc;
}

/*
---------------------------------------------------------
REK AI
---------------------------------------------------------*/
.sv-template-startsida .rekai-news-header-wrapper,
.sv-template-startsida .rekai-pills {
  margin-left: 20px;
}

.rekai-pills {
  margin-bottom: 1rem;
}

/*
---------------------------------------------------------
EXPANDERBART INNEHÅLL
---------------------------------------------------------*/
.sv-edit-mode .lp-expandable-content > *:nth-child(odd),
.lp-expandable-content .lp-expandable-content__toggler,
.sv-edit-mode .lp-expandable-content > *:nth-child(even),
.lp-expandable-content__content {
  padding: 1.2rem;
}
