*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ma-safe-top: env(safe-area-inset-top, 0px);
  --ma-safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ma-app-height: 100dvh;
  --ma-app-height-final: 100dvh;
  --app-height: 100dvh;
  --ma-bottom-nav-visible-height: 56px;
  --ma-bottom-nav-lift: 5px;
  --ma-bottom-nav-total-height: calc(var(--ma-bottom-nav-visible-height) + var(--ma-safe-bottom));
  --ma-bottom-nav-height: var(--ma-bottom-nav-visible-height);
  --bottom-nav-visible-height: var(--ma-bottom-nav-visible-height);
  --bottom-nav-lift: var(--ma-bottom-nav-lift);
  --bottom-nav-total-height: var(--ma-bottom-nav-total-height);
  --bottom-nav-height: var(--ma-bottom-nav-visible-height);
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: #e9e9e9;
}

body.ma-subpage,
body.ma-page-fixture,
body.ma-page-dni-digital {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: #e9e9e9;
}

.ma-page-shell,
.app,
.screen,
.DocsPage,
.masterContainer,
.fixture-app {
  max-width: 100%;
  overflow-x: hidden;
  background: #e9e9e9;
}

body.ma-subpage .ma-page-shell,
body.ma-page-dni-digital .ma-page-shell,
body.ma-page-fixture .fixture-app,
body.ma-page-fixture .ma-page-shell {
  width: 100%;
  height: var(--ma-app-height-final, 100dvh);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.ma-subpage .header,
body.ma-subpage .topbar,
body.ma-subpage .DocsHeader,
body.ma-subpage .PIN_header,
body.ma-subpage .detail-header,
body.ma-subpage .disable-header,
body.ma-subpage .request-header,
body.ma-subpage .fixture-header,
body.ma-page-fixture .fixture-header {
  flex: 0 0 auto;
  transform: none;
  opacity: 1;
  visibility: visible;
}

body.ma-subpage .content,
body.ma-subpage main,
body.ma-subpage .DocsBody,
body.ma-subpage .DNI_contentContainer,
body.ma-subpage .detail-main,
body.ma-subpage .disable-main,
body.ma-subpage .request-main,
body.ma-page-fixture .fixture-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding-bottom: calc(var(--ma-bottom-nav-visible-height) + var(--ma-safe-bottom) + 16px);
}

.bottom-nav,
.ma-bottom-nav,
.ma-route-transition-nav {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  bottom: calc((var(--ma-safe-bottom) * -1) + var(--ma-bottom-nav-lift));
  width: 100%;
  max-width: none;
  height: var(--ma-bottom-nav-total-height);
  min-height: var(--ma-bottom-nav-total-height);
  padding: 0 0 var(--ma-safe-bottom);
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid #d0d0d0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .04);
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  z-index: 9999;
}

.bottom-nav .nav-item,
.bottom-nav .nav-item-link,
.ma-bottom-nav .nav-item,
.ma-bottom-nav .nav-item-link,
.ma-route-transition-nav .nav-item,
.ma-route-transition-nav .nav-item-link {
  flex: 1 1 0;
  height: var(--ma-bottom-nav-visible-height);
  min-height: var(--ma-bottom-nav-visible-height);
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8e8e8e;
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 0;
  outline: 0;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav .nav-item.active,
.bottom-nav .nav-item-link.active,
.ma-bottom-nav .nav-item.active,
.ma-bottom-nav .nav-item-link.active,
.ma-route-transition-nav .nav-item.active,
.ma-route-transition-nav .nav-item-link.active {
  color: #362fc1;
}

.ma-nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.ma-nav-icon svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: block;
}

.ma-nav-icon--tina,
.tina-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ma-nav-icon--tina svg,
.tina-icon svg {
  width: 18px;
  height: 16px;
  max-width: 18px;
  max-height: 16px;
  display: block;
}

body.ma-index-page.ma-menu-open .bottom-nav,
body.ma-index-page.ma-profile-open .bottom-nav,
body.ma-index-page .phone.menu-open > .bottom-nav,
body.ma-index-page .phone.profile-open > .bottom-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.ma-dni-access-boot body,
html.ma-dni-access-ready body {
  opacity: 1;
  visibility: visible;
  transition: none;
}
