.wv-hotspot {
  --wv-label-image-gap: 24px;
  --wv-line-color: #7a7a7a;
  --wv-line-active-color: #d35f00;
  --wv-line-width: 2px;
  --wv-label-node-size: 24px;
  --wv-label-node-gap: 12px;
  width: 100%;
}

.wv-hotspot__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr) minmax(220px, 340px);
  column-gap: var(--wv-label-image-gap);
  align-items: stretch;
}

.wv-hotspot__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.wv-hotspot__line {
  fill: none;
  stroke: var(--wv-line-color);
  stroke-width: var(--wv-line-width);
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wv-hotspot__line.is-active {
  stroke: var(--wv-line-active-color);
}

.wv-hotspot__labels {
  position: relative;
  z-index: 3;
  min-height: 80px;
}

.wv-hotspot .wv-hotspot__label-item {
  position: absolute;
  top: var(--wv-point-y, 50%);
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.wv-hotspot__label-item--left {
  justify-content: flex-end;
  text-align: right;
}

.wv-hotspot__label-item--right {
  justify-content: flex-start;
  text-align: left;
}

.wv-hotspot__label-item:focus,
.wv-hotspot__label-item:focus-visible {
  outline: none;
}

.wv-hotspot__label-copy {
  display: block;
  max-width: 100%;
}

.wv-hotspot__label-title {
  display: inline-block;
  color: #1d1d1d;
  line-height: 1.3;
  font-weight: 700;
}

.wv-hotspot__label-content {
  margin-top: 6px;
}

.wv-hotspot__label-content > *:first-child {
  margin-top: 0;
}

.wv-hotspot__label-content > *:last-child {
  margin-bottom: 0;
}

.wv-hotspot__media {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

.wv-hotspot__image-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.wv-hotspot__image {
  display: block;
  width: 100%;
  height: auto;
}

.wv-hotspot__point {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.wv-hotspot .wv-hotspot__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  border: 2px solid #111111;
  background: #ffffff;
  color: #111111;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.wv-hotspot__dot.is-linked-hover,
.wv-hotspot__dot.is-linked-focus {
  border-color: var(--wv-line-active-color);
}

.wv-hotspot__label-item.is-linked-hover,
.wv-hotspot__label-item.is-linked-focus,
.wv-hotspot__label-item.is-active {
  border-color: var(--wv-line-active-color);
}

.wv-hotspot__dot:focus,
.wv-hotspot__dot:focus-visible {
  outline: 2px solid #2b6df5;
  outline-offset: 2px;
}

.wv-hotspot__dot.is-active {
  border-color: var(--wv-line-active-color);
}

.wv-hotspot__number {
  display: inline-block;
  line-height: 1;
}

.wv-hotspot__content-source {
  display: none;
}

.wv-hotspot__mobile-pop {
  position: absolute;
  z-index: 5;
  max-width: min(86vw, 280px);
  color: #1d1d1d;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.3;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
}

.wv-hotspot__mobile-pop-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.wv-hotspot__mobile-pop-title:last-child {
  margin-bottom: 0;
}

.wv-hotspot__mobile-pop-content > *:first-child {
  margin-top: 0;
}

.wv-hotspot__mobile-pop-content > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .wv-hotspot__layout {
    display: block;
  }

  .wv-hotspot__labels,
  .wv-hotspot__lines {
    display: none;
  }

  .wv-hotspot__media {
    width: 100%;
  }

  .wv-hotspot__image {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wv-hotspot__dot {
    transition: none;
  }
}
