/* Only the verified customer routes opt into this footer-clearance correction.
   Reserve the real fixed navigation height, plus one visible pixel. */
@media screen {
  body.kh-compact-bottom.kh-has-bottom-nav:not(.khp-page-body) {
    padding-bottom: calc(var(--kh-customer-bottom-height, 88px) + 1px) !important;
  }
  body.kh-compact-bottom.kh-home-page main > .final-cta:last-child,
  body.kh-compact-bottom.gallery-page-body main > .gallery-main-section:last-child,
  body.kh-compact-bottom .flow-main,
  body.kh-compact-bottom.kh-digital-formats-page .kh-formats-shell,
  body.kh-compact-bottom.kh-account-page .kh-account-main,
  body.kh-compact-bottom.kh-account-page .kh-order-page {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  /* This is the outside login-card margin, not its inner content padding. */
  body.kh-compact-bottom.kh-account-page .kh-account-main > .kh-login-shell,
  body.kh-compact-bottom.kh-digital-formats-page #khFormatRetail {
    margin-bottom: 0 !important;
  }
}

/* Desktop only: mobile keeps the existing 1px gap. */
@media screen and (min-width:791px) {
  body.kh-compact-bottom.kh-has-bottom-nav:not(.khp-page-body) {
    padding-bottom: calc(var(--kh-customer-bottom-height, 88px) + 10px) !important;
  }
}

/* Home only: keep fixed-navigation clearance without an extra visual gap. */
@media screen {
  body.kh-compact-bottom.kh-home-page.kh-has-bottom-nav:not(.khp-page-body) {
    padding-bottom: var(--kh-customer-bottom-height, 88px) !important;
  }
}
