.card {
  flex-direction: row;
  margin-bottom: 30px;
  background: inherit;
  border: 0;

  &.descr--normal {
    .product-card__description .card_offer_text {
      color: $gray-dark;
    }
  }
}

.card_horizontal {
  width: 100%;
}

.card__inner {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  background-color: $white;
  border: 1px solid $gray;

  .card_filled &,
  .card_horizontal &,
  .component_filled {
    border: 0;
  }

  .card_filled &,
  .card_horizontal & {
    background: $gray-light;
  }

  .card_filled & {
    text-align: center;
  }

  .card_horizontal & {
    @include media-breakpoint-up(md) {
      //@include make-row;
      flex-direction: row;
      padding: 30px 15px;
    }
  }

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

  .is-secondary & {
    flex-direction: row;
    border-left: 0;
    border-right: 0;


    @include media-breakpoint-up(sm) {
      flex-direction: column;
      border-left: 1px solid $gray;
      border-right: 1px solid $gray;
    }

    .product-card__wrap,
    .card__img-wrap {
      width: 50%;

      @include media-breakpoint-up(sm) {
        width: auto;
      }
    }

    .card__img {

      @include media-breakpoint-down(sm) {
        padding-top: 15px;
        padding-bottom: 10px;
        display: block;
        border-bottom: 0;
      }
    }
  }

  &.background-image {
    // sass-lint:disable no-url-domains
    // sass-lint:disable no-url-protocols
    background-image: url('https://wickes.scene7.com/is/image/travisperkins/2018-Black-friday-BG-TEXTURE');
    background-position: center;

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

.card__offers {
  @include badges;

  .full-width-offers & {

    width: 100%;
  }

  &-item {
    @include badge;

    &_new {
      background-color: $green-light;
    }

    &_clearance {
      background-color: $yellow;
      color: $gray-dark;
    }

    &_ends {
      background-color: $gray-dark-transparent75;
      font-size: .75rem;
      font-weight: 500;
      line-height: 14px;
    }

    &_discount-old-price {
      text-decoration: line-through;
      display: inline-block;
    }
  }
}

.card__points {
  list-style: none;

  li {
    position: relative;
  }

  .positive {
    i,
    svg {
      color: $positive;
    }
  }

  .negative {
    i,
    svg {
      color: $negative;
    }
  }

  &-type {
    position: absolute;
    left: -20px;
  }
}

.card__img-wrap {
  flex-shrink: 0;
  position: relative;

  .card_horizontal & {
    @include media-breakpoint-up(md) {
      @include make-col-ready;
    }
    @include media-breakpoint-only(md) {
      @include make-col-ready;
      @include make-col(6);
    }
    @include media-breakpoint-up(lg) {
      @include make-col(3);
    }
  }

  .card_horizontal.large & {
    @include media-breakpoint-up(md) {
      @include make-col-ready;
    }
    @include media-breakpoint-only(md) {
      @include make-col-ready;
      @include make-col(6);
    }
    @include media-breakpoint-up(lg) {
      @include make-col(4);
    }
  }
}

.card__promo {
  color: $white;
  text-align: center;
  position: absolute;
  top: 0;
  right: 0;

  &__header {
    font-size: 18px;
    padding: 0 10px;
    background-color: $red;

    &--new {
      background-color: $green-light;
    }
  }

  &__footer {
    padding: 0 10px;
    background: $black-transparent60;
  }
}

.card__img {
  max-width: 100%;
  width: 100%;
}

.card__solid-bg {
  background-color: $blue-dark;
  color: $white;

  text-align: center;

  .card__solid-bg-inner {
    padding: 20px 5px;
    font-size: 1.1rem;

    img {
      margin-right: 5px;
    }
  }

}

.card__content {
  flex: 1 0 auto;
  padding-top: 20px;
  padding-right: 15px;
  padding-left: 15px;

  .card_filled & {
    @include media-breakpoint-up(md) {
      padding-top: 24px;
    }
  }

  .no-underline {
    text-decoration: none;
  }

  .card_horizontal & {
    @include media-breakpoint-up(md) {
      @include make-col-ready;
      padding-top: 0;
      padding-bottom: 0;
    }
    @include media-breakpoint-only(md) {
      @include make-col(6);
    }
    @include media-breakpoint-up(lg) {
      @include make-col(9);
    }
  }

  .card_horizontal.large & {
    @include media-breakpoint-up(md) {
      @include make-col-ready;

      padding-top: 0;
      padding-bottom: 0;
    }
    @include media-breakpoint-only(md) {
      @include make-col(6);
    }
    @include media-breakpoint-up(lg) {
      @include make-col(8);
    }
  }
}

.card__title {
  font-weight: bold;
  font-size: 1rem;
  line-height: 24px;
  margin-bottom: 8px;

  &.with-link {
    text-decoration: none;
    color: $gray-dark;
    font-weight: 600;
  }

  div {
    font-weight: 100;
  }

  .card_filled & {
    @include media-breakpoint-down(sm) {
      margin-bottom: 16px;
    }
    @include media-breakpoint-up(md) {
      font-size: 1.125rem;
      margin-bottom: 20px;
    }
  }

  .card_overview & {
    text-align: center;
  }

  .card_horizontal & {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;

    @include media-breakpoint-down(sm) {
      margin-top: 14px;
    }
  }

  &.with-background {
    border: 1px solid $black;
    padding: 10px;
    background: $white;
  }
  @include media-breakpoint-down(sm) {
    width: 100%;
  }
}

.background-banner {
  border: 1px solid $black;
  padding: 10px;
  background: $red;
  color: $white;
}

.card__descr {
  margin-bottom: 20px;

  .product-card & {
    line-height: 1.125rem;
  }

  .range-list__next-steps & {
    height: 42px;
    overflow: hidden;
  }

  &.clearboth {
    clear: both;
  }
}

.card__actions {
  margin-top: 10px;
  padding-right: 15px;
  padding-left: 15px;
  padding-bottom: 20px;
  text-align: center;

  .link-secondary {
    font-weight: 500;
  }

  @include media-breakpoint-up(md) {
    .card_horizontal & {
      text-align: left;
      padding: 0;
    }
  }
}

.card__list {
  margin: 0;
  padding: 0 0 5px;
  list-style: none;
  line-height: 1.375rem;

  &-item {
    position: relative;
    padding: 0 0 10px 38px;
  }

  .fa-check {
    position: absolute;
    top: 3px;
    left: 0;
    width: 18px;
    color: $green;
    font-size: 1.125rem;
  }

  .fa-times {
    position: absolute;
    top: 3px;
    left: 0;
    width: 18px;
    color: $red;
    font-size: 1.125rem;
  }
}
