/* === Share button === */
.bp-share-btn {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    transition: transform 200ms ease, filter 200ms ease;
}
.bp-share-btn img {
    width: 56px;
    height: 56px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}
.bp-share-btn:hover { transform: translateY(-2px); }
.bp-share-btn:hover img { filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5)); }
.bp-share-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
    border-radius: 50%;
}

/* Floating bottom-left placement inside a positioned container (e.g., .bp-hero). */
.bp-share-btn--corner {
    position: absolute;
    left: 1.75rem;
    bottom: 1.75rem;
    z-index: 5;
}

/* Inline placement — flows with content. */
.bp-share-btn--inline {
    position: relative;
    display: inline-flex;
}

/* === Share modal === */
.bp-share-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp-share-modal[hidden] { display: none; }

.bp-share-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.bp-share-modal-panel {
    position: relative;
    width: min(360px, calc(100% - 2rem));
    background: #b8b8b8;
    border-radius: 18px;
    padding: 1.5rem 1.5rem 1.75rem 1.5rem;
    color: #1a1a1a;
    font-family: var(--bp-font-display, inherit);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: bp-share-modal-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes bp-share-modal-in {
    0%   { opacity: 0; transform: scale(0.96) translateY(8px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.bp-share-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 1rem 0;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.bp-share-modal-head h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0;
}
.bp-share-modal-close {
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 150ms ease, color 150ms ease;
}
.bp-share-modal-close:hover { background: rgba(255, 255, 255, 0.25); color: #ffffff; }

.bp-share-modal-label {
    margin: 0 0 0.6rem 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: #1a1a1a;
}

/* Icons row */
.bp-share-icons {
    display: flex;
    gap: 0.85rem;
    margin: 0 0 1.25rem 0;
}
.bp-share-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 50%;
    transition: transform 150ms ease;
}
.bp-share-icons a:hover { transform: translateY(-2px); }
.bp-share-icons img {
    width: 44px;
    height: 44px;
    display: block;
}

/* Copy row */
.bp-share-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.45rem 0.45rem 0.45rem 0.85rem;
}
.bp-share-copy-icon {
    color: #555;
    display: inline-flex;
    flex-shrink: 0;
}
.bp-share-copy-input {
    flex: 1;
    border: 0;
    background: transparent;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-family: inherit;
    padding: 0.35rem 0;
    min-width: 0;
    outline: 0;
}
.bp-share-copy-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: 0;
    padding: 0.5rem 1.1rem;
    border-radius: 9px;
    font-weight: 500;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 150ms ease;
    flex-shrink: 0;
}
.bp-share-copy-btn:hover { background: #333; }
.bp-share-copy-btn.is-copied { background: #1f8a3a; }

/* Mobile */
@media (max-width: 767px) {
    .bp-share-btn img { width: 48px; height: 48px; }
    .bp-share-btn--corner { left: 1rem; bottom: 1rem; }
    .bp-share-modal-panel { padding: 1.25rem 1.25rem 1.5rem 1.25rem; }
    .bp-share-icons img { width: 40px; height: 40px; }
}
