/* T024 shared chrome: independent of optional cart-badge CSS and JavaScript. */
.anzshell-footer-links { box-sizing:border-box; background:#163e35; color:#ffffff; font:16px/1.6 Aptos,"Segoe UI",Arial,sans-serif; }
.anzshell-footer-links .anzshell-footer-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; width:100%; }
.anzshell-footer-links .anzshell-footer-groups nav { display:flex; flex-direction:column; align-items:flex-start; gap:0; min-width:0; }
.anzshell-footer-links .anzshell-footer-groups h2 { color:inherit; font:600 18px/1.3 Aptos,"Segoe UI",Arial,sans-serif; margin:0 0 12px; }
.anzshell-footer-links .anzshell-footer-groups a { display:inline-flex; align-items:center; min-height:44px; max-width:100%; color:inherit; text-underline-offset:4px; overflow-wrap:anywhere; }
.anzshell-footer-links .anzshell-footer-groups a:hover { color:#d5eb57; }
.anzshell-footer-links .anzshell-footer-groups a:focus-visible { outline:3px solid #d5eb57; outline-offset:3px; }
.anzshell-footer-links > p { margin:0 0 24px; }
/* A scrollable lower lane lets actions clear an external launcher. No widget selectors/APIs. */
.anzshell .anzshell-footer.anzshell-footer-links,
.anzfg .anzshell-footer-links.anzfg-home-footer,
.anzfg .anzshell-footer-links.anzfg-footer,
.anzcountry-root .anzcountry-footer.anzshell-footer-links { display:block; padding-bottom:calc(112px + env(safe-area-inset-bottom)); }
.anzshell-footer-links .anzshell-footer-groups nav:last-child { padding-right:48px; }
@media(max-width:540px) {
    .anzshell-footer-links .anzshell-footer-groups { grid-template-columns:1fr 1fr; gap:28px 20px; }
    .anzshell-footer-links .anzshell-footer-groups nav:last-child { grid-column:1 / -1; padding-right:80px; }
    .anzshell .anzshell-footer.anzshell-footer-links,
    .anzfg .anzshell-footer-links.anzfg-home-footer,
.anzfg .anzshell-footer-links.anzfg-footer,
    .anzcountry-root .anzcountry-footer.anzshell-footer-links { padding-bottom:calc(128px + env(safe-area-inset-bottom)); }
}

/* Root scope beats legacy home/country typography in either stylesheet order. */
:is(.anzfg,.anzcountry-root,.anzshell) .anzshell-footer-links .anzshell-footer-groups a { font:400 16px/1.6 Aptos,"Segoe UI",Arial,sans-serif; }
:is(.anzfg,.anzcountry-root,.anzshell) footer.anzshell-footer-links > p { font:400 14px/1.6 Aptos,"Segoe UI",Arial,sans-serif; margin:0 0 24px; }
/* Only roots with the detailed footer transfer their old clearance to that footer. */
@media(max-width:767px) {
    .anzfg:not(.anzfg-context):has(> footer.anzshell-footer-links),
    .anzcountry-root:has(> footer.anzshell-footer-links) { padding-bottom:0; }
}
/* Keep the existing clipped announcer from extending the owned document's scroll box. */
body:has(> :is(.anzfg,.anzcountry-root,.anzshell) > footer.anzshell-footer-links) > .anzcart-announcement { top:0; }
