.root {
    display: flex;
    flex-direction: column;
    position: absolute;
    border-radius: 12px;
    box-shadow: var(--panel-shadow);
    background-color: var(--background-color);
    top: 16px;
    left: 16px;
    padding: 16px;
    max-width: 480px;
    max-height: 75%;
    overflow: hidden;
    z-index: 99999;
}

.title {
    margin: 0px 6px;
    display: flex;
    flex: 0;
    flex-direction: row;
    align-items: center;

    span {
        font-size: medium;
        flex: 1;
    }

    svg {
        width: 16px;
        height: 16px;
        padding: 6px;
        margin: 0 3px;

        &:hover {
            background-color: var(--hover-background-color);
        }
    }
}

.materials {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 8px;
    background-color: var(--panel-background-color);
    border: 1px solid var(--border-color);
    margin: 8px 0px;
    padding: 4px;
    min-height: 60px;
    max-height: 120px;
    flex: 0;
    overflow: hidden;
    overflow-y: auto;
}

.material {
    border-radius: 8px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-color);
    margin: 4px;
}

.active {
    border: 5px solid var(--primary-color);
}

.properties {
    display: flex;
    flex: 1;
    flex-direction: column;
    border-radius: 8px;
    background-color: var(--panel-background-color);
    border: 1px solid var(--border-color);
    padding: 16px;
    --delete-visiblity: hidden;
    overflow: hidden;
    overflow-y: auto;
}

.bottom {
    display: flex;
    flex-direction: row;
    margin-top: 8px;

    button {
        width: 96px;
        height: 28px;
        margin-right: 8px;
        border-radius: 6px;
        border: 1px solid var(--border-color);
        background-color: var(--panel-background-color);
        &:hover {
            background-color: var(--hover-background-color);
        }
    }
}
