@import '~moda-themes';
@import '../../../shared/constants/breakpoints.scss';

.AddToCartRecCard {
  $self: &;
  width: 100%;
  height: 296px;
  background-color: color('white');
  font-family: font-family('sans');
  letter-spacing: 0.09px;

  &__image-wrapper-compact {
    width: 104px;
    height: 170px;
    padding-top: 8px;
  }

  &__image-wrapper-detailed {
    width: 45px;
    height: 74px;
    padding-top: 4px;
  }

  &__block {
    display: flex;
    flex-direction: row;
    justify-content: center;

    .image-wrapper {
      img {
        border-radius: 5px;
        @media print, screen and (max-width: $small) {
          width: 100%;
        }
      }
      @media print, screen and (max-width: $small) {
        display: block;
        float: none;
        width: 100%;
      }
    }
  }

  &__text-overflow {
    width: 80%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    ::-webkit-scrollbar {
      display: none; // Safari and Chrome
    }
  }

  &__designer-name-compact {
    font-size: 16px;
    line-height: 1.18;
    padding-top: 8px;
    color: color('cement');
  }

  &__designer-name-detailed {
    font-size: 14px;
    line-height: 1.2;
    color: color('cement');
    padding-top: 4px;
  }

  &__product-name-compact {
    font-size: 14px;
    line-height: 1.18;
    color: color('nokia');
    padding-top: 8px;
  }

  &__product-name-detailed {
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.16;
    color: color('nokia');
    padding-top: 4px;
  }

  &__price-detailed {
    font-size: 12px;
    line-height: 1.16;
    color: color('black');
    padding-top: 6px;
    padding-bottom: 8px;
  }

  &__price-compact{
    font-size: 14px;
    line-height: 1.18;
    color: color('black');
    padding-top: 8px;
  }

  &__expand {
    padding-top: 12px;
  }

  &__detailed {
    padding-top: 8px;
  }

  &__added{
    background-color: color('burnt-orange') !important;
    color: color('white') !important;
  }

  .mo-display-button {
    $self: &;
    width: 80%;
    display: inline-block;
    align-items: center;
    font-size: 14px;
    line-height: 1.2;
    background: color('black');
    font-family: font-family('sans');
    color: color('white');
    padding: 12px;
  }
}
