/* The browser footer is visible on mobile; its desktop five-column grid
 * must fit the viewport when mobile-surfaces.css restores it. */
@media (max-width: 991.98px) {
    body.wc-theme:not(.wc-native-app) .site-footer .footer-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    body.wc-theme:not(.wc-native-app) .site-footer .footer-brand,
    body.wc-theme:not(.wc-native-app) .site-footer .footer-navigation > :last-child {
        grid-column: 1 / -1;
    }

    body.wc-theme:not(.wc-native-app) .site-footer .footer-navigation > *,
    body.wc-theme:not(.wc-native-app) .site-footer .footer-contact li {
        min-width: 0;
    }

    body.wc-theme:not(.wc-native-app) .site-footer .footer-title {
        margin-bottom: 8px;
    }

    body.wc-theme:not(.wc-native-app) .site-footer .footer-links a,
    body.wc-theme:not(.wc-native-app) .site-footer .footer-contact a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        max-width: 100%;
        padding-block: 8px;
        overflow-wrap: anywhere;
    }

    body.wc-theme:not(.wc-native-app) .site-footer .footer-contact span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    body.wc-theme:not(.wc-native-app) .site-footer .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 10px;
    }

    body.wc-theme:not(.wc-native-app) .site-footer .footer-bottom-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (max-width: 359.98px) {
    body.wc-theme:not(.wc-native-app) .site-footer .footer-navigation {
        grid-template-columns: minmax(0, 1fr);
    }
}
