/* Denuino detail-only refinements; this asset is not loaded by GreenShineBee. */
body.store-page-shop-details[data-theme-layout][data-theme-engine]:not(.admin-root) :is(.buy-box-with-variants, .buy-box) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Match the full-width review flow, including the compose/eligibility card. */
body.store-page-shop-details[data-theme-layout][data-theme-engine]:not(.admin-root) .product-reviews > .row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 20px !important;
}
body.store-page-shop-details[data-theme-layout][data-theme-engine]:not(.admin-root) .product-reviews > .row > div {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
}
body.store-page-shop-details[data-theme-layout][data-theme-engine]:not(.admin-root) .review-eligibility-card {
  width: 100%;
  max-width: none;
  min-height: 0 !important;
  padding: 20px !important;
}

/* Give the complete image a bounded viewport, independent of its aspect ratio. */
body.store-page-shop-details[data-theme-layout][data-theme-engine]:not(.admin-root) .product-gallery-dialog {
  height: min(900px, calc(100vh - 40px));
  height: min(900px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  grid-template-rows: minmax(0, 1fr) auto auto;
  box-sizing: border-box;
}
body.store-page-shop-details[data-theme-layout][data-theme-engine]:not(.admin-root) .product-gallery-main {
  min-width: 0;
  min-height: 0;
  height: 100%;
}
body.store-page-shop-details[data-theme-layout][data-theme-engine]:not(.admin-root) .product-gallery-image {
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center;
}
body.store-page-shop-details[data-theme-layout][data-theme-engine]:not(.admin-root) .product-gallery-thumbs {
  min-height: 0;
  align-items: center;
}
body.store-page-shop-details[data-theme-layout][data-theme-engine]:not(.admin-root) .product-gallery-thumb {
  width: 92px !important;
  height: 76px !important;
  flex: 0 0 auto;
}
body.store-page-shop-details[data-theme-layout][data-theme-engine]:not(.admin-root) .product-gallery-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
@media (max-width: 767px) {
  body.store-page-shop-details[data-theme-layout][data-theme-engine]:not(.admin-root) .product-gallery-dialog {
    height: calc(100vh - 18px);
    height: calc(100dvh - 18px);
    max-height: calc(100dvh - 18px);
  }
  body.store-page-shop-details[data-theme-layout][data-theme-engine]:not(.admin-root) .product-gallery-thumb {
    width: 72px !important;
    height: 58px !important;
  }
}
