:host {
  display: block;
  width: 100%;
}

figure {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: minmax(0px, auto) minmax(0px, min-content);
  height: 100%;
  margin-block: unset;
  margin-inline: unset;
  position: relative;
  width: 100%;
}

figure > div {
  min-width: 100%;
  width: 100%;
}

canvas {
  width: 100%;
}

figcaption[data-hidden] {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

figcaption ul {
  align-items: center;
  cursor: pointer;
  display: flex;
  column-gap: 2.5rem;
  flex-wrap: wrap;
  row-gap: 0.75rem;
  padding-inline: var(--legend-padding, 2.5rem);
}

figcaption li {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-direction: row;
}

figcaption li span {
  background: var(--item-box-fill);
  border-color: var(--item-box-stroke);
  border-radius: 3px;
  display: inline-block;
  height: var(--bs-text-f-md);
  margin-right: 10px;
  width: var(--bs-text-f-md);
}

figcaption li p {
  color: var(--item-text-color);
  font-size: var(--bs-text-f-md);
  margin: 0;
  padding: 0;
  text-decoration: var(--item-text-decoration);
}