#toolbar form[data-op3-element-options-type^="megamenuitem"] {
    .op3-toolbar-list-item[data-op3-toolbar-nav-id="add"] {
        display: block;
    }

    &:not([data-op3-parent-options-property-value-icondisplay="grid"]) {
        .op3-toolbar-list-item[data-op3-content-item-name="icon-active-icon"],
        .op3-toolbar-list-item[data-op3-content-item-name="color-icon"] {
            display: none;
        }
    }

    &:not([data-op3-parent-options-property-value-textdisplay="block"]) {
        .op3-toolbar-list-item[data-op3-content-item-name="color-text"] {
            display: none;
        }
    }

    &:not([data-op3-parent-options-property-value-megamenuitemaction="dropdown"]),
    &:not([data-op3-parent-options-property-value-dropdownicondisplay="block"]) {
        .op3-toolbar-list-item[data-op3-content-item-name="color-dropdown-icon"] {
            display: none;
        }
    }

    &:not([data-op3-parent-options-property-value-megamenuitemaction="dropdown"]) {
        .op3-toolbar-list-item[data-op3-content-item-name="icon-dropdown-icon"] {
            display: none;
        }
    }

    &:not([data-op3-parent-options-property-value-textdisplay="block"]) {
        .op3-toolbar-list-item[data-op3-content-item-name="text-size"],
        .op3-toolbar-list-item[data-op3-content-item-name="text-styling"] {
            display: none;
        }
    }

    &:not([data-op3-parent-options-property-value-icondisplay="block"]):not([data-op3-parent-options-property-value-dropdownicondisplay="block"]),
    &:not([data-op3-parent-options-property-value-textdisplay="block"]):not([data-op3-parent-options-property-value-dropdownicondisplay="block"]),
    &:not([data-op3-parent-options-property-value-megamenuitemaction="dropdown"]):not([data-op3-parent-options-property-value-icondisplay="block"]),
    &:not([data-op3-parent-options-property-value-megamenuitemaction="dropdown"]):not([data-op3-parent-options-property-value-textdisplay="block"]) {
        .op3-element-options-property[data-op3-element-options-property-id="alignItems"],
        .op3-element-options-property[data-op3-element-options-property-id="gap"] {
            display: none;
        }
    }

    &:not([data-op3-parent-options-property-value-hashamburgermenu="1"]) {
        .op3-element-options-property[data-op3-element-options-property-id="justifyContent"] {
            display: none;
        }
    }

    &:not([data-op3-parent-options-property-value-hashamburgermenu="1"]):not([data-op3-parent-options-property-value-icondisplay="block"]):not([data-op3-parent-options-property-value-dropdownicondisplay="block"]),
    &:not([data-op3-parent-options-property-value-hashamburgermenu="1"]):not([data-op3-parent-options-property-value-textdisplay="block"]):not([data-op3-parent-options-property-value-dropdownicondisplay="block"]),
    &:not([data-op3-parent-options-property-value-hashamburgermenu="1"]):not([data-op3-parent-options-property-value-megamenuitemaction="dropdown"]):not([data-op3-parent-options-property-value-icondisplay="block"]),
    &:not([data-op3-parent-options-property-value-hashamburgermenu="1"]):not([data-op3-parent-options-property-value-megamenuitemaction="dropdown"]):not([data-op3-parent-options-property-value-textdisplay="block"]) {
        .op3-toolbar-list-item[data-op3-content-item-name="megamenu-style"] {
            display: none;
        }
    }

    &:not([data-op3-parent-options-property-value-megamenuitemaction="dropdown"]) {
        .op3-toolbar-list-item[data-op3-content-item-name="megamenu-dropdown"] {
            display: none;
        }
    }

    &:not([data-op3-parent-options-property-value-megamenuitemaction="dropdown"]) {
        .op3-toolbar-list-item[data-op3-content-item-name="borders-active"],
        .op3-toolbar-list-item[data-op3-content-item-name="shadows-active"] {
            display: none;
        }

        .op3-element-options-property-filter--active-inactive-hover {
            .jquery-filter-button-item:first-child {
                display: none;
            }

            .jquery-filter-button-item:nth-child(2) {
                border-radius: 5px 0 0 5px;
            }
        }
    }

    &:not([data-op3-parent-options-property-value-megamenuitemaction="link"]) {
        .op3-element-options-property[data-op3-element-options-property-id="action"],
        .op3-element-options-property[data-op3-element-options-property-id="selectMediaFile"],
        .op3-element-options-property[data-op3-element-options-property-id="href"],
        .op3-element-options-property[data-op3-element-options-property-id="target"],
        .op3-element-options-property[data-op3-element-options-property-id="relNoFollow"],
        .op3-element-options-property[data-op3-element-options-property-id="popOverlayTrigger"],
        .op3-element-options-property[data-op3-element-options-property-id="loginAndSignupFormStateTrigger"],
        .op3-element-options-property[data-op3-element-options-property-id="selectFunnelStep"],
        .op3-element-options-property[data-op3-element-options-property-id="createVideoPopoverlay"],
        .op3-element-options-property[data-op3-element-options-property-id="createPopoverlay"],
        .op3-element-options-property[data-op3-element-options-property-id="selectHrefTarget"],
        .op3-element-options-property[data-op3-element-options-property-id="smoothScroll"] {
            display: none;
        }
    }

    &:not([data-op3-parent-options-property-value-megamenuitemaction="dropdown"]) {
        .op3-element-options-property[data-op3-element-options-property-id="megamenuDropdownTrigger"],
        .op3-element-options-property[data-op3-element-options-property-id="megamenuDropdownTrigger"] + .op3-element-options-custom-html,
        .op3-element-options-property[data-op3-element-options-property-id="dropdownAnimationName"],
        .op3-element-options-property[data-op3-element-options-property-id="dropdownAnimationDuration"] {
            display: none;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="dropdownAnimationName"][data-op3-element-options-property-value="none"] {
        + .op3-element-options-property[data-op3-element-options-property-id="dropdownAnimationDuration"] {
            display: none;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="action"][data-op3-element-options-property-value="link"] {
        ~ .op3-element-options-property[data-op3-element-options-property-id="selectMediaFile"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="popOverlayTrigger"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="loginAndSignupFormStateTrigger"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="selectFunnelStep"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="createVideoPopoverlay"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="createPopoverlay"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="selectHrefTarget"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="smoothScroll"] {
            display: none;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="action"][data-op3-element-options-property-value="linkToMediaFile"] {
        ~ .op3-element-options-property[data-op3-element-options-property-id="popOverlayTrigger"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="loginAndSignupFormStateTrigger"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="selectFunnelStep"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="createVideoPopoverlay"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="createPopoverlay"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="selectHrefTarget"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="smoothScroll"] {
            display: none;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="action"][data-op3-element-options-property-value="popoverlay"] {
        ~ .op3-element-options-property[data-op3-element-options-property-id="selectMediaFile"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="href"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="target"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="relNoFollow"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="loginAndSignupFormStateTrigger"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="selectFunnelStep"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="selectHrefTarget"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="smoothScroll"] {
            display: none;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="action"][data-op3-element-options-property-value="jumpToElement"] {
        ~ .op3-element-options-property[data-op3-element-options-property-id="selectMediaFile"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="target"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="relNoFollow"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="popOverlayTrigger"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="loginAndSignupFormStateTrigger"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="selectFunnelStep"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="createVideoPopoverlay"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="createPopoverlay"] {
            display: none;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="fontFamily"],
    .op3-element-options-property[data-op3-element-options-property-id="fontWeight"],
    .op3-element-options-property[data-op3-element-options-property-id="op3Icon"],
    .op3-element-options-property[data-op3-element-options-property-id="altIcon"],
    .op3-element-options-property[data-op3-element-options-property-id="iconOrder"],
    .op3-element-options-property[data-op3-element-options-property-id="iconFontSize"],
    .op3-element-options-property[data-op3-element-options-property-id="iconSpacing"],
    .op3-element-options-property[data-op3-element-options-property-id="dropdownIcon"],
    .op3-element-options-property[data-op3-element-options-property-id="dropdownIconFontSize"],
    .op3-element-options-property[data-op3-element-options-property-id="dropdownIconSpacing"],
    .op3-element-options-property[data-op3-element-options-property-id="dropdownIconSpacingTop"] {
        display: none;
    }

    .op3-element-options-property[data-op3-element-options-property-id="--op3-megamenu-dropdown-width-as"]:not([data-op3-element-options-property-value="custom"]) {
        + .op3-element-options-property[data-op3-element-options-property-id="dropdownWidth"] {
            display: none;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="--op3-megamenu-dropdown-width-as"] {
        + .op3-element-options-property[data-op3-element-options-property-id="dropdownWidth"] {
            .op3-element-options-label-group {
                display: none;
            }

            .jquery-input-range-widget {
                margin-top: -10px;
            }
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="textVisible"][data-op3-element-options-property-value="1"] {
        ~ .op3-element-options-property[data-op3-element-options-property-id="fontFamily"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="fontWeight"] {
            display: flex;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="iconVisible"][data-op3-element-options-property-value="1"] {
        ~ .op3-element-options-property[data-op3-element-options-property-id="op3Icon"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="iconOrder"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="iconFontSize"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="iconSpacing"] {
            display: flex;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="altIconVisible"][data-op3-element-options-property-value="1"] {
        ~ .op3-element-options-property[data-op3-element-options-property-id="altIcon"] {
            display: flex;
        }
    }

    &:not([data-op3-parent-options-property-value-textdisplay="block"]) {
        .op3-element-options-property[data-op3-element-options-property-id="iconOrder"],
        .op3-element-options-property[data-op3-element-options-property-id="iconSpacing"] {
            display: none !important;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="dropdownIconVisible"][data-op3-element-options-property-value="1"] {
        ~ .op3-element-options-property[data-op3-element-options-property-id="dropdownIcon"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="dropdownIconFontSize"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="dropdownIconSpacing"],
        ~ .op3-element-options-property[data-op3-element-options-property-id="dropdownIconSpacingTop"] {
            display: flex;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="justifyContent"] {
        .jquery-select-buttons-option[data-jquery-select-buttons-option-value="normal"] {
            display: none;
        }

        .jquery-select-buttons-option-icon {
            transform: rotate(-90deg);
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="alignItems"] {
        .jquery-select-buttons-option-icon {
            transform: rotate(90deg);
        }
    }
}

#sidebar form[data-op3-element-options-type="megamenuitem"] {
    .op3-element-options-group[data-op3-element-options-group-id="positioning"] {
        .op3-boxmodel[data-boxmodel-id$="-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;
                }
            }
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="transitionDuration"] {
        .op3-element-options-description {
            display: none;
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="backgroundColorBaseHover"],
    .op3-element-options-property[data-op3-element-options-property-id^="backgroundImageBaseHover"] {
        &:not([data-op3-element-options-property-id="backgroundImageBaseHoverType"]) {
            padding-top: 0;
        }

        &[data-op3-element-options-property-id="backgroundImageBaseHoverAngle"] {
            padding-top: 11px;
        }

        &::before {
            display: none;
        }
    }

    &:not([data-op3-parent-options-property-value-megamenuitemaction="dropdown"]) {
        .op3-element-options-property[data-op3-element-options-property-id="dropdownIconColorHover"] {
            display: none;
        }
    }
}

#op3-context-menu[data-op3-element-type^="megamenuitem"] {
    .op3-context-menu-list-item,
    .op3-context-menu-list-separator {
        display: none;
    }

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