/* B2B Features Grid Block */

/* Arrow buttons */
.b2b-features-grid .b2b-features-arrow-btn {
  width: 32px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-morton-blue);
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
}

.b2b-features-grid .b2b-features-arrow-btn.swiper-button-disabled {
  color: #9ca3af;
  cursor: default;
  opacity: 0.5;
}

/* Flip the prev arrow horizontally */
.b2b-features-grid .b2b-features-arrow-prev {
  transform: scaleX(-1);
}

.b2b-features-grid .b2b-features-arrow-svg {
  width: 100%;
  height: 100%;
}

/* Swiper overrides */
/* overflow-clip-margin extends the clip boundary outward by 20px so the card
   hover scale (~1.03x) is not clipped, while still hiding off-screen slides. */
.b2b-features-grid .b2b-features-swiper {
  overflow: clip;
  overflow-clip-margin: 20px;
}

.b2b-features-swiper .swiper-wrapper {
  height: auto !important;
}

.b2b-features-swiper .swiper-slide {
  height: auto;
  width: 100%;
  min-width: 300px;
}

/* Badge SVG wrapper inside the Discover More card */
.b2b-features-badge-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.b2b-features-badge-svg {
  width: 80%;
  height: 80%;
}

/* Responsive arrow sizing */
@media (min-width: 640px) {
  .b2b-features-grid .b2b-features-arrow-btn {
    width: 40px;
    height: 42px;
  }

  .b2b-features-swiper .swiper-slide {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .b2b-features-grid .b2b-features-arrow-btn {
    width: 46px;
    height: 48px;
  }

  .b2b-features-swiper .swiper-slide {
    width: calc(50% - 12px);
  }
}
