[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search {
    position: relative;
    display: grid;
    gap: 0.75rem;
    color: #1e003d;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__toolbar {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__control {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.5rem;
    border: 1px solid #8b8295;
    border-radius: 0.25rem;
    background: #fff;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__control:focus-within {
    border-color: #5506a7;
    box-shadow: 0 0 0 2px rgba(85, 6, 167, 0.18);
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__tags {
    display: contents;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.35rem 0.5rem;
    border: 0;
    border-radius: 999px;
    background: #eee7f5;
    color: #330463;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.2;
    cursor: pointer;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__tag:hover,
[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__tag:focus-visible {
    background: #5506a7;
    color: #fff;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__tag span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__tag-remove {
    flex: 0 0 auto;
    font-size: 1.2em;
    line-height: 1;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search input.wfot-abstract-search__input {
    flex: 1 1 16rem;
    min-width: 8rem;
    padding: 0.35rem 0.25rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__clear {
    flex: 0 0 auto;
    padding: 0.6rem 0.8rem;
    border: 1px solid #5506a7;
    border-radius: 0.25rem;
    background: #fff;
    color: #5506a7;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__clear:hover,
[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__clear:focus-visible {
    background: #5506a7;
    color: #fff;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__clear:disabled {
    border-color: #b7b2bc;
    color: #817987;
    cursor: not-allowed;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__suggestions {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.25rem);
    right: 0;
    left: 0;
    max-height: 24rem;
    overflow-y: auto;
    border: 1px solid #8b8295;
    border-radius: 0.25rem;
    background: #fff;
    box-shadow: 0 0.75rem 2rem rgba(30, 0, 61, 0.16);
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__suggestion {
    display: grid;
    grid-template-columns: minmax(6rem, 0.3fr) minmax(0, 1fr) auto;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 0;
    border-bottom: 1px solid #eee9f2;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__suggestion:last-child {
    border-bottom: 0;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__suggestion:hover,
[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__suggestion:focus-visible,
[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__suggestion.is-active {
    background: #f4eff9;
    outline: 0;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__suggestion-category {
    color: #5506a7;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__suggestion-value {
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__suggestion-count {
    color: #62586b;
    font-size: 0.85rem;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search fieldset.wfot-abstract-search__mode {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0.875rem;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__mode legend {
    float: left;
    margin-right: 1rem;
    font-weight: 600;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__mode label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

[data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__facets {
    display: none !important;
}

p.wfot-abstract-search__error.wfot-abstract-search__error {
    padding: 0.75rem;
    border-left: 4px solid #d63638;
    background: #fff1f1;
}

@media (max-width: 640px) {
    [data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__toolbar {
        flex-direction: column;
    }

    [data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__clear {
        align-self: flex-start;
    }

    [data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search button.wfot-abstract-search__suggestion {
        grid-template-columns: 1fr auto;
    }

    [data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__suggestion-category {
        grid-column: 1 / -1;
    }

    [data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search fieldset.wfot-abstract-search__mode {
        align-items: flex-start;
        flex-direction: column;
    }

    [data-wfot-abstract-search][id^="wfot-abstract-search-"].wfot-abstract-search .wfot-abstract-search__mode legend {
        float: none;
        margin: 0;
    }
}
