.ds2-section-break {

  // do all typography rules in separate base level component
  
  $ds2-content-size: 16px;
  $ds2-content-weight: normal;

  h2,h3,h4,h5 {
    font-family: uolSans, sans-serif;
  }

  .ds2-xl {
    font-size: 32px;
    line-height: 1.09;
    margin: 0 0 30px;

    @include media(">=uol-media-m") {
      font-size: 48px;
      line-height: 1.04;
      margin: 0 0 50px;
    }
  }

  .ds2-l {
    font-size: 27px;
    line-height: 1.11;
    margin: 0 0 20px;

    @include media(">=uol-media-m") {
      font-size: 36px;
      line-height: 1.11;
      margin: 0 0 30px;
    }
  }

  .ds2-m {
    font-size: 21px;
    line-height: 1.19;
    margin: 0 0 15px;

    @include media(">=uol-media-m") {
      font-size: 24px;
      line-height: 1.25;
      margin: 0 0 20px;
    }
  }

  .ds2-s {
    font-size: 19px;
    line-height: 1.32;
    margin: 0 0 15px;

    @include media(">=uol-media-m") {
      font-size: 19px;
      line-height: 1.32;
      margin: 0 0 20px;
    }
  }

  &:first-of-type {
    .ds2-section-break__summary {
      border-top: 1px solid $color-brand-black-20;
    }
  }
  &__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid $color-brand-black-20;
    
    h2 {
      @extend .ds2-xl;
      
      margin: 0 !important;
    }

    @include media(">=uol-media-l") {
      padding: 32px 48px;
    }
    
    cursor: pointer;

    &:before, &:after {
      content: "\2193";
      font-family: uolSans, sans-serif;
      font-size: 32px;
      display: block;
    }

    &:before {
      display: none;
      
      @include media(">=uol-media-l") {
        display: block;
      }
    }    
    
    &__inner {
      width: 100%;
      max-width: 1440px;
      margin: 0 auto;
      text-align: left;

      @include media(">=uol-media-l") {
        text-align: center;
      }
    }
  }

  &__content {
    padding: 24px;
    margin: 0 auto;
    
    @include media(">=uol-media-l") {
      padding: 68px 120px;
    }

    &__inner {
      max-width: 1440px;
      margin: 0 auto;

      h3 {
        @extend .ds2-l;
      }

      h4 {
        @extend .ds2-m;
      }

      h5 {
        @extend .ds2-s;
      }

      h3:first-of-type {
        margin-top: 0;
      }

      p:last-of-type {
        margin-bottom: 0;
      }
      
      p {
        font-family: uolInter, "Arial";
        font-size: $ds2-content-size;
        font-weight: $ds2-content-weight;
        line-height: 24px;
      }
    }
  }

  &[open] {
   .ds2-section-break__summary::before,
    .ds2-section-break__summary::after {
      transform: rotate(180deg);
    }
  }
}

// theme options

// default
.ds2-section-break {
  .ds2-section-break__summary {
    color: black;
    background-color: $color-brand-black-5;
  }
  .ds2-section-break__content {
    color: black;
    background-color: $color-brand-black-10;
  }
}

// green
.ds2-section-break--green {
  .ds2-section-break__summary {
    color: black;
    background-color: rgba($color-brand-vivid-green, 0.1);
  }
  .ds2-section-break__content {
    color: black;
    background-color: rgba($color-brand-vivid-green, 0.4);
  }
}


