/* Main block wrapper */
.wp-block-custom-product-extra-section {
    box-sizing: border-box;
    width: 100%;
    position: relative;
}

/* Ensure background, padding, margin work */
.wp-block-custom-product-extra-section.has-background {
    padding: var(--wp--style--block-gap, 0);
}

/* Layout support (Flex / Grid / Constrained) */
.wp-block-custom-product-extra-section.is-layout-flex {
    display: flex;
    flex-wrap: var(--wp--style--flex-wrap, wrap);
    gap: var(--wp--style--block-gap, 0);
}

.wp-block-custom-product-extra-section.is-layout-grid {
    display: grid;
    gap: var(--wp--style--block-gap, 0);
}

.wp-block-custom-product-extra-section.is-layout-constrained {
    max-width: var(--wp--style--global--content-size, 1200px);
    margin-left: auto;
    margin-right: auto;
}

/* Allow full & wide alignment */
.wp-block-custom-product-extra-section.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.wp-block-custom-product-extra-section.alignwide {
    max-width: var(--wp--style--global--wide-size, 1400px);
    margin-left: auto;
    margin-right: auto;
}

/* Border radius support */
.wp-block-custom-product-extra-section.has-border-radius {
    border-radius: var(--wp--custom--border-radius, 0);
    overflow: hidden;
}

/* Shadow support */
.wp-block-custom-product-extra-section.has-shadow {
    box-shadow: var(--wp--preset--shadow--natural, 0 4px 20px rgba(0,0,0,0.1));
}

/* Inner blocks spacing fix */
.wp-block-custom-product-extra-section > * + * {
    margin-top: var(--wp--style--block-gap, 0);
}

/* Editor consistency */
.editor-styles-wrapper .wp-block-custom-product-extra-section {
    width: 100%;
}

/* Prevent WooCommerce tabs from forcing layout */
.woocommerce-tabs .wp-block-custom-product-extra-section {
    max-width: 100%;
}

/* Safety: prevent collapsing height */
.wp-block-custom-product-extra-section:empty {
    min-height: 50px;
}
