.cch-hotspots {
  position: relative;
  display: block;
  max-width: 100%;
  margin-inline: auto;
  overflow: visible;
  line-height: 1.45;
}

.cch-hotspots__image {
  display: block;
  width: 100%;
  height: auto;
}

.cch-hotspot {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.cch-hotspot:focus-within,
.cch-hotspot.is-open {
  z-index: 20;
}

.cch-hotspot__button {
  --cch-marker-size: 38px;
  --cch-halo: rgba(255, 255, 255, 0);
  --cch-halo-size: 0px;
  display: grid;
  width: var(--cch-marker-size);
  height: var(--cch-marker-size);
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #08bceb;
  box-shadow: 0 0 0 var(--cch-halo-size) var(--cch-halo);
  color: #e54b87;
  cursor: pointer;
  font: 700 calc(var(--cch-marker-size) * .67)/1 Arial, sans-serif;
  appearance: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.cch-hotspot__button:hover,
.cch-hotspot__button:focus-visible,
.cch-hotspot.is-open .cch-hotspot__button {
  transform: scale(1.08);
  box-shadow: 0 0 0 calc(var(--cch-halo-size) + 1px) var(--cch-halo), 0 5px 18px rgba(0, 0, 0, .18);
}

.cch-hotspot__button:focus-visible {
  outline: 3px solid #08273b;
  outline-offset: 4px;
}

.cch-hotspot__tooltip {
  --cch-tooltip-shift-x: 0px;
  position: absolute;
  z-index: 3;
  width: max-content;
  max-width: min(220px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #08bceb;
  color: #fff;
  text-align: center;
  font-size: 17px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .12));
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}

.cch-hotspot__tooltip p { margin: 0; }
.cch-hotspot__tooltip p + p { margin-top: .65em; }

.cch-hotspot__tooltip::after {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #08bceb;
  content: "";
  transform: rotate(45deg);
}

.cch-hotspot[data-resolved-position="top"] .cch-hotspot__tooltip {
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translate(calc(-50% + var(--cch-tooltip-shift-x)), 7px);
}
.cch-hotspot[data-resolved-position="top"] .cch-hotspot__tooltip::after {
  bottom: -6px; left: calc(50% - 7px - var(--cch-tooltip-shift-x));
}
.cch-hotspot[data-resolved-position="bottom"] .cch-hotspot__tooltip {
  top: calc(100% + 15px);
  left: 50%;
  transform: translate(calc(-50% + var(--cch-tooltip-shift-x)), -7px);
}
.cch-hotspot[data-resolved-position="bottom"] .cch-hotspot__tooltip::after {
  top: -6px; left: calc(50% - 7px - var(--cch-tooltip-shift-x));
}
.cch-hotspot[data-resolved-position="left"] .cch-hotspot__tooltip {
  right: calc(100% + 15px);
  top: 50%;
  transform: translate(7px, -50%);
}
.cch-hotspot[data-resolved-position="left"] .cch-hotspot__tooltip::after {
  right: -6px; top: calc(50% - 7px);
}
.cch-hotspot[data-resolved-position="right"] .cch-hotspot__tooltip {
  left: calc(100% + 15px);
  top: 50%;
  transform: translate(-7px, -50%);
}
.cch-hotspot[data-resolved-position="right"] .cch-hotspot__tooltip::after {
  left: -6px; top: calc(50% - 7px);
}

.cch-hotspot.is-open .cch-hotspot__tooltip {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}
.cch-hotspot[data-resolved-position="top"].is-open .cch-hotspot__tooltip,
.cch-hotspot[data-resolved-position="bottom"].is-open .cch-hotspot__tooltip {
  transform: translate(calc(-50% + var(--cch-tooltip-shift-x)), 0);
}
.cch-hotspot[data-resolved-position="left"].is-open .cch-hotspot__tooltip,
.cch-hotspot[data-resolved-position="right"].is-open .cch-hotspot__tooltip {
  transform: translate(0, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .cch-hotspot__button,
  .cch-hotspot__tooltip { transition: none; }
}

@media (max-width: 767px) {
  .cch-hotspot__button {
    min-width: 32px;
    min-height: 32px;
  }

  .cch-hotspot__tooltip {
    font-size: 15px;
    line-height: 1.4;
  }
}
