/* User custom overrides load after bizpoint-platform.css. */

.bp-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}

@media (min-width: 821px) {
  body.bp-platform .bp-header-right .bp-mobile-menu-toggle-fixed {
    display: none;
  }

  body.bp-platform .bp-header-right .bp-nav {
    position: static;
    display: flex;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 820px) {
  body.bp-platform .bp-header-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
  }

  body.bp-platform .bp-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  body.bp-platform .bp-header-right {
    flex: 0 0 auto;
    position: static;
    margin-left: auto;
  }

  body.bp-platform .bp-header-right .bp-mobile-menu-toggle-fixed {
    position: relative;
    inset: auto;
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
    z-index: 1202;
  }

  body.bp-platform .bp-header-right .bp-mobile-nav-target {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-height: calc(100dvh - 76px);
    padding: 10px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(.985);
  }

  body.bp-mobile-nav-open.bp-platform .bp-header-right .bp-mobile-nav-target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}
