// Lock margin & margin handles to prevent layout breaking
form[data-op3-element-options-type="membershipcontentlistitem"] {
    .op3-boxmodel {
        .op3-boxmodel-margin-top,
        .op3-boxmodel-margin-bottom,
        .op3-boxmodel-margin-left,
        .op3-boxmodel-margin-right {
            pointer-events: none;
            opacity: 0.5;

            & + .op3-boxmodel-handler {
                display: none;
            }
        }
    }
}

#toolbar {
    form[data-op3-element-options-type="membershipcontentlistitem"] {
        .op3-element-options-property.jquery-filter-button-content {
            .op3-element-options-label-group {
                display: none;
            }
        }

        // hide column gap on layouts where it doesn't have any effect
        [data-op3-device="desktop"] & {
            &[data-op3-parent-options-property-value-blocklayoutdesktop="0"],
            &[data-op3-parent-options-property-value-blocklayoutdesktop="1"] {
                [data-op3-element-options-property-id="columnGap"] {
                    display: none;
                }
            }
        }

        [data-op3-device="tablet"] & {
            &[data-op3-parent-options-property-value-blocklayouttablet="0"],
            &[data-op3-parent-options-property-value-blocklayouttablet="1"] {
                [data-op3-element-options-property-id="columnGap"] {
                    display: none;
                }
            }
        }

        [data-op3-device="mobile"] & {
            &[data-op3-parent-options-property-value-blocklayoutmobile="0"],
            &[data-op3-parent-options-property-value-blocklayoutmobile="1"] {
                [data-op3-element-options-property-id="columnGap"] {
                    display: none;
                }
            }
        }
    }

    // restrict testimonialitem children
    [data-op3-element-options-path*="/membershipcontentlistitem"] {
        [data-op3-toolbar-nav-id="clone"],
        [data-op3-toolbar-nav-id="delete"],
        [data-op3-toolbar-nav-id="move"] {
            display: none;
        }

        // hide link properties, as those are set dynamically
        .op3-element-options-property[data-op3-element-options-property-id="src"],
        .op3-element-options-property[data-op3-element-options-property-id="tag"],
        .op3-element-options-property[data-op3-element-options-property-name="action"],
        .op3-element-options-property[data-op3-element-options-property-name="href"] {
            display: none;
        }
    }
    [data-op3-element-options-path*="/membershipcontentlist/membershipcontentlistitem/image"] {
        [data-op3-toolbar-nav-id="link"] {
            display: none;
        }
    }

}
