/* WAI-Core: src/app/static/css/shell/footer-responsive.css v4 */

@media (max-width: 800px) {

    #footer-toggle {
        display: block;
        margin: auto;
    }

    .footer-container {
        margin-left: 27px !important;
        margin-right: 27px !important;
        margin-bottom: 13px !important;
        height: 40px;
    }

    .footer-content {
        display: none !important;
        white-space: normal !important;
        word-wrap: break-word;
        word-break: break-word;
        flex-wrap: wrap;
    }

    #footer-mobile-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #243f53;
        color: white;
        padding: 0 20px;
        font-size: 0.8rem;
        margin: 0px 82px;
        gap: 10px;
        transition: max-height 0.3s ease, padding 0.3s ease;
        overflow-y: auto;
        max-height: 0;
        pointer-events: none;
    }

    #footer-mobile-menu.open {
        max-height: 46vh;
        padding: 20px;
        pointer-events: all;
        z-index: 2001;
        position: relative;
    }

    .footer-main.mobile-open + #footer-mobile-menu {
        max-height: 400px;
    }

    #footer-mobile-menu a {
        color: white;
        text-decoration: none;
        display: inline-block;
    }

    #footer-mobile-menu a:hover {
        text-decoration: underline;
    }

    #footer-mobile-menu p {
        margin: 4px 0;
        text-align: center;
    }

    #footer-mobile-menu .social-media-container {
        padding: 10px 0;
    }

    #footer-mobile-menu .social-media-container img {
        width: 24px;
        height: auto;
    }

    #footer-mobile-menu::-webkit-scrollbar {
        width: 6px;
    }

    #footer-mobile-menu::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
}

@media (max-width: 400px) {

    #footer-mobile-menu {
        margin: 0px 49px;
    }

}
