.nyan-mobile-header {
  display: none;
}

@media only screen and (max-width: 600px) {
  .nyan-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000000;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 60px;
    padding: 4px 8px;
    background: #fffcf7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  .admin-bar .nyan-mobile-header {
    top: 46px;
  }

  .site-header {
    display: none !important;
  }

  .nyan-mobile-header__logo {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    align-self: stretch;
    min-width: 0;
    padding-right: 4px;
    margin-left: 7px;
  }

  .nyan-mobile-header__logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    object-position: left center;
  }

  .nyan-mobile-header__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 60px;
    gap: 0px;
    margin-right: 5px;
  }

  .nyan-mobile-header__button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 60px;
    margin: 0;
    padding: 5px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    appearance: none;
  }

  .nyan-mobile-header__button:hover,
  .nyan-mobile-header__button:active,
  .nyan-mobile-header__button:focus {
    background: rgba(96, 151, 79, 0.1) !important;
  }

  .nyan-mobile-header__button:focus-visible {
    outline: 2px solid #60974f;
    outline-offset: -2px;
  }

  .nyan-mobile-header__button img {
    display: block;
    /*width: 38px;
    max-width: 100%;
    height: 38px;*/
    object-fit: contain;
  }

  .nyan-mobile-header .mobile-hamburger {
    position: static;
    z-index: auto;
    width: 44px;
    margin: 0;
    text-align: initial;
    margin-top: 4px;
  }

  .nyan-mobile-header button#mobileMenuButton {
    height: 52px;
    background: transparent !important;
    padding-left: 8px;
  }

  .canvas {
    top: 60px;
    height: calc(100% - 60px);
  }

  .admin-bar .canvas {
    top: 106px;
    height: calc(100% - 106px);
  }

  .search-overlay,
  .search-overlay.active {
    top: 60px !important;
    right: 0;
    left: 0;
    box-sizing: border-box;
    width: 100% !important;
    margin: 0 !important;
  }

  .admin-bar .search-overlay,
  .admin-bar .search-overlay.active {
    top: 106px !important;
  }

  .search-overlay.active {
    animation: nyan-mobile-search-in 0.22s ease-out both;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  }

  .search-overlay-content {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    padding: 10px 12px;
  }

  .search-input-wrapper {
    gap: 6px;
    box-sizing: border-box;
    padding-right: 42px !important;
  }

  .search-field {
    min-width: 0;
  }

  .search-submit {
    flex: 0 0 64px;
    width: 64px !important;
  }

  .search-close-button {
    top: 50% !important;
    right: 0 !important;
    box-sizing: border-box;
    width: 38px;
    padding: 4px 8px !important;
  }
}

@keyframes nyan-mobile-search-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-overlay.active {
    animation: none;
  }
}
