/* Share the theme layer to replace the solid bar and its selected tile. */
@layer mmx-soft {
  html body.mmx-modern {
    --mmx-mobile-dock-height: 32px;
  }

  html body.mmx-modern #mmxCookieNotice.is-visible:not([hidden]) {
    bottom: calc(var(--mmx-mobile-dock-height) + 8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.mmx-modern nav.mobile-bottom-nav {
    --mmx-dock-fade: linear-gradient(to bottom, transparent, #000 54%);
    isolation: isolate;
    pointer-events: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 max(6px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-left)) !important;
  }

  /* The Android app already reserves space for the system navigation bar. */
  html body.mmx-modern nav.mobile-bottom-nav[data-mmx-native-insets] {
    padding-bottom: 0 !important;
  }

  html body.mmx-modern nav.mobile-bottom-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, rgba(23, 34, 49, .20), rgba(12, 20, 33, .66));
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    backdrop-filter: blur(10px) saturate(1.3);
    -webkit-mask-image: var(--mmx-dock-fade);
    mask-image: var(--mmx-dock-fade);
  }

  html body.mmx-modern nav.mobile-bottom-nav > a {
    z-index: 1;
    gap: 1px !important;
    height: var(--mmx-mobile-dock-height) !important;
    min-height: 0 !important;
    justify-content: flex-end !important;
    padding-bottom: 1px !important;
    color: #f5f6fb !important;
    background: transparent !important;
    border: 0 !important;
    line-height: 1 !important;
    pointer-events: auto;
  }

  html body.mmx-modern nav.mobile-bottom-nav > a.is-active {
    color: #ff9a82 !important;
    background: transparent !important;
    border: 0 !important;
  }

  html body.mmx-modern nav.mobile-bottom-nav > a.is-active::after {
    content: none !important;
  }

  html body.mmx-modern nav.mobile-bottom-nav > a > span {
    font-size: clamp(10px, 2.7vw, 11px) !important;
    white-space: nowrap;
  }

  html body.mmx-modern nav.mobile-bottom-nav .mmx-ui-icon {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.65 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
