/* Share trigger buttons: match existing icon-only look (no default button chrome) */
.peforums-share-btn,
.peforums-comment-share-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Share popup: no backdrop, simple list near share icon */
.peforums-share-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s ease, opacity 0.2s ease;
}

.peforums-share-popup.peforums-share-popup--open {
    pointer-events: none; /* popup content has its own pointer-events */
    visibility: visible;
    opacity: 1;
}

.peforums-share-popup-content {
    position: fixed;
    z-index: 100001;
    pointer-events: auto;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    min-width: 160px;
    max-width: 220px;
}

/* Small arrow/tail pointing up toward share icon */
.peforums-share-popup-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 12px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #f5f5f5;
}

.peforums-share-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.peforums-share-options li {
    margin: 0;
}

.peforums-share-options a,
.peforums-share-options .share-copy {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: none;
    border-radius: 0;
    text-decoration: none;
    font-size: 14px;
    color: #374151;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    text-align: left;
    transition: background 0.12s ease;
}

.peforums-share-options a:hover,
.peforums-share-options .share-copy:hover {
    background: rgba(0, 0, 0, 0.06);
}

.peforums-share-option-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.peforums-share-option-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.peforums-share-options .share-copy.peforums-share-copy-done {
    background: rgba(16, 185, 129, 0.15);
}

.peforums-share-options .share-copy.peforums-share-copy-done .share-copy-text {
    color: #059669;
}
