/* Local UI, layout, popup, carousel, and card-link fixes */

/* Ensure Elementor lazy backgrounds are never suppressed before JS runs */
.e-con.e-parent:nth-of-type(n+2):not(.e-lazyloaded):not(.e-no-lazyload),
.e-con.e-parent:nth-of-type(n+2):not(.e-lazyloaded):not(.e-no-lazyload) * {
  background-image: initial;
}

/* Full-card clickable overlay for EAEL wrapper links (shop & featured products) */
.e-loop-item {
  position: relative;
}
.e-loop-item > a.--eael-wrapper-link-tag {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
}

/* Product detail gallery layout (conveyor-belt, flat-belt) */
.eael-single-product-images.eael-pi-thumb-left .product_image_slider {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 16px;
}
.eael-single-product-images.eael-pi-thumb-left .product_image_slider__container {
  flex: 1 1 auto;
  min-width: 0;
}
.eael-single-product-images.eael-pi-thumb-left .product_image_slider__container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.eael-single-product-images.eael-pi-thumb-left .product_image_slider__thumbs {
  width: 90px;
  flex: 0 0 90px;
}
.eael-single-product-images.eael-pi-thumb-left .product_image_slider__thumbs .swiper-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eael-single-product-images.eael-pi-thumb-left .product_image_slider__thumbs__image {
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.eael-single-product-images.eael-pi-thumb-left .product_image_slider__thumbs__image img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 767px) {
  .eael-single-product-images.eael-pi-thumb-left .product_image_slider {
    flex-direction: column;
  }
  .eael-single-product-images.eael-pi-thumb-left .product_image_slider__thumbs {
    width: 100%;
    flex: none;
  }
  .eael-single-product-images.eael-pi-thumb-left .product_image_slider__thumbs .swiper-wrapper {
    flex-direction: row;
  }
  .eael-single-product-images.eael-pi-thumb-left .product_image_slider__thumbs .swiper-slide {
    width: 72px;
  }
}

/* Carousel viewport and smooth slide transitions */
.elementor-widget-image-carousel .swiper,
.elementor-widget-n-carousel .e-n-carousel,
.elementor-widget-loop-carousel .swiper {
  overflow: hidden !important;
  position: relative;
  width: 100%;
}
.elementor-widget-image-carousel .swiper-wrapper,
.elementor-widget-n-carousel .swiper-wrapper,
.elementor-widget-loop-carousel .swiper-wrapper {
  display: flex;
  flex: 0 0 100%;
  width: 100%;
  overflow: visible !important;
  transition: transform 0.5s ease;
  will-change: transform;
}
.elementor-widget-image-carousel .swiper-slide,
.elementor-widget-n-carousel .swiper-slide,
.elementor-widget-loop-carousel .swiper-slide {
  flex-shrink: 0;
  box-sizing: border-box;
}
.elementor-widget-n-carousel .elementor-swiper-button,
.elementor-widget-image-carousel .elementor-swiper-button,
.elementor-widget-loop-carousel .elementor-swiper-button {
  cursor: pointer;
}

/* Popup modal container (Quote popup 850 & Mobile drawer popup 869) */
.hiexp-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.hiexp-popup-backdrop.is-open {
  display: flex;
}
.hiexp-popup-backdrop.is-drawer {
  padding: 0;
  justify-content: flex-end;
  align-items: stretch;
}
.hiexp-popup-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
.hiexp-popup-backdrop.is-drawer .hiexp-popup-dialog {
  max-width: 340px;
  width: 85vw;
  max-height: 100vh;
  height: 100vh;
  border-radius: 0;
  padding: 16px;
}
.hiexp-popup-dialog > [data-elementor-type="popup"] {
  display: block !important;
}
.hiexp-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hiexp-popup-close:hover {
  background: #ed5729;
  color: #ffffff;
}

/* Form submission notice */
.hiexp-form-feedback {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
