.root {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--color-background);
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  overflow: hidden;
}

.canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--color-background);
}

/** empty message */
.emptyMessage {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.emptyMessageWrapper {
  max-width: 100%;
  text-align: center;
}

/** tooltip */
.tooltip {
  z-index: var(--layer-overlay);
  padding: var(--space-xsmall) var(--space-small);
  border-radius: var(--radius-medium);
  width: calc(100vw - 2 * var(--space-small));
  max-width: 340px;
  outline: none;
  filter: drop-shadow(var(--shadow-layer-high));
  will-change: filter;
  background: var(--color-light);
  font-size: var(--size-small);
  pointer-events: none;
}

.tileTooltipArrow svg {
  display: block;
  fill: var(--color-background) !important;
}

.tileTooltipContentTitle {
  font-size: var(--size-small);
}

/* prevent the tooltip portal wrapper from capturing pointer events - the
   treemap relies on pointer events reaching the canvas to track the hovered cell */
div[role='presentation']:has(.tooltip) {
  pointer-events: none;
}
