#toolbar {
    form[data-op3-element-options-type="numberblock"] {
        .op3-element-options-property.jquery-filter-button-content {
            .op3-element-options-label-group {
                display: none;
            }
        }

        // Hide column/row gap.
        &[data-op3-element-options-children-count="1"] {
            .op3-toolbar-list-item[data-op3-content-item-name="block-order-column-layout"] {
                display: none;
            }
        }

        &[data-op3-parent-options-property-value-flexbasissteps="1"] {
            .op3-element-options-property[data-op3-element-options-property-id="--op3-flex-column-gap"] {
                display: none;
            }
        }

        &[data-op3-parent-options-property-value-columnsLayout="custom"][data-op3-element-options-children-count="2"][data-op3-parent-options-property-value-flexBasisSteps="2"],
        &[data-op3-parent-options-property-value-columnsLayout="custom"][data-op3-element-options-children-count="3"][data-op3-parent-options-property-value-flexBasisSteps="3"],
        &[data-op3-parent-options-property-value-columnsLayout="custom"][data-op3-element-options-children-count="4"][data-op3-parent-options-property-value-flexBasisSteps="4"] {
            .op3-element-options-property[data-op3-element-options-property-id="rowGap"] {
                display: none;
            }
        }

        &[data-op3-parent-options-property-value-columnsLayout="stack"] {
            .op3-element-options-property[data-op3-element-options-property-id="--op3-flex-basis-steps"],
            .op3-element-options-property[data-op3-element-options-property-id="--op3-flex-column-gap"] {
                display: none;
            }
        }

        // Do not allow more columns than children count.
        &[data-op3-element-options-children-count="3"] .op3-element-options-property[data-op3-element-options-property-id="--op3-flex-basis-steps"] .jquery-select-buttons-option[data-jquery-select-buttons-option-value="4"],
        &[data-op3-element-options-children-count="2"] .op3-element-options-property[data-op3-element-options-property-id="--op3-flex-basis-steps"] .jquery-select-buttons-option[data-jquery-select-buttons-option-value="4"],
        &[data-op3-element-options-children-count="2"] .op3-element-options-property[data-op3-element-options-property-id="--op3-flex-basis-steps"] .jquery-select-buttons-option[data-jquery-select-buttons-option-value="3"],
        &[data-op3-element-options-children-count="1"] .op3-element-options-property[data-op3-element-options-property-id="--op3-flex-basis-steps"] .jquery-select-buttons-option[data-jquery-select-buttons-option-value="4"],
        &[data-op3-element-options-children-count="1"] .op3-element-options-property[data-op3-element-options-property-id="--op3-flex-basis-steps"] .jquery-select-buttons-option[data-jquery-select-buttons-option-value="3"],
        &[data-op3-element-options-children-count="1"] .op3-element-options-property[data-op3-element-options-property-id="--op3-flex-basis-steps"] .jquery-select-buttons-option[data-jquery-select-buttons-option-value="2"] {
            opacity: 0.3;
            pointer-events: none;
        }

        // Block layout desktop/tablet/mobile.
        [data-op3-device]:not([data-op3-device="desktop"]) & .op3-element-options-property[data-op3-element-options-property-id="blockLayoutDesktop"],
        [data-op3-device]:not([data-op3-device="tablet"]) & .op3-element-options-property[data-op3-element-options-property-id="blockLayoutTablet"],
        [data-op3-device]:not([data-op3-device="mobile"]) & .op3-element-options-property[data-op3-element-options-property-id="blockLayoutMobile"] {
            display: none;
        }

        // Block layout/margin logic.
        @import 'op3-live-editor-layouts';

        // Number spacing.
        &[data-op3-parent-options-property-value-blockLayout="0"] {
            .op3-element-options-property[data-op3-element-options-property-id="marginLeftNumber"],
            .op3-element-options-property[data-op3-element-options-property-id="marginBottomNumber"] {
                display: none;
            }
        }

        &[data-op3-parent-options-property-value-blockLayout="1"] {
            .op3-element-options-property[data-op3-element-options-property-id="marginRightNumber"],
            .op3-element-options-property[data-op3-element-options-property-id="marginBottomNumber"] {
                display: none;
            }
        }

        &[data-op3-parent-options-property-value-blockLayout="2"],
        &[data-op3-parent-options-property-value-blockLayout="3"] {
            .op3-element-options-property[data-op3-element-options-property-id="marginRightNumber"],
            .op3-element-options-property[data-op3-element-options-property-id="marginLeftNumber"] {
                display: none;
            }
        }

        // Number frame/shape/padding logic.
        .op3-element-options-property[data-op3-element-options-property-id="numberblockFrame"] {
            &[data-op3-element-options-property-value="none"] {
                ~ .op3-element-options-property[data-op3-element-options-property-id="numberblockShape"],
                ~ .op3-element-options-property[data-op3-element-options-property-id="borderWidthNumber"] {
                    display: none;
                }
            }

            &[data-op3-element-options-property-value="filled"] {
                ~ .op3-element-options-property[data-op3-element-options-property-id="borderWidthNumber"] {
                    display: none;
                }
            }
        }
    }

    // Toobar add.
    form[data-op3-element-options-type="numberblock"],
    form[data-op3-element-options-type="numberblockitem"] {
        [data-op3-toolbar-nav-id="add"] {
            display: block;
        }

        &[data-op3-element-options-row-children-count="12"] {
            [data-op3-toolbar-nav-id="add"] {
                opacity: 0.5;
                pointer-events: none;
            }
        }
    }

    // Toobar clone.
    form[data-op3-element-options-type="numberblockitem"] {
        &[data-op3-element-options-row-children-count="12"] {
            [data-op3-toolbar-nav-id="clone"] {
                opacity: 0.5;
                pointer-events: none;
            }
        }
    }
}

form[data-op3-element-options-path*="/numberblockitem/"] {
    .op3-element-options-group[data-op3-element-options-group-id="responsive"],
    .op3-element-options-group[data-op3-element-options-group-id="custom_experiences"] {
        display: none;
    }
}

#op3-context-menu {
    &[data-op3-element-type="numberblock"],
    &[data-op3-element-type="numberblockitem"] {
        .op3-context-menu-list-item[data-op3-action="addElement"][data-op3-args*="numberblock"] {
            display: block;
        }

        &[data-op3-element-row-children-count="12"] {
            .op3-context-menu-list-item[data-op3-action="addElement"][data-op3-args*="numberblock"] {
                opacity: 0.33;
                pointer-events: none;
            }
        }
    }

    &[data-op3-element-type="numberblockitem"] {
        &[data-op3-element-row-children-count="12"] {
            .op3-context-menu-list-item[data-op3-action="clone"] {
                opacity: 0.33;
                pointer-events: none;
            }
        }
    }

    // Element children.
    &[data-op3-element-path*="/numberblockitem/"] {
        .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;
        }
    }

    // Element and it's children.
    &[data-op3-element-path*="/numberblockitem"] {
        .op3-context-menu-list-item[data-op3-action="markAsGlobalElement"],
        .op3-context-menu-list-separator[data-op3-separator="clipboard/export"] {
            display: none;
        }
    }
}
