/* surrounding tag container */
.tag-editor {
    list-style-type: none;
    padding: 0 5px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #5B5B5B;
    cursor: text;
    min-height: 40px;
    line-height: 40px;
    border-radius: 5px;
    background: #fff;
    width: auto;
}

.default-item {
    padding: 0 10px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #5B5B5B;
    cursor: text;
    min-height: 40px;
    line-height: 40px;
    border-radius: 5px;
    background: #fff;
}

.default-item .txt {
    color: #bbb;
    padding: 0;
}

.tag-editor input {
    height: 24px;
    line-height: 24px;
}

.tag-editor input:focus {
    border: none;
}

/* core styles usually need no change */
.tag-editor li {
    /*display: block;*/
    display: contents;
    float: left;
    /*overflow: hidden;*/
    margin: 8px 0;
    height: 24px;
    line-height: 24px;
}

.tag-editor div {
    float: left;
    padding: 8px 4px;
}

.tag-editor .placeholder {
    padding: 0 8px 0 0;
}

.tag-editor .placeholder div {
    color: #bbb;
}

.tag-editor .tag-editor-spacer {
    padding: 0;
    width: 8px;
    overflow: hidden;
    color: transparent;
    background: none;
}

.tag-editor input {
    vertical-align: inherit;
    border: 0;
    outline: none;
    padding: 0;
    margin: 0;
    cursor: text;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    font-style: inherit;
    box-shadow: none;
    background: none;
}

/* tag style */
.tag-editor .tag-editor-tag {
    padding-left: 5px;
    color: #46799b;
    background: #e0eaf1;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px 0 0 2px;
}

.default-editor {
    display: flex;
}

.tag-editor-tag2 {
    padding: 0 5px;
    color: #46799b;
    background: #e0eaf1;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px 0 0 2px;
    display: inline-block;
    line-height: 24px;
    margin: 8px 8px 8px 0;
    height: 24px;
}

/* delete icon */
.tag-editor .tag-editor-delete {
    background: #e0eaf1;
    cursor: pointer;
    padding-right: 5px;
    border-radius: 0 2px 2px 0;
}

.tag-editor .tag-editor-delete i {
    display: inline-block;
    width: 7px;
    height: 7px;
    vertical-align: middle;
    background: url(delete.png) 0 0 no-repeat;
    position: relative;
    top: -1px;
}

.tag-editor .tag-editor-delete:hover i {
    background-position: 0 -14px;
}

.tag-editor .tag-editor-tag.active + .tag-editor-delete,
.tag-editor .tag-editor-tag.active + .tag-editor-delete i {
    background: none;
    cursor: text;
}

.tag-editor .tag-editor-tag.active {
    background: none !important;
}

/* jQuery UI autocomplete - code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css */
.ui-autocomplete {
    position: absolute;
    top: 0;
    left: 0;
    cursor: default;
    font-size: 14px;
}

.ui-front {
    z-index: 9999;
}

.ui-menu {
    list-style: none;
    padding: 1px;
    margin: 0;
    display: block;
    outline: none;
}

.ui-menu .ui-menu-item a {
    text-decoration: none;
    display: block;
    padding: 2px .4em;
    line-height: 1.4;
    min-height: 0; /* support: IE7 */
}

.ui-widget-content {
    border: 1px solid #bbb;
    background: #fff;
    color: #555;
}

.ui-widget-content a {
    color: #46799b;
}

.ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus {
    background: #e0eaf1;
}

.ui-helper-hidden-accessible {
    display: none;
}
