@import '~moda-themes';
@import '~@glidejs/glide/dist/css/glide.core.min.css';
@import '../../../shared/constants/breakpoints.scss';

.AddToCartRecsSlider {
  $self: &;
  flex-direction: row;
  position: relative;
  background-color: color('light-grey');
  padding: 16px 0;

  @media screen and (max-width: $small) {
    display: block;
    overflow: hidden;
  }

  .mo-web-loader.mo-web-loader--large {
    min-height: unset;
  }

  &__block {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: 296px;
    min-height: 296px;
    background-color: color('white');
  }

  &__loading {
    padding-top: 8px;
    align-self: center;
  }

  @media screen and (max-width: $small) {
    position: absolute;
    z-index: 10000001;
    left: 0;
    right: 0;
    bottom: 0;
  }

  &__header {
    display: flex;
    color: color('black');
    padding-right: 16px;
    padding-left: 16px;
    padding-bottom: 8px;
    #{$self}__title {
      flex: 1;
      justify-content: left;
      font-family: font-family('serif');
      font-size: 20px;
    }

    #{$self}__close-icon {
      justify-content: right;
      align-self: center;
    }
  }

  &__carousel-wrapper {
    padding-left: 1px;
    padding-right: 1px;
    img {
      border-radius: 5px;
    }
  }
}
