/* Accordion */
#html-body {
  .accordion-header,
  [data-role="collapsible"] [data-role="title"] {
    cursor: pointer;
    padding: 16px;
    background-color: var(--sand);
    margin-top: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
  }

  .accordion-header::after,
  [data-role="collapsible"] [data-role="title"]::after {
    display: inline-block;
    content: '';
    height: 24px;
    width: 24px;
    background-image: url(../images/plus-icon.svg);
    transition: background 0.2s ease;
  }

  .accordion-header[aria-expanded="true"]::after,
  [data-role="collapsible"] [data-role="title"][aria-expanded="true"]:after {
    background-image: url(../images/minus-icon.svg);
  }

  [data-role="collapsible"] [data-role="title"] a {
    /* include .h3() */
    font-family: "Roboto Condensed", Arial;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
    text-decoration: none;
  }

  .accordion-content {
    display: none;
    padding: 16px;
    background: var(--white);

    li a {
      font-family: "Roboto Condensed";
      font-size: 18px;
      font-style: normal;
      font-weight: 400;
      line-height: 130%;
      letter-spacing: 0.36px;
    }
  }

  [data-role="collapsible"] [data-role="content"] {
    padding: 0;
    background: var(--white);
    border-radius: 0 0 4px 4px;
    display: none;

    > p {
      padding: 16px;
    }

    li a  {
      display: block;
      font-family: "Roboto Condensed";
      font-size: 18px;
      font-style: normal;
      font-weight: 400;
      line-height: 130%;
      letter-spacing: 0.36px;
      padding: 8px 16px;
    }
  }

  [data-role="collapsible"] [data-role="title"][aria-expanded="true"] {
    background-color: var(--sand-dark);
  }

  .accordion-item.open .accordion-content {
    display: block;
  }

  .accordion-toggle-icon img {
    transition: opacity 0.2s ease;
  }

  .footer.content .footer-accordion-item {
    border-bottom: 1px solid var(--white);
  }

  .footer.content .footer-accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
  }

  .footer.content .footer-accordion-header::after {
    content: '';
    display: block;
    background-image: url(../images/arrow-up-white.svg);
    transform: rotate(180deg);
    height: 24px;
    width: 24px;
    transition: transform 0.3s ease;
  }

  .footer.content .footer-accordion-header.active::after {
    transform: rotate(0deg);
  }

  .footer.content .footer-accordion-content {
    display: none;
    margin-bottom: 16px;
  }

  .footer-accordion-content li {
    margin: 4px 0;
  }

  @media (min-width: 1025px) {
    .footer.content .footer-accordion-item {
      border-bottom: none;
    }
    
    .footer.content .footer-accordion-header {
      pointer-events: none;
      padding: 0 0 16px 0;
    }

    .footer.content .footer-accordion-header::after {
      display: none;
    }

    .footer.content .footer-accordion-content {
      display: block;
    }  
  }
}