#menu,
#close-menu {
  display: none !important;
}

#menu.menu-is-visible {
  display: grid !important;
}

#close-menu.menu-control-is-visible {
  display: inline-flex !important;
}

@media (max-width: 980px) {
  #menu {
    position: relative;
    align-content: start !important;
    grid-template-rows: none !important;
    grid-template-columns: none !important;
    width: 100%;
    max-width: 96%;
    height: auto !important;
    min-height: 0 !important;
    max-height: 90vh;
    margin-top: -50px !important;
    margin-left: 1%;
    padding: 24px !important;
    padding-bottom: 36px !important;
    overflow: auto;
    z-index: 2 !important;
  }

  #menu.menu-is-visible {
    display: block !important;
  }

  #menu .menu-stage {
    width: 100%;
    padding: 0 !important;
    transition:
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  #menu .menu-stage.stage-out {
    opacity: 0;
    transform: translateX(-14px);
  }

  #menu .menu-stage.stage-in {
    opacity: 1;
    transform: translateX(0);
  }

  #menu .menu-stage > [data-element_type="container"] {
    gap: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .menu-title,
  .menu-subtitle {
    display: block;
    cursor: pointer;
  }

  .menu-title {
    border-bottom: none !important;
  }

  .menu-subtitle {
    width: 100%;
  }

  .menu-title .elementor-icon-box-wrapper,
  .menu-subtitle .elementor-icon-box-wrapper {
    display: flex !important;
    align-items: center;
    width: 100%;
  }

  .menu-title .elementor-icon-box-wrapper {
    justify-content: space-between;
  }

  .mobile-toggle-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    margin-left: auto;
    padding: 8px 6px;
  }

  .menu-arrow {
    width: 20px;
    height: 20px;
    fill: #f5ff29;
    transform: rotate(-90deg);
    transition: transform 0.25s ease;
  }

  .menu-subtitle.is-open .menu-arrow {
    transform: rotate(0deg);
  }

  .menu-container {
    display: none;
  }

  .menu-container.is-open {
    display: block;
    animation: menu-slide-in 0.25s ease forwards;
  }

  #menu .menu-stage h4 {
    margin-top: 10px;
  }

  .menu-external-link-btn {
    display: flex;
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    box-sizing: border-box;
    line-height: 0;
    border: 1px solid transparent !important;
    border-radius: 4px;
    background: transparent !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-external-link-btn:active {
    background: transparent !important;
    border-color: #f5ff29 !important;
  }

  .menu-external-link-btn svg {
    width: 24px;
    height: 24px;
  }
}

@keyframes menu-slide-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-title svg {
  margin-top: -10px;
}

.menu-title {
  margin-top: 10px;
}

.menu-subtitle {
  margin-top: 10px !important;
  padding-bottom: 14px !important;
}

.menu-container .elementor-widget-heading:not(.menu-title-child) h4,
.menu-title-child {
  padding-left: 51px !important;
}

.menu-title .elementor-icon-box-wrapper,
.menu-subtitle .elementor-icon-box-wrapper {
  padding-bottom: 6px !important;
}

.menu-title h2 {
  font-size: 26px !important;
}

.menu-container .menu-subtitle h3,
.menu-subtitle h3 a {
  font-size: 20px !important;
  text-decoration: none !important;
}

.menu-subtitle svg {
  max-height: 20px;
  margin-top: -7px !important;
}

.menu-search-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  border: 2px solid #002554;
  border-radius: 6px;
  background: #fff;
}

.menu-search-bar input[type="search"] {
  flex: 1;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 10px 14px;
  border: none;
  outline: none;
  background: transparent;
  color: #555;
  font-size: 15px;
  font-style: italic;
}

.menu-search-bar input[type="search"]::placeholder {
  color: #aaa;
}

.menu-search-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100% !important;
  margin: 0 !important;
  padding: 10px 14px;
  border: 1px solid #002554;
  border-radius: 0;
  background: #002554;
  cursor: pointer;
}

.menu-search-bar button:hover {
  border-color: #000;
  background: #000;
}

.menu-search-bar button svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
