﻿@media (max-width: 900px) {

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    cursor: pointer;
  }

  .menu-icon {
    position: relative;
    display: block;
    width: 26px;
    height: 22px;
    flex: 0 0 26px;
  }

  .menu-icon > span {
    position: absolute;
    left: 0;
    display: block;
    width: 26px;
    height: 2.5px;
    border-radius: 999px;
    background: currentColor;

    transform-origin: center center;
    transition:
      top 0.36s cubic-bezier(.22,1,.36,1),
      transform 0.36s cubic-bezier(.22,1,.36,1),
      opacity 0.18s ease;

    will-change: transform;
  }

  .menu-icon > span:nth-child(1) {
    top: 3px;
  }

  .menu-icon > span:nth-child(2) {
    top: 10px;
  }

  .menu-icon > span:nth-child(3) {
    top: 17px;
  }

  .menu-toggle.is-open .menu-icon > span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
  }

  .menu-toggle.is-open .menu-icon > span:nth-child(2) {
    opacity: 0;
    transform: scaleX(.4);
  }

  .menu-toggle.is-open .menu-icon > span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
  }

  .menu-toggle:active {
    transform: scale(.96);
  }

  @media (prefers-reduced-motion: reduce) {
    .menu-icon > span,
    .menu-toggle {
      transition: none !important;
    }
  }
}
