/**@license
 *  _____
 * |_   _|___ ___ ___ ___ ___
 *   | | | .'| . | . | -_|  _|
 *   |_| |__,|_  |_  |___|_|
 *           |___|___|   version 0.4.3
 *
 * Tagger - Zero dependency, Vanilla JavaScript Tag Editor
 *
 * Copyright (c) 2018-2022 Jakub T. Jankiewicz <https://jcubic.pl/me>
 * Released under the MIT license
 */
.tagger {
  background-color: white;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius); }

.tagger input[type="hidden"] {
  /* fix for bootsrap */
  display: none; }

.tagger > ul {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  height: auto;
  padding: .5rem .33rem;
  width: 100%; }

.tagger ul {
  margin: 0;
  list-style: none; }

.tagger > ul > li {
  display: inline-flex; }

.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: var(--color-text); }

.tagger > ul > li:not(.tagger-new) > a,
.tagger li:not(.tagger-new) > span,
.tagger .tagger-new ul {
  background: var(--btn-color-bg);
  border-radius: var(--border-radius);
  padding: 4px 4px 4px 8px;
  /* Disable work wrapping/breaking */
  white-space: nowrap;
  word-break: unset;
  word-wrap: unset;
  overflow-wrap: unset;
  -webkit-hyphens: unset;
  -moz-hyphens: unset;
  -ms-hyphens: unset;
  hyphens: unset; }

.tagger li a.close {
  padding: 6px;
  margin-left: 4px;
  opacity: 1;
  font-size: 16px;
  font-weight: bold;
  line-height: 16px; }

.tagger li a.close:hover {
  color: var(--color-danger); }

.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; }
