.astonia-social-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    /* Prevent text selection if needed */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.astonia-sw-toggle {
    width: 60px;
    height: 60px;
    background-color: #fff; /* White background like example */
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.astonia-sw-toggle img {
    width: 32px; /* Adjust size as needed */
    height: auto;
    display: block;
}

.astonia-social-widget:hover .astonia-sw-toggle {
     /* Optional: Slight effect on main button hover */
    /* transform: scale(1.05); */
}

.astonia-sw-icons {
    position: absolute;
    bottom: 100%; /* Position above the toggle button */
    right: 0;
    margin-bottom: 10px; /* Space between icons and toggle button */
    background-color: #fff;
    border-radius: 10px; /* Rounded corners for the list */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 8px; /* Padding around icons */
    display: flex;
    flex-direction: column; /* Stack icons vertically */
    gap: 8px; /* Space between icons */

    /* Hide by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* Start slightly lower */
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.astonia-social-widget:hover .astonia-sw-icons {
    /* Show on hover */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.astonia-sw-icons a {
    display: block;
    width: 36px;  /* Новый размер иконок */
    height: 36px; /* Новый размер иконок */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.astonia-sw-icons a:hover {
    background-color: #f0f0f0; /* Slight background on icon hover */
    transform: scale(1.1); /* Enlarge icon on hover */
}

.astonia-sw-icons a img {
    width: 36px; /* Размер изображения внутри контейнера */
    height: 36px;
    display: block;
}

/* Optional Close Button Styles */
.astonia-sw-close {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #eee;
    border-radius: 50%;
    display: flex; /* Use flex to center */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0; /* Hidden by default, shown when icons are visible */
    transition: opacity 0.2s ease-in-out;
}
.astonia-social-widget:hover .astonia-sw-close {
    opacity: 1; /* Show close button when list is hovered */
}
.astonia-sw-close img {
    width: 12px;
    height: 12px;
    display: block;
}
.astonia-sw-close:hover {
    background: #ddd;
}

/* --- Responsive: Optional --- */
/* Example: Make it smaller on small screens */
@media (max-width: 767px) {
    .astonia-social-widget {
        bottom: 20px;
        right: 20px;
    }
    .astonia-sw-toggle {
        width: 50px;
        height: 50px;
    }
    .astonia-sw-toggle img {
        width: 28px;
    }
    .astonia-sw-icons a {
        width: 40px;
        height: 40px;
    }
    .astonia-sw-icons a img {
        width: 24px;
        height: 24px;
    }
}


@media (hover: hover) {
    .astonia-social-widget:not(.is-mobile) .astonia-sw-icons {
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .astonia-social-widget:not(.is-mobile).show-icons .astonia-sw-icons {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}


.astonia-social-widget:hover .astonia-sw-icons {
    
    opacity: 0;
    visibility: hidden;
}


.astonia-social-widget.is-mobile .astonia-sw-icons {
   
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}


.astonia-social-widget.is-mobile.is-active .astonia-sw-icons {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    z-index: 1001;
}


.astonia-social-widget.is-mobile .astonia-sw-toggle {
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1002;
}

.astonia-social-widget.is-mobile.is-active .astonia-sw-toggle {
    transform: rotate(180deg);
    background-color: #f0f0f0;
}


@media (max-width: 767px) {
    .astonia-social-widget.is-mobile .astonia-sw-icons {
        min-width: 60px;
        margin-bottom: 15px;
    }
    
    .astonia-social-widget.is-mobile.is-active .astonia-sw-icons {
        display: flex !important;
    }
    
    .astonia-sw-icons a {
        width: 36px;
        height: 36px;
    }
    
    .astonia-sw-icons a img {
        width: 24px;
        height: 24px;
    }
}