html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.bms-portal-template {
  margin: 0;
  background: #f8fafc;
}

body.bms-portal-template,
body.bms-portal-template #page,
body.bms-portal-template .site,
body.bms-portal-template .site-content,
body.bms-portal-template .entry-content,
body.bms-portal-template .content-area,
body.bms-portal-template .site-main {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.bms-portal-page {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.bms-portal-shell {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#bms-portal-root {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

#bms-portal-root,
#bms-portal-root * {
  box-sizing: border-box;
}

#bms-portal-root img,
#bms-portal-root video,
#bms-portal-root canvas,
#bms-portal-root svg,
#bms-portal-root iframe {
  max-width: 100%;
}

#bms-portal-root input,
#bms-portal-root select,
#bms-portal-root textarea,
#bms-portal-root button {
  max-width: 100%;
}

#bms-portal-root table {
  width: 100%;
}

#bms-portal-root .overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

.bms-portal-shell--guest {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bms-loading {
  width: min(100%, 460px);
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
}

.bms-loading p {
  margin: 0 0 10px;
}

.bms-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #ea580c;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 991px) {
  body.bms-portal-template {
    font-size: 16px;
  }

  #bms-portal-root {
    min-height: 100dvh;
  }
}

@media (max-width: 767px) {
  .bms-portal-shell--guest {
    padding: 16px;
  }

  .bms-loading {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
  }

  #bms-portal-root {
    min-height: 100dvh;
  }
}
