﻿    body.aps-mobile-redesign .aps-homepage-footer-wrap,
    body.aps-mobile-redesign .aps-footer {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.aps-mobile-redesign .aps-footer {
        --aps-footer-mobile-gutter: 1.35rem;
        margin-bottom: 0;
        padding-left: var(--aps-footer-mobile-gutter) !important;
        padding-right: var(--aps-footer-mobile-gutter) !important;
        box-sizing: border-box;
    }

    body.aps-mobile-redesign .aps-footer__main {
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        grid-template-columns: unset !important;
        width: 100%;
        max-width: none;
        margin-inline: 0;
        padding: 1.35rem 0 1.25rem !important;
        border-bottom: none;
        box-sizing: border-box;
    }

    body.aps-mobile-redesign .aps-footer__columns {
        display: flex !important;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1.65rem;
        width: 100%;
        max-width: none;
        margin: 0;
        text-align: left !important;
        border: none !important;
        padding: 0 !important;
        grid-template-columns: unset !important;
        box-sizing: border-box;
    }

    body.aps-mobile-redesign .aps-footer__col-stack {
        display: flex !important;
        flex-direction: column;
        gap: 1.35rem;
        flex: 1 1 0;
        min-width: 0;
    }

    body.aps-mobile-redesign .aps-footer__col-heading {
        text-align: left !important;
        font-size: 0.875rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        margin-bottom: 0.45rem;
    }

    body.aps-mobile-redesign .aps-footer__col ul {
        align-items: flex-start !important;
        gap: 0.45rem;
    }

    body.aps-mobile-redesign .aps-footer__col ul li a,
    body.aps-mobile-redesign .aps-footer__col ul li span {
        font-size: 0.8125rem;
        line-height: 1.35;
        color: #fff;
    }

    body.aps-mobile-redesign .aps-footer__col ul li a:hover {
        color: #fff;
    }

    /* Hide sidebar on mobile */
    body.aps-mobile-redesign .aps-footer__sidebar-login,
    body.aps-mobile-redesign .aps-footer__sidebar-divider--login,
    body.aps-mobile-redesign .aps-footer__sidebar-deals,
    body.aps-mobile-redesign .aps-footer__sidebar-divider--deals,
    body.aps-mobile-redesign .aps-footer__sidebar {
        display: none !important;
    }

    body.aps-mobile-redesign.aps-home-sticky-nav .aps-footer__bottom-wrap {
        margin-top: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        width: 100%;
        max-width: none;
        margin-inline: 0;
        padding: 0;
        /* Room above fixed bottom nav (mobile/tablet) */
        padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box;
    }

    body.aps-mobile-redesign .aps-footer__bottom-wrap {
        margin-top: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        width: 100%;
        max-width: none;
        margin-inline: 0;
        padding: 0;
        padding-bottom: 0;
        box-sizing: border-box;
    }

    body.aps-mobile-redesign .aps-footer__bottom {
        width: 100%;
        max-width: none;
        margin-inline: 0;
        padding: 1.15rem 0 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start;
        gap: 1.15rem;
        text-align: center !important;
        box-sizing: border-box;
    }

    body.aps-mobile-redesign .aps-footer__bottom > .aps-footer__logo,
    body.aps-mobile-redesign .aps-footer__bottom > .aps-footer__bottom-meta {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
    }

    body.aps-mobile-redesign .aps-footer__logo {
        width: 100%;
        display: flex;
        justify-content: stretch;
        flex: 0 0 auto;
    }

    body.aps-mobile-redesign .aps-footer__logos {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-end;
        justify-content: space-evenly;
        gap: 1.75rem;
        --aps-footer-logo-height: 2.75rem;
        --aps-footer-logo-urg-height: 3.2rem;
        width: 100%;
        max-width: 100%;

    }

    body.aps-mobile-redesign .aps-footer__logo-aps {
        height: var(--aps-footer-logo-height);
        width: auto;
        max-width: none;
        flex: 0 1 auto;
        object-fit: contain;
        object-position: left bottom;
    }

    body.aps-mobile-redesign .aps-footer__logo-urg {
        height: var(--aps-footer-logo-urg-height);
        width: auto;
        max-width: none;
        flex: 0 1 auto;
        object-fit: contain;
        object-position: left bottom;
    }

    body.aps-mobile-redesign .aps-footer__bottom-meta {
        width: 100% !important;
        max-width: 100% !important;
        align-self: stretch !important;
        flex: 0 0 auto !important;
        min-width: 0;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0.25rem 0 1.15rem;
        box-sizing: border-box;
        container-type: inline-size;
        container-name: aps-footer-meta;
    }

    body.aps-mobile-redesign .aps-footer__copyright {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        flex: none !important;
        text-align: center !important;
        white-space: normal;
        font-size: 0.82rem;
        line-height: 1.45;
        letter-spacing: 0.045em;
        color: rgba(255, 255, 255, 0.95);
        padding: 0;
        box-sizing: border-box;
    }

    /* Tighten copy only as the footer column narrows (e.g. 360px phones) */
    @container aps-footer-meta (max-width: 22.5rem) {
        body.aps-mobile-redesign .aps-footer__copyright {
            font-size: 0.78rem;
            letter-spacing: 0.028em;
        }
    }

    @container aps-footer-meta (max-width: 21.25rem) {
        body.aps-mobile-redesign .aps-footer__copyright {
            font-size: 0.75rem;
            letter-spacing: 0.012em;
        }
    }

    @container aps-footer-meta (max-width: 20rem) {
        body.aps-mobile-redesign .aps-footer__copyright {
            font-size: 0.725rem;
            letter-spacing: -0.008em;
            white-space: nowrap;
        }
    }

    @container aps-footer-meta (max-width: 19rem) {
        body.aps-mobile-redesign .aps-footer__copyright {
            font-size: 0.6875rem;
            letter-spacing: -0.022em;
        }
    }

    body.aps-mobile-redesign .aps-footer__bottom-meta-row {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: flex-start !important;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding: 0 0.2rem;
        box-sizing: border-box;
    }

    body.aps-mobile-redesign .aps-footer__policy-link {
        font-size: 0.72rem;
        flex-shrink: 0;
        line-height: 1.35;
        padding-left: 0.1rem;
    }

    body.aps-mobile-redesign .aps-footer__socials {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
        transform: none;
        padding-right: 0.1rem;
    }

    body.aps-mobile-redesign .aps-footer__social-btn {
        width: 1.65rem;
        height: 1.65rem;
        font-size: 0.625rem;
    }

    /* Minimal branding footer — clearance so copyright + socials sit above sticky nav */
    body.aps-mobile-redesign.aps-home-sticky-nav .aps-minimal-footer-wrap {
        padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box;
    }

    body.aps-mobile-redesign .aps-minimal-footer-wrap {
        padding-bottom: 0;
        box-sizing: border-box;
    }

    body.aps-mobile-redesign .aps-minimal-footer-wrap footer > div {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 1rem !important;
        margin-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    body.aps-mobile-redesign .aps-minimal-footer-wrap footer .flex.flex-wrap.items-center {
        justify-content: center !important;
        gap: 0.55rem 1rem !important;
    }

    body.aps-mobile-redesign .aps-minimal-footer-wrap footer .flex.flex-col.items-center.gap-3 {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.85rem !important;
        width: 100%;
    }

    body.aps-mobile-redesign .aps-minimal-footer-wrap footer .text-sm.leading-relaxed {
        text-align: center !important;
    }

    body.aps-mobile-redesign .aps-minimal-footer-wrap footer .flex.items-center.justify-end.gap-4 {
        justify-content: center !important;
    }
