/*
=========================================================
FAQ
=========================================================
 * Contains styling for the FAQ.
 *
 * Limepark AB, 2017
=========================================================*/

.lp-decoration-faq {
  margin: 1rem 0 1rem;
}

.sv-edit-mode .lp-decoration-faq > *:nth-child(odd),
.lp-decoration-faq .lp-decoration-faq__toggler,
.sv-edit-mode .lp-decoration-faq > *:nth-child(even),
.lp-decoration-faq__content {
  padding: 1.2rem 2rem;
}

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

.sv-edit-mode .lp-decoration-faq > *:nth-child(odd),
.sv-edit-mode .lp-decoration-faq > *:nth-child(even),
.lp-decoration-faq__wrap {
  border: 1px solid #ddd;
  border-radius: 5px;
}

.sv-edit-mode .lp-decoration-faq > *:nth-child(odd),
.lp-decoration-faq__wrap {
  margin-top: 1.5rem;
}

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

.sv-edit-mode .lp-decoration-faq > *:nth-child(even) {
  border-top: 0;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}


/*
---------------------------------------------------------
QUESTION/BUTTON
--------------------------------------------------------- */

.lp-decoration-faq__wrap .lp-decoration-faq__toggler {
  border: 0;
}

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

.sv-edit-mode .lp-decoration-faq > *:nth-child(odd) .subheading,
.sv-edit-mode .lp-decoration-faq > *:nth-child(odd) .normal,
.lp-decoration-faq__toggler .subheading,
.lp-decoration-faq__toggler .normal {
  color: inherit;
  font-weight: inherit;
  margin-bottom: 0 !important;
  margin-top: 0;
  font-size: 2.4rem;
}

.lp-decoration-faq__toggler > .sv-text-portlet,
.lp-decoration-faq__toggler > .sv-portlet {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
}

.lp-decoration-faq__toggler > .lp-toggler-icon {
  font-size: 1.25em;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-box-ordinal-group: 2;
  -ms-flex-order: 1;
  order: 1;
  margin-left: 2rem;
}


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

.sv-edit-mode .lp-decoration-faq > *:nth-child(even),
.lp-decoration-faq__content {
  background: transparent;
}


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

.lp-decoration-faq .lp-decoration-faq__toggler:hover,
.lp-decoration-faq .lp-decoration-faq__toggler:focus {
  background-color: #eee;
  text-decoration: underline;
}

/* Closed/Opened */
.lp-decoration-faq__toggler[aria-expanded='false'] .lp-toggler-icon--close {
  display: none;
}

.lp-decoration-faq__toggler[aria-expanded='true'] .lp-toggler-icon--open {
  display: none;
}
