.SuspenseRectsContainer {
  padding: .25rem;
}

.SuspenseRectsViewBox {
  position: relative;
}

.SuspenseRectsBoundary {
  pointer-events: all;
}

.SuspenseRectsBoundaryChildren {
  pointer-events: none;
  /**
   * So that the shadow of Boundaries within is clipped off.
   * Otherwise it would look like this boundary is further elevated.
   */
   overflow: hidden;
}

.SuspenseRectsScaledRect[data-visible='false'] > .SuspenseRectsBoundaryChildren {
  overflow: initial;
}

.SuspenseRectsRect {
  box-shadow: var(--elevation-4);
  pointer-events: all;
  outline-style: solid;
  outline-width: 1px;
}

.SuspenseRectsScaledRect {
  position: absolute;
  outline-color: var(--color-background-selected);
}

.SuspenseRectsScaledRect[data-visible='false'] {
  pointer-events: none;
  outline-width: 0;
}

/* highlight this boundary */
.SuspenseRectsBoundary:hover:not(:has(.SuspenseRectsBoundary:hover)) > .SuspenseRectsRect, .SuspenseRectsBoundary[data-highlighted='true'] > .SuspenseRectsRect {
    background-color: var(--color-background-hover);
}

.SuspenseRectsRect[data-highlighted='true'] {
  background-color: var(--color-selected-tree-highlight-active);
}
