.slots-s {
  @include media-breakpoint-down(sm) {
    max-width: 100vw;
  }
}

.play-game-animation {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto;

  img {
    width: 20px;
  }
}

.slots-wrap {
  position: relative;
  padding: 0;
  background-color: transparent;
  border-radius: 14px;
  transition: 0.3s ease;
  overflow: hidden;
  &:hover {
    background-color: #dfe2ee;
  }
}

.slots-img {
  position: relative;
  border-radius: 14px 14px 0 0;
  overflow: hidden;

  &_image-only {
    border-radius: 8px;
  }

  &:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: 0.3s ease;
    z-index: 2;
  }

  &:hover {
    &:before {
      opacity: 1;
    }

    .hovered-slot-content {
      opacity: 1;
    }
  }

  a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
  }

  .slot-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    object-position: center center;
    object-fit: cover;
    border: 0;
  }

  .bonuses-icons-h {
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 1;
  }
}

.play-for-fun-home-icon {
  .play-game-animation {
    @include media-breakpoint-only(lg) {
      width: 70px;
      height: 70px;
    }
  }

  &_small {
    .play-game-animation {
      @include media-breakpoint-only(lg) {
        width: 40px;
        height: 40px;
      }
    }
  }
}

.hovered-slot-content {
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  transition: 0.3s ease;
}

.slots-ch {
  @include media-breakpoint-down(sm) {
    //overflow-x: scroll;
    // scrollbar-width: thin !important;
    //   scrollbar-color: #8C34FC rgba(172, 172, 191, 0.06);
    .simplebar-track.horizontal {
      height: 2px;
      background: rgba(172, 172, 191, 0.06) !important;

      .simplebar-scrollbar {
        height: 2px;
        top: 0 !important;
        visibility: visible !important;

        &:before {
          opacity: 1 !important;
          background: $blue !important;
        }
      }
    }
  }

  .row {
    margin-bottom: 24px;

    @include media-breakpoint-down(sm) {
      width: 960px;
      margin: 0 -2.5px 10px -2.5px;
    }

    @include media-breakpoint-down(xs) {
      width: 840px;
    }
  }

  .col {
    @include media-breakpoint-down(sm) {
      padding: 0 2.5px;
    }
  }

  p {
    line-height: 18px;

    @include media-breakpoint-down(sm) {
      font-size: 12px;
    }
  }
}

.component-games__swiper-wrapper--card {
  max-height: 550px;
}

.slots-slide-ch {
  .swiper-slide {
    max-width: 171.43px;

    @include media-breakpoint-down(sm) {
      max-width: 114px;
    }
  }

  p {
    line-height: 18px;

    @include media-breakpoint-down(sm) {
      font-size: 12px;
    }
  }
}

.games-scrollbar-h {
  height: 2px;
  background: rgba(172, 172, 191, 0.06);

  .swiper-scrollbar-drag {
    height: 2px;
    background: $blue;
  }
}

.playfina-loading-image-parent {
  display: flex;
  flex-wrap: wrap;
  &__nowrap {
    flex-wrap: nowrap;
  }
}

.before-load-slots {
  .row {
    margin-bottom: 24px;

    @include media-breakpoint-down(sm) {
      margin: 0 -2.5px 10px -2.5px;
    }

    @include media-breakpoint-down(xs) {
      justify-content: center;
    }
  }

  .col {
    @include media-breakpoint-down(sm) {
      padding: 0 2.5px;
    }

    @media (min-width: 531px) and (max-width: 767.98px) {
      flex: 0 0 25% !important;
      max-width: 25% !important;
    }

    @media (max-width: 530px) {
      flex: 0 0 33.33% !important;
      max-width: 33.33% !important;
    }
  }

  .col:nth-child(n + 13) {
    @media (min-width: 531px) and (max-width: 767.98px) {
      display: none;
    }
  }

  .col:nth-child(n + 10) {
    @media (max-width: 530px) {
      display: none;
    }
  }
}

.slots-h {
  @include media-breakpoint-down(sm) {
    overflow: hidden;
  }
  .col-auto {
    picture {
      width: 30px;
      height: 30px;
    }
  }
  &__wrap {
    position: relative;
    width: 100%;
    max-width: 1320px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
    @include media-breakpoint-down(sm) {
      flex-direction: column;
      justify-content: flex-start;
    }
  }
  &__cards {
    position: relative;
    width: 100%;
    &--banner {
      max-width: calc(100% - 448px);
      .slots-img {
        height: 202px;

        @include media-breakpoint-only(md) {
          height: 202px;
        }

        @include media-breakpoint-only(sm) {
          height: 134px;
        }

        @include media-breakpoint-down(xs) {
          height: 154px;
        }
      }
      .swiper-slide {
        max-width: 204px !important;

        @include media-breakpoint-only(md) {
          max-width: 204px !important;
        }

        @include media-breakpoint-only(sm) {
          max-width: 134px !important;
        }

        @include media-breakpoint-down(xs) {
          max-width: 154px !important;
        }
      }
    }
    @include media-breakpoint-down(sm) {
      max-width: 100%;
    }
  }
  &__banner {
    padding: 10px;
    width: 100%;
    max-width: 430px;
    height: max-content;
    display: flex;
    flex: 0 0 auto;
    text-align: center;
    background: $white;
    border-radius: 14px;
    &--left {
      order: 0;
    }
    &--right {
      order: 1;
    }
    @include media-breakpoint-down(sm) {
      order: 1;
      max-width: 100%;
    }
  }
  &__banner-link {
    width: 100%;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
  }
  &__banner-image-picture {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
  }
  &__banner-image {
    width: 100%;
    height: auto;
  }
}

.slots-hold {
  .row {
    @include media-breakpoint-down(xs) {
      margin: 0 -2.5px 10px -2.5px;
    }
  }

  .col {
    @include media-breakpoint-down(sm) {
      padding: 0 2.5px;
    }

    @media (min-width: 531px) and (max-width: 767.98px) {
      flex: 0 0 25% !important;
      max-width: 25% !important;
    }

    @media (max-width: 530px) {
      flex: 0 0 33.33% !important;
      max-width: 33.33% !important;
    }
  }

  .slots-img {
    // @include media-breakpoint-only(sm) {
    //   height: 102px;
    // }

    @include media-breakpoint-down(xs) {
      height: auto;
      padding-bottom: 100%;
    }

    .slot-image {
      @include media-breakpoint-down(xs) {
        position: absolute;
        top: 0;
        left: 0;
      }
    }
  }

  .play-for-fun-home-icon {
    @include media-breakpoint-down(xs) {
      margin-bottom: 0 !important;
    }
  }
}

// .slots-ch::-webkit-scrollbar {
//   height: 2px;
// }

// .slots-ch::-webkit-scrollbar-track {
//   background: rgba(172, 172, 191, 0.06);
// }

// .slots-ch::-webkit-scrollbar-thumb {
//   background: #8C34FC;
// }

.exclusive {
  position: absolute;
  top: 6px;
  left: 6px;

  span {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    color: $white;
    border-radius: 5px;
    margin-bottom: 7px;
  }

  span + span {
    margin-left: 3px;
  }
}

.slot-link {
  padding: 6px 10px;
  @extend .fw-regular;
  font-size: 12px;
  color: #686c7d;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  background-color: $white;
  &:hover {
    color: $black;
  }

  @include media-breakpoint-down(sm) {
    padding: 6px;
    font-size: 12px;
  }
}

.slider-line {
  height: 2px;
  background-color: rgba(172, 172, 191, 0.12);
}

.show-more {
  width: 100%;
  overflow: hidden;

  a {
    padding: 10px 20px;
    @extend .fw-semiBold;
    font-size: 14px;
    color: $blue;
    background-color: $white;
    border-radius: 100px;
    transition: all 0.26s ease-in-out;

    @include media-breakpoint-down(sm) {
      font-size: 12px;
    }

    &:hover {
      background-color: #f6f6fa;
    }
  }

  svg {
    margin-left: 7px;
  }
}

.slider-home-arrows {
  cursor: pointer;

  span {
    width: 36px;
    height: 36px;
    border-radius: 100px;
    background-color: $white;
    transition: all 0.26s ease-in-out;

    svg {
      width: 16px;
    }
  }

  &:hover {
    span {
      background-color: #f6f6fa;
    }
  }
}

.back-to-collections {
  svg {
    position: relative;
    display: block;
    margin-right: 10px;
    bottom: -2px;
  }
}

.slider-home-games-button-next {
  svg {
    transform: rotate(180deg);
  }
}

.all-slots-links {
  padding: 10px 18px;
  @extend .fw-semiBold;
  line-height: 1.43;
  color: $blue;
  background-color: $white;
  border-radius: 100px;
  transition: all 0.26s ease-in-out;

  &:hover {
    color: $blue;
    background-color: #f6f6fa;
  }
}

.back-button-h {
  position: static;

  @include media-breakpoint-down(xs) {
    text-align: right;
  }
}

.back-button-c {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);

  @include media-breakpoint-down(sm) {
    position: static;
    transform: translate(0);
  }
}
