.transformation-block-editor span.btn {
    margin: 0;
    position: relative;
}

.transformation-block-editor #attribute-list {
    left: 0;
    top: 100%;
    z-index: 999;
    min-width: 400px;
    flex-direction: column;
}

.transformation-block-editor #attribute-list ul {
    margin: 0;
    list-style: none;
    padding: 5px 15px;
}

.transformation-block-editor .btn.block-edit:not(.active) > #attribute-list,
.transformation-block-editor .block-controls span.btn[data-block-type="token"]:not(.active) > #attribute-list {
    display: none;
}

.transformation-block-editor div.text-add-edit {
    background-color: #f3f3f3;
    position: absolute;
    right: 0;
    top: 100%;
    padding: 4px;
    width: 250px;
    align-items: center;
    gap: 2px;
    display: none;
    z-index: 1;
}

.transformation-block-editor [data-type="if"] div.text-add-edit,
.transformation-block-editor [data-type="elseif"] div.text-add-edit {
    width: 750px;
}

.transformation-block-editor span.btn.active {
    background-color: #3a3633;
    color: #fff;
}

.transformation-block-editor .block-controls {
    display: flex;
    gap: 4px;
}

.transformation-block-editor .block-add-btn.active > div,
.transformation-block-editor .block-controls span.btn.active[data-block-type="text"] > div {
    display: flex;
}

.transformation-block-editor .block-controls span.btn[data-block-type="text"] > div > input {
    flex: 1;
}

.transformation-block-editor span.block-text-edit-cancel,
.transformation-block-editor span.block-text-cancel {
    display: inline-block;
    width: 25px;
    flex: 0 0 25px;
    height: 25px;
    background-image: url("/backend/AppBundle/img/remove_white.svg");
    background-position: center;
    background-size: 15px;
    background-repeat: no-repeat;
    background-color: #be2528;
}

.transformation-block-editor span.block-text-edit-confirm,
.transformation-block-editor span.block-text-confirm {
    display: inline-block;
    width: 25px;
    flex: 0 0 25px;
    height: 25px;
    background-image: url("/backend/AppBundle/img/check_white.svg");
    background-position: center;
    background-size: 15px;
    background-repeat: no-repeat;
    background-color: #bbbe25;
}

.transformation-block-editor .block-list {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border: 1px solid #aaa;
}


.transformation-block-editor .block-list .block-item {
    cursor: pointer;
    font-size: 12px;
    color: #3a3633;
    background-color: #f3f3f3;
    border: 1px solid #f3f3f3;
    display: inline-flex;
    gap: 8px;
}

.transformation-block-editor .block-list .block-item .block-placeholder,
.transformation-block-editor .block-list .block-item .block-condition,
.transformation-block-editor .block-list .block-item .block-token,
.transformation-block-editor .block-list .block-item .block-text {
    padding: 3px !important;
}

.transformation-block-editor .block-list .block-item .block-remove {
    width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-image: url("/backend/AppBundle/img/remove_white.svg");
    background-position: center;
    background-size: 10px;
    background-repeat: no-repeat;
}

.transformation-block-editor .block-list .block-item .block-edit {
    width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-image: url("/backend/AppBundle/img/edit_white.svg");
    background-position: center;
    background-size: 10px;
    background-repeat: no-repeat;
    position: relative;
}

.transformation-block-editor .block-list .block-item .block-edit.active > .text-add-edit {
    display: flex;
}

[data-block-type="if"] .text-add-edit,
[data-block-type="elseif"] .text-add-edit {
    width: 750px !important;
}

[data-block-type="if"] .text-add-edit select:nth-child(2),
[data-block-type="elseif"] .text-add-edit select:nth-child(2) {
    width: 110px;
    flex: 0 0 110px;
}