/*! TagsInput.css v1.0.0 | MIT License */
.tags-input-wrapper {
    --ti-bg: #ffffff;
    --ti-border: #d1d5db;
    --ti-border-invalid: #ef4444;
    --ti-text: #111827;
    --ti-placeholder: #9ca3af;
    --ti-radius: 6px;
    --ti-tag-radius: 4px;
    --ti-remove-color: inherit;
    --ti-remove-hover: #ef4444;
    --ti-sugg-bg: #ffffff;
    --ti-sugg-border: #e5e7eb;
    --ti-sugg-hover-bg: rgba(99, 102, 241, 0.06);
    --ti-sugg-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --ti-transition: 0.18s ease;
    --ti-anim-in: tagIn 0.15s ease;
    --ti-anim-out: tagOut 0.16s ease forwards;
    --ti-anim-shake: tiShake 0.3s ease;
}

.tags-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    min-height: 44px;
    background: var(--ti-bg);
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius);
    cursor: text;
    transition:
        border-color var(--ti-transition),
        box-shadow var(--ti-transition);
    box-sizing: border-box;
}
.tags-input-wrapper:focus-within {
    border-color: var(--colorbackhmenu1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--colorbackhmenu1) 15%, transparent);
    outline: none;
}
.tags-input-wrapper.tags-invalid {
    border-color: var(--ti-border-invalid);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ti-border-invalid) 15%, transparent);
    animation: var(--ti-anim-shake);
}
.tags-real-input {
    flex: 1;
    min-width: 100px;
    padding: 2px 4px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ti-text);
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.5;
    caret-color: var(--colorbackhmenu1);
}
.tags-real-input::placeholder {
    color: var(--ti-placeholder);
}
.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: var(--butactionbg);
    border: 1px solid var(--colorbackmenu1);
    border-radius: var(--ti-tag-radius);
    color: var(--colorbacktitle1);
    font-size: 0.8125rem;
    font-family: inherit;
    line-height: 1.4;
    white-space: nowrap;
    cursor: default;
    user-select: none;
    animation: var(--ti-anim-in);
}
.tag-item.removing {
    animation: var(--ti-anim-out);
}
.tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 14px;
    height: 14px;
    background: none;
    border: none;
    border-radius: 2px;
    color: var(--ti-remove-color);
    font-size: 1rem;
    line-height: 1;
    opacity: 0.45;
    cursor: pointer;
    transition:
        opacity var(--ti-transition),
        color var(--ti-transition);
    flex-shrink: 0;
}
.tag-remove:hover,
.tag-remove:focus-visible {
    opacity: 1;
    color: var(--ti-remove-hover);
    outline: none;
}
.tags-wrapper-rel {
    position: relative;
}
.tags-suggestions {
    position: absolute;
    top: calc(100%+5px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--ti-sugg-bg);
    border: 1px solid var(--ti-sugg-border);
    border-radius: var(--ti-radius);
    overflow: hidden;
    box-shadow: var(--ti-sugg-shadow);
}
.tags-suggestion-item {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--ti-text);
    cursor: pointer;
    transition:
        background var(--ti-transition),
        color var(--ti-transition);
}
.tags-suggestion-item:hover,
.tags-suggestion-item.active {
    background: var(--ti-sugg-hover-bg);
    color: var(--colorbackhmenu1);
}
.tags-suggestion-item mark {
    background: none;
    color: var(--colorbackhmenu1);
    font-weight: 600;
}

@keyframes tagIn {
    from {
        opacity: 0;
        transform: scale(0.82);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes tagOut {
    to {
        opacity: 0;
        transform: scale(0.7);
    }
}
@keyframes tiShake {
    0%,
    100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-6px);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(-4px);
    }
    80% {
        transform: translateX(3px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .tags-input-wrapper,
    .tag-item,
    .tag-remove,
    .tags-suggestion-item {
        transition: none !important;
        animation: none !important;
    }
}
