.ise {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    z-index: 9999999;
    position: absolute;
    background-color: #edf2f7;
    max-width: 300px;
    border-radius: 5px;
    box-shadow: 0px 8px 17px 2px #0000007c;

    select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        font-size: inherit;
        font-family: inherit;
        padding: 0.5rem;
        color: #212121;
        background: white;
        border: 1px solid #d8dae1;
        border-radius: 5px;
        box-shadow: none;
        max-width: 100%;
        display: inline-block;
    }

    select:not([multiple]) {
        background-image: linear-gradient(45deg, transparent 49%, #212121 51%),
            linear-gradient(135deg, #212121 51%, transparent 49%);
        background-position: calc(100% - 15px), calc(100% - 10px);
        background-size: 5px 5px, 5px 5px;
        background-repeat: no-repeat;
        padding: 5px 25px 5px 5px;
    }

    input[type="range"] {
        width: 100%;
        margin: auto;
    }

    .current-value {
        font-size: 12px;
        color: #64748b;
        min-width: 40px;
        text-align: right;
    }


    .select-tab {
        display: flex;
        align-items: center;
        background-color: #edf2f7;
        padding: 5px 0 5px 0;
        margin: 0 10px 0 10px;
        border-bottom: 1px solid #dee2e6;
    }

    .select-tab>span {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        min-width: 50px;
        padding: 3px;
        text-align: center;
        color: #718096;
        cursor: pointer;
    }

    .select-tab>b {
        margin-right: 5px;
        color: #5d5d5d;
    }

    .select-tab span.selected {
        border-radius: 2px;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);
        color: #0069d9;
        background-color: white;
    }

    .editor {
        padding: 5px;
    }

    .editor .prop-section {
        background: #f8fafc;
        border-radius: 6px;
        padding: 8px;
        margin: 6px 0;

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

        &.slider {
            .prop-header + input[type="range"] {
                display: inline-block;
                width: calc(100% - 50px);
                vertical-align: middle;
            }

            .current-value {
                display: inline-block;
                vertical-align: middle;
            }
        }
    }

    .prop-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 6px;
    }

    .prop-name {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #5d5d5d;
        font-weight: bold;
    }

    .selected-label {
        font-size: 12px;
        color: #64748b;
        font-weight: 500;
    }

    .close-button,
    .delete-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        padding: 0;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;

        svg {
            width: 12px;
            height: 12px;
        }
    }

    .delete-btn {
        border-radius: 4px;
        background: transparent;
        color: #94a3b8;

        &:hover {
            background: #fee2e2;
            color: #dc2626;
        }
    }

    .close-button {
        position: absolute;
        top: -8px;
        right: -8px;
        border-radius: 50%;
        background: #64748b;
        color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

        &:hover {
            background: #475569;
            transform: scale(1.1);
        }

        svg {
            width: 10px;
            height: 10px;
        }
    }

    .editor .btn {
        &.active {
            background-color: #4d84bf;
        }

        &.delete-elem {
            background-color: #d13737;
        }

        margin: 0 5px;
        background-color: #3333330d;
        border-radius: 4px;
        border: 1px solid #d8dae1;
        color: #333333;
        cursor: pointer;
        display: inline-block;
        padding: 5px;
    }

    .icon-selector {
        display: flex;
        gap: 2px;
        align-items: center;
    }

    .icon-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        padding: 4px;
        border: 1.5px solid transparent;
        border-radius: 5px;
        background: transparent;
        cursor: pointer;
        color: #94a3b8;

        &:hover {
            background: #e2e8f0;
            color: #475569;
        }

        &.selected {
            background: white;
            border-color: #3b82f6;
            color: #2563eb;
            box-shadow: 0 1px 3px 0 rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.1);
        }

        svg {
            width: 16px;
            height: 16px;
        }
    }

    .layout_default.picker_wrapper {
        background: none;
        box-shadow: none;
        width: 100%;

        .picker_done {
            display: none;
        }

        .picker_slider,
        .picker_selector {
            padding: 0.5em;
        }

        .picker_editor input {
            font-size: 0.7rem;
        }
    }
}

.ise-helper-wrapper {
    z-index: 9999998;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;

    .overlay-over {
        fill: #000000A0;
        pointer-events: painted;
    }
}