/* Element 风格关键词标签输入 */

body .sb-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 6px 8px;
    border: 1px solid var(--sb-border);
    border-radius: 9px;
    background: var(--sb-surface);
    cursor: text;
    transition: border-color .15s ease, box-shadow .15s ease;
}

body .sb-tags.is-focus {
    border-color: rgba(249, 115, 22, .6);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
}

body .sb-tags-chips {
    display: contents;
}

body .sb-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 25px;
    padding: 0 5px 0 8px;
    border-radius: 6px;
    background: rgba(255, 117, 23, .12);
    border: 1px solid rgba(255, 117, 23, .22);
    color: var(--color-primary-600, #ea580c);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

body .sb-tag-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    opacity: .65;
    transition: opacity .12s ease, background-color .12s ease;
}

body .sb-tag-x:hover {
    opacity: 1;
    background: rgba(255, 117, 23, .18);
}

body .sb-tags-input {
    flex: 1 1 110px;
    min-width: 90px;
    height: 26px !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--sb-text) !important;
    font-size: 13px;
    outline: none !important;
}

body .sb-tags-input::placeholder {
    color: var(--sb-muted);
}
