/*
=========================================================
Expandable Content
=========================================================
 * Contains styling for the Expandable Content jQuery plugin.
 *
 * Copyright Limepark AB, https://limepark.se/licensvillkor
=========================================================*/

.lp-expandable-content {
  margin: 1rem 0 1rem;
}

.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(odd),
.lp-expandable-content .lp-expandable-content__toggler,
.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(even),
.lp-expandable-content__content {
  padding: 1.8rem 2rem;
}

/*
---------------------------------------------------------
WRAP
--------------------------------------------------------- */

.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(odd),
.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(even),
.lp-expandable-content__wrap {
  border: 1px solid rgba(0,0,0,0.418);
  border-radius: 5px;
}

.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(odd),
.lp-expandable-content__wrap {
  margin-top: 1.5rem;
}

.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(odd) {
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(even) {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}


/*
---------------------------------------------------------
QUESTION/BUTTON
--------------------------------------------------------- */

.lp-expandable-content__wrap .lp-expandable-content__toggler {
  background: #fff;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(odd),
.lp-expandable-content .lp-expandable-content__toggler {
  align-items: center;
  background-color: transparent;
  box-sizing: border-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  font-weight: 700;
  text-align: left;
  transition: all 0.3s ease;
  width: 100%;
}

.lp-expandable-content .lp-expandable-content__toggler {
  color: inherit;
}

.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(odd) .subheading,
.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(odd) .normal,
.sv-editing-mode .pagecontent .lp-expandable-content > *:nth-child(odd) .heading3,
.lp-expandable-content__toggler .subheading,
.lp-expandable-content__toggler h2,
.lp-expandable-content__toggler .normal,
.lp-expandable-content__toggler .heading3 {
  color: inherit;
  font-family: 'open sans', Arial, Helvetica, sans-serif !important;
  font-size: 1.8rem;
  font-weight: normal;
  margin: 0 !important;
}

.lp-expandable-content__toggler > .sv-text-portlet {
  flex-grow: 1;
}

.lp-expandable-content__toggler > .lp-toggler-icon {
  font-size: 1.7em;
  margin-left: 2rem;

  -webkit-box-ordinal-group: 2;
  flex-shrink: 0;
  order: 1;
  pointer-events: none;
}


/*
---------------------------------------------------------
ANSWER
--------------------------------------------------------- */

.sv-editing-mode .lp-expandable-content > *:nth-child(even),
.lp-expandable-content__content {
  background: transparent;
}

/* Ingen marginal under sista modulen */

.lp-expandable-content__content > .sv-text-portlet-content:last-child p.normal:last-child,
.lp-expandable-content__content .sv-portlet:last-child {
  margin-bottom: 0;
}

/* Ingen marginal över första modulen */

.lp-expandable-content__content > .sv-text-portlet-content:first-child p.normal:first-child,
.lp-expandable-content__content .sv-portlet:first-child {
  margin-top: 0;
}

/*
---------------------------------------------------------
STATES
--------------------------------------------------------- */

.lp-expandable-content .lp-expandable-content__toggler:hover,
.lp-expandable-content .lp-expandable-content__toggler:focus {
  background-color: rgba(253,200,0,0.3);
  color: inherit;
  text-decoration: underline;
}

/* Closed/Opened */
.lp-expandable-content__toggler[aria-expanded='false'] .lp-toggler-icon--close {
  display: none;
}

.lp-expandable-content__toggler[aria-expanded='true'] .lp-toggler-icon--open {
  display: none;
}

/*
---------------------------------------------------------
FAQ-modulen
--------------------------------------------------------- */

.sv-limepark-webapp-skr-faq {
  margin: 2rem 0 4rem;
}

.lp-faq__list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.sv-editing-mode .pagecontent .lp-faq__list .lp-expandable-content__wrap {
  border: 0;
  padding: 0;
}

.lp-faq__list-item .lp-expandable-content__wrap {
  border: 0;
  border-radius: 4px;
  overflow: hidden;
}

/* Text */

.lp-faq__list-item .lp-expandable-content__toggler h2.lp-faq__heading,
.lp-faq__list-item .lp-expandable-content__toggler h3.lp-faq__heading,
.sv-editing-mode .pagecontent .lp-expandable-content.lp-faq__faq > *:nth-child(odd) h2.lp-faq__heading,
.sv-editing-mode .pagecontent .lp-expandable-content.lp-faq__faq > *:nth-child(odd) h3.lp-faq__heading {
  font-family: 'open sans', Arial, Helvetica, sans-serif !important;
  font-size: 1.8rem;

  flex-grow: 1;
}

.lp-faq__content p.preamble {
  margin-top: 0;
}

/* Öppen */

.lp-faq__list-item .lp-expandable-content .lp-expandable-content__toggler {
  background: rgba(253,200,0,0.2);
  border: 1px solid transparent;
  border-bottom: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.lp-faq__list-item .lp-expandable-content__toggler[aria-expanded='true'] {
  border-color: #979797;
}


.lp-faq__content.lp-expandable-content__content {
  border: 1px solid transparent;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-top: 0;
  transition: border 0.3s ease;
}

.lp-faq__content.lp-expandable-content__content[aria-hidden='false'] {
  border-color: #979797;
}

/* Hover/Fokus */

.lp-faq__list-item .lp-expandable-content .lp-expandable-content__toggler:hover,
.lp-faq__list-item .lp-expandable-content .lp-expandable-content__toggler:focus {
  background: rgba(253,200,0,0.4);
}

/* Fix */

.lp-expandable-content__content .sv-text-portlet-content * {
  white-space: normal;
}

ul.lp-faq__list ul {
  list-style: disc;
}

ul.lp-faq__list ul ul {
  list-style: circle;
}
