html.jw-agent-embed,
body.jw-agent-embed {
  margin: 0;
  padding: 0;
  min-height: 100%;
  height: 100%;
  overflow-x: hidden;
}

html.jw-agent-embed body {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0)) !important;
}

html.jw-agent-embed #bottom-nav,
html.jw-agent-embed .bottom-nav {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  height: auto !important;
  z-index: 200;
}

html.jw-agent-embed .page {
  min-height: 100% !important;
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0)) !important;
}

html.jw-shell-embed #page-home {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0)) !important;
}

html.jw-shell-embed,
body.jw-shell-embed {
  height: 100% !important;
  min-height: 100% !important;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

html.jw-shell-embed .bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: flex !important;
}
