.upsell-custom {
  display: flex !important;
  flex-direction: row;
  gap: 10px;
  border-radius: 4px;
  border: 1px solid #e2e7ea;
  padding: 10px;
  margin: 0px 0px 0px 0px;
}

.upsell-img {
  width: 80px;
  object-fit: contain;
  height: 80px;
  border-radius: 4px;
  border: 1px solid #e2e7ea;
}

.upsell-pair {
  display: flex;
  flex-direction: column;
  gap: 10px;

  &.single {
    .upsell-custom {
      flex: 0;
    }
  }
}

.upsell-custom a {
  text-decoration: none;
  color: inherit;
}

.upsell-custom h3 {
  font-size: 14px;
  margin: 5px 0px;
  height: 35px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.upsell-price p {
  margin: 0;
  font-size: 12px;
  line-height: 1.3em;
}

.upsell-price {
  margin: 0px 0px 10px 0px;
}

.upsell-price p:last-child {
  color: #00000080;
}

.upsell-slider .blaze-track-container.multiple {
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 1) 45%,
      rgba(255, 255, 255, 1) 80%,
      rgba(255, 255, 255, 0) 100%);
  mask-image: linear-gradient(90deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 1) 45%,
      rgba(255, 255, 255, 1) 80%,
      rgba(255, 255, 255, 0) 100%);
}

.upsell-slider.end .blaze-track-container.multiple {
  -webkit-mask-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 45%,
      rgba(255, 255, 255, 1) 80%,
      rgba(255, 255, 255, 1) 100%);
  mask-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 45%,
      rgba(255, 255, 255, 1) 80%,
      rgba(255, 255, 255, 1) 100%);
}

.upsell-section {
  width: 100%;
  position: relative;
  order: 3;
}

.upsell-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.upsell-cart .quantity input[type="number"],
.upsell-cart .quantity button {
  font-size: 10px;
}

.upsell-cart .quantity button {
  padding-top: 6px;
  padding-bottom: 6px;

  flex: 1;
}

.upsell-cart .quantity button.qty-minus,
.upsell-cart .quantity button.qty-plus {
  padding: 6px 10px;
}

.upsell-cart .add_to_cart_button,
.upsell-cart .upsell-variant-button {
  font-size: 14px;
  font-weight: 700;
  background-color: var(--blue-button);
  color: var(--white-color);
  padding: 6px 15px;
  text-align: center;
  flex: 1;
  border-radius: 4px;
}

.upsell-cart .added_to_cart.wc-forward {
  display: none;
}

.upsell-space-between {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.upsell-slider-arrow {
  position: absolute;
  top: 30%;
  color: transparent;
  background-repeat: no-repeat;
  background-size: 15px;
  background-position: center;
  background-color: white;
  box-shadow: 0px 2px 20px -5px rgba(0, 0, 0, 0.3);
  z-index: 2;
  padding: 0;
  border-radius: 100px;
  width: 40px;
  height: 40px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.upsell-slider-arrow button.upsell-slider-prev.slick-arrow {
  left: -20px;
  background-image: url(../../images/chevron-left.svg);
}

.upsell-slider-arrow button.upsell-slider-next.slick-arrow {
  right: -20px;
  background-image: url(../../images/chevron-right.svg);
}

.upsell-slider.blaze-slider.start .blaze-container button.blaze-prev {
  opacity: 0;
}

.upsell-slider.blaze-slider.end .blaze-container button.blaze-nav.blaze-next {
  opacity: 0;
}

.upsell-heading {
  font-size: 16px;
  margin: 0px;
  padding: 10px 0px;
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .woocommerce .quantity {
    flex: 1;
  }

  .woocommerce .quantity .qty {
    min-width: 20px;
  }

  .upsell-dots li button {
    display: none;
  }

  .upsell-dots li {
    color: #00000080;
  }

  .upsell-dots li.slick-active {
    color: #000;
  }

  .upsell-dots {
    display: flex;
    gap: 20px;
    justify-content: center;
  }

  .upsell-cart .add_to_cart_button {
    font-size: 12px;
  }
}

@media screen and (max-width: 600px) {
  .upsell-slider-arrow {
    display: none;
  }

  .upsell-slider-arrow.removeMask~.slick-slider.upsell-slider {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .upsell-slider {
    width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }
}