.bottom_footer_nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    gap: 10px;
    justify-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.ub-mobile-bottom-nav {
    overflow-x: hidden;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.bottom_footer_nav a,
.bottom_footer_nav div {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 576px) {
    .ub-mobile-bottom-nav {
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    .bottom_footer_nav {
        padding: 0 0.25rem;
    }

    .bottom_footer_nav a span,
    .bottom_footer_nav div span {
        font-size: 0.60rem !important;
        white-space: normal;       /* allow wrapping */
        overflow-wrap: anywhere;   /* modern way to break anywhere */
        word-break: break-all;
    }
}