.op3-element-options-border-wrapper {
    display: flex;
    flex-direction: column;
    padding: 22px;

    .op3-element-options-corner-boxes {
        position: relative;
        width: 60px;
        height: 60px;
    }

    // borders
    [data-property-link] {
        position: absolute;
        width: 20px;
        height: 20px;
        border: 1px solid transparent;
        cursor: pointer;
        transition: all 0.1s ease;
    }

    [data-property-link="top"] {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        border-top: 2px solid $op-light-grey;
    }

    [data-property-link="right"] {
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        border-right: 2px solid $op-light-grey;
    }

    [data-property-link="bottom"] {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        border-bottom: 2px solid $op-light-grey;
    }

    [data-property-link="left"] {
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        border-left: 2px solid $op-light-grey;
    }

    [data-property-link="all"] {
        left: 50%;
        top: 50%;
        width: 18px;
        height: 18px;
        transform: translate(-50%, -50%);
        border: 2px solid $op-light-grey;
    }

    // active borders
    &[data-property-link-active="top"] [data-property-link="top"],
    [data-property-link="top"]:hover {
        border-top: 4px solid $op-blue;
    }

    &[data-property-link-active="right"] [data-property-link="right"],
    [data-property-link="right"]:hover {
            border-right: 4px solid $op-blue;
        }

    &[data-property-link-active="bottom"] [data-property-link="bottom"],
    [data-property-link="bottom"]:hover {
        border-bottom: 4px solid $op-blue;
    }

    &[data-property-link-active="left"] [data-property-link="left"],
    [data-property-link="left"]:hover {
        border-left: 4px solid $op-blue;
    }

    &[data-property-link-active="all"] [data-property-link="all"],
    [data-property-link="all"]:hover {
        border: 4px solid $op-blue;
    }

    // display property by active border
    & ~ .op3-element-options-property[data-op3-element-options-property-name="borderTopWidth"],
    & ~ .op3-element-options-property[data-op3-element-options-property-name="borderTopStyle"],
    & ~ .op3-element-options-property[data-op3-element-options-property-name="borderTopColor"],
    & ~ .op3-element-options-property[data-op3-element-options-property-name="borderRightWidth"],
    & ~ .op3-element-options-property[data-op3-element-options-property-name="borderRightStyle"],
    & ~ .op3-element-options-property[data-op3-element-options-property-name="borderRightColor"],
    & ~ .op3-element-options-property[data-op3-element-options-property-name="borderBottomWidth"],
    & ~ .op3-element-options-property[data-op3-element-options-property-name="borderBottomStyle"],
    & ~ .op3-element-options-property[data-op3-element-options-property-name="borderBottomColor"],
    & ~ .op3-element-options-property[data-op3-element-options-property-name="borderLeftWidth"],
    & ~ .op3-element-options-property[data-op3-element-options-property-name="borderLeftStyle"],
    & ~ .op3-element-options-property[data-op3-element-options-property-name="borderLeftColor"] {
        display: none;
    }

    &[data-property-link-active="all"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderTopWidth"],
    &[data-property-link-active="all"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderTopStyle"],
    &[data-property-link-active="all"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderTopColor"],
    &[data-property-link-active="top"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderTopWidth"],
    &[data-property-link-active="top"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderTopStyle"],
    &[data-property-link-active="top"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderTopColor"],
    &[data-property-link-active="right"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderRightWidth"],
    &[data-property-link-active="right"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderRightStyle"],
    &[data-property-link-active="right"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderRightColor"],
    &[data-property-link-active="bottom"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderBottomWidth"],
    &[data-property-link-active="bottom"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderBottomStyle"],
    &[data-property-link-active="bottom"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderBottomColor"],
    &[data-property-link-active="left"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderLeftWidth"],
    &[data-property-link-active="left"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderLeftStyle"],
    &[data-property-link-active="left"] ~ .op3-element-options-property[data-op3-element-options-property-name="borderLeftColor"] {
        display: flex;

        &::before {
            display: none;
        }

        .op3-element-options-label-group {
            display: none;
        }

        &[data-op3-element-options-property-name$="Width"] {
            position: absolute;
            right: 86px;
            width: 92px;
            margin-top: -52px;
            padding: 0;

            #toolbar & {
                right: 62px;
                margin-top: -30px;
            }
        }

        &[data-op3-element-options-property-name$="Style"] {
            position: absolute;
            right: 46px;
            width: 132px;
            margin-top: -82px;
            padding: 0;

            #toolbar & {
                right: 22px;
                margin-top: -60px;
            }
        }

        &[data-op3-element-options-property-name$="Color"] {
            position: absolute;
            right: 46px;
            margin-top: -52px;
            padding: 0;

            #toolbar & {
                right: 22px;
                margin-top: -30px;
            }
        }

        .jquery-input-range-widget {
            margin: 0;
            padding: 0;

            .jquery-input-range-slider,
            .jquery-input-range-unit-container {
                display: none;
            }

            .jquery-input-range-numeric {
                width: 100%;
                height: 30px;
                margin: 0;
                padding-top: 0;
                padding-bottom: 0;
            }
        }

        .jquery-select-buttons-widget {
            .jquery-select-buttons-option-text,
            .jquery-select-buttons-option-icon {
                display: none;
            }

            .jquery-select-buttons-option {
                position: relative;
                width: 20px;
                height: 20px;
                margin: 0 8px;
                border: 2px solid darken($op-grey-border, 10%);
                border-radius: 0;

                &:first-child {
                    margin-left: 0;
                }

                &:last-child {
                    margin-right: 0;
                }

                &:hover {
                    border-color: $op-light-grey;
                }

                &.jquery-select-buttons-option-selected {
                    border-color: $op-blue;
                    background: transparent;
                }

                &[data-jquery-select-buttons-option-value="none"] {
                    // already solid

                    &::before {
                        content: "";
                        display: block;
                        width: 2px;
                        height: 24px;
                        position: absolute;
                        right: -1px;
                        top: 0;
                        transform-origin: 0 0;
                        transform: rotate(45deg);
                        background: darken($op-grey-border, 10%);
                    }

                    &:hover::before {
                        background: $op-light-grey;
                    }

                    &.jquery-select-buttons-option-selected::before {
                        background: $op-blue;
                    }
                }

                &[data-jquery-select-buttons-option-value="solid"] {
                    // already solid
                }

                &[data-jquery-select-buttons-option-value="dashed"] {
                    border-style: dashed;
                }

                &[data-jquery-select-buttons-option-value="dotted"] {
                    border-style: dotted;
                }
            }
        }
    }
}
