/* Custom ShareThis-style bars (no ShareThis JS) */
.st-sticky-share-buttons,
.st-inline-share-buttons {
    font-family: 'Helvetica Neue', Verdana, Helvetica, Arial, sans-serif;
    direction: ltr;
}

.st-sticky-share-buttons {
    position: fixed;
    left: 0;
    top: 38%;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: 48px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
    pointer-events: auto;
}

.st-sticky-share-buttons .st-total,
.st-square-share .st-total {
    background: #fff;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    line-height: 1.1;
    padding: 8px 4px;
}

.st-sticky-share-buttons .st-total .st-label,
.st-square-share .st-total .st-label {
    display: block;
    font-size: 16px;
    line-height: 1.15;
    color: #444;
}

.st-sticky-share-buttons .st-total .st-shares,
.st-square-share .st-total .st-shares {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    text-transform: none;
    font-weight: 600;
    color: #666;
}

.st-sticky-share-buttons .st-btn,
.st-square-share .st-btn {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 48px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    flex: 0 0 auto;
    filter: none !important;
    transform: none !important;
}

.st-sticky-share-buttons .st-btn svg,
.st-square-share .st-btn svg {
    width: 18px;
    height: 18px;
    color: #fff;
    fill: currentColor;
    display: block;
}

.st-sticky-share-buttons .st-btn:hover,
.st-square-share .st-btn:hover {
    filter: brightness(1.08) !important;
}

.st-sticky-share-buttons .st-btn:focus-visible,
.st-square-share .st-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.st-btn[data-network='facebook'] { background: #4267b2 !important; }
.st-btn[data-network='twitter'] { background: #000 !important; }
.st-btn[data-network='pinterest'] { background: #cb2027 !important; }
.st-btn[data-network='linkedin'] { background: #0077b5 !important; }
.st-btn[data-network='telegram'] { background: #0088cc !important; }
.st-btn[data-network='whatsapp'] { background: #25d366 !important; }
.st-btn[data-network='native'] { background: #95d03a !important; }
.st-btn[data-network='more'] { background: #95d03a !important; }

.st-square-share {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: stretch;
    background: #fff;
    border-radius: 6px;
    overflow: visible;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .22);
    max-width: 100%;
}

.st-square-share .st-total {
    min-width: 52px;
    padding: 6px 8px;
}

.st-square-share .st-btn {
    width: 48px;
    height: 48px;
}

.st-sticky-share-buttons .st-more {
    display: none;
}

.st-square-share .st-more,
.st-sticky-share-buttons .st-more {
    position: relative;
}

.st-square-share .st-more {
    display: flex;
}

.st-square-share .st-extra {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}

.st-square-share .st-extra[hidden] {
    display: none;
}

.st-square-share .st-toggle svg {
    width: 14px;
    height: 14px;
}

body.single .t04-share-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    overflow: visible;
}

body.single .t04-share-nav .st-square-share {
    flex: 0 1 auto;
}

body.single .t04-share-nav #nav-below {
    margin: 0;
}

@media screen and (max-width: 768px) {
    .st-sticky-share-buttons {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .28);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .st-sticky-share-buttons .st-total {
        min-width: 0;
        flex: 0 0 auto;
        padding: 4px 6px;
    }

    .st-sticky-share-buttons .st-total .st-label {
        font-size: 13px;
        line-height: 1.1;
    }

    .st-sticky-share-buttons .st-total .st-shares {
        font-size: 8px;
    }

    .st-sticky-share-buttons .st-btn {
        width: auto;
        height: 44px;
        flex: 1 1 0;
        min-width: 0;
        padding: 0;
    }

    .st-sticky-share-buttons .st-btn svg {
        width: 16px;
        height: 16px;
    }

    .st-sticky-share-buttons .st-more {
        display: none;
    }

    body {
        padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
    }

    body.single .t04-share-nav .st-square-share {
        display: none;
    }
}
