/* Bottom Navigation Menu - Mobile Only (screens < 991px) */



/* Override Zendesk chat icon position */
#launcher,
#launcher-frame,
iframe[id*="launcher"],
.zEWidget-launcher,
[data-testid="launcher"] {
  bottom: 60px !important;
  position: fixed !important;
  right: -5px!important;
}

/* Alternative selectors if the above don't work */
body > iframe[title*="chat"],
body > iframe[title*="Zendesk"],
body > iframe[id*="zendesk"] {
  bottom: 60px !important;
  position: fixed !important;
  right: -5px!important;
}

/* Hide by default on desktop */
.bnm-bottom-nav {
    display: none;
}

/* Show only on screens smaller than 991px */
@media screen and (max-width: 991px) {
    .bnm-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid #d1d1d1;
        z-index: 9999;
        padding: 0;
        margin: 0;
    }

    .bnm-nav-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 8px 0;
        margin: 0;
        list-style: none;
        max-height: 60px;
    }

    .bnm-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        background: transparent;
        border: none;
        padding: 8px 4px;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        color: #666666;
        font-size: 11px;
        font-weight: 500;
        min-width: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .bnm-nav-item:active,
    .bnm-nav-item:focus {
        outline: none;
        background-color: rgba(0, 0, 0, 0.05);
    }

    .bnm-nav-item:hover {
        color: #0073aa;
        text-decoration: none;
    }

    .bnm-icon-container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        margin-bottom: 4px;
    }

    .bnm-icon {
        display: block;
        width: 30px;
        height: 30px;
        object-fit: contain;
     
    }

    .bnm-nav-text {
        display: block;
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Active state - highlight current page */
    .bnm-nav-item.active,
    .bnm-nav-item:active {
        color: #0073aa;
    }


    /* Add padding to body to prevent content from being hidden behind nav */
    body {
        padding-bottom: 60px;
    }

    /* Ensure nav stays above other content */
    .bnm-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 1px solid #e4e7e9;
    }
}

/* Hide on screens 992px and above */
@media screen and (min-width: 992px) {
    .bnm-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}
