/* Logo to the right */
.admin__collapsible-block-wrapper.es-esfeature__logo .admin__collapsible-title > span:first-child {         /* Collapsible block title */
    position: relative;
    padding-right: 35px;
}

/* Logo to the left */
.admin__field.es-esfeature__logo > .admin__field-label > label > span:first-child,                          /* Category fields */
fieldset.es-esfeature__logo legend span:first-child,                                                        /* Legacy form fields */
label.es-esfeature__logo span:first-child {                                                                 /* Store view config */
    position: relative;
    padding-left: 35px;
}

/* Logo image - default position to the left */
.admin__collapsible-block-wrapper.es-esfeature__logo .admin__collapsible-title > span:first-child:after,    /* Collapsible block title */
.admin__field.es-esfeature__logo > .admin__field-label > label > span:first-child:after,                    /* Category fields */
label.es-esfeature__logo span:first-child:after,                                                            /* Store view config */
fieldset.es-esfeature__logo legend span:first-child:after,                                                  /* Legacy form fields */
.section-config.es-esfeature__logo > .admin__collapsible-block > a:after {                                  /* Section config title */
    position: absolute;
    top: 25%;
    left: 0;
    transform: translateY( -50% );
    content: "";
    width: 30px;
    height: 30px;
    background: url('../images/es-logo.svg') no-repeat 0 0;
    background-size: contain;
}

/* Logo image - position to the right */
.admin__collapsible-block-wrapper.es-esfeature__logo .admin__collapsible-title > span:first-child:after,    /* Collapsible block title */
.section-config.es-esfeature__logo > .admin__collapsible-block > a:after {                                  /* Section config title */
    left: unset;
    margin-left: 10px;
    top: 50%;
}

fieldset.es-esfeature__logo legend span:first-child:after { /* Legacy form fields */
    top: 50%;
    left: -40px;
}

/* Upsell message */
div.elasticsuite-upsell-content:before {
    background: url('../images/es-logo.svg') no-repeat 0 0;
    background-size: contain;
    content: "";
    width: 30px;
    height: 30px;
}

/* Category trees decoration */
.x-tree-node-el.es-esfeature__logo > a:after,                   /* Category tree block, generic (rules, widget) category picker */
.jstree-node.es-esfeature__logo > a.jstree-anchor:after {       /* Category picker in URL rewrites edition  */
    position: absolute;
    content: "";
    background: url('../images/es-logo.svg') no-repeat bottom;
    background-size: contain;
    width: 20px;
    height: 20px;
    margin-left: 5px;
    margin-top: -2px;
}

.jstree-node.es-esfeature__logo > a.jstree-anchor:after {       /* Category picker in URL rewrites edition */
    width: 24px;
    height: 24px;
    margin-top: 0;
    margin-left: 10px;
}

.admin__field-control .rule-tree .x-tree-node-el.es-esfeature__logo > a:after {  /* Category picker in non-full page forms */
    margin-top: 7px;
}
