.fg-tagger-wrap {
    display: block;
    width: 100%;
    line-height: 1.6rem;
    margin-top: 6px;
}

/* -------------------------------------------------------
   INSTANCE CONTAINER
----------------------------------------------------- */

.fg-instance {
    font-size: 16px;
    text-align: center;
    margin-bottom: 8px;
    position: relative;
}

/* ACTIVE TAXONOMY FOCUS */
.fg-instance.active-instance {
    outline: 1px solid rgba(158, 96, 32, 0.25);
    border-radius: 4px;
}

/* -------------------------------------------------------
   TERMS
----------------------------------------------------- */

.fg-terms {
    display: inline-block;
    width: 100%;
}

.fg-term {
    cursor: pointer;
    margin-right: 6px;
    text-decoration: none;
    color: #9e6020;
    display: inline-block;
}

.fg-term:before {
    content: "#";
    margin-right: -2px;
}

.fg-term.active {
    color: #c9c8c8;
}

.fg-term.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* -------------------------------------------------------
   INSTANCE VARIANTS (your existing styling preserved)
----------------------------------------------------- */

.fg-instance-id-1 {
    margin-top: -56px;
}

.fg-instance-id-2 {
    margin-top: 12px;
}

.fg-instance-id-2 .fg-term {
    color: #888888;
}

.fg-instance-id-2 .fg-term:before {
    content: "⚑";
}

.fg-instance-id-2 .fg-term.active {
    color: #c9c8c8;
}

.fg-instance-id-1 .fg-term.public {
    color: #9e6020;
}

.fg-instance-id-2 .fg-term.public {
    color: #888888;
}

/* -------------------------------------------------------
   ADD TERM INPUT
----------------------------------------------------- */

.fg-add-term {
    display: inline-block;
    margin-top: 6px;
    width: 120px;
    padding: 4px 8px;
    font-size: 12px;
    text-align: center;
    border-radius: 0px;
    outline: none;
    color:#888888;
    border: 1px solid #666;
    background: #333
}

.fg-add-term:focus {
    color: #c9c8c8;
    border-color: #9e6020;
}

/* -------------------------------------------------------
   TOOLS (inherit controls)
----------------------------------------------------- */

.fg-tools {
    margin-top: 4px;
    font-size: large;
    opacity: 0.7;
}

.fg-tools span {
    cursor: pointer;
    margin: 0 4px;
    user-select: none;
}

.fg-tools span:hover {
    opacity: 1;
}

/* -------------------------------------------------------
   OPTIONAL: make gallery spacing stable (fixes “jump” issue)
----------------------------------------------------- */

.fg-item-wrap + .fg-tagger-wrap {
    margin-top: 4px;
}

/* -------------------------------------------------------
   HEADER (toggle button)
----------------------------------------------------- */

.fg-instance-header {
    text-align: right;
    margin-bottom: 2px;
}

.fg-toggle-ui {
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    padding: 0 4px;
    opacity: 0.6;
    color: #aaa;
}

.fg-toggle-ui:hover {
    opacity: 1;
}

/* -------------------------------------------------------
   COLLAPSIBLE PANEL
----------------------------------------------------- */

.fg-instance-panel {
    display: none; /* hidden by default */
    margin-top: 6px;
}

/* smooth spacing when open */
.fg-instance.open .fg-instance-panel {
    display: block;
}


/* -------------------------------------------------------
   SUGGESTION BOX
----------------------------------------------------- */

.fg-suggest-box {
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    background: #666;
    border: '1px solid #ddd',
}

.fg-suggest-item {
    padding: 4px 8px;
    cursor: pointer;
}

.fg-suggest-item:hover {
    background: green;
}


/* -------------------------------------------------------
   FLASH MESSAGE
----------------------------------------------------- */
.fg-flash {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #222;
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999999;
}

.fg-flash.visible {
    opacity: 1;
}

.fg-flash-error {
    background: #a12626;
}

.fg-flash-success {
    background: #2c7a2c;
}