/*
Theme Name: Hello Elementor Child
Template: hello-elementor
*/

.gifts-wrapper {
  float: left;
  margin-bottom: 40px;
  position: relative;
  width: 100%; }
  .gifts-wrapper .overlay {
    background-color: white;
    display: none;
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0; }

.gifts-wrapper button.edit-gifts {
  margin-left: 20px;
  background-color: #ed1b24 !important;
  font-size: 1.9rem;
  color: #fff
}

.gifts-wrapper button.edit-gifts:hover {
  background-color: #991218 !important; }

.remaining-price {
  font-weight: 700; }

.gift-product {
  margin-bottom: 20px;
  padding: 0 20px; }
  .gift-product:nth-child(5n+1) {
    clear: both; }
  .gift-product p {
    margin: 0 0 5px;
    font-size: 14px; }

.edit-gift-products {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr; }

.gift-products {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr; }

.too-many-products-error {
  border: 3px solid red;
  color: red;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 20px; 
}

/* ========================== Carousel Wrapper ============================== */


.trial-sizes-carousel .carousel .slick-slide {
  transition: transform 0.5s ease; /* Adjust the duration (0.5s) for speed */
}

.trial-sizes-carousel {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
  padding: 15px 20px 0px 20px;
  background-color: #f9f9f9;
  border-radius: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 0px;
  height: 300px;
  margin-top: 15px ;
}

/* Carousel Title */
.trial-sizes-carousel h2 {
  font-size: 24px;
  font-weight: bold;
  color: #333 !important;
  margin: 0px !important;
}
.trial-sizes-carousel p{
  margin: 0px !important;
}
.carousel-item a h3{
  margin: 5px !important;
}
/* Carousel Container */
.carousel {
  display: flex;
  align-items: stretch; /* Ensures all items have equal height */
  overflow: hidden; /* Hide the overflow to only show one slide at a time */
  flex-wrap: nowrap; /* Prevents wrapping of slides */
}

/* Carousel Item */
.carousel-item {
  background-color: #fff;
  border-radius: 15px;
  padding: 15px;
  text-align: left;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  flex: 0 0 auto; /* Carousel item won't shrink or grow */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Space for image and title */
  height: 400px; /* Fixed height for uniformity */
  margin-right: 20px; /* Space between slides */
}
.slick-track {
  padding: 10px 0px;
}
.carousel-item a h3 {
  color: black !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none; 

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 20px; /* Adjust as needed */
  /* max-height: 2.8em; */
  white-space: normal; /* Ensure text wraps */
  word-break: break-word; /* Prevent overflow */
}

/* .carousel-item:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
} */

/* Carousel Item Image */
.carousel-item img {
  height: 70px !important; /* Ensures images are of equal height */
  width: auto;
  margin: 0 auto;
  object-fit: contain; /* Keeps image ratio intact */
  border-radius: 20px !important;
  text-align: left !important;
}

/* Hide Arrows and Dots */
 .slick-dots {
  display: none !important;
}

.slick-initialized .slick-slide {
  height: 168px;
}
@media (max-width: 320px){
 body button.slick-next.slick-arrow {
    left: 50% !important;
    margin-top: 65px;
}
body button.slick-prev.slick-arrow {
  left: 50px !important;
  top: 77% !important;
}
}
@media (max-width: 767px) and (min-width: 320px){
  button.slick-prev.slick-arrow {
    left: 14% !important;
    top: 77% !important;
  }
  button.slick-next.slick-arrow {
    margin-top: 50px !important;
}
.trial-sizes-carousel{
  max-width: 350px;
  height: auto;
}

}
@media (max-width: 767px) {
  .e-cart__column-inner.e-sticky-right-column {
    flex-direction: column-reverse !important;
  }
  /* Ensure only one slide is visible at a time on mobile */
  .carousel {
    display: block; /* No flex layout needed here */
  }

  .carousel-item {
    flex: 0 0 100% !important; /* Show only one item per row */
    height: auto !important; /* Allow height to adjust naturally */
    margin-right: 0 !important; /* Remove margin on mobile to avoid overflow */
  }

  .carousel-item img {
    height: auto !important; /* Adjust image height to fit content */
    width: 62%;
    margin: 0 auto;
    object-fit: contain; /* Keep image ratio intact */
    border-radius: 20px !important;
  }

  /* Ensure slick slider doesn't allow multiple items to show */
  .slick-track {
    display: flex !important;
    width: 100% !important; /* Ensure full width is used for one item */
  }
  .slick-track {
    padding: 0px !important;
  }
}

/* Position slick arrows outside the carousel */
.carousel {
  position: relative;
}

.slick-prev, .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5); /* Optional: background color for better visibility */
  color: white; /* Arrow color */
  z-index: 10;
}
button.slick-next.slick-arrow {
  z-index: 10;
  position: relative;
  height: 33px;
  margin: 33px 10px;
  justify-content: center;
  display: flex;
  align-items: center;
  align-content: center;
  left: 48%;
  border-radius: 40px;
  width: 90px;
  font-size: 14px;
  bottom: 18px !important;
}
.slick-arrow {
  margin-bottom: 0px !important;
}
button.slick-prev.slick-arrow {
  z-index: 10;
  /* position: relative; */
  height: 33px;
  margin: 33px 10px; 
  justify-content: center;
  display: flex;
  align-items: center;
  align-content: center;
  left: 36%;
  top: 67%;
  border-radius: 40px;
  width: 100px;
  font-size: 14px;
}
.e-shop-table.e-cart-section.e-cart-section--no-coupon {
  background-color: transparent !important;
}
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message {
  display: none;
}
.slick-slider.slick-dotted {
  margin-bottom: 0px !important;
}


.product-add-to-cart-button {
  font-size: 14px !important; 
}



.slick-next:before {
  content: '→';
  font-size: 14px;
  margin-right: 5px;
}

.slick-prev:before {
  content: '→';
  font-size: 14px;
  margin-right: 5px;
}

a.button.add_to_cart_button.product_type_simple.trial-product-button{
  border: 1px solid #0078c2;
  font-size: 12px;
}