/* Style for the overlay, covers the whole viewport */
#share-popup.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999 !important;
    background: #0000002e; /* Dim the background */
    display: flex !important; 
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
/* 	opacity: 1 !important; */
}

/* Hide popup when not active */
#share-popup[style*="display:none"],
#share-popup.popup[style*="display:none"] {
	display: none !important;
}

/* Popup content centered */
#share-popup .popup-content {
    position: relative;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    text-align: center;
}

/* Close button in corner */
#share-popup .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.4em;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
#share-popup .close:hover {
    color: #222;
}

/* Styling for link and button */
#share-popup .link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-top: 1em;
}

#share-popup .popup-link {
    font-size: 0.95em;
    word-break: break-all;
    background: #f7f7f7;
    padding: 0.4em 0.7em;
    border-radius: 4px;
}

#share-popup #copy-link {
    background: #f97350;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 0.4em 0.8em;
    cursor: pointer;
    font-size: 16px;
	font-weight: 500;
    margin-top: 10px;
}
#share-popup #copy-link.active {
    background: #5fc0e0;
}

#share-popup.popup {
    display: none !important;
}

#share-popup.popup.active {
    display: flex !important;
}

