

/*
=========================================================
BASE CSS
=========================================================
 * Innehåller grundläggande styling, fixar och
 * förbättringar av webbplatsen
 *
 * Copyright (C) Limepark AB.
 * https://limepark.se/licensvillkor
=========================================================*/


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

html {
  font-size: 62.5%;
}

/* Marginal vid utskrift - validerar ej om den ligger i print.css */
@page {
  margin: 2cm 2cm;
}

/* Fast textstorlek vid rotation i iPhone */
body {
  -webkit-text-size-adjust: 100%;
}

/* Göm innehåll, men visas för skärmläsare */
.lp-user-hidden {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

/* Fix av IE-bugg med understrukna pseudoelement */

a:before,
a:after {
  text-decoration: underline;
}

a:before,
a:after {
  text-decoration: none;
}

/** Ikoner **/
.lp-icon {
  height: 1em;
  /* Paths and strokes that overflow the viewBox can show in IE.
     If you use normalize.css, it already sets this. */
  overflow: hidden;
  /* Nice visual alignment for icons alongside text */
  vertical-align: -0.15em;
  /* Allows sizing by changing the icon's font-size */
  width: 1em;
  /* Default path fill = value of the color property */

  fill: currentColor;
}

/* Fix för IE11 och mushändelser på SVG-element. */
.lp-icon,
.lp-toggler-icon {
  pointer-events: none;
}

/* Fix för att bilder ska skalas i nyhetsmoduler */
.sv-responsive .sv-archive-portlet img {
  height: auto !important;
  max-width: 100% !important;
  width: auto !important;
}

/* Modulavstånd i innehållsytor (ej textmoduler) */
.pagecontent > .sv-portlet {
  margin-bottom: 1rem;
}

/* Ändrar rubriker i nyhetsmodul till blockelement */
.sv-archive-portlet h2.subheading a span {
  display: block;
}

/* Fix för att spalterna ska ta plats även vid tom */
div[class*='sv-column-'] {
  min-height: 1px;
}

/* Responsiva iframes etc */
iframe,
object,
embed {
  border: medium none;
  max-width: 100%;
  overflow: hidden;
}

.pagecontent {
  clear: both;
}

/* Grid i dokumentationen */
.lp-grid-example .sv-text-portlet {
  background: #eee;
  margin: 0 0 2rem;
  padding: 2rem 0.5rem 0.5rem;
}

.lp-grid-example .sv-text-portlet .normal {
  color: #777;
  font-size: 1.2rem;
}

/* Underlinar länkar vid hover/focus i ytor med klickbar yta */
.lp-js .lp-clickable-area:hover a,
.lp-js .lp-clickable-area:focus a {
  text-decoration: underline;
}

/*
---------------------------------------------------------
KAKVARNING
---------------------------------------------------------*/

body .lp-cookie-consent-showFixed {
  background: none ;
  left: initial ;
  padding: 0;
  right: 30px ;
  width: 50% ;
  width: calc(50% - 50px) ;
}

.lp-cookie-consent-showFixed form {
  background: #e5f6fc;
  border-radius: 2px 2px 0 0;
  left: initial;
  padding: 15px 20px;
  right: 30px;
  width: 100% ;
  width: calc(50% - 45px);
}

.lp-cookie-consent button {
  background: #193f76 !important;
  color: #fff !important;
  padding: 1.5rem 1rem;
}

.lp-cookie-consent-showFixed form:before {
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  bottom: -5px;
  content: '';
  display: block;
  left: -5px;
  position: absolute;
  right: 5px;
  top: -5px;
  z-index: -1;
}

/* Nya kakgodkännande-modulen */

.sv-layout .lp-cookie-approval {
  background: transparent;
  padding: 0;
  z-index: 1;
}

.lp-cookie-approval .lp-cookie-approval__form button {
  background: #193f76 !important;
  border-radius: 5px;
  color: #fff !important;
}

.lp-cookie-approval .lp-cookie-approval__form {
  align-items: center;
  background: #e5f6fc;
  display: flex;
  margin: 0 auto;
  max-width: 100%;
  padding: 2rem;

  justify-content: center;
}

.lp-cookie-approval.lp-cookie-approval--position-bottom .lp-cookie-approval__form p {
  margin: 0 2rem 0 0;
}

.lp-cookie-approval a {
  text-decoration: underline;
}

.lp-cookie-approval a:hover,
.lp-cookie-approval a:focus {
  text-decoration: none;
}

.lp-cookie-approval .lp-cookie-approval__form p {
  margin: 1.5rem 0 0 0;
}

.lp-cookie-approval .lp-cookie-approval__form:before {
  background: rgba(0,0,0,0.1);
  bottom: -5px;
  content: '';
  display: block;
  left: -5px;
  position: absolute;
  right: 5px;
  top: -5px;
  z-index: -1;
}
