.finance {
  &__container {
    @include make-container;
    @include make-container-max-widths;
  }

  &__main {
    @include media-breakpoint-down(sm) {
      background-color: $gray-light;
    }
  }

  &__main-inner {
    @include clearfix;
    background-color: $gray-light;
    padding: 30px 95px 30px 30px;
    @include media-breakpoint-only(md) {
      padding: 30px 45px 30px 30px;
    }
    @include media-breakpoint-down(sm) {
      background-color: initial;
      padding: 20px 0 30px;
    }
  }

  &__img {
    width: 220px;
    @include media-breakpoint-up(md) {
      float: left;
      margin-right: 35px;
    }
    @include media-breakpoint-down(sm) {
      margin-bottom: 30px;
      width: 100%;
    }
  }

  &__info {
    overflow: hidden;
  }

  &__header {
    margin-bottom: 20px;
    text-align: left;
  }

  &__subheader {
    margin-bottom: 10px;
  }

  &__description {
    margin-bottom: 20px;
  }

  &__header,
  &__subheader,
  &__description {
    @include media-breakpoint-down(sm) {
      display: none;
    }
  }

  &__btn-more {
    @include button-min160;
  }
}

.terms {
  border-bottom: 1px solid $gray;

  @include media-breakpoint-up(md) {
    padding: 20px 0;
  }

  &__header {
    @include heading-4;
    font-weight: 500;
    margin-bottom: 10px;

    @include media-breakpoint-down(sm) {
      display: none;
    }
  }

  &__btn-accordion {
    @include primary-text;
    padding: 20px 0;
    color: $blue;
    cursor: pointer;

    @include media-breakpoint-up(md) {
      display: none;
    }

    .icon {
      margin-right: 10px;

      .fa-angle-down {
        .terms_expanded & {
          transform: rotate(180deg);
        }
      }
    }
  }

  &__btn-toggle {
    cursor: pointer;

    @include media-breakpoint-down(sm) {
      display: none;
    }

    .terms:not(.terms_expanded) & {
      @include media-breakpoint-up(md) {
        display: inline-block;
        padding-top: 4px;
      }
    }
  }

  &__content {
    line-height: 1.375rem;
    height: calc(1.375rem * 3); // Keep only 3 lines of text visible
    overflow: hidden;

    @include media-breakpoint-down(sm) {
      display: none;
      padding-bottom: 20px;
    }

    .terms_expanded & {
      display: block;
      height: auto;

      @include media-breakpoint-up(md) {
        display: inline;
        padding-right: 8px;
      }
    }
  }
}
