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

.lp-topmenu {
  display: flex;
  margin: 0;
}

.lp-topmenu ul {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0;
  padding: 0;
}

.lp-topmenu li {
  display: flex;
  margin: 0;
  padding: 0;

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

.lp-topmenu li > a {
  align-items: center;
  background: #3c71b6;
  color: #fff;
  display: flex;
  font-size: 1.6rem;
  font-weight: bold;
  padding: 25px 20px;
  text-align: center;
  text-decoration: none;
  width: auto;
}

.lp-topmenu li > a.lp-current {
  background: #214676;
  text-decoration: underline;
}

.lp-topmenu li > a:hover,
.lp-topmenu li > a:focus {
  background: #214676;
}


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

/* Döljer alla huvudsidors menyer */
.lp-menu .lp-level-1 > li {
  display: none;
}

/* Men visar huvudusidan man är inne på */
.lp-menu .lp-level-1 > li.lp-open {
  display: block;
}

/* Döljer pilknappen på första nivån så att man inte kan stänga menyn */
.lp-menu .lp-level-1 > li > button {
  display: none;
}

/* Döljer alla nivåer initialt */
.lp-menu .lp-level-1 ul {
  display: none;
}

/* Men visar undersidor när man har klickat på pilknappen */
.lp-menu .lp-open > ul {
  display: block;
}

/* Döljer tillbakalänk vid utpekning av egen startpunkt för undermeny */
.lp-menu a.lp-back-link {
  display: none;
}


.lp-menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.lp-menu li.lp-has-children {
  position: relative;
}


/* Döljer länken till menyn i mobilen */
.lp-skip-to-menu-mobile {
  display: none;
}

/* Döljer stängknapp för off canvas-meny */
.lp-close-button {
  display: none;
}

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

.lp-menu {
  border-radius: 8px;
  box-shadow: 0 2px 4px 0 #ccc;
  overflow: hidden;
}

.lp-menu a {
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  color: #000;
  display: block;
  font-size: 1.4rem;
  line-height: 150%;
  outline: none;
  padding: 14px 44px 14px 20px;
  text-decoration: none;
}

.lp-menu a:hover,
.lp-menu a:focus {
  text-decoration: underline;
}

.lp-menu .lp-current > a {
  background: #3c71b6;
  color: #fff;
}

/* Nivåer */
.lp-level-1 > li > a {
  background: #214676;
  border-radius: 8px 8px 0 0;
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
}

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

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

.lp-level-4 > li > a {
  padding-left: 60px;
}

.lp-level-5 > li > a {
  padding-left: 80px;
}

.lp-level-6 > li > a {
  padding: 10px 36px 10px 100px;
}


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

.lp-menu button {
  background: none;
  border: none;
  font-size: 2rem;
  height: 50px;
  outline: none;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
}

.lp-menu button:focus {
  background-color: rgba(60, 113, 182, 0.2);
}

/*
.lp-has-children > button .lp-icon {
   fill: #333;
   transition: all 0.3s ease;
}

.lp-open.lp-has-children > button .lp-icon {
   transform: rotate(90deg);
}

.lp-menu .lp-current.lp-has-children button .lp-icon {
	fill: #fff;
}
*/


.lp-has-children > button .lp-icon-close {
  opacity: 0;
  transform: rotate(-180deg);
}

.lp-has-children > button .lp-icon {
  left: 50%;
  margin-left: -0.5em;
  margin-top: -0.5em;
  position: absolute;
  top: 50%;
  transition: all 0.3s ease;

  fill: #333;
}

.lp-level-2 > .lp-current > button .lp-icon {
  fill: #fff;
}

.lp-open.lp-has-children > button .lp-icon-open {
  opacity: 0;
  transform: rotate(180deg);
}

.lp-open.lp-has-children > button .lp-icon-close {
  opacity: 1;
  transform: rotate(0deg);
}


/* Avvikelser */
.lp-level-6 button {
  height: 36px;
}



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

.lp-site-tools {
  display: flex;
  height: 100%;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.lp-site-tools li {
  display: flex;
  margin: 0 0 0 10px;
  padding: 0;
}

.lp-site-tools li:first-child {
  margin: 0;
}

.lp-site-tools li > a {
  align-items: center;
  color: #333;
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  padding: 15px;
  text-decoration: none;

  justify-content: center;
}

.lp-site-tools .lp-icon {
  color: #3c71b6;
  display: block;
  font-size: 2em;
  margin: 0 5px 5px 0;
}


.lp-site-tools img {
  display: none; /* tar bort bilden som visas för externa länkar */
}


.lp-site-tools li > a:hover,
.lp-site-tools li > a:focus {
  background: #214676;
  color: #fff;
}

.lp-site-tools li > a:hover .lp-icon,
.lp-site-tools li > a:focus .lp-icon {
  color: #fff;
}

.lp-site-tools li:not(:first-child) {
  margin: 0;
}

.lp-site-tools li a {
  padding-left: 2.5rem;
}

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

.lp-quick-links {
  display: flex;
  list-style-type: none;
  margin: -70px -15px 60px;
  padding: 0;

  flex-wrap: wrap;
}

.lp-quick-links li {
  box-sizing: border-box;
  display: flex;
  margin: 0 0 30px;
  padding: 0 15px;
  width: 16.6666666666%;

  flex: 1 0 auto;
  flex-flow: column wrap;
}

.lp-quick-links a {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.24);
  display: block;
  font-size: clamp(1.4rem, 1.5vw, 1.6rem);
  padding: 20px 20px 30px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;

  flex-grow: 1;
}


.lp-quick-links a div {
  align-items: center;
  background: #8f919b;
  border-radius: 50%;
  box-shadow: 0 0 1px transparent;
  display: flex;
  height: 100px;
  margin: 0 auto 20px;
  overflow: hidden;
  position: relative;
  transform: perspective(1px) translateZ(0);
  width: 100px;

  justify-content: center;
}


.lp-quick-links a div:before {
  background: #8f919b;
  border-radius: 100%;
  bottom: 0;
  content: '';
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: scale(0);
  transition-duration: 0.3s;
  transition-property: all;
  transition-timing-function: ease-out;
  z-index: -1;
}

.lp-quick-links a:hover div:before,
.lp-quick-links a:focus div:before,
.lp-quick-links a:active div:before {
  background: #3c71b6;
  transform: scale(2);
}


.lp-quick-links .lp-icon {
  color: #fff;
  display: block;
  font-size: 5rem;
  transition: all 0.3s ease;
}


/*
---------------------------------------------------------
FLERNIVÅLÄNK
--------------------------------------------------------- */

.sv-multilevellink-portlet {
  background: #f5f5f5;
  padding: 15px;
}

.sv-multilevellink-portlet .lp-icon {
  font-size: 0.5em;
  margin: 0 1px 0 3px;

  fill: #666;
}

.sv-multilevellink-portlet a.normal,
.sv-multilevellink-portlet span.normal {
  font-size: 1.4rem;
  text-decoration: none;
  vertical-align: middle;
}

.sv-multilevellink-portlet a.normal:hover,
.sv-multilevellink-portlet a.normal:focus {
  text-decoration: underline;
}

.sv-multilevellink-portlet li:first-child:before {
  color: #777;
  content: 'Du är här: ';
  margin: 0 5px 0 0;
  vertical-align: middle;
}


/*		Undermeny endast fram till tablet	*/
@media all and (min-width: 1024px) {
  .lp-menu {
    width: calc(100% - 30px)!important;
  }
}

/*
---------------------------------------------------------
LÄNKSTIG
--------------------------------------------------------- */

.sv-marketplace-sitevision-breadcrumbs {
  background: #f5f5f5;
  font-family: 'open sans',arial,helvetica,sans-serif;
  padding: 15px;
}

.sv-marketplace-sitevision-breadcrumbs .env-breadcrumb__item {
  color: #333;
  font-size: clamp(1.2rem, 1.4vw, 1.6rem);
}

.sv-marketplace-sitevision-breadcrumbs .env-breadcrumb__item a {
  color: #333;
  text-decoration: underline;
}

.sv-marketplace-sitevision-breadcrumbs .env-breadcrumb__item a:hover,
.sv-marketplace-sitevision-breadcrumbs .env-breadcrumb__item a:focus {
  color: #333;
  text-decoration: underline;
}

.sv-marketplace-sitevision-breadcrumbs .env-breadcrumb:before {
  color: #777;
  content: 'Du är här: ';
  font-family: sans-serif;
  font-size: 1.4rem;
  margin: 0 5px 0 0;
  text-decoration: none;
}

.sv-marketplace-sitevision-breadcrumbs .env-breadcrumb__item span[aria-hidden='true'] {
  display: none;
}

.sv-marketplace-sitevision-breadcrumbs .env-breadcrumb__item:not(:last-child):after {
  background-color: #666;
  content: '';
  display: inline-block;
  height: 0.4em;
  margin: 0 0.4em 2px 0.4em;
  width: 0.4em;

  -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%206%2010\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23000\'%3E%3Cg%20%20id%3D%22Page-1%22%3E%3Cpath%20d%3D%22M145.45%20222a.449.449%200%200%200-.312.77l4.17%204.17-4.17%204.168a.449.449%200%201%200%20.634.635l4.487-4.486a.449.449%200%200%200%200-.635l-4.487-4.486a.449.449%200%200%200-.322-.136z%22%20transform%3D%22translate(-145%20-222)%22%20id%3D%22Undersida%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg%20viewBox%3D\'0%200%206%2010\'%20xmlns%3D\'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg\'%20fill%3D\'%23000\'%3E%3Cg%20%20id%3D%22Page-1%22%3E%3Cpath%20d%3D%22M145.45%20222a.449.449%200%200%200-.312.77l4.17%204.17-4.17%204.168a.449.449%200%201%200%20.634.635l4.487-4.486a.449.449%200%200%200%200-.635l-4.487-4.486a.449.449%200%200%200-.322-.136z%22%20transform%3D%22translate(-145%20-222)%22%20id%3D%22Undersida%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Dölj på underwebbens startsida */

.sv-template-startsida---underwebb .lp-pagetools {
  display: none;
}
