.share-sheet {
    max-width: 400px;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 8px;
    margin-top: 6px;
}

.share-target {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--text-2);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.share-target[hidden] {
    display: none;
}

.share-ico {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-2);
    transition: color 0.15s ease, background 0.15s ease;
}

.share-label {
    font-size: 12.5px;
    line-height: 1.3;
}

.share-target:hover,
.share-target:focus-visible {
    color: var(--text);
}

.share-target:hover .share-ico,
.share-target:focus-visible .share-ico {
    background: color-mix(in srgb, var(--text) 10%, var(--surface-2));
}

.share-link {
    position: relative;
    margin-top: 20px;
}

.share-link .input {
    padding-right: 44px;
    color: var(--text-2);
    font-size: 13.5px;
    text-overflow: ellipsis;
}

.share-copy {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-2);
    cursor: pointer;
    transform: translateY(-50%);
}

.share-copy:hover {
    color: var(--text);
}

.share-copy-done,
.share-copy.is-done .share-copy-idle {
    display: none;
}

.share-copy.is-done .share-copy-done {
    display: block;
    color: var(--text);
}

.share-note {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
    color: var(--text-2);
}
