form[data-op3-element-options-path*="/postmeta/"]:not([data-op3-element-options-type="postmeta"]) {
    .op3-element-options-group[data-op3-element-options-group-id="responsive"],
    .op3-element-options-group[data-op3-element-options-group-id="animation"],
    .op3-element-options-group[data-op3-element-options-group-id="custom_experiences"],
    .op3-element-options-property[data-op3-element-options-property-id="marginAlign"],
    .op3-element-options-property[data-op3-element-options-property-id="marginTop"],
    .op3-element-options-property[data-op3-element-options-property-id="marginBottom"],
    .op3-toolbar-list-item[data-op3-toolbar-nav-id="link"],
    .op3-toolbar-list-item[data-op3-toolbar-nav-id="text-align"],
    .op3-toolbar-list-item[data-op3-toolbar-nav-id="alignment"],
    .op3-toolbar-list-item[data-op3-toolbar-nav-id="move"],
    .op3-toolbar-list-item[data-op3-toolbar-nav-id="clone"],
    .op3-toolbar-list-item[data-op3-toolbar-nav-id="delete"] {
        display: none;
    }

    .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;
            }
        }
    }
}

form[data-op3-element-options-path*="/postmeta/"][data-op3-element-options-type="text"] {
    .op3-element-options-property[data-op3-element-options-property-id="paragraphMarginVertical"],
    .op3-element-options-property[data-op3-element-options-property-id="maxWidth"] {
        display: none;
    }
}

#toolbar form[data-op3-element-options-path*="/postmeta/"][data-op3-element-options-type="image"] {
    .op3-element-options-property[data-op3-element-options-property-id="width"] {
        display: none;
    }

    .op3-element-options-property[data-op3-element-options-property-id="maxWidth"] {
        display: flex;
    }
}

form[data-op3-element-options-type="postmeta"] {
    &[data-op3-parent-options-property-value-visibleImage="0"] {
        .op3-element-options-property[data-op3-element-options-property-id="columnGap"] {
            display: none;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-name="alignSelf"] .jquery-select-buttons-option[data-jquery-select-buttons-option-value="stretch"] {
        display: none;
    }

    [data-op3-element-options-property-id="postMetaBlockLayout"] {
        .jquery-select-buttons-widget.jquery-select-buttons-listed-widget {
            grid-template-columns: 1fr;

            .jquery-select-buttons-option {
                height: 60px;
            }
        }

        .jquery-select-buttons-option-icon {
            background: url("../img/elements/postmeta/layouts-sprite.png") no-repeat;
            background-size: auto;
        }

        @media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
            .jquery-select-buttons-option-icon {
                background-image: url("../img/elements/numberblock/layouts-sprite@2x.png");
            }
        }
    }

    [data-jquery-select-buttons-option-value="0"] .jquery-select-buttons-option-icon {
        background-position: 0 0;
    }

    [data-jquery-select-buttons-option-value="1"] .jquery-select-buttons-option-icon {
        background-position: 0 -48px;
    }

    [data-jquery-select-buttons-option-value="2"] .jquery-select-buttons-option-icon {
        background-position: 0 -96px;
    }

    &[data-op3-parent-options-property-value-hasComments="0"] {
        .op3-element-options-property[data-op3-element-options-property-id="visibleComments"] {
            display: none;
        }
    }
}
