.advice {
  &__content {
    display: flex;
    align-items: center;
    text-decoration: none;

    &:hover {
      text-decoration: none;

      .advice__button {
        @include button-primary-hover-color;
      }

      .advice__icon {
        background-color: $white;
      }

      .advice__path,
      .advice__polygon {
        fill: $blue;
      }
    }
  }

  &__button {
    margin-right: 15px;
    width: 37px;
    height: 37px;

    &:focus {
      @include button-primary-default-color;
    }

    &:hover {
      @include button-primary-hover-color;
    }
  }

  &__icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    border-radius: 3px;
    transition: all .2s ease;
  }

  &__path,
  &__polygon {
    fill: $white;
  }

  &__title {
    margin: 0;
    color: $gray-dark;
    font-size: 1rem;
    line-height: 1.125rem;
    font-weight: 500;
    text-decoration: none;
  }

  &__link {
    max-width: 280px;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: underline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  &__info {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: 37px;
  }

  &-energy {
    .advice__content {
      align-items: flex-start;
    }

    .advice__info {
      height: auto;
    }

    .advice__link {
      white-space: initial;
      overflow: auto;
      max-width: 175px;
    }
  }
}

@include media-breakpoint-down(sm) {
  .advice {
    &__link {
      max-width: 220px;
    }
  }
}

