.exio-share-bar {
    --exio-share-focus: #005395;
    --exio-share-facebook: #4267B2;
    --exio-share-x: #000000;
    --exio-share-twitter: #000000;
    --exio-share-linkedin: #0077B5;
    --exio-share-whatsapp: #25D366;
    --exio-share-instagram: #E4405F;
    --exio-share-email: #7D7D7D;
    --exio-share-copy: #595959;
    --exio-share-native: #00D084;
    --exio-share-size: 48px;
}

.exio-share-bar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.exio-share-bar__btn,
.exio-share-bar__native {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--exio-share-size);
    height: var(--exio-share-size);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #595959;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease, opacity .15s ease;
}

.exio-share-bar__btn i,
.exio-share-bar__native i {
    font-size: 18px;
    line-height: 1;
    color: #fff;
    width: auto;
    height: auto;
    background: transparent;
}

.exio-share-bar__btn:hover,
.exio-share-bar__native:hover {
    filter: brightness(1.08);
    color: #fff;
}

.exio-share-bar__btn:focus-visible,
.exio-share-bar__native:focus-visible,
.share_property .exio-share-channel:focus-visible,
#copy-link-btn:focus-visible {
    outline: 2px solid var(--exio-share-focus);
    outline-offset: 2px;
    z-index: 1;
}

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

.exio-share-bar__btn[data-share-key="facebook"] {
    background: var(--exio-share-facebook);
}

.exio-share-bar__btn[data-share-key="x"],
.exio-share-bar__btn[data-share-key="twitter"] {
    background: var(--exio-share-x);
}

.exio-share-bar__btn[data-share-key="linkedin"] {
    background: var(--exio-share-linkedin);
}

.exio-share-bar__btn[data-share-key="whatsapp"] {
    background: var(--exio-share-whatsapp);
}

.exio-share-bar__btn[data-share-key="instagram"] {
    background: var(--exio-share-instagram);
}

.exio-share-bar__btn[data-share-key="email"] {
    background: var(--exio-share-email);
}

.exio-share-bar__btn[data-share-key="copy"] {
    background: var(--exio-share-copy);
}

.exio-share-bar__native {
    background: var(--exio-share-native);
}

/* Sticky left-edge rail (ShareThis-style) */
@media (min-width: 992px) {
    .exio-share-bar--blog.exio-share-bar--sticky {
        position: fixed;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        /* Above footer (z-index 500); below Bootstrap modals (~1055) */
        z-index: 1030;
        margin: 0;
        width: var(--exio-share-size);
        pointer-events: auto;
    }

    .exio-share-bar--blog.exio-share-bar--sticky .exio-share-bar__native {
        display: none;
    }

    .exio-share-bar--blog.exio-share-bar--sticky .exio-share-bar__list {
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        border-radius: 0 6px 6px 0;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
    }

    .exio-share-bar--blog.exio-share-bar--sticky .exio-share-bar__btn {
        width: var(--exio-share-size);
        height: var(--exio-share-size);
    }

    .exio-share-bar--blog.exio-share-bar--mobile-end {
        display: none;
    }

    /* Restore original article/TOC layout; sticky rail is viewport-fixed */
    .blog_detail_layout--with-share {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 48px;
    }

    .blog_detail_layout--with-share.blog_detail_layout--with-toc .blog_toc--desktop {
        display: block;
        width: 25%;
        flex-shrink: 0;
    }

    .blog_detail_layout--with-share.blog_detail_layout--with-toc .blog_detail_main {
        width: 75%;
        min-width: 0;
    }

    .blog_detail_layout--with-share.blog_detail_layout--no-toc .blog_detail_main {
        width: 100%;
        max-width: 860px;
    }
}

@media (max-width: 991.98px) {
    .exio-share-bar--blog.exio-share-bar--sticky {
        display: none;
    }

    .exio-share-bar--blog.exio-share-bar--mobile-end {
        display: block;
        margin: 28px 0 8px;
        padding: 16px 0 4px;
        border-top: 1px solid #eef0f3;
        position: relative;
        z-index: 1;
    }

    .exio-share-bar--blog.exio-share-bar--mobile-end .exio-share-bar__native {
        display: none;
    }

    .exio-share-bar--blog.exio-share-bar--mobile-end .exio-share-bar__list {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        overflow-x: auto;
        width: max-content;
        max-width: 100%;
        border-radius: 6px;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
        -webkit-overflow-scrolling: touch;
    }

    .exio-share-bar--blog.exio-share-bar--mobile-end .exio-share-bar__btn {
        flex: 0 0 var(--exio-share-size);
    }
}

body.has-zoho-salesiq .exio-share-bar--blog.exio-share-bar--mobile-end {
    margin-bottom: 24px;
}

/* Keep sticky rail clear of sticky advisor / chat widgets */
@media (min-width: 992px) {
    body.has-zoho-salesiq .exio-share-bar--blog.exio-share-bar--sticky {
        top: 46%;
    }
}
