/*
 * "Partilhar" on the computer (module/computer/components/shareMenu.php): the listings and the product page.
 * Moved out of group.css (2026-10-20) with the component.
 */
/* "Partilhar" (listing study C, step 2): one button and a small menu instead of two coloured buttons. */
.listingShare{
    position: relative;
}
/* Its own colours in every state: as a Bootstrap .btn-outline-secondary it kept the :active white text after the click
   while the grey background went — white on white, the button looked empty (Tiago, 2026-10-14). */
.listingShareBtn{
    display: inline-block;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--lb-border, #dee2e6);
    border-radius: 4px;
    background: var(--lb-card, #fff);
    color: var(--lb-text, #212529);
    font-size: 16px;
    line-height: 38px;
    cursor: pointer;
}
.listingShareBtn:hover,
.listingShareBtn[aria-expanded="true"]{
    border-color: var(--lb-text-muted, #6c757d);
    color: var(--lb-text, #212529);
    background: var(--lb-card, #fff);
}
.listingShareBtn:focus{
    outline: none;
}
.listingShareBtn:focus-visible{
    outline: 2px solid var(--lb-text, #212529);
    outline-offset: 2px;
}
.listingShareMenu{
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 30;
    min-width: 190px;
    padding: 6px 0;
    border: 1px solid var(--lb-border, #dee2e6);
    border-radius: 6px;
    background: var(--lb-card, #fff);
    box-shadow: 0 0.5rem 1rem #0000001f;
    text-align: left;
}
.listingShareMenu a,
.listingShareMenu button{
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 16px;
    border: 0;
    background: none;
    font-size: 15px;
    color: var(--lb-text, #212529);
    text-decoration: none;
    cursor: pointer;
}
.listingShareMenu a:hover,
.listingShareMenu a:focus-visible,
.listingShareMenu button:hover,
.listingShareMenu button:focus-visible{
    background: color-mix(in srgb, var(--lb-brand) 9%, transparent);
    color: var(--lb-brand);
    text-decoration: none;
}
.listingShareMenu i{
    width: 18px;
    text-align: center;
}
