/*
 * Shared storefront isolation for hidden FluentForms embed pages.
 * v1.0.23
 *
 * These iframe-only pages should contain the form, not WooCommerce storefront
 * chrome. WooCommerce 11.x may inject the block mini-cart drawer globally via
 * the active theme/header, so hide only known cart / mini-cart UI here.
 */
body.lsc-embed-form-page .wc-block-mini-cart,
body.lsc-embed-form-page .wc-block-mini-cart__drawer,
body.lsc-embed-form-page .wc-block-mini-cart__template-part,
body.lsc-embed-form-page .wc-block-mini-cart__footer,
body.lsc-embed-form-page .wc-block-components-drawer__screen-overlay,
body.lsc-embed-form-page .woocommerce-mini-cart,
body.lsc-embed-form-page .woocommerce-mini-cart__empty-message,
body.lsc-embed-form-page .widget_shopping_cart,
body.lsc-embed-form-page .widget_shopping_cart_content,
body.lsc-embed-form-page [data-block-name="woocommerce/mini-cart"],
body.lsc-embed-form-page [data-block-name="woocommerce/mini-cart-contents"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Do not let a cart drawer leave the iframe page locked after its UI is removed. */
html:has(body.lsc-embed-form-page),
body.lsc-embed-form-page {
  overflow-y: auto !important;
}
