/* Mobile Fixed Footer Bar Styles */

/* Hide on desktop and tablets by default */
.mobile-fixed-footer-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 9999; /* Ensure it is above all other content */
}

/* Flex layout for the navigation container */
.mobile-footer-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 8px;
    max-width: 600px;
}

/* Individual item styles */
.mobile-footer-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #555555;
    flex: 1;
    height: 100%;
    transition: color 0.2s ease-in-out, transform 0.1s ease-in-out;
}

/* SVG icon styles */
.mobile-footer-svg {
    width: 24px;
    height: 24px;
    color: #1f1f1f; /* Clean dark color for the outline */
    margin-bottom: 4px;
    transition: color 0.2s ease-in-out;
}

/* Label styles */
.mobile-footer-label {
    font-size: 11px;
    font-weight: 500;
    color: #555555;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    transition: color 0.2s ease-in-out;
}

/* Active/Hover states */
.mobile-footer-nav-item:hover,
.mobile-footer-nav-item:focus {
    color: #000000;
}

.mobile-footer-nav-item:hover .mobile-footer-svg,
.mobile-footer-nav-item:focus .mobile-footer-svg {
    color: #000000;
}

.mobile-footer-nav-item:hover .mobile-footer-label,
.mobile-footer-nav-item:focus .mobile-footer-label {
    color: #000000;
}

/* Active page highlighting (if matching current page) */
.mobile-footer-nav-item.active .mobile-footer-svg {
    color: #000000; /* Matching the clean outline screenshot look */
}

.mobile-footer-nav-item.active .mobile-footer-label {
    color: #000000;
    font-weight: 600;
}

/* Mobile-only display rules */
@media (max-width: 768px) {
    .mobile-fixed-footer-bar {
        display: flex;
    }
    
    /* Add padding to the bottom of the body to prevent overlapping with content */
    body {
        padding-bottom: 60px !important;
    }
    
    /* Ensure other absolute/fixed bottom widgets are offset upwards */
    .whatsapp-widget-container,
    .whatsapp-widget,
    #whatsapp-widget,
    #wa-widget {
        bottom: 60px !important;
    }
    
    /* Cookie consent banner offset */
    .cookie-consent-banner {
        bottom: 60px !important;
    }
}

/* Support for iPhone safe area inset */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .mobile-fixed-footer-bar {
            height: calc(60px + env(safe-area-inset-bottom));
            padding-bottom: env(safe-area-inset-bottom);
        }
        body {
            padding-bottom: calc(60px + env(safe-area-inset-bottom)) !important;
        }
        .whatsapp-widget-container,
        .whatsapp-widget,
        #whatsapp-widget,
        #wa-widget {
            bottom: calc(60px + env(safe-area-inset-bottom)) !important;
        }
        .cookie-consent-banner {
            bottom: calc(60px + env(safe-area-inset-bottom)) !important;
        }
    }
}
