/*
=========================================================
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-edit-mode .lp-expandable-content > *:nth-child(odd),
.lp-expandable-content .lp-expandable-content__toggler,
.sv-edit-mode .lp-expandable-content > *:nth-child(even),
.lp-expandable-content__content {
  padding: 1rem 2rem 1rem;
}

/*
---------------------------------------------------------
WRAP
--------------------------------------------------------- */

.sv-edit-mode .lp-expandable-content > *:nth-child(odd),
.sv-edit-mode .lp-expandable-content > *:nth-child(even),
.lp-expandable-content__wrap {
  border: 1px solid #b4b4b4;
  border-radius: 4px;
}

.sv-edit-mode .lp-expandable-content > *:nth-child(odd),
.lp-expandable-content__wrap {
  margin-top: 1.5rem;
}

.sv-edit-mode .lp-expandable-content > *:nth-child(odd) {
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.sv-edit-mode .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 {
  border: 0;
}

.sv-edit-mode .lp-expandable-content > *:nth-child(odd),
.lp-expandable-content .lp-expandable-content__toggler {
  -webkit-box-align: center;
  align-items: center;
  background-color: transparent;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  font-weight: 500;
  text-align: left;
  width: 100%;
}

.lp-expandable-content .lp-expandable-content__toggler {
  color: inherit;
}

.sv-edit-mode .lp-expandable-content > *:nth-child(odd) .subheading,
.sv-edit-mode .lp-expandable-content > *:nth-child(odd) .normal,
.lp-expandable-content__toggler .subheading,
.lp-expandable-content__toggler .normal {
  color: inherit;
  font-size: 2rem;
  margin-bottom: 0 !important;
}

.lp-expandable-content__toggler > .sv-text-portlet {
  -webkit-box-flex: 1;
  flex-grow: 1;
  -ms-flex-positive: 1;
}

.lp-expandable-content__toggler > .lp-toggler-icon {
  -ms-flex-order: 1;
  font-size: 2.1rem;
  margin-left: 1rem;

  -webkit-box-ordinal-group: 2;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  order: 1;
  pointer-events: none;
}


/*
---------------------------------------------------------
ANSWER
--------------------------------------------------------- */

.sv-edit-mode .lp-expandable-content > *:nth-child(even),
.lp-expandable-content__content {
  background: transparent;
}


/*
---------------------------------------------------------
STATES
--------------------------------------------------------- */

.lp-expandable-content .lp-expandable-content__toggler:hover,
.lp-expandable-content .lp-expandable-content__toggler:focus {
  background-color: #ecf0f6;
  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;
}
