#sidebar form,
#toolbar form {
    &[data-op3-element-options-type="courselist"] {
        &[data-op3-parent-options-property-value-postListHasItems="1"] {
            .op3-options-group-notes--empty-message-no-children {
                display: none;
            }
        }

        &[data-op3-parent-options-property-value-visibleImage="0"] {
            .op3-toolbar-list-item[data-op3-content-item-name="block-options-post-image"] {
                display: none;
            }
        }

        .op3-element-options-property[data-op3-element-options-property-id="postListBlockLayout"] {
            .jquery-select-buttons-widget {
                grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
            }
        }

        .op3-element-options-property[data-op3-element-options-property-id="fallbackImageSrc"] {
            .op3-image-url-preview-widget .op3-image-url-preview-clear {
                display: none !important;
            }
        }

        .op3-element-options-property[data-op3-element-options-property-id="postListItemIsLink"] {
            &[data-op3-element-options-property-value="0"] {
                margin-bottom: 16px;
            }

            &[data-op3-element-options-property-value="1"] {
                ~ * {
                    display: none;
                }
            }
        }

        &[data-op3-parent-options-property-value-enableLinks="0"] .op3-toolbar-list-item[data-op3-content-item-name="link-link-action"],
        &[data-op3-parent-options-property-value-visibleImage="0"] .op3-element-options-property[data-op3-element-options-property-id="enableLinksImage"],
        &[data-op3-parent-options-property-value-visibleTitle="0"] .op3-element-options-property[data-op3-element-options-property-id="enableLinksTitle"],
        &[data-op3-parent-options-property-value-visibleTitle="0"] .op3-element-options-property-sort__item--title,
        &[data-op3-parent-options-property-value-visibleContent="0"] .op3-element-options-property[data-op3-element-options-property-id="enableLinksContent"],
        &[data-op3-parent-options-property-value-visibleContent="0"] .op3-element-options-property-sort__item--content,
        &[data-op3-parent-options-property-value-visibleDrippedLabel="0"] .op3-element-options-property-sort__item--drippedLabel,
        &[data-op3-parent-options-property-value-visibleProgress="0"] .op3-element-options-property-sort__item--progress,
        &[data-op3-parent-options-property-value-visibleCourseInfo1="0"] .op3-element-options-property[data-op3-element-options-property-id="enableLinksCourseInfo1"],
        &[data-op3-parent-options-property-value-visibleCourseInfo1="0"] .op3-element-options-property-sort__item--courseInfo1,
        &[data-op3-parent-options-property-value-visibleCourseInfo2="0"] .op3-element-options-property[data-op3-element-options-property-id="enableLinksCourseInfo2"],
        &[data-op3-parent-options-property-value-visibleCourseInfo2="0"] .op3-element-options-property-sort__item--courseInfo2,
        &[data-op3-parent-options-property-value-visibleButton="0"] .op3-element-options-property[data-op3-element-options-property-id="enableLinksButton"],
        &[data-op3-parent-options-property-value-visibleButton="0"] .op3-element-options-property-sort__item--button,
        &[data-op3-parent-options-property-value-postListHasItems="0"] .op3-toolbar-list-item[data-op3-toolbar-nav-id="block-options"],
        &[data-op3-parent-options-property-value-postListHasItems="0"] .op3-toolbar-list-item[data-op3-toolbar-nav-id="link"],
        &[data-op3-parent-options-property-value-visibleImage="0"] .op3-toolbar-list-item[data-op3-content-item-name="block-options-image"],
        &[data-op3-parent-options-property-value-visibleTitle="0"][data-op3-parent-options-property-value-visibleContent="0"][data-op3-parent-options-property-value-visibleDrippedLabel="0"][data-op3-parent-options-property-value-visibleProgress="0"][data-op3-parent-options-property-value-visibleCourseInfo1="0"][data-op3-parent-options-property-value-visibleCourseInfo2="0"] .op3-toolbar-list-item[data-op3-content-item-name="block-options-layout"],
        &[data-op3-parent-options-property-value-visibleTitle="0"][data-op3-parent-options-property-value-visibleContent="0"][data-op3-parent-options-property-value-visibleDrippedLabel="0"][data-op3-parent-options-property-value-visibleProgress="0"][data-op3-parent-options-property-value-visibleCourseInfo1="0"][data-op3-parent-options-property-value-visibleButton="0"] .op3-toolbar-list-item[data-op3-content-item-name="block-options-layout"],
        &[data-op3-parent-options-property-value-visibleTitle="0"][data-op3-parent-options-property-value-visibleContent="0"][data-op3-parent-options-property-value-visibleDrippedLabel="0"][data-op3-parent-options-property-value-visibleProgress="0"][data-op3-parent-options-property-value-visibleCourseInfo2="0"][data-op3-parent-options-property-value-visibleButton="0"] .op3-toolbar-list-item[data-op3-content-item-name="block-options-layout"],
        &[data-op3-parent-options-property-value-visibleTitle="0"][data-op3-parent-options-property-value-visibleContent="0"][data-op3-parent-options-property-value-visibleDrippedLabel="0"][data-op3-parent-options-property-value-visibleCourseInfo1="0"][data-op3-parent-options-property-value-visibleCourseInfo2="0"][data-op3-parent-options-property-value-visibleButton="0"] .op3-toolbar-list-item[data-op3-content-item-name="block-options-layout"],
        &[data-op3-parent-options-property-value-visibleTitle="0"][data-op3-parent-options-property-value-visibleContent="0"][data-op3-parent-options-property-value-visibleProgress="0"][data-op3-parent-options-property-value-visibleCourseInfo1="0"][data-op3-parent-options-property-value-visibleCourseInfo2="0"][data-op3-parent-options-property-value-visibleButton="0"] .op3-toolbar-list-item[data-op3-content-item-name="block-options-layout"],
        &[data-op3-parent-options-property-value-visibleTitle="0"][data-op3-parent-options-property-value-visibleDrippedLabel="0"][data-op3-parent-options-property-value-visibleProgress="0"][data-op3-parent-options-property-value-visibleCourseInfo1="0"][data-op3-parent-options-property-value-visibleCourseInfo2="0"][data-op3-parent-options-property-value-visibleButton="0"] .op3-toolbar-list-item[data-op3-content-item-name="block-options-layout"],
        &[data-op3-parent-options-property-value-visibleContent="0"][data-op3-parent-options-property-value-visibleDrippedLabel="0"][data-op3-parent-options-property-value-visibleProgress="0"][data-op3-parent-options-property-value-visibleCourseInfo1="0"][data-op3-parent-options-property-value-visibleCourseInfo2="0"][data-op3-parent-options-property-value-visibleButton="0"] .op3-toolbar-list-item[data-op3-content-item-name="block-options-layout"] {
            display: none;
        }

        &[data-op3-parent-options-property-value-visibleImage="0"][data-op3-parent-options-property-value-visibleTitle="0"][data-op3-parent-options-property-value-visibleContent="0"][data-op3-parent-options-property-value-visibleCourseInfo1="0"][data-op3-parent-options-property-value-visibleCourseInfo2="0"][data-op3-parent-options-property-value-visibleButton="0"] {
            .op3-element-options-property[data-op3-element-options-property-id="postListItemIsLink"] {
                margin-bottom: 0;
            }
        }
    }

    &[data-op3-element-options-path*="/courselist/"] {
        .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="effectstyle"],
        .op3-element-options-group[data-op3-element-options-group-id="custom_experiences"],
        .op3-element-options-group[data-op3-element-options-group-id="effect-hover"],
        .op3-element-options-property[data-op3-element-options-property-id="caption"],
        .op3-element-options-property[data-op3-element-options-property-id="class"],
        .op3-element-options-property[data-op3-element-options-property-id="codeBeforeElement"],
        .op3-element-options-property[data-op3-element-options-property-id="codeAfterElement"],
        .op3-element-options-property[data-op3-element-options-property-id="zIndex"],
        .op3-element-options-property[data-op3-element-options-property-id="effectStyleHover"],
        .op3-element-options-property[data-op3-element-options-property-id="title"],
        .op3-element-options-property[data-op3-element-options-property-id="alt"],
        .op3-toolbar-list-item[data-op3-toolbar-nav-id="lock"],
        .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;
        }
    }

    &[data-op3-element-options-path*="/courselist/"]:not([data-op3-element-options-spec="courselistemptymessage"]) {
        .op3-element-options-property[data-op3-element-options-property-id="paragraphMarginVertical"],
        .op3-element-options-property[data-op3-element-options-property-id="marginTop"],
        .op3-element-options-property[data-op3-element-options-property-id="marginBottom"] {
            display: none;
        }
    }

    &[data-op3-element-options-path*="/courselist/"]:not([data-op3-element-options-type="pagination"]):not([data-op3-element-options-spec="courselistemptymessage"]) {
        .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-path*="/courselist/"][data-op3-element-options-spec="courselistimage"] {
        .op3-toolbar-list-item[data-op3-content-item-name="image-image"] {
            display: none;
        }
    }
}

#op3-context-menu {
    &[data-op3-element-path*="/courselist/"] {
        .op3-context-menu-list-item[data-op3-action="markAsGlobalElement"],
        .op3-context-menu-list-separator[data-op3-separator="clipboard/export"],
        .op3-context-menu-list-separator[data-op3-separator="global/delete"],
        .op3-context-menu-list-item[data-op3-action="clone"],
        .op3-context-menu-list-separator[data-op3-separator="clone/clipboard"],
        .op3-context-menu-list-separator[data-op3-separator="export/delete"],
        .op3-context-menu-list-item[data-op3-action="delete"] {
            display: none;
        }

        .op3-context-menu-list-item[data-op3-action="cut"],
        .op3-context-menu-list-item[data-op3-action="copy"],
        .op3-context-menu-list-item[data-op3-action="paste"] {
            opacity: 0.33;
            pointer-events: none;
        }
    }
}
