.callout-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 180;
  contain: layout style paint;
}

.callout-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.callout-line {
  stroke: #000;
  stroke-width: 1.1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.callout-container {
  position: absolute;
  max-width: min(240px, 66vw);
  width: max-content;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  color: canvasText;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  text-rendering: optimizeLegibility;
}

.callout-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
}

.callout-subtitle {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  opacity: 0.8;
  text-align: center;
}

.callout-container.callout--large {
  text-align: center;
  align-items: center;
}

.callout-container.callout--small {
  text-align: center;
}

body.dark-mode .callout-container {
  color: #fff;
}

body.dark-mode .callout-line {
  stroke: #fff;
}

@media (max-width: 700px) {
  .callout-container {
    max-width: min(210px, 72vw);
  }

  .callout-title {
    font-size: 12px;
  }

  .callout-subtitle {
    font-size: 11px;
  }
}
