/* the bar */

.tag-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    border-bottom: 2px dashed var(--gray-purple);
    cursor: text;
    transition: background .15s, border-color .15s;
}

.tag-bar:focus-within {
    border-bottom: 2px solid var(--plum);
    background: rgba(196, 220, 253, 0.35);
}
.tag-chips { display: contents; }

#gift-form #tag-input {
    flex: 1;
    min-width: 140px;
    border: 0;
    padding: 6px 2px;
    background: transparent;
    font-size: 16px;
    color: var(--plum);
    box-shadow: none;
}
#gift-form #tag-input:focus { outline: none; background: transparent; border: 0; box-shadow: none; }

/* chosen tag */

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 6px 5px 12px;
    border-radius: 999px;
    background: var(--plum);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.tag-x {
    display: grid;
    place-items: center;
    width: 20px; height: 20px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}
.tag-x:hover { background: var(--mauve); }

/* suggested tags */

.tag-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.tag-tools .hint { margin: 0; }
.suggest-btn {
    border: 2px solid var(--plum);
    border-radius: 999px;
    background: #fff;
    color: var(--plum);
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--mauve);
    transition: transform .1s, box-shadow .1s;
}
.suggest-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--mauve); }
.suggest-btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* AI suggestions */

.tag-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-suggestions:empty { display: none; }
.tag-suggestion {
    font-family: inherit;
    padding: 6px 12px;
    border: 1.5px dashed var(--mauve);
    border-radius: 999px;
    background: var(--lavender);
    color: var(--plum);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}
.tag-suggestion:hover { background: var(--sky); border-style: solid; }


