.interactive-points-widget {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5rem;
  color: white;
  border-radius: 33px;
  background-image: url('../imgs/frame.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  font-family: 'Birzia', sans-serif;
}

.points-content {
  flex: 0 0 37%;
  order: 2;
  backdrop-filter: blur(10px);
  border-radius: 33px;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background-color: #e0d6d633;
  min-width: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #02e4a3 rgba(255, 255, 255, 0.1);
}

/* Webkit browsers (Chrome, Safari, etc.) */
.points-content::-webkit-scrollbar {
  width: 8px;
}

.points-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.points-content::-webkit-scrollbar-thumb {
  background: #02e4a3;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.points-content::-webkit-scrollbar-thumb:hover {
  background: #00c88f;
}

.points-image-container {
  position: relative;
  flex: 1;
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
  min-width: 0;
  aspect-ratio: 16/9;
  height: auto;
  overflow: hidden;
}

#pointsGraph {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  pointer-events: none;
}

.points-image-container img {
  width: 100%;
  height: 100%;
  object-position: center;
  max-height: 100%;
}

.points-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.point-marker {
  position: absolute;
  width: 2rem;
  height: 2rem;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: 2;
  color: #845cff;
  font-weight: 500;
  border: 2px solid #02e4a3;
  box-shadow: 0 0 15px rgba(67, 97, 238, 0.3);
  padding: 1.25rem;
  font-size: 1.125rem;
  pointer-events: auto;
}

.point-marker:hover,
.point-marker.active {
  background-color: #4361ee;
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
}

.points-content h2,
.points-content h3 {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.point-headline {
  font-size: 6.3rem;
  line-height: 1;
  color: white;
}

.point-subtitle {
  font-size: 2rem;
  color: #02e4a3;
  font-weight: 600;
}

.point-description {
  font-size: 1.6rem;
  line-height: 1;
  color: white;
  white-space: pre-line;
}

.point-description ul {
  padding: 0;
  margin: 0;
  padding-right: 1.5rem;
}

.point-description li {
  list-style: none;
  position: relative;
  padding-right: 1em;
  margin: 0.5em 0;
  font-size: 1.4rem;
}

.point-description li:before {
  content: '•';
  position: absolute;
  right: 0;
  color: #02e4a3;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  .interactive-points-widget {
    flex-direction: column;
    gap: 1rem;
  }

  .points-content {
    flex: none;
    width: auto;
    margin: 0.5rem;
    height: auto;
    min-height: 20rem;
    order: 1;
  }

  .points-image-container {
    margin-top: 1rem;
    height: auto;
    aspect-ratio: 16/9;
    order: 2;
  }

  .point-headline {
    font-size: 4rem;
  }

  .point-subtitle {
    font-size: 1.5rem;
  }

  .point-description {
    font-size: 1.2rem;
  }

  .point-description li {
    font-size: 1.2rem;
  }

  .point-marker {
    width: 1.5rem;
    height: 1.5rem;
    padding: 1rem;
    font-size: 1rem;
  }
}

.editor-point {
  background-color: rgba(255, 255, 255, 0.5) !important;
  border: 2px dashed #02e4a3 !important;
  color: #02e4a3 !important;
  font-size: 0.875rem !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  padding: 0.75rem !important;
}

.editor-point:hover {
  background-color: rgba(255, 255, 255, 0.7) !important;
}
