#medlem-tooltip {
  position: absolute;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 280px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  /*box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);*/
  font-size: 13px;
  line-height: 1.4;
  color: #333;
  font-family: nobel,sans-serif !important;
  margin-right: 20px;

  /* Hidden state */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#medlem-tooltip p {
  margin-top: 0;
  font-size: 14px;
  line-height: 19px;
  font-weight: 500;
}
#medlem-tooltip a {
  color: #2d5488;
}
#medlem-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 30px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid #ddd;
  border-top: 1px solid #ddd;
  transform: rotate(45deg);
}

#medlem-tooltip.is-visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.medlem-tooltip__text {
  flex: 1;
}

.medlem-tooltip__close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: #999;
  padding: 0;
  line-height: 1;
  margin-top: 1px;
}

.medlem-tooltip__close:hover {
  color: #333;
}

@media (max-width: 959px) {
  #medlem-tooltip {
    background-color: #2d5488;
    color: white;
    margin-top: 20px;
    margin-left: 40px;
  }
  #medlem-tooltip:before {
    background: #2d5488;
  }
  #medlem-tooltip a {
    color: white;
    text-decoration: underline;
  }
}