.fsb-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    /* Increased z-index */
    padding: 0 10px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transition: all 0.3s ease;
}

/* Wider container for 3 buttons */
.fsb-container.fsb-cols-3 {
    max-width: 750px;
}

.fsb-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    height: 100%;
    padding: 5px;
    min-width: 0;
    text-align: center;
    border: none !important;
    /* Remove potential theme borders */
    background: none !important;
    /* Remove potential theme backgrounds */
    box-shadow: none !important;
    /* Remove potential theme shadows */
}

.fsb-button:hover {
    opacity: 0.9;
}

.fsb-icon {
    font-size: 20px;
    margin-right: 0;
    margin-bottom: 4px;
    flex-shrink: 0;
    line-height: 1;
    /* Fix vertical alignment */
    width: auto !important;
    height: auto !important;
    min-width: 20px;
    text-align: center;
}

/* Ensure icon element itself has proper dimensions */
.fsb-icon i {
    width: auto !important;
    height: auto !important;
    min-width: 1em;
    min-height: 1em;
}

/* Force FontAwesome font family and reset styles for icons - Compatible with FA5 and FA6 */
.fsb-icon i,
.fsb-icon .fas,
.fsb-icon .fab,
.fsb-icon .far,
.fsb-icon .fa-solid,
.fsb-icon .fa-brands,
.fsb-icon .fa-regular {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Brands", FontAwesome, "fa-solid-900", "fa-brands-400", sans-serif !important;
    font-weight: 900 !important;
    /* Solid icons need 900 */
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    display: inline-block !important;
    color: inherit !important;
    /* Ensure color is inherited */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Specific fix for brands - FA5 and FA6 */
.fsb-icon .fab,
.fsb-icon .fa-brands {
    font-weight: 400 !important;
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", FontAwesome, "fa-brands-400", sans-serif !important;
}

.fsb-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.fsb-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: inherit !important;
}

.fsb-desc {
    font-size: 10px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: inherit !important;
}

.fsb-divider {
    width: 1px;
    height: 60%;
    opacity: 0.3;
    margin: 0 2px;
    flex-shrink: 0;
}

/* Visibility Classes */
@media (min-width: 769px) {
    .fsb-hide-desktop {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .fsb-hide-mobile {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .fsb-container {
        width: 95%;
        bottom: 15px;
        height: 70px;
        border-radius: 10px;
    }

    .fsb-icon {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .fsb-title {
        font-size: 12px;
    }

    .fsb-desc {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .fsb-container.fsb-cols-3 .fsb-desc {
        display: none;
    }

    .fsb-container.fsb-cols-3 .fsb-title {
        font-size: 11px;
    }
}