@use '../config' as *;

.jvm-tooltip {
  font-family: inherit;
  font-size: $h5-font-size;
  color: var(--text-inverted);
  background: var(--bg-surface-inverted);
  box-shadow: $card-box-shadow;
}

.jvm-series-container .jvm-legend .jvm-legend-title {
  font-weight: var(--font-weight-medium);
  border-bottom: 0;
}

.jvm-series-container .jvm-legend {
  min-width: 8rem;
  background-color: var(--card-bg, var(--bg-surface));
  border: var(--border-width) var(--border-style) var(--border-color);

  .jvm-legend-inner .jvm-legend-tick {
    display: flex;
    align-items: center;

    .jvm-legend-tick-sample {
      width: 0.75rem;
      height: 0.75rem;
    }
  }
}

.jvm-zoom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  color: var(--body-color);
  background: var(--card-bg, var(--bg-surface));
  border: var(--border-width) var(--border-style) var(--border-color);
  box-shadow: $card-box-shadow;

  &.jvm-zoomout {
    top: 2.5rem;
  }
}
