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


.lp-step-by-step {
  --lp-step-by-step-background-color: #feeaec;
  --lp-step-by-step-line-color: #feeaec;
  --lp-step-by-step-font-color: #000;
  --lp-spacing-small: 2rem;
  counter-reset: my-sec-counter;
  margin-top: 20px;
  position: relative;
}

.lp-step-by-step:before {
  background: var(--lp-step-by-step-line-color);
  content: '';
  height: calc(100% - 2rem);
  left: 22.5px;
  position: absolute;
  top: 1rem;
  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 {
  background: none;
  border: none;
  color: var(--lp-step-by-step-font-color);
  font-family: var(--lp-font-family-poppins);
  font-size: 18px;
}

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

.lp-step-by-step .lp-collapsable-container .lp-toolbar-wrapper .lp-toolbar-button:before {
  align-items: center;
  background: #c42e35;
  border: 2px solid #c42e35;
  border-radius: 45px;
  color: #fff;
  content: counter(my-sec-counter) !important;
  counter-increment: my-sec-counter;
  display: flex;
  font-weight: 600;
  height: 45px;
  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: var(--env-element-success-background-color-dark);
  border: 2px solid var(--env-element-success-background-color-dark);
  color: #fff;
}

.lp-step-by-step .lp-collapsable-container.lp-collapsed .lp-toolbar-wrapper .lp-toolbar-button:before {
  background: #c42e35;
  border: 2px solid #c42e35;
  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 {
  background: #fff;
}

.lp-step-by-step .lp-collapsable-container.lp-collapsable-active .lp-collapsable-content {
  background: var(--lp-step-by-step-background-color);
}

/*
---------------------------------------------------------
TOOLBAR
---------------------------------------------------------*/

.lp-collapsable-container .lp-toolbar-wrapper .lp-toolbar-button {
  box-sizing: border-box;
  color: #000;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: .6rem 5rem 1.6rem 5rem;
  position: relative;
}

.lp-collapsable-container .lp-toolbar-wrapper .lp-toolbar-button:before {
  border-right: 1px solid #f7f8fc;
  box-sizing: border-box;
  content: '−';
  display: block;
  font-family: 'Open sans', helvetica, arial, sans-serif;
  font-size: 20px;
  font-weight: 100;
  height: 100%;
  left: 0;
  line-height: 50px;
  position: absolute;
  text-align: center;
  top: 0;
  vertical-align: middle;
  width: 45px;
}

.lp-collapsable-container.lp-collapsable-active .lp-collapsable-content {
  padding: var(--lp-spacing-small);
}

.lp-collapsable-container.lp-collapsable-active .lp-collapsable-content h3,
.lp-collapsable-container.lp-collapsable-active .lp-collapsable-content .sv-text-portlet {
  margin-top: 0;
}

/*
---------------------------------------------------------
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 var(--lp-step-by-step-button-border-color);
  border-radius: 3rem;
  color: var(--lp-step-by-step-button-font-color);
  font-family: 'open sans',arial,helvetica,sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 10px 25px;
  transition: var(--lp-transition-default);
}

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

.lp-step-by-step .lp-collapsable-button-wrapper button:hover {
  background: var(--env-element-success-background-color-dark);
  color: #fff;
  text-decoration: none;
}

.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-step-collapsable-container {
  background: #f1f6f7;
  margin-bottom: 30px;
  margin-left: 60px;
  padding: 5px 20px 20px 20px;
}

html:not(.lp-js) .lp-step-by-step:before {
  left: 0;
  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: -21px;
  margin-top: 3px;
  margin-top: -10px;
  position: absolute;
  transition: all 0.2s ease-in;
  width: 45px;

  justify-content: center;
}

/* UTAN JS */

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: 20px;
  height: 45px;
  left: 0;
  width: 45px;
}
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: 5rem;
}


@media (max-width: 800px) {

  .lp-step-by-step .lp-collapsable-container .lp-toolbar-wrapper .lp-toolbar-button:before {
    height: 3rem;
    width: 3rem;
  }
  .lp-step-by-step .lp-collapsable-button-wrapper button {
    padding: .7rem 1.5rem;
  }
  .lp-step-by-step:before {
    height: calc(100% - 3rem);
  }
  .lp-step-by-step .lp-collapsable-button-wrapper .lp-step-by-step-next {
    margin-right: 1rem;
  }
  .lp-collapsable-container .lp-toolbar-wrapper .lp-toolbar-button {
    padding: .6rem 0rem 1.6rem 4rem;
  }
  .lp-step-by-step .lp-collapsable-container.lp-collapsable-active .lp-collapsable-content {
    margin-left: 4rem;
  }

}

@media (max-width: 360px) {
  .lp-step-by-step:before {
    height: calc(100% - 6rem);
  }
}

@media (max-width: 354px) {
  .lp-step-by-step .lp-collapsable-button-wrapper .lp-step-by-step-next {
    margin-bottom: 1.5rem;
  }
}
