.banner-info {
  height: 100%;
  background-color: $gray-dark-transparent80;
  text-align: center;
  color: $white;

  &__offer {
    background-color: $red;
  }

  &__range {
    position: relative;

    &::after {
      content: '';
      height: 1px;
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
      background-color: $gray;
    }
  }

  &__description {
    @include media-breakpoint-down(md) {
      display: none;
    }
  }
}

.banner-info_large {
  padding: 40px 45px;

  @include media-breakpoint-down(md) {
    padding: 20px 10px;
  }

  .banner-info {
    &__offer {
      font-size: 2.875rem;
      line-height: 3.75rem;
      font-weight: 700;

      @include media-breakpoint-down(md) {
        margin: auto;
        max-width: 180px;
        font-size: 1.875rem;
        line-height: 2.5rem;
      }

      &__small {
        line-height: 1.4rem;
        font-size: 1rem;
        padding-bottom: 8px;
        font-weight: normal;
      }

      &__small-secondary {
        padding-top: 8px;
        padding-bottom: 0;
      }
    }

    &__range {
      margin-top: 10px;
      padding-bottom: 16px;

      @include media-breakpoint-down(md) {
        margin-top: 5px;
        padding-bottom: 10px;
        font-size: 1.5rem;
        line-height: 1.875rem;
        font-weight: 400;
      }

      &::after {
        width: 210px;

        @include media-breakpoint-down(md) {
          width: 150px;
          bottom: 5px;
        }
      }
    }

    &__term {
      margin-top: 20px;
      font-size: 1.125rem;
      line-height: 1.3125rem;

      @include media-breakpoint-down(md) {
        @include info-text;
        margin-top: 0;
      }
    }

    &__secondary-title {
      font-size: 1.6rem;
      white-space: pre-line;
    }

    &__description {
      margin-top: 20px;
    }

    &__action {
      min-width: 150px;
      margin-top: 20px;

      @include media-breakpoint-up(lg) {
        @include button-large;
        min-width: 210px;
      }

      @include media-breakpoint-down(md) {
        margin-top: 10px;
      }
    }
  }
}

.hero__banner {
  .banner-info {
    @include media-breakpoint-down(xs) {
      text-align: left;
      background-color: $gray-dark;

      &__offer {
        max-width: 100%;
        text-align: center;
        margin-bottom: 10px;

        &__small {
          display: inline-block;
        }
      }

      &__term {
        font-size: .85rem;
      }

      &__action {
        width: 100%;
        margin-top: 20px;
      }
    }

    &__secondary-title {
      @include media-breakpoint-down(md) {
        font-size: 1.4rem;
      }
    }

    &__range {
      padding-bottom: 25px;
      margin-bottom: 25px;

      @include media-breakpoint-down(md) {
        padding-bottom: 25px;
        margin-bottom: 5px;
      }

      @include media-breakpoint-down(xs) {
        font-size: 1.6rem;
        margin-bottom: 10px;
        padding-bottom: 0;

        &::after {
          display: none;
        }
      }
    }
  }
}

.banner-info_small {
  padding: 24px 15px;

  .banner-info {
    &__offer {
      font-size: 1.875rem;
      line-height: 2.1875rem;
      font-weight: 700;
      width: 100%;
      padding: 7px;
    }

    &__range {
      margin-top: 20px;
      padding-bottom: 21px;
      font-size: 1.875rem;
      line-height: 2.1875rem;
      font-weight: 500;

      &::after {
        width: 190px;
      }
    }

    &__term {
      font-size: 1rem;
      line-height: 1.125rem;
      margin-top: 15px;
    }

    &__description {
      margin-top: 20px;
      line-height: 1.125rem;
    }

    &__action {
      @include button-full;
      margin-top: 17px;

      @include media-breakpoint-down(md) {
        margin-top: 26px;
      }
    }
  }
}
