@import "settings.colors";

@import "mixins/settings.fonts";
@import "mixins/tools.mixins";

.o-related-articles {
  margin-top: rem(26);
  margin-bottom: rem(26);
  padding: rem(10) rem(10) 0 rem(10);
  border: 1px solid $color-stone-200;
  background-color: $color-white;
  .o-card {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-color: $color-stone-150;
    &:first-child {
      border-color: $color-stone-200;
    }
  }
  .o-card--story .o-card__content-text {
    @include font-pratt;
  }
  .o-card__content-number {
    @include font-gm-sans-bold;
    color: $color-red-900;
    font-size: rem(12);
    line-height: 1;
    letter-spacing: rem(1);
    margin-left: rem(4);
    display: inline-block;
    vertical-align: middle;
  }
  .c-label--card {
    .c-label--card__content {
      margin-bottom: rem(6);
    }
  }
}
.o-related-articles--stone {
  background-color: $color-stone-100;
  .o-card {
    background-color: transparent;
  }
}
.o-related-articles__heading {
  @include font-gm-sans-bold;
  margin-top: 0;
  margin-bottom: rem(10);
  text-transform: uppercase;
  font-size: rem(12);
  letter-spacing: rem(1);
}

.o-related-articles--thumbnail {
  .o-card--story .o-card__content-text {
    @include font-pratt-bold;
  }

  .o-card__content .o-card__col:nth-child(1) {
    margin-right: 0;
  }

  .o-card__content .o-card__col:nth-child(2) {
    flex: none;
    margin-left: rem(10);
    width: rem(70);
  }

  .o-card__content-price {
    @include font-gm-sans;
    padding-top: rem(15);
    text-transform: uppercase;
    font-size: rem(12);
    letter-spacing: rem(1);
    color: $color-grey-900;

    .o-card__content-price-asking + .o-card__content-price-selling {
      display: block;
      padding-top: rem(5);
    }

  }

  @include mq($from: rem(420)) {
    .o-card__content-price {
      .o-card__content-price-asking {
        margin-right: rem(15);
      }

      .o-card__content-price-asking + .o-card__content-price-selling {
        display: inline-block;
      }
    }
  }

  @include mq($from: mobileWide) {
    .o-card__content-price {
      font-size: rem(14);
    }
  }

  @include mq($from: tablet) {
    .o-card__content .o-card__col:nth-child(2) {
      width: rem(120);
    }
  }
}


