.elementor-widget-kofidis_interactive_heart .interactive-heart {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 420 / 716;
  margin-left: auto;
  margin-right: auto;
  font-family: "Poppins", sans-serif;
}

.elementor-widget-kofidis_interactive_heart .heart-stack {
  position: absolute;
  inset: 0;
}

.elementor-widget-kofidis_interactive_heart .heart-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.elementor-widget-kofidis_interactive_heart .heart-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.elementor-widget-kofidis_interactive_heart .layer-default {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.elementor-widget-kofidis_interactive_heart .interactive-heart:has(.hotspot:hover) .layer-hover,
.elementor-widget-kofidis_interactive_heart .interactive-heart:has(.hotspot:focus-visible) .layer-hover {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.elementor-widget-kofidis_interactive_heart .interactive-heart:has(.hotspot:hover) .layer-hover img,
.elementor-widget-kofidis_interactive_heart .interactive-heart:has(.hotspot:focus-visible) .layer-hover img {
  animation: kofidis-ih-heart-reveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.elementor-widget-kofidis_interactive_heart .interactive-heart:has(.hotspot:hover) .layer-default,
.elementor-widget-kofidis_interactive_heart .interactive-heart:has(.hotspot:focus-visible) .layer-default {
  opacity: 0;
  visibility: hidden;
}

@keyframes kofidis-ih-hotspot-pulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes kofidis-ih-hotspot-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.06),
      0 0 10px rgba(255, 255, 255, 0.45);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.06),
      0 0 18px rgba(255, 255, 255, 0.75);
  }
}

@keyframes kofidis-ih-heart-reveal {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes kofidis-ih-tooltip-pop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.elementor-widget-kofidis_interactive_heart .hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
}

.elementor-widget-kofidis_interactive_heart .hotspot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  animation: kofidis-ih-hotspot-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

.elementor-widget-kofidis_interactive_heart .pin-aortic::before {
  animation-delay: 0s;
}

.elementor-widget-kofidis_interactive_heart .pin-mitral::before {
  animation-delay: 0.7s;
}

.elementor-widget-kofidis_interactive_heart .pin-tricuspid::before {
  animation-delay: 1.4s;
}

.elementor-widget-kofidis_interactive_heart .hotspot-ring {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 0 12px rgba(255, 255, 255, 0.5);
  animation: kofidis-ih-hotspot-breathe 2.4s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.elementor-widget-kofidis_interactive_heart .pin-aortic .hotspot-ring {
  animation-delay: 0s;
}

.elementor-widget-kofidis_interactive_heart .pin-mitral .hotspot-ring {
  animation-delay: 0.4s;
}

.elementor-widget-kofidis_interactive_heart .pin-tricuspid .hotspot-ring {
  animation-delay: 0.8s;
}

.elementor-widget-kofidis_interactive_heart .hotspot:hover .hotspot-ring,
.elementor-widget-kofidis_interactive_heart .hotspot:focus-visible .hotspot-ring {
  animation: none;
  transform: scale(1.12);
  border-color: #fff;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.95);
}

.elementor-widget-kofidis_interactive_heart .hotspot:hover::before,
.elementor-widget-kofidis_interactive_heart .hotspot:focus-visible::before {
  animation: none;
  opacity: 0;
}

.elementor-widget-kofidis_interactive_heart .hotspot:focus-visible {
  outline: none;
}

.elementor-widget-kofidis_interactive_heart .tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
  padding: 10px 16px;
  background: #e8eaed;
  color: #1a3a6b;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.elementor-widget-kofidis_interactive_heart .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #e8eaed;
}

.elementor-widget-kofidis_interactive_heart .hotspot:hover .tooltip,
.elementor-widget-kofidis_interactive_heart .hotspot:focus-visible .tooltip,
.elementor-widget-kofidis_interactive_heart .hotspot:focus-within .tooltip {
  opacity: 1;
  visibility: visible;
  animation: kofidis-ih-tooltip-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.elementor-widget-kofidis_interactive_heart .hotspot:hover .tooltip--linked,
.elementor-widget-kofidis_interactive_heart .hotspot:focus-within .tooltip--linked {
  pointer-events: auto;
}

.elementor-widget-kofidis_interactive_heart .tooltip--linked {
  text-decoration: none;
  color: #1a3a6b;
  cursor: pointer;
}

.elementor-widget-kofidis_interactive_heart .tooltip--linked:hover {
  background: #dfe3e8;
  color: #0f2d5c;
}

.elementor-widget-kofidis_interactive_heart .tooltip--linked:focus-visible {
  outline: 2px solid #1a3a6b;
  outline-offset: 2px;
}

.elementor-widget-kofidis_interactive_heart .interactive-heart:has(.hotspot:hover) .hotspot:not(:hover) .hotspot-ring,
.elementor-widget-kofidis_interactive_heart .interactive-heart:has(.hotspot:focus-visible) .hotspot:not(:focus-visible) .hotspot-ring {
  opacity: 0.35;
  animation: none;
}

.elementor-widget-kofidis_interactive_heart .interactive-heart:has(.hotspot:hover) .hotspot:not(:hover)::before,
.elementor-widget-kofidis_interactive_heart .interactive-heart:has(.hotspot:focus-visible) .hotspot:not(:focus-visible)::before {
  animation: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .elementor-widget-kofidis_interactive_heart .hotspot::before,
  .elementor-widget-kofidis_interactive_heart .hotspot-ring,
  .elementor-widget-kofidis_interactive_heart .layer-hover img,
  .elementor-widget-kofidis_interactive_heart .hotspot:hover .tooltip,
  .elementor-widget-kofidis_interactive_heart .hotspot:focus-visible .tooltip {
    animation: none !important;
  }

  .elementor-widget-kofidis_interactive_heart .hotspot-ring {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  }
}
