.connection-view {
  position: absolute;
  overflow: visible;
  pointer-events: none;

  & > .name {
    // z-index: 100;
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 3px 6px;
    border-radius: 3px;
    background-color: var(--bg-color);
    box-shadow: 0 0 3px black;
    white-space: pre;
    pointer-events: all;
    color: var(--text-color);

    .inline-relationship-picker {
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translate(-50%, 10px);
      background-color: var(--bg-color);
      box-shadow: 0 0 3px rgba(0, 0, 0, 0.603);
      padding: 10px;
      padding-bottom: 0px;
      border-radius: 3px;
      outline: none;
      &:not(.active) {
        display: none;
      }
    }

    .inline-usage {
      position: absolute;
      display: flex;
      align-items: center;
      flex-direction: column;
      top: 100%;
      left: 50%;
      transform: translate(-50%, 10px);
      background-color: var(--bg-color);
      box-shadow: 0 0 3px rgba(0, 0, 0, 0.603);
      padding: 10px;
      border-radius: 3px;
      font-family: monospace;
      overflow: hidden;

      .size, .count {
        display: inline-block;
      }

      .scale {
        height: 5px;
        position: absolute;
        left: 0px;
        bottom: 0px;
      }
    }
  }
}

.widget-container {
  &.selected {
    --selection-color: var(--highlight-blue);
  }
  &:not(.selected) {
    --selection-color: var(--text-color);
  }
}