/*
 * Copyright (c) Saga Inc.
 * Distributed under the terms of the GNU Affero General Public License v3.0 License.
 */

.context-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
}

/* Consistent spacing for all children of context container */
.context-container>* {
  margin: 2px;
}

.selected-context-container {
  display: flex;
  align-items: center;
  text-align: center;
  background-color: var(--jp-layout-color2);
  border-radius: 3px;
  padding: 4px 8px;
  margin: 2px;

  font-size: 12px;
  height: 20px;
  width: fit-content;

  border: 1px solid var(--jp-border-color1);
  cursor: pointer;

  &:hover {
    background-color: var(--jp-layout-color3);
  }
}

.selected-context-container .rule-name {
  margin-left: 6px;
  color: var(--jp-content-font-color1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.selected-context-container .icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 12px;
  max-height: 14px;
}