.gh-share {
    position: relative;
    flex: 0 0 auto;
}

.gh-share-menu {
    position: absolute;
    z-index: 500;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    color: #15171a;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}

.gh-share-menu[hidden] {
    display: none !important;
}

.gh-share-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gh-share-menu li {
    margin: 0;
    padding: 0;
}

.gh-share-menu a,
.gh-share-menu button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    color: inherit;
    font: inherit;
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.gh-share-menu a:hover,
.gh-share-menu button:hover {
    background: #f1f1f1;
}

.gh-share-menu a:focus-visible,
.gh-share-menu button:focus-visible,
.gh-share-toggle:focus-visible {
    outline: 3px solid #3178c6;
    outline-offset: 2px;
}

html.dark-mode .gh-share-menu {
    color: #f1f1f1;
    background: #202327;
    border-color: rgba(255, 255, 255, 0.18);
}

html.dark-mode .gh-share-menu a:hover,
html.dark-mode .gh-share-menu button:hover {
    background: #34383d;
}

@media (prefers-color-scheme: dark) {
    html.auto-color .gh-share-menu {
        color: #f1f1f1;
        background: #202327;
        border-color: rgba(255, 255, 255, 0.18);
    }

    html.auto-color .gh-share-menu a:hover,
    html.auto-color .gh-share-menu button:hover {
        background: #34383d;
    }
}

.gh-share-status,
.gh-share-new-tab {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
