/* SSB UI Style */
#ssb-container {
    position: fixed;
    top: 30%;
	z-index: 1;
}

/* Force minimum width for slide animation to accommodate text */
#ssb-container.ssb-anim-slide {
    min-width: 200px;
}

.ssb-btns-right {
    right: 0;
}

.ssb-btns-left {
    left: 0;
}

#ssb-container ul {
    padding: 0;
    margin: 0;
}

#ssb-container ul li {
    list-style: none;
    margin: 0;
}

#ssb-container ul li {
    line-height: 45px;
}

#ssb-container ul li p {
    margin: 0;
}

#ssb-container ul li a {
    padding: 0 15px 0 0;
    display: block;
    line-height: 45px;
    text-align: left;
    white-space: nowrap;
    text-decoration: none;
}

#ssb-container ul li span {
    line-height: 45px;
    width: 50px;
    text-align: center;
    display: inline-block;
}

#ssb-container.ssb-btns-left ul li a {
    text-align: right;
    padding: 0 0 0 15px;
}

#ssb-container.ssb-btns-left ul li span {
    float: right;
}

#ssb-container ul li a:hover {
    text-decoration: none;
}

#ssb-container .ssb-share-btn {
    position: relative;
}

#ssb-container .ssb-share-btn span,
#ssb-container.ssb-btns-left .ssb-share-btn span {
    float: none;
}

#ssb-container .ssb-share-btn a {
    padding: 0;
}

#ssb-container.ssb-btns-left .ssb-share-btn i.ssb-share-icon {
    float: right !important;
}

#ssb-container.ssb-anim-icons ul li {
    transition: transform 100ms;
}

#ssb-container.ssb-anim-icons.ssb-btns-right ul li:hover {
    transform: translate(-15px, 0);
}

#ssb-container.ssb-anim-icons.ssb-btns-left ul li:hover {
    transform: translate(15px, 0);
}

#ssb-container ul li.ssb-share-btn:hover .ssb-social-popup {
    display: block;
}

.ssb-social-popup {
    position: absolute;
    top: 100%;
    left: 100%;
    margin: 0 0 0 -50px;
    width: 155px;
    display: none;
}

#ssb-container.ssb-btns-right .ssb-social-popup {
    right: -100%;
    margin: 0 0 0 -110px;
    left: 0;
}

#ssb-container .ssb-social-popup a {
    padding: 0 !important;
    text-align: left !important;
}

/* Responsive */
@media (max-width: 640px) {
    .ssb-disable-on-mobile {
        display: none;
    }
}

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

/* Focus indicators for keyboard navigation */
#ssb-container a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Enhanced focus for high contrast mode */
@media (prefers-contrast: high) {
    #ssb-container a:focus {
        outline: 3px solid;
        outline-offset: 3px;
    }
}

/* Social popup keyboard navigation */
#ssb-container .ssb-social-popup:focus-within {
    display: block;
}

#ssb-container .ssb-social-popup a:focus {
    background: rgba(255, 255, 255, 0.1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #ssb-container.ssb-anim-icons ul li {
        transition: none;
    }
    
    #ssb-container.ssb-anim-icons.ssb-btns-right ul li:hover,
    #ssb-container.ssb-anim-icons.ssb-btns-left ul li:hover {
        transform: none;
    }
}