
.share {
    position: relative;
}

.share-title {
    color: #222222!important;
    margin-bottom: 12px;
}

.share .boxed {
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.share .boxed .share {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    overflow: visible;
}

.share .boxed .share a,
.share .boxed .share button {
    background-color: var(--olive);
    color: white;
    border-radius: 0;
    padding: 14px;
    margin-bottom: 8px;
    width: 52px;
    height: 52px;
    transition: transform .1s ease;

}

.share .boxed .share a:hover,
.share .boxed .share button:hover {
    background-color: var(--orchid);
}

.share .boxed .share svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}


/* Tooltip */
.share .boxed .share a,
.share .boxed .share button {
    position: relative;
}

.share .boxed .share [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.share .boxed .share [data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.share .boxed .share [data-tooltip]:hover::after,
.share .boxed .share [data-tooltip]:hover::before,
.share .boxed .share [data-tooltip]:focus::after,
.share .boxed .share [data-tooltip]:focus::before {
    opacity: 1;
    visibility: visible;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.toast.show {
    opacity: 1;
}

/* Mobile vs Desktop visibility */
.share .boxed .share .mobile-only {
    display: none;
}

@media (max-width: 768px) {
    /* Op mobiel: verberg alle individuele knoppen */
    .share .boxed .share .fb,
    .share .boxed .share .ln,
    .share .boxed .share .wa,
    .share .boxed .share .x,
    .share .boxed .share .ig,
    .share .boxed .share .desktop-only {
        display: none;
    }

    /* Toon alleen de native share knop */
    .share .boxed .share .mobile-only {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .share .boxed .share a,
    .share .boxed .share button {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
}
