/* ANB Lab final isolated fixes · 28 Oct 2026.
   Changes apply only to information article views and mobile footer.
   Checkout, catalog, product photos, header and chat are unaffected. */
@media screen and (max-width:767px) {
  /* Two balanced footer rows after brand; remove large empty columns. */
  body.anblab-theme #footer.anb-footer .anb-footer-grid {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:16px!important;
    row-gap:28px!important;
    align-items:start!important;
  }
  body.anblab-theme #footer.anb-footer .anb-footer-grid>section {
    grid-column:auto!important;
    min-width:0!important;
    max-width:100%!important;
  }
  body.anblab-theme #footer.anb-footer .anb-footer-grid>.anb-footer-brand {
    grid-column:1/-1!important;
    padding-bottom:4px;
  }
  body.anblab-theme #footer.anb-footer .anb-footer-grid h4 {
    margin:0 0 11px!important;
    font-size:13px!important;
    line-height:1.4!important;
  }
  body.anblab-theme #footer.anb-footer .anb-footer-grid li {
    margin:0 0 9px!important;
    line-height:1.5!important;
  }
  body.anblab-theme #footer.anb-footer .anb-footer-grid a {
    overflow-wrap:anywhere;
    word-break:normal;
    line-height:1.6!important;
  }
  body.anblab-theme #footer.anb-footer .anb-footer-bottom {
    margin-top:24px!important;
    padding-top:14px!important;
    text-align:left!important;
  }
  /* On knowledge pages only, prevent wide article HTML from moving the iPhone viewport. */
  html:has(body.anb-knowledge-body) {overflow-x:clip!important;}
  body.anblab-theme.anb-knowledge-body {overflow-x:clip!important;max-width:100%;}
  body.anblab-theme.anb-knowledge-body #information-information {
    width:calc(100% - 28px)!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:clip!important;
  }
  body.anblab-theme.anb-knowledge-body #information-information :is(.row,#content,.anb-reading-layout,.anb-article,.anb-reading-aside,.anb-toc-panel,.anb-article-body) {
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  body.anblab-theme.anb-knowledge-body #information-information .anb-article-body {
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  body.anblab-theme.anb-knowledge-body #information-information .anb-article-body :is(img,video,iframe,svg,figure) {
    max-width:100%!important;
    height:auto;
  }
  body.anblab-theme.anb-knowledge-body #information-information .anb-article-body :is(table,pre) {
    display:block;
    max-width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  body.anblab-theme.anb-knowledge-body #information-information .anb-article-body :is(p,li,a,h1,h2,h3,h4,h5),
  body.anblab-theme.anb-knowledge-body #information-information .anb-toc-panel a {
    overflow-wrap:anywhere!important;
  }
}
