.bootstrap-tagsinput {
    @apply bg-white border border-secondary-subtle d-inline-block p-1 px-2 text-body rounded w-100 lh-base cursor-text;
    min-height: 3rem;
}

.bootstrap-tagsinput input {
    border: none;
    box-shadow: none;
    outline: none;
    background-color: transparent;
    padding: 0 0.375rem;
    margin: 0;
    width: auto;
    max-width: 100%;
}

.bootstrap-tagsinput input::placeholder {
    color: var(--bs-secondary-color);
    opacity: 1;
}

.bootstrap-tagsinput input:focus {
    border: none;
    box-shadow: none;
}

.bootstrap-tagsinput .badge {
    font-size: 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--bs-white);
    background-color: var(--bs-primary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.bootstrap-tagsinput .badge [data-role="remove"] {
    margin-left: 0.5rem;
    cursor: pointer;
}

.bootstrap-tagsinput .badge [data-role="remove"]::after {
    content: "×";
    padding: 0 0.25rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 0.8rem;
}

.bootstrap-tagsinput .badge [data-role="remove"]:hover::after {
    background-color: rgba(0, 0, 0, 0.62);
}

.bootstrap-tagsinput .badge [data-role="remove"]:hover:active {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
