/* Container holding the floating bar */
.shounyaone-fab-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: auto;
    max-width: 95%;
}

/* The visual bar itself */
.shounyaone-fab-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    /* Dark black/charcoal gradient background */
    background: linear-gradient(180deg, #2c2c2c 0%, #000000 100%);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    padding: 10px 5px;
    backdrop-filter: blur(5px);
}

/* Individual Buttons */
.shounyaone-fab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #ffffff !important;
    padding: 0 15px;
    transition: transform 0.2s ease, filter 0.2s ease;
    min-width: 70px;
    border: none;
    outline: none;
}

.shounyaone-fab-item:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.shounyaone-fab-item:focus {
    box-shadow: none;
    outline: none;
}

/* Icons */
.shounyaone-fab-icon {
    margin-bottom: 4px;
    line-height: 1;
}

.shounyaone-fab-icon svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    stroke-width: 2px;
}

/* Text Labels */
.shounyaone-fab-label {
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Vertical Divider Lines */
.shounyaone-fab-divider {
    width: 1px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.2);
    display: block;
}

/* Remove divider after the last visible item if CSS logic allows, 
   but PHP logic might leave a trailing divider if last item disabled. 
   The following CSS targets the last divider in the flex container to hide it strictly.
*/
.shounyaone-fab-wrapper > .shounyaone-fab-divider:last-child {
    display: none;
}

/* Hide divider if it's the last element visually (just in case) */
.shounyaone-fab-item:last-of-type + .shounyaone-fab-divider {
    display: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .shounyaone-fab-container {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
    }

    .shounyaone-fab-wrapper {
        border-radius: 15px 15px 0 0; /* Top rounded only on mobile */
        width: 100%;
        padding: 12px 0;
        justify-content: space-around;
        background: linear-gradient(180deg, #2c2c2c 0%, #000000 100%);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    }
    
    .shounyaone-fab-item {
        flex: 1;
        padding: 0 5px;
        min-width: auto;
    }
}