.cross-sells-scroll-wrapper {
	display: flex;
	align-items: center;
	position: relative;
}

.cross-sells-scroll-area {
	overflow-x: auto;
	scroll-behavior: smooth;
	width: 100%;
	padding-bottom: 30px;
}

.cross-sells-scroll-area::-webkit-scrollbar {
	display: none;
}

.cross-sells-scroll-area ul.products {
	display: flex;
	flex-wrap: nowrap;
	gap: 20px;
	padding-left: 5px;
}

.scroll-left,
.scroll-right {
	background: none;
	border: none!important;
	font-size: 24px;
	cursor: pointer!important;
	padding: 0!important;
}
.scroll-left:hover,
.scroll-right:hover {
	background-color: transparent!important;
	color: #212121 !important;
}

.scroll-left > svg,
.scroll-right > svg {
    height: 40px;
    width: 40px;
}

.cross-sells-container {
    background-color: var(--sections-background-color,#fff);
  border-color: var(--sections-border-color,#d5d8dc);
  border-radius: var(--sections-border-radius,3px);
  border-style: var(--sections-border-type,solid);
  border-width: 1px;
  margin-top: 30px;
}

.cross-sells-container > h2 {
    font-size: 24px!important;
    margin-bottom: 0;
}

#cart-discount-info {
  text-align: center;
}

.woocommerce-loop-product__title {
    font-size: 24px!important;
    text-align: left;
}

.products > .product {
  width: 300px;
  min-width: 300px;
  list-style: none;
  border-radius: 5px
}

.upsell-overlay {
  background-color: #FFFFFF4D;
  display: flex;
  height: 100%;
  flex-direction: column;
  row-gap: 0.5rem;
  align-items: baseline;
}

.upsell-overlay > img {
  border-radius: 5px 5px 0 0!important;
}

.woocommerce-loop-product__title,
.cross-sell-acf-desc {
  padding: 0 16px;
}

.cross-sell-acf-desc {
  font-size: 18px;
}

.add_to_cart_button {
    width: 150px;
  display: block;
  text-align: center;
  border: solid 2px black;
  border-radius: 5px;
  font-size: 18px;
  font-family: IBM Plex Sans;
  padding: 5px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 auto;
  transition: all 300ms
}
.add_to_cart_button:hover {
    color: white;
    background: #212121;
  display: block;
  text-align: center;
  border: solid 2px black;
  border-radius: 5px;
  font-size: 18px;
  font-family: IBM Plex Sans;
  padding: 5px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 auto;
}

.price {
    text-align: center;
  display: block;
  font-size: 20px;
  color: #212121;
  font-weight: 500;
}
.woocommerce-loop-product__title {
    margin: 0;
}

.cross-sell-bottom {
   padding: 16px;
   width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 16px;
}



/* Remove Underline from Price */
.cross-sell-bottom > .price > ins {
    text-decoration: none;
}
/* keep the whole widget inside the viewport */
.cross-sells-scroll-container,
.cross-sells-container,
.cross-sells-scroll-wrapper {
  max-width: 97.5vw !important;
  overflow: hidden !important;
}

/* critical: allow the flex child to shrink */
.cross-sells-scroll-wrapper .cross-sells-scroll-area {
  min-width: 0 !important;
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* make the inner list shrink-wrap its items (so it scrolls inside the area) */
.cross-sells-scroll-area > ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;     /* ← key */
  margin: 0 !important;
  padding: 0 10px !important;
  gap: 20px !important;
}

/* tiles don’t stretch or force extra width */
.cross-sells-scroll-area > ul.products > li.product {
  flex: 0 0 auto !important;
  max-width: 300px;   /* optional; matches your 300px tile */
}

/* arrows don’t steal layout width */
.scroll-left, .scroll-right { flex: 0 0 auto !important; }