
/**
 * Accordion styles
 */
.wf-accordion-group + * {
    margin-top: 20px;
}

/* All accordions have borders… */
.wf-accordion:not(:last-child) {
   border-bottom: solid 1px #e5cac1;
   
}

/* …unless they directly succeed another accordion, in which case we reset the top-border
  to avoid duplicate white space */
.wf-accordion + .wf-accordion {
    border-top-width: 0;
}

.wf-accordion__header {
    color: #616161;
    
}

/* Please note: The trigger element is a <button> create via JS. To achieve consistent aesthetics,
   the native button styles have to be resetted here */
.wf-accordion__trigger {
    /* baseline resets */
    background: transparent;
    border-width: 0;
    border-radius: 0;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    color: var(--primary);
    font-size: 20px;
    line-height: 1.2em;
    font-weight: 700;
    margin: 0;
    padding: 0;
    text-align: left;
    text-decoration: none;
    /* end of baseline resets */

    /* additional styles for the demo */
    display: block;
    padding: 15px 40px 15px 30px;
    position: relative;
    width: 100%;
}

.wf-accordion__trigger::after {
     content: '';
     border: solid #bfbfbf;
     border-width: 0 2px 2px 0;
     height: 0.5em;
     position: absolute;
     right: 20px;
     top: 50%;
     transform: translateY(-60%) rotate(45deg);
     width: 0.5em;
 }

.wf-accordion__trigger[aria-disabled=true] {
    cursor: not-allowed;
    opacity: 0.5;
}

.wf-accordion__trigger[aria-expanded=true]::after {
     transform: translateY(-30%) rotate(-135deg);
}

.wf-accordion__trigger:hover,
.wf-accordion__trigger:focus {
    
    color: var(--primary);
}

.wf-accordion__trigger:hover::after,
.wf-accordion__trigger:focus::after {
     border-color: #161616;
}

.wf-accordion__panel {
    background: transparent;
    padding: 5px 40px 25px 30px;
}

.wf-accordion__panel[aria-hidden=true] {
   display: none;
}