#toolbar {
    form[data-op3-element-options-type="featureblockitem"] {
        .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-parent-options-property-value-blockLayout="0"],
        &[data-op3-parent-options-property-value-blockLayout="1"],
        &[data-op3-parent-options-property-value-blockLayout="2"],
        &[data-op3-parent-options-property-value-blockLayout="3"] {
            [data-op3-element-options-property-id="columnGap"] {
                display: none;
            }
        }

        // Link options.
        [data-op3-element-options-property-id="postListItemIsLink"] {
            &[data-op3-element-options-property-value="0"] ~ * {
                display: none;
            }
        }

        [data-op3-element-options-property-id="action"] {
            &:not([data-op3-element-options-property-value="link"]):not([data-op3-element-options-property-value="linkToMediaFile"]):not([data-op3-element-options-property-value="jumpToElement"]) {
                ~ [data-op3-element-options-property-id="postListItemHref"] {
                    display: none;
                }
            }

            &:not([data-op3-element-options-property-value="link"]):not([data-op3-element-options-property-value="linkToMediaFile"]) {
                ~ [data-op3-element-options-property-id="postListItemTarget"],
                ~ [data-op3-element-options-property-id="postListItemRel"],
                ~ [data-op3-element-options-property-id="postListItemRelNoFollow"] {
                    display: none;
                }
            }
        }
    }

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

    // Hide px value on image width (OP3-1666).
    [data-op3-element-options-path$="featureblockitem/image"] {
        [data-op3-element-options-property-name="width"] .jquery-input-range-unit-container .jquery-input-range-unit-item:first-child {
            display: none;
        }
    }
}

// Lock margin & margin handles to prevent layout breaking.
form[data-op3-element-options-type="featureblockitem"] {
    .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;
            }
        }
    }
}
