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

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 {
   position: absolute;
   top: 0px;
   right: 10px;
   width: auto !important;
   display: none;
}

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

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


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

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 {
   position: absolute;
   top: 0;
   padding-top: 60px;
   z-index: 9999;
   width: 300px;
   left: -315px;
   min-height: 100%;
   -webkit-transition: left 0.4s ease;
   transition: left 0.4s ease;
   -webkit-box-shadow: 0 15px 5px rgba(0, 0, 0, 0.4);
           box-shadow: 0 15px 5px rgba(0, 0, 0, 0.4);
   background: #eaeaea;
   -webkit-box-sizing: border-box;
           box-sizing: border-box;
}


/* 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 {
   display: inline-block;
   padding: 15px;
   color: #d0006f;
   font-size: 25px;
   font-weight: bold;
   text-align: left;
   text-decoration: none;
   
   position: absolute;
   top: 10px;
   right: 10px;
}

.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 {
   display: block;
   background-color: rgba(255, 255, 255, 0.1);
   padding: 15px;
   width: auto;
   height: auto;
}

.lp-close-button .lp-icon {
   fill: #000;
   width: 30px;
   height: 30px;
}

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

/* Tillbakalänk vid egen startpunkt */

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

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

.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 {
   font-size: 15px;
}


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

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

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


/*
---------------------------------------------------------
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;
   width: 50%;
   margin-right: -4px;
   vertical-align: top;
   margin-bottom: 15px;
}

/*
---------------------------------------------------------
ARKIV PÅ STARTSIDAN
---------------------------------------------------------*/
.lp-startpage-archive {
   padding: 0 20px;
}

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


/* new code */

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

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


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

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

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

/*
---------------------------------------------------------
FUNKTIONSMENYN I VÄNSTERMENYN
---------------------------------------------------------*/
.lp-menu .sv-visible-lp-smartphone.lp-toolsmenu {
   width: 100%;
   padding: 0;
}

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

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

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

/*
---------------------------------------------------------
GOOGLE TRANSLATE
---------------------------------------------------------*/
#google-translate-modal {
   z-index: 10000;
   left: 10px !important;
}

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

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

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

.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 {
   height: 220px;
   margin: 0;
   align-items: center;
}

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


/*
---------------------------------------------------------
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 #406444;
}


