/* Lighter 0.10.9 ICP company footer: standalone, cache-safe correction. */
/* Keep a public-page footer at the viewport bottom when contents are short. */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > #app {
  flex: 1 0 auto;
  width: 100%;
  min-height: 0;
}
body > #lighter-icp-owner {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: block;
  width: min(100%, 480px);
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 12px max(12px, env(safe-area-inset-bottom));
  color: #67745f;
  background: var(--bg, #f6f7f3);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
  overflow-wrap: anywhere;
  border-top: 1px solid var(--line, #e1e7dc);
}
/* A signed-in screen has a fixed bottom nav. Show the legal name ABOVE it,
   never underneath it. The nav remains interactive (z-index 5 vs footer 4). */
body:has(#app .nav) > #lighter-icp-owner {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: calc(4rem + max(10px, env(safe-area-inset-bottom)));
  transform: translateX(-50%);
  margin: 0;
  padding: 5px 12px;
  border: 1px solid var(--line, #e1e7dc);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: rgba(246, 247, 243, .97);
  pointer-events: none;
}

/* lighter icp footer flow fix 20261111.4 */
body > #lighter-icp-owner {
  display: block !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  z-index: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  text-align: center !important;
  overflow-wrap: anywhere;
  pointer-events: auto !important;
}
body:has(#app .nav) > #lighter-icp-owner {
  display: none !important;
}
