#btdscan-icp-footer {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 20px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-family: inherit;
  font-size: 11px;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
}

#btdscan-icp-footer[hidden] {
  display: none;
}

#btdscan-icp-footer .btdscan-filing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 4px;
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}

#btdscan-icp-footer .btdscan-public-security-icon {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

#btdscan-icp-footer .btdscan-filing-link:hover,
#btdscan-icp-footer .btdscan-filing-link:focus-visible {
  color: #0369a1;
  text-decoration: underline;
}

#btdscan-icp-footer .btdscan-filing-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* The deployed React layout otherwise occupies the entire viewport. */
html[data-btdscan-icp-home] #root > .h-screen {
  height: calc(100vh - var(--btdscan-icp-footer-height, 48px));
  height: calc(100dvh - var(--btdscan-icp-footer-height, 48px));
  min-height: min-content;
}

@media (max-width: 360px) {
  #btdscan-icp-footer {
    gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }
}
