/**@license
 *  _____
 * |_   _|___ ___ ___ ___ ___
 *   | | | .'| . | . | -_|  _|
 *   |_| |__,|_  |_  |___|_|
 *           |___|___|   version 0.4.1
 *
 * Tagger - Zero dependency, Vanilla JavaScript Tag Editor
 *
 * Copyright (c) 2018-2021 Jakub T. Jankiewicz <https://jcubic.pl/me>
 * Released under the MIT license
 */
.tagger {
    border: 2px solid #EEE !important;
    padding: 0.5rem !important;
    border-radius: 0.2rem !important;
    transition: 0.2s !important;
    margin: 0 0.3rem 0.3rem 0 !important;
}
.tagger input[type="hidden"] {
  /* fix for bootsrap */
  display: none;
}
.tagger > ul {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 4px 0;
    justify-content: space-between;
    box-sizing: border-box;
    height: auto;
}
.tagger ul {
    margin: 0;
    list-style: none;
}
.tagger > ul > li {
    margin: .4rem 0;
    padding-left: 10px;
}
.tagger > ul > li:not(.tagger-new) a,
.tagger > ul > li:not(.tagger-new) a:visited,
.tagger-new ul a,
.tagger-new ul a:visited {
    color: black;
}
.tagger > ul > li:not(.tagger-new) > a,
.tagger li:not(.tagger-new) > span,
.tagger .tagger-new ul {
    padding: 4px 4px 4px 8px;
    background: var(--color-secondary-30);
    border: 1px solid var(--color-secondary);
    border-radius: 3px;
}


.tagger > ul > li:not(.tagger-new) > a:hover {
    border: 1px solid var(--color-secondary-50) !important;
}
.tagger > ul > li:hover a:not(.close) {
    color: #FFF !important;
    background-color: var(--color-primary-80) !important;
}

.tagger > ul > li .label {
    margin-bottom: 1px;
}

.tagger > ul > li .close { 
    display: none;
    transition: .2s;
}


.tagger > ul > li:hover .close {
    display: initial;
    color: #FFF !important;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50%;
    margin-left: 0.4rem;
    margin-right: 0.15rem;
}


.tagger li a.close {
    padding: 4px;
    margin-left: 4px;
    /* for bootsrap */
    float: none;
    filter: alpha(opacity=100);
    opacity: 1;
    font-size: 16px;
    line-height: 16px;
}
.tagger li a.close:hover {
    color: white;
}
.tagger li:not(.tagger-new) a {
    text-decoration: none;
}
.tagger .tagger-new input {
    border: none;
    outline: none;
    box-shadow: none;
    width: 100%;
    padding-left: 0;
    background: transparent;
}
.tagger .tagger-new {
    flex-grow: 1;
    position: relative;
}
.tagger .tagger-new ul {
    padding: 5px;
}
.tagger .tagger-completion {
    position: absolute;
    z-index: 100;
}
.tagger.wrap > ul {
    flex-wrap: wrap;
    justify-content: start;
}
