/* Minimalny, theme-friendly styl  frontend-layout.css */
.alter-wc-embed {
  --alter-embed-height: 900px;
  --alter-embed-radius: 12px;
  --alter-embed-border: 1px solid rgba(0, 0, 0, 0.08);
  --alter-embed-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  margin: var(--alter-embed-gap, 0) 0;
  border-radius: inherit;
}

.alter-wc-embed__iframe {
  width: 100%;
  height: var(--alter-embed-height);
  border: 0;
  display: block;
  border-radius: inherit;
  box-shadow: var(--alter-embed-shadow);
  outline: var(--alter-embed-border);
  background: #fff;
}

/* Layout B: full width wrapper */
.alter-wc-layout--fullwidth_embed .alter-wc-fullwidth {
  width: 100%;
}

/* Layout A (wc_default_link) + Woo blocks: avoid stretching the grid to full width */
/* Safe scope: do not modify Woo layout, only our button */
.alter-wc-customize-btn {
  margin-top: 10px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.alter-wc-customize-btn[disabled],
.alter-wc-customize-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Layout A: Hide entire variation add-to-cart section (qty + button + price inside wrap),
   but keep variations dropdowns (table.variations) visible */
.alter-wc-layout--wc_default_link.alter-wc-hide-atc .single_variation_wrap,
.alter-wc-layout--wc_default_link.alter-wc-hide-atc .woocommerce-variation-add-to-cart {
  display: none !important;
}

/* For non-variable (simple) products: hide standard cart form pieces */
.alter-wc-layout--wc_default_link.alter-wc-hide-atc form.cart .quantity,
.alter-wc-layout--wc_default_link.alter-wc-hide-atc form.cart button.single_add_to_cart_button {
  display: none !important;
}

/* Keep our customize button visible */
.alter-wc-layout--wc_default_link.alter-wc-hide-atc .alter-wc-customize-btn {
  display: inline-flex !important;
}

/* Full width inside constrained main */
.alter-wc-block.alignfull {
  max-width: none !important;
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Layout B: if columns become empty after removing inner blocks, hide wrapper */
/* Layout B: hide empty columns (after removing Woo blocks) */
.alter-wc-layout--fullwidth_embed .wp-block-column:empty {
  display: none !important;
}

/* czasem w kolumnie zostaje whitespace / komentarz – wtedy lepiej: */
.alter-wc-layout--fullwidth_embed .wp-block-column:has(> :not(.alter-wc-block):not(script):not(style)) {
  /* keep */
}
.alter-wc-layout--fullwidth_embed .wp-block-column:not(:has(*)) {
  display: none !important;
}
