@import '../../scss/mixin';

.customCardGroup {
  @include containerNegative();
  position: relative;

  .swiper {
    position: relative;
    overflow: visible;
    padding-top: size(10);
    padding-bottom: size(5);
  }

  .swiper-slide {
    height: auto;
  }
}

.customCardGroupNav {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  color: var(--llm-color-foreground);
  display: flex;
  gap: size(3);
  pointer-events: none;

  @include bp(md) {
    right: 0;
    left: auto;
  }

  button {
    color: currentColor;
    pointer-events: auto;
    cursor: pointer;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(-180deg);

    &:last-child {
      right: 16px;
      left: auto;
      transform: translateY(-50%) rotate(0deg);
    }

    @include bp(sm) {
      left: 28px;

      &:last-child {
        right: 28px;
      }
    }

    &[disabled] {
      cursor: auto;

      svg {
        rect {
          fill: #989898;
        }
      }
    }

    &.swiper-button-lock {
      display: none;
    }

    svg {
      width: 40px;
      height: 40px;

      @include bp(sm) {
        width: 56px;
        height: 56px;
      }
    }
  }
}

.customCardGroupSlide {
  height: auto;

  :global(.customCard) {
    height: 100%;
  }
}