/* ================================================================
   FriendsByChance — components/chipped-display.css
   Styles for the ChippedDisplay generic chip-overflow component.
   ================================================================ */

/* Component root */
.chipped-display {
    display:    block;
    min-height: 22px;
}
/* Inner flex-wrap chip container */
.chipped-display-inner {
    display:       flex;
    flex-wrap:     wrap;
    gap:           4px;
    overflow:      hidden;
    min-width:     0;
    align-content: flex-start;
}

/* "+N": the chips not shown — a chip as tall as the others (main.css
   --fbc-chip-h), pressed, the whole list. */
.tag-chip.tag-chip-more {
    flex:            none;
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    min-width:       var(--fbc-chip-h);
    min-height:      var(--fbc-chip-h);
    padding:         0 10px;
    border-radius:   calc(var(--fbc-chip-h) / 2);
    background:      #e0e0e0;
    color:           #555;
    font-size:       0.85rem;
    font-weight:     600;
    white-space:     nowrap;
    cursor:          pointer;
}
.tag-chip.tag-chip-more:hover { background: #d0d0d0; }

/* Overflow list shown when "+N" is clicked.  The overlay shell itself is
   FBC.ui.Popover (components/popover.css); this styles only the content,
   so the two never fight over positioning or chrome. */
.tag-overflow-list {
    display:   flex;
    flex-wrap: wrap;
    gap:       6px;
    max-width: 260px;
}
