#toolbar form[data-op3-element-options-path$="/megamenudropdownsub/row"] {
    &[data-op3-element-options-is-first-child="1"][data-op3-element-options-is-last-child="1"] {
        .op3-toolbar-list-item[data-op3-toolbar-nav-id="delete"] {
            opacity: 0.33;
            pointer-events: none;
        }
    }
}

#toolbar form[data-op3-element-options-path$="/megamenudropdownsub/row/column"] {
    &[data-op3-element-options-is-first-child="1"][data-op3-element-options-is-last-child="1"][data-op3-element-options-is-parent-first-child="1"][data-op3-element-options-is-parent-last-child="1"] {
        .op3-toolbar-list-item[data-op3-toolbar-nav-id="delete"] {
            opacity: 0.33;
            pointer-events: none;
        }
    }
}

#op3-context-menu[data-op3-element-path$="/megamenudropdownsub/row"] {
    &[data-op3-element-is-first-child="1"][data-op3-element-is-last-child="1"] {
        .op3-context-menu-list-item[data-op3-action="delete"] {
            opacity: 0.33;
            pointer-events: none;
        }
    }
}

#op3-context-menu[data-op3-element-path$="/megamenudropdownsub/row/column"] {
    &[data-op3-element-is-first-child="1"][data-op3-element-is-last-child="1"][data-op3-element-is-parent-first-child="1"][data-op3-element-is-parent-last-child="1"] {
        .op3-context-menu-list-item[data-op3-action="delete"] {
            opacity: 0.33;
            pointer-events: none;
        }
    }
}

// Should we allow global element inside megamenudropdownsub? Why not!
//#op3-context-menu[data-op3-element-path*="/megamenudropdownsub/"] {
//    .op3-context-menu-list-item[data-op3-action="markAsGlobalElement"],
//    .op3-context-menu-list-separator[data-op3-separator="global/delete"] {
//        display: none;
//    }
//}
