.AnalyticsLegend {
    display: flex;
    flex-wrap: wrap;
    min-height: 38px;

    .Clear.Glyph {
        display: none;
        fill: var(--gray-500);
        flex-shrink: 0;
        margin-left: 4px;

        &:hover {
            cursor: pointer;
            fill: var(--gray-700);
        }
    }

    &-item {
        background-color: var(--gray-100);
        border-radius: 14px;
        display: flex;
        align-items: center;
        margin-right: 10px;
        margin-bottom: 10px;
        max-width: 180px;
        padding: 5px 8px;

        &:hover .Clear.Glyph {
            display: block;
        }
    }

    &-item-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex-shrink: 1;
    }

    &-item-circle {
        @include circle(8px);

        margin-right: 6px;
        flex-shrink: 0;
    }
}
