#share_popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  max-width: 90%;
  background: white;
  z-index: 990;
  opacity: 0;
  visibility: hidden;      /* or pointer-events: none; */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#share_popup.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  visibility: visible;     /* or pointer-events: auto; */
}

.close-share-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  text-decoration: none;
  font-size: 1.2rem;
  color: #333;
  cursor: pointer;
}
.copy-url {
  max-width: 420px;
  overflow-x: auto;      /* Will show a horizontal scrollbar if content is wider */
  white-space: nowrap; 
}

#link-url {
  display: inline-block; /* or block, so it can exceed container width */
  font-size: 14px;
  color: #6A6E6F;
  cursor: text;
  /* remove overflow: hidden; and text-overflow: ellipsis; */
  /* keep white-space: nowrap here if you don't want it to wrap */
  white-space: nowrap;
}

#share_overlay {
  display: none;             /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;              /* or 100% if you prefer */
  height: 100vh;
  background: rgba(0,0,0,0.5);  /* 50% black overlay */
  z-index: 890;             /* slightly below your popup's z-index */
}

.share_copy_link {
	cursor: pointer;
}