.et-widget-accordion {

  .et-accordion-items {
    column-gap: 2px; // for CSS multi-column layout
  }

  .et-accordion-item-heading {
    .et-textfield {
      flex-basis: 100%; // needed to make text-alignment work visually
      margin-bottom: 0;
    }
  }

  .et-accordion-item-content {
    p {
      margin-top: 5px;
      margin-bottom: 5px;
    }
    p:first-of-type {
      margin-top: 0;
    }
    p:last-of-type {
      margin-bottom: 0;
    }
  }

  .card {
    border-color: $colorPrimary2;
    break-inside: avoid; // for CSS multi-column layout
  }
  .card-header {
    background-color: $colorPrimary2;
    color: color-yiq($colorPrimary2);
    cursor: pointer;
  }
  .card-body {
    background-color: $colorNeutral3;
    color: color-yiq($colorNeutral3);
    padding: 20px 20px;
    @include media-breakpoint-up(sm) {
      padding-left: 20px;
      padding-right: 20px;
    }
    @include media-breakpoint-up(md) {
      padding-left: 50px;
      padding-right: 50px;
    }
    @include media-breakpoint-up(lg) {
      padding-left: 80px;
      padding-right: 80px;
    }
  }

  .et-accordion-item:not(:last-child) {
    margin-bottom: 2px;
  }

  .et-accordion-item-style-large {
    .card-header {
      padding: 20px 20px;
    }
  }

  .et-accordion-item-style-compact {
    .card-header {
      padding: 10px 15px;
    }
  }

  div.et-accordion-sub-headline {
    margin-bottom: $grid-gutter-width / 2;
  }
}
