/*
 * Mobile menu (MeanMenu, under 992px): base styles the plugin needs, in the theme colours.
 * The template's own tweaks are in assets/pages-css/navbar.css.
 */

@media only screen and (max-width: 991px) {
  .mobile-responsive-nav,
  .mobile-responsive-nav .mobile-responsive-menu {
    position: relative;
  }

  /* The bar MeanMenu adds spans the whole header row, so the button can centre in it */
  .mean-container .mean-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 0;
    padding: 0;
    background: transparent;
    z-index: 999;
  }

  /* Hamburger button */
  .mobile-responsive-nav .mean-container a.meanmenu-reveal {
    position: absolute;
    top: 50%;
    right: 0 !important;
    left: auto !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0 10px;
    overflow: hidden;
    font-size: 0;
    text-indent: -9999em;
    cursor: pointer;
    background-color: var(--main-color);
    border-radius: 10px;
  }

  .mobile-responsive-nav .mean-container a.meanmenu-reveal span {
    position: static;
    top: 0;
    display: block;
    width: 100%;
    height: 3px;
    margin: 0;
    background: var(--white-color);
    border-radius: 2px;
  }

  .mobile-responsive-nav .mean-container a.meanmenu-reveal.meanclose {
    align-items: center;
    padding: 0;
    text-indent: 0;
  }

  .mobile-responsive-nav .mean-container a.meanmenu-reveal i {
    font-size: 24px;
    line-height: 1;
    color: var(--white-color);
  }

  /* Dropdown panel */
  .mean-container .mean-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 18px;
    background: var(--white-color);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 20px 40px rgba(1, 41, 90, 0.18);
    overflow: hidden;
  }

  .mean-container .mean-nav ul {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mean-container .mean-nav ul li {
    position: relative;
    float: none;
    width: 100%;
  }

  .mean-container .mean-nav ul li a {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    color: var(--heading-color);
    border-top: 1px solid #f0ebe5;
    text-decoration: none;
  }

  .mean-container .mean-nav ul li:first-child > a {
    border-top: 0;
  }

  .mean-container .mean-nav ul li a:hover,
  .mean-container .mean-nav ul li a.active {
    color: var(--main-color);
  }

  .mean-container .mean-nav ul li li a {
    padding-left: 36px;
    font-weight: 500;
    background: #fbf8f5;
  }

  /* +/- toggle for sub-menus */
  .mean-container .mean-nav ul li a.mean-expand {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 52px;
    height: 51px;
    margin: 0;
    padding: 0 !important;
    font-size: 20px;
    line-height: 51px;
    text-align: center;
    border-left: 1px solid #f0ebe5;
    border-top: 0;
  }

  .mean-container .mean-nav .navbar-nav {
    max-height: 70vh;
    overflow-y: auto;
  }

  .mean-container .mean-push {
    float: left;
    clear: both;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
  }

  .mean-remove {
    display: none !important;
  }

  /* Search button sits to the left of the hamburger */
  .others-options-for-mobile-devices {
    top: 50% !important;
    right: 56px !important;
    transform: translateY(-50%);
  }

  .others-options-for-mobile-devices ul li .search-btn i {
    top: 0 !important;
  }
}
