.ihp-image-hotspots-pro {
  position: relative;
  width: 100%;
}

.ihp-image-hotspots-pro__image-wrap {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
}

.ihp-image-hotspots-pro__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ihp-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  touch-action: none;
  user-select: none;
}

.ihp-hotspot:hover,
.ihp-hotspot:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
}

.ihp-hotspot__icon {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ihp-hotspot__icon i,
.ihp-hotspot__icon svg {
  font-size: 0.95em;
  width: 1em;
  height: 1em;
}

.ihp-hotspot__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.ihp-hotspot__fallback {
  font-weight: 700;
  line-height: 1;
}

.ihp-hotspot__coords {
  display: none;
}

.ihp-editor-drag-enabled .ihp-hotspot--draggable {
  cursor: grab;
}

.ihp-editor-drag-enabled .ihp-hotspot--dragging {
  cursor: grabbing;
  transition: none;
}

.ihp-editor-drag-enabled .ihp-hotspot__coords {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
}

.ihp-editor-drag-enabled .ihp-hotspot:hover .ihp-hotspot__coords,
.ihp-editor-drag-enabled .ihp-hotspot:focus-visible .ihp-hotspot__coords,
.ihp-editor-drag-enabled .ihp-hotspot--dragging .ihp-hotspot__coords {
  opacity: 1;
  visibility: visible;
}

.ihp-has-pulse .ihp-hotspot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid currentColor;
  opacity: 0.3;
  animation: ihpPulse 2s ease-out infinite;
  pointer-events: none;
}

.ihp-hotspot__tooltip {
  position: absolute;
  left: 50%;
  min-width: 180px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.ihp-tooltip-top .ihp-hotspot__tooltip {
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(8px);
}

.ihp-tooltip-right .ihp-hotspot__tooltip {
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
}

.ihp-tooltip-bottom .ihp-hotspot__tooltip {
  top: calc(100% + 14px);
  transform: translateX(-50%) translateY(-8px);
}

.ihp-tooltip-left .ihp-hotspot__tooltip {
  right: calc(100% + 14px);
  left: auto;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
}

.ihp-hotspot--active .ihp-hotspot__tooltip,
.ihp-trigger-hover .ihp-hotspot:hover .ihp-hotspot__tooltip,
.ihp-trigger-hover .ihp-hotspot:focus-visible .ihp-hotspot__tooltip {
  opacity: 1;
  visibility: visible;
}

.ihp-tooltip-top .ihp-hotspot--active .ihp-hotspot__tooltip,
.ihp-tooltip-top.ihp-trigger-hover .ihp-hotspot:hover .ihp-hotspot__tooltip,
.ihp-tooltip-top.ihp-trigger-hover .ihp-hotspot:focus-visible .ihp-hotspot__tooltip {
  transform: translateX(-50%) translateY(0);
}

.ihp-tooltip-right .ihp-hotspot--active .ihp-hotspot__tooltip,
.ihp-tooltip-right.ihp-trigger-hover .ihp-hotspot:hover .ihp-hotspot__tooltip,
.ihp-tooltip-right.ihp-trigger-hover .ihp-hotspot:focus-visible .ihp-hotspot__tooltip {
  transform: translateY(-50%) translateX(0);
}

.ihp-tooltip-bottom .ihp-hotspot--active .ihp-hotspot__tooltip,
.ihp-tooltip-bottom.ihp-trigger-hover .ihp-hotspot:hover .ihp-hotspot__tooltip,
.ihp-tooltip-bottom.ihp-trigger-hover .ihp-hotspot:focus-visible .ihp-hotspot__tooltip {
  transform: translateX(-50%) translateY(0);
}

.ihp-tooltip-left .ihp-hotspot--active .ihp-hotspot__tooltip,
.ihp-tooltip-left.ihp-trigger-hover .ihp-hotspot:hover .ihp-hotspot__tooltip,
.ihp-tooltip-left.ihp-trigger-hover .ihp-hotspot:focus-visible .ihp-hotspot__tooltip {
  transform: translateY(-50%) translateX(0);
}

.ihp-hotspot__tooltip-content,
.ihp-hotspot-modal__body {
  padding: 16px;
}

.ihp-hotspot__title {
  margin: 0 0 8px;
  font-size: 16px;
}

.ihp-hotspot__description {
  font-size: 14px;
  line-height: 1.55;
}

.ihp-hotspot-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.ihp-hotspot-modal.is-open {
  display: block;
}

.ihp-hotspot-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

.ihp-hotspot-modal__content {
  position: relative;
  z-index: 1;
  width: min(90vw, 420px);
  margin: 8vh auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.ihp-hotspot-modal__close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #111827;
}

@keyframes ihpPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.45;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .ihp-hotspot {
    width: 30px;
    height: 30px;
  }

  .ihp-hotspot__tooltip {
    min-width: 150px;
    max-width: 78vw;
  }

  .ihp-hotspot-modal__content {
    width: min(92vw, 380px);
    margin: 6vh auto;
  }
}
