/* Original styles for the download button */
.sns-share-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #28a745;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
    transition: background-color 0.3s ease;
    cursor: pointer;
}
.sns-share-button:hover,
.sns-share-button:focus {
    background-color: #218838;
    color: #ffffff;
    outline: none;
}

/* --- Styles for the Floating Share Hub --- */
.sns-floating-container {
    /* This container is now just a positioning anchor */
    position: fixed;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 1000;
    /* width and height will be determined by the button inside */
    width: 48px;
    height: 48px;
}

.sns-floating-button {
    width: 100%;
    height: 100%;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    border: none;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.2s ease;
}

.sns-floating-button svg {
    width: 24px;
    height: 24px;
}

.sns-floating-button:active {
    transform: scale(0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.sns-share-hub {
    /* MODIFIED: Using absolute positioning to force it above the button */
    position: absolute;
    bottom: 100%; /* Position the bottom of the menu at the top of the container */
    right: 0; /* Align to the right of the container */
    margin-bottom: 12px; /* Add space between the menu and the button */
    
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align hub buttons to the right */
    gap: 8px;
    
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: visibility 0.2s, opacity 0.2s, transform 0.2s ease-out;
}

.sns-share-hub.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.sns-hub-button {
    background-color: #fff;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    text-align: right;
    border: 1px solid #eee;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.sns-hub-button svg {
    width: 16px;
    height: 16px;
}

.sns-hub-button:hover {
    background-color: #f8f8f8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}