#lwp-popup-content,
#lwp-popup-content .lwp-popup,
#lwp-popup-content .lwp-popup-top,
#lwp-popup-content .lwp-gallery-shell,
#lwp-popup-content .lwp-featured-block,
#lwp-popup-content .lwp-related-block,
#lwp-popup-content .lwp-native-products,
#lwp-popup-content .lwp-native-products ul.products,
#lwp-popup-content .lwp-native-products li.product,
#lwp-popup-content .lwp-native-products .product-inner,
#lwp-popup-content .lwp-native-products .rey-productInner,
#lwp-popup-content .lwp-native-products .rey-productThumbnail,
#lwp-popup-content .variations_form,
#lwp-popup-content .single_variation_wrap,
#lwp-popup-content .woocommerce-variation-add-to-cart,
#lwp-popup-content .rey-cartBtnWrapper,
#lwp-popup-content .rey-selectVariation,
#lwp-popup-content .rey-productVariations,
#lwp-popup-content .variable-item-contents,
#lwp-popup-content .variations {
  overflow: visible !important;
}

.lwp-elementor-popup {
  z-index: 991 !important;
}

.lwp-elementor-popup .dialog-widget-content,
.lwp-elementor-popup .dialog-message {
  position: relative;
}

#lwp-popup-content {
  width: 100%;
}

#lwp-popup-content .lwp-popup {
  width: 100%;
}

#lwp-popup-content .rey-discount {
  display: none !important;
}

#lwp-popup-content .lwp-popup-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

#lwp-popup-content .lwp-gallery-shell {
  min-width: 0;
}

#lwp-popup-content .lwp-gallery-main {
  position: relative;
  width: 100%;
  border-radius: 0px;
  overflow: hidden;
  background: #f4f4f4;
}

#lwp-popup-content .lwp-gallery-main .swiper-slide {
  aspect-ratio: 4 / 5.45;
  overflow: hidden;
}

#lwp-popup-content .lwp-gallery-main .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#lwp-popup-content .lwp-gallery-video-slide {
  background: #000;
}

#lwp-popup-content .lwp-gallery-video {
  width: 100%;
  height: 100%;
  background: #000;
}

#lwp-popup-content .lwp-gallery-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

#lwp-popup-content .lwp-gallery-pagination {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: auto;
}

#lwp-popup-content .lwp-gallery-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

#lwp-popup-content .lwp-gallery-pagination .swiper-pagination-bullet-active {
  background: #ffffff;
  transform: scale(1.2);
}

#lwp-popup-content .lwp-gallery-main.has-single-slide .lwp-gallery-pagination {
  display: none;
}

#lwp-popup-content .lwp-featured-block {
  min-width: 0;
}

#lwp-popup-content .lwp-related-block--full {
  width: 100%;
  display: block;
  clear: both;
  padding-bottom: 20px;
}

#lwp-popup-content .lwp-block-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

#lwp-popup-content .lwp-native-products ul.products {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 0.7fr));
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#lwp-popup-content .lwp-native-products li.product {
  width: 100% !important;
  margin: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

#lwp-popup-content .lwp-native-products li.product::before {
  display: none !important;
}

#lwp-popup-content .lwp-native-products .rey-productInner {
  height: auto !important;
  min-height: 0 !important;
}

#lwp-popup-content .lwp-native-products .rey-productThumbnail .splide {
  visibility: visible;
}

#lwp-popup-content .lwp-native-products .rey-productThumbnail .splide__track {
  overflow: hidden;
}

#lwp-popup-content .lwp-native-products .rey-productThumbnail .splide__list {
  display: flex;
  align-items: stretch;
}

#lwp-popup-content .lwp-native-products .rey-productThumbnail .splide__slide {
  flex: 0 0 100%;
}

#lwp-popup-content .rey-productSlideshow-arrows,
#lwp-popup-content .splide__arrows {
  display: none !important;
}

#lwp-popup-content .lwp-related-outfits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
}

#lwp-popup-content .lwp-related-outfit-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#lwp-popup-content .lwp-related-outfit-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  background: #f3f3f3;
}

#lwp-popup-content .lwp-related-outfit-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

#lwp-popup-content
  .lwp-related-outfit-trigger:hover
  .lwp-related-outfit-image
  img,
#lwp-popup-content
  .lwp-related-outfit-trigger:focus-visible
  .lwp-related-outfit-image
  img {
  transform: scale(1.03);
}

#lwp-popup-content .lwp-empty-state {
  font-size: 14px;
  line-height: 1.4;
  color: #666;
}

#lwp-popup-content .lwp-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: #ececec;
}

#lwp-popup-content .lwp-loading,
#lwp-popup-content .lwp-error {
  padding: 32px 16px;
  text-align: center;
  font-size: 15px;
}

#lwp-popup-content .variations_form,
#lwp-popup-content .single_variation_wrap,
#lwp-popup-content .woocommerce-variation-add-to-cart,
#lwp-popup-content .rey-cartBtnWrapper,
#lwp-popup-content .rey-selectVariation,
#lwp-popup-content .rey-productVariations,
#lwp-popup-content .variable-item-contents,
#lwp-popup-content .variations {
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  #lwp-popup-content .lwp-popup-top {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  #lwp-popup-content .lwp-native-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #lwp-popup-content .lwp-related-outfits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }
}

@media (max-width: 767px) {
  .lwp-elementor-popup .dialog-widget-content,
  .lwp-elementor-popup .dialog-message {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .lwp-elementor-popup .dialog-message {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  #lwp-popup-content .lwp-popup-top {
    gap: 16px;
    margin-bottom: 18px;
  }

  #lwp-popup-content .lwp-block-title {
    margin-bottom: 10px;
    font-size: 13px;
  }

  #lwp-popup-content .lwp-native-products ul.products {
    gap: 8px;
  }

  #lwp-popup-content .lwp-related-outfits-grid {
    gap: 2px;
  }

  #lwp-popup-content .lwp-gallery-pagination {
    bottom: 14px;
  }

  #lwp-popup-content .lwp-gallery-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
  }
}
