/* ---------------------------------------------------- */
/* --- String Array Component Styles --- */
/* ---------------------------------------------------- */

.string-array-component {
    display: flex;
    flex-direction: column;
    /* gap: 8px; */
}

.string-array-list-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    overflow-y: auto;
}

.string-array-list-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.string-array-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px;
    background-color: var(--color-background);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    gap: 8px;
}

.string-array-value {
    flex: 1;
    font-size: 1rem;
    color: var(--color-text-dark);
    word-break: break-word;
}

.string-array-input {
    flex: 1;
    /* padding: 4px 8px; */
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--color-text-dark);
    outline: none;
}

.string-array-input:focus {
    outline: none;
}


.string-array-delete-button,
.string-array-add-button {
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    transition: opacity 0.2s;
}


.string-array-delete-button {
    color: var(--color-warning-error);
    background: transparent;
}

.string-array-delete-button:hover {
    opacity: 0.8;
    background: rgba(255,0,0,0.04);
}


.string-array-add-button {
    color: var(--color-primary-accent);
    background: transparent;
    transition: background-color 0.2s;
}

.string-array-add-button:hover {
    background: rgba(0, 120, 255, 0.04);
}

/* Remove old unused styles */
.string-array-input-container {
    display: none;
}
