.Tags {
    padding: 0 5px 5px;
    height: 100%;
}

.Tags.is-disabled {
    cursor: default;
    background: #e9ecef; /* couldn't find an existing variable for this */
}

.Tags:focus-within {
    border: 1px solid var(--primary);
    box-shadow: 0 0 0 0.2rem rgb(var(--interactive-primary-d2-base) / 25%);
}

.Tags.is-valid:focus-within {
    border: 1px solid var(--success);
    box-shadow: 0 0 0 0.2rem rgb(var(--success-green-d3-base) / 25%);
}

.Tags.is-invalid:focus-within {
    border: 1px solid var(--danger);
    box-shadow: 0 0 0 0.2rem rgb(220 53 69 / 25%);
}

.Tags-tagsList {
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow: auto;
}

.Tags-tagContainer {
    display: flex;
    align-items: center;
}

.Tags-tagText {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 5px;
}

.Tags-deleteTagButton {
    white-space: nowrap;
}

.Tags-tag {
    float: left;
    margin: 5px 5px 0 0;
    border: 1px solid var(--primary-accent);
    border-radius: 5px;
    padding: 0 5px;
    max-width: 150px;
}

.Tags-deleteTagIcon {
    cursor: pointer;
}

.Tags-deleteTagIcon.is-disabled {
    cursor: default;
}

.Tags-tag.is-deleted {
    text-decoration: line-through;
    cursor: pointer;
}

.Tags-tag.is-valid {
    border: 1px solid var(--success);
}

.Tags-tag.is-invalid {
    border: 1px solid var(--danger);
}

.Tags-tag.is-focused {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.Tags-tag.is-focused .Tags-deleteTagIcon {
    color: white;
}

.Tags-inputContainer {
    display: flex;
    min-width: 150px;
}

.Tags-input {
    border: none;
    margin-top: 5px;
    width: 100%;
    flex: 1;
}

.Tags-input.is-invalid {
    color: var(--danger);
}

.Tags-input:focus {
    outline: none;
}

.Tags-inputOptionLabel {
    background-color: var(--primary-accent);
    font-weight: bolder;
    color: var(--primary);
}

/* Dropdown positioning styles */
.Tags .Tags-suggestionMenu {
    position: absolute;
    z-index: 1000000;
}

.Tags .Tags-suggestionMenu.show {
    display: block;
    overflow: auto;
    max-height: 200px;
}
