
/*
 * Styles for the Public-Facing Mobile Sticky Menu
 */

/* Hide by default on larger screens */
.msm-sticky-menu-container {
    display: none;
}

/* Show and style only on screens below 500px */
@media only screen and (max-width: 991px) {

    /* Add padding to the bottom of the body to prevent content from being hidden behind the menu */
    body {
        padding-bottom: 60px; /* Adjust this value to match the menu's height */
    }

    .msm-sticky-menu-container {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px; /* Menu height */
        background-color: #ffffff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
        z-index: 99999;
    }

    .msm-menu-list {
        display: flex;
        justify-content: space-around;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        height: 100%;
    }

    .msm-menu-item {
        flex: 1;
        text-align: center;
        height: 100%;
    }

    .msm-menu-item a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        padding: 4px 2px;
        text-decoration: none;
        color: #555555;
        font-size: 10px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
        box-sizing: border-box;
    }
    
    .msm-menu-item a:hover,
    .msm-menu-item a:focus {
        /* background-color: #f7f7f7; */
    }

    .msm-item-icon {
        display: block;
        height: 24px;
        width: 24px;
        margin-bottom: 4px;
    }

    .msm-item-icon img {
        max-width: 100%;
        height: auto;
    }

    .msm-item-title {
        display: block;
        line-height: 1.2;
    }
    .msm-item-title {
        display: block;
        line-height: 1.2;
        position: relative;
        padding-bottom: 3px;
    }

    /* Active item highlight bar (the "below text background") */
    .msm-item-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: transparent;
        transition: width 0.3s ease;
    }

    .msm-menu-item.active .msm-item-title::after {
        width: 100%; /* Show the bar on active items */
    }
    
    .msm-item-icon img {
        transition: filter 0.3s ease, opacity 0.3s ease;
    }
}