/* Business logos carousel animation */
.business-logos.home-page {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.business-logos__carousel {
  display: flex;
  animation: scroll-logos 30s linear infinite;
  width: fit-content;
}

.business-logo__carousel-item {
  display: flex;
  flex-shrink: 0;
  gap: 40px;
  align-items: center;
  padding-right: 40px;
}

.business-logo__carousel-item img {
  height: 30px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 3));
  }
}

/* Pause animation on hover */
.business-logos.home-page:hover .business-logos__carousel {
  animation-play-state: paused;
}

/* Fix stretched images in Setup tabs */
.setup-img {
  height: auto !important;
  object-fit: contain;
}

/* Fix stretched images in Features tabs (ultimate toolkit section) */
.div-block-10 img {
  height: auto !important;
  width: 100%;
  object-fit: contain;
}

/* Fix Shopify/BigCommerce Lottie animation section */
.bg-image-shopify {
  position: relative;
  overflow: hidden;
}

.shopify-lottie {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 80%;
  max-width: 1243px;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shopify-lottie > div {
  width: 100%;
  height: 100%;
}

.bg-image-shopify .blank-div {
  width: 400px;
  flex-shrink: 0;
}

.bg-image-shopify .flex.gap-140 {
  align-items: center;
  position: relative;
  z-index: 2;
}

.bg-image-shopify .shopify-content {
  position: relative;
  z-index: 2;
}

@media screen and (max-width: 991px) {
  .bg-image-shopify {
    display: none;
  }
}

/* Testimonials Carousel */
.testimonials-carousel-wrapper {
  position: relative;
}

.testimonials-swiper {
  overflow: visible;
}

.testimonials-swiper .swiper-slide {
  height: auto;
}

.testimonials-swiper .feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f6f6f6;
  border: 0.5px solid #e8e8e8;
  border-radius: 8px;
}

.testimonials-carousel-wrapper .swiper-button-next,
.testimonials-carousel-wrapper .swiper-button-prev {
  color: #007aff;
  font-size: 0;
}

.testimonials-carousel-wrapper .swiper-button-disabled {
  opacity: 0.35;
}

/* Partner Program Reasons Tabs */
.partner-reasons .tabs-3 {
  display: flex;
  gap: 40px;
}

.partner-reasons .menu-tabs.w-tab-menu {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.partner-reasons .tabs-content-2 {
  flex: 0 0 350px;
  display: flex;
  align-items: center;
}

.partner-reasons .reason-heading.w-tab-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 24px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  position: relative;
}

.partner-reasons .reason-heading.w-tab-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background-color: #702EFD;
  transition: width 0.5s ease-in-out;
}

.partner-reasons .reason-heading.w-tab-link.w--current::before {
  width: 100%;
}

.partner-reasons .reason-heading.w-tab-link .reason-title {
  color: #c4c4c4;
  transition: color 0.3s ease;
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
}

.partner-reasons .reason-heading.w-tab-link.w--current .reason-title {
  color: #1a1a1a;
}

.partner-reasons .reason-heading.w-tab-link .number-reason {
  color: #c4c4c4;
  font-size: 14px;
  transition: color 0.3s ease;
}

.partner-reasons .reason-heading.w-tab-link.w--current .number-reason {
  color: #702EFD;
}

.partner-reasons .reason-wrap {
  padding: 0;
}

.partner-reasons .reason-desc {
  font-size: 18px;
  line-height: 1.6;
  color: #1a1a1a;
  margin: 0;
}

@media screen and (max-width: 991px) {
  .partner-reasons .tabs-3 {
    flex-direction: column;
  }

  .partner-reasons .tabs-content-2 {
    flex: none;
    width: 100%;
  }

  .partner-reasons .reason-heading.w-tab-link .reason-title {
    font-size: 32px;
  }
}

@media screen and (max-width: 767px) {
  .partner-reasons .reason-heading.w-tab-link .reason-title {
    font-size: 24px;
  }
}

/* Mobile Accordion for Partner Reasons */
.partner-reasons .mobile-accordion {
  display: none;
}

.partner-reasons .desktop-tabs {
  display: flex;
}

@media screen and (max-width: 991px) {
  .partner-reasons .desktop-tabs {
    display: none;
  }

  .partner-reasons .mobile-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .partner-reasons .accordion-item {
    border-bottom: 1px solid #e0e0e0;
  }

  .partner-reasons .accordion-item:first-child {
    border-top: 1px solid #e0e0e0;
  }

  .partner-reasons .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #c4c4c4;
    transition: color 0.3s ease;
  }

  .partner-reasons .accordion-header.active {
    color: #1a1a1a;
  }

  .partner-reasons .accordion-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .partner-reasons .accordion-number {
    font-size: 14px;
    color: #702EFD;
  }

  .partner-reasons .accordion-title {
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
  }

  .partner-reasons .accordion-header.active .accordion-title {
    color: #1a1a1a;
  }

  .partner-reasons .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0 0 26px;
  }

  .partner-reasons .accordion-content.open {
    max-height: 500px;
    padding: 0 0 20px 26px;
  }

  .partner-reasons .accordion-label {
    display: inline-block;
    font-size: 12px;
    color: #702EFD;
    border: 1px solid #702EFD;
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 16px;
  }

  .partner-reasons .accordion-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    margin: 0;
  }
}

/* Partner Program - How It Works Timeline */
.partners-page .how-it-works {
  display: grid !important;
  grid-template-columns: 416px 277px 555px !important;
  gap: 16px !important;
  align-items: flex-start !important;
}

.partners-page .how-it-works > h2 {
  grid-column: 1;
}

/* Desktop SVG container - grid column 2 */
.partners-page .how-it-works > .code-embed-5:not(.mobile) {
  grid-column: 2;
  display: block;
}

/* div-block-33 - grid column 3 */
.partners-page .how-it-works .div-block-33 {
  grid-column: 3;
  display: block;
}

/* Mobile SVG - hidden on desktop */
.partners-page .how-it-works .code-embed-5.mobile {
  display: none;
}

.partners-page .how-it-works .steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

@media screen and (max-width: 991px) {
  .partners-page .how-it-works {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }

  /* Hide desktop SVG on mobile */
  .partners-page .how-it-works > .code-embed-5:not(.mobile) {
    display: none;
  }

  /* Show mobile SVG and put it next to steps */
  .partners-page .how-it-works .div-block-33 {
    display: flex;
    flex-direction: row;
    gap: 16px;
  }

  .partners-page .how-it-works .code-embed-5.mobile {
    display: block;
    flex-shrink: 0;
  }

  .partners-page .how-it-works .steps {
    flex: 1;
  }
}

/* Partner Program Hero Section */
.p-program {
  background-color: rgba(128, 83, 246, 0.6);
  border: 0.8px solid rgba(243, 245, 246, 0.24);
  border-radius: 4px;
  box-sizing: border-box;
  backdrop-filter: blur(16px);
  padding: 0 10px;
}

.iconlive {
  vertical-align: middle;
}

@media (max-width: 479px) {
  .iconlive {
    margin-bottom: 0px !important;
  }
}

/* Mobile images section - hidden on desktop, shown on mobile */
.imgs-mobile {
  display: none;
}

@media (max-width: 991px) {
  .imgs-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
  }

  .imgs-mobile img {
    max-width: 100%;
    height: auto;
  }
}

/* Hero Section Mobile Fixes */
.hero-lottie {
  width: 656px;
  height: 848px;
  flex-shrink: 0;
}

@media screen and (max-width: 991px) {
  .hero {
    flex-direction: column;
    align-items: center;
  }

  .hero-lottie {
    width: 80%;
    height: auto;
    margin-bottom: -300px;
  }

  .hero-lottie > div {
    width: 100% !important;
    height: auto !important;
  }
}

@media screen and (max-width: 767px) {
  .hero-lottie {
    width: 90%;
    margin-bottom: -250px;
  }
}

@media screen and (max-width: 479px) {
  .hero-lottie {
    width: 100%;
    margin-bottom: -200px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content .button {
    align-self: center;
  }

  .compatibles {
    justify-content: center;
  }
}

/* Customer Stories Page - Card image as background replacement */
.case-study-img.dynamic-img {
  position: relative;
  overflow: hidden;
}

.story-card-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.case-study-img.dynamic-img .card-box {
  position: relative;
  z-index: 1;
}

/* Customer Stories Grid Layout */
.cl-resources.w-dyn-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cl-resource.w-dyn-item {
  list-style: none;
}

.resource-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.resource-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin: 16px;
  color: #1a1a1a;
}

/* Stat boxes on story cards */
.card-box.resource {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 4px;
}

.card-box.resource .value {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.card-box.resource .value-text {
  font-size: 11px;
  color: #666;
}

.card-box.resource .value-text.smallest {
  font-size: 9px;
}

@media screen and (max-width: 991px) {
  .cl-resources.w-dyn-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .cl-resources.w-dyn-items {
    grid-template-columns: 1fr;
  }
}
