.bsftshare {
    position: relative;
    display: inline-block;
    font-family: inherit;
}

.bsftshare__toggle {
    cursor: pointer;
    font: inherit;
    line-height: 1;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

.bsftshare__toggle:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.bsftshare__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bsftshare__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bsftshare__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.bsftshare__label {
    white-space: nowrap;
}

/* Панель у кнопки (через anchor-лайтбокс ядра) */
.bsftshare__lightbox-wrap,
.bsftshare__panel {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.bsftshare__panel {
    width: max-content;
    min-width: 200px;
}

.bsftshare__items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bsftshare__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 0.2s ease;
}

.bsftshare__item:hover,
.bsftshare__item:focus {
    background: #f3f4f6;
    outline: none;
}

.bsftshare__item-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #4b5563;
}

.bsftshare__item-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.bsftshare__item-label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#bsftui-root .bsftshare__lightbox-wrap .bsftshare__panel {
    margin: 0;
}
