/*
=========================================================
STEP BY STEP CSS
=========================================================
 * Innehåller styling för steg-för-steg-guide
 *
 * Copyright (C) 2014 Limepark AB
=========================================================*/


.lp-step-by-step {
  counter-reset: my-sec-counter;
  margin-top: 20px;
  position: relative;
}

.lp-step-by-step:before {
  background: #f1f6f7;
  content: '';
  height: calc(100% - 10px);
  left: 22.5px;
  position: absolute;
  top: 0;
  width: 2px;
}

.lp-step-by-step .lp-collapsable-container {
  margin-bottom: 30px;
}

.lp-step-by-step .lp-collapsable-container.lp-collapsable-active .lp-toolbar-wrapper {
  background-color: #fff;
}

.lp-step-by-step .lp-collapsable-container .lp-toolbar-wrapper .lp-toolbar-button {
  font-size: 16px;
}

.lp-step-by-step .lp-collapsable-container .lp-toolbar-wrapper .lp-toolbar-button:before {
  align-items: center;
  background: #09428f;
  border: 2px solid #09428f;
  border-radius: 45px;
  color: #fff;
  content: counter(my-sec-counter) !important;
  counter-increment: my-sec-counter;
  display: flex;
  font-weight: 600;
  height: 45px;
  margin-top: 3px;
  transition: all 0.2s ease-in;

  justify-content: center;
}

.lp-step-by-step .lp-collapsable-container.lp-collapsed:hover .lp-toolbar-wrapper .lp-toolbar-button:before,
.lp-step-by-step .lp-collapsable-container .lp-toolbar-wrapper .lp-toolbar-button:hover:before {
  background: #09428f;
  border: 2px solid #09428f;
  color: #fff;
}

.lp-step-by-step .lp-collapsable-container.lp-collapsed .lp-toolbar-wrapper .lp-toolbar-button:before {
  background: #a0c7cc;
  border: 2px solid #a0c7cc;
  color: #fff;
}

.lp-step-by-step .lp-collapsable-container.lp-collapsed:hover .lp-toolbar-wrapper .lp-toolbar-button  {
  text-decoration: underline;
}

.lp-step-by-step .lp-collapsable-container:last-child .lp-step-by-step-next {
  display: none;
}

.lp-step-by-step .lp-collapsable-container {
  background: #fff;
}

.lp-step-by-step .lp-collapsable-container.lp-collapsable-active .lp-collapsable-content {
  background: #f1f6f7;
  margin-left: 60px;
}

/*
---------------------------------------------------------
KNAPPAR
---------------------------------------------------------*/

.lp-step-by-step .lp-collapsable-button-wrapper {
  border-top: 1px solid #d5d5d5;
  display: block;
  margin-top: 20px;
  padding-top: 20px;
  width: 100%;
}

.lp-step-by-step .lp-collapsable-button-wrapper button {
  background: #fff;
  border: 1px solid #09428f;
  border-radius: 5px;
  color: #09428f;
  font-family: 'open sans',arial,helvetica,sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  padding: 10px 30px;
  transition: all 0.2s ease-in;
}

.lp-step-by-step .lp-collapsable-button-wrapper button:hover {
  background: #09428f;
  color: #fff;
  text-decoration: none;
}

.lp-step-by-step .lp-collapsable-button-wrapper button:focus-visible {
  outline: auto;
}

.lp-step-by-step .lp-collapsable-button-wrapper button:focus {
  text-decoration: underline;
}

.lp-step-by-step .lp-collapsable-button-wrapper .lp-step-by-step-next {
  margin-right: 20px;
}

/*
---------------------------------------------------------
UTAN JAVASCRIPT
---------------------------------------------------------*/

html:not(.lp-js) .lp-step-by-step .lp-collapsable-container {
  background: #f1f6f7;
  margin-left: 60px;
}

html:not(.lp-js) .lp-step-by-step:before {
  left: 21px;
  margin-top: 10px;
}

html:not(.lp-js) .lp-step-by-step .sv-text-portlet h3:first-child {
  margin-top: 0;
}

html:not(.lp-js) .lp-step-by-step .sv-text-portlet:first-child::before {
  align-items: center;
  background: #09428f;
  border: 2px solid #09428f;
  border-radius: 45px;
  box-sizing: border-box;
  color: #fff;
  content: counter(my-sec-counter) !important;
  counter-increment: my-sec-counter;
  display: flex;
  font-family: 'Open sans',helvetica,arial,sans-serif;
  font-size: 20px;
  font-weight: 600;
  height: 45px;
  left: 0;
  margin-top: 3px;
  margin-top: -10px;
  position: absolute;
  transition: all 0.2s ease-in;
  width: 45px;

  justify-content: center;
}

@media (max-width:800px) {
  html:not(.lp-js) .lp-step-by-step:before,
  .lp-step-by-step:before {
    left: 17px;
    margin-top: 10px;
  }
  html:not(.lp-js) .lp-step-by-step .sv-text-portlet:first-child::before,
  .lp-step-by-step .lp-collapsable-container .lp-toolbar-wrapper .lp-toolbar-button:before {
    font-size: 16px;
    height: 35px;
    left: 0;
    width: 35px;
  }
  html:not(.lp-js) .lp-step-by-step .lp-collapsable-container,
  .lp-step-by-step .lp-collapsable-container.lp-collapsable-active .lp-collapsable-content {
    margin-left: 45px;
  }
  .lp-step-by-step .lp-collapsable-container .lp-toolbar-wrapper .lp-toolbar-button {
    padding: 11px 45px;
  }
  .lp-step-by-step .lp-collapsable-button-wrapper button {
    padding: 7px 15px;
  }
  .lp-step-by-step .lp-collapsable-button-wrapper .lp-step-by-step-next {
    margin-right: 10px;
  }
}
