@media (max-width: 991px) {
  .mobile-search-nav[hidden],
  .mobile-search-nav-options[hidden] {
    display: none !important;
  }

  .mobile-search-nav {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    flex-direction: column;
    background: #f4f5f7;
    color: #17113a;
  }

  .mobile-search-nav-header {
    display: flex;
    flex: 0 0 78px;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
  }

  .mobile-search-nav-header h2 {
    margin: 0;
    color: #17113a;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .mobile-search-nav-close {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    background: #fff;
    color: #17113a;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-search-nav-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 6px 20px 0;
    overscroll-behavior: contain;
  }

  .mobile-search-nav-form {
    display: flex;
    min-height: 100%;
    flex-direction: column;
  }

  .mobile-search-nav-field {
    position: relative;
    margin-bottom: 28px;
  }

  .mobile-search-nav-field > label {
    display: block;
    margin-bottom: 10px;
    color: #8a8793;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 18px;
    text-transform: uppercase;
  }

  .mobile-search-nav-control {
    position: relative;
  }

  .mobile-search-nav-control > svg {
    position: absolute;
    top: 17px;
    left: 16px;
    z-index: 1;
    width: 20px;
    height: 20px;
    fill: #17113a;
    pointer-events: none;
  }

  .mobile-search-nav-control > input {
    display: block;
    width: 100%;
    height: 54px;
    box-sizing: border-box;
    padding: 0 16px 0 48px;
    border: 1px solid #d9dce5;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: #17113a;
    font-size: 1rem;
    font-weight: 500;
    -webkit-appearance: none;
    appearance: none;
  }

  .mobile-search-nav-control > input::placeholder {
    color: #8a8793;
    opacity: 1;
  }

  .mobile-search-nav-control > input:focus {
    border-color: #17113a;
    box-shadow: 0 0 0 1px #17113a;
  }

  .mobile-search-nav-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 10;
    max-height: min(42vh, 320px);
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    border: 1px solid #17113a;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 17, 58, 0.14);
  }

  .mobile-search-nav-options li {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-search-nav-options button,
  .mobile-search-nav-options .mobile-search-nav-note {
    display: block;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #17113a;
    font-size: 0.94rem;
    line-height: 1.35;
    text-align: left;
  }

  .mobile-search-nav-options button {
    cursor: pointer;
  }

  .mobile-search-nav-options button:hover,
  .mobile-search-nav-options button:focus,
  .mobile-search-nav-options button[aria-selected="true"] {
    outline: none;
    background: #fff0dc;
  }

  .mobile-search-nav-options .mobile-search-nav-note {
    color: #746f7c;
    font-size: 0.85rem;
    font-weight: 600;
  }

  .mobile-search-nav-options .mobile-search-nav-error {
    color: #cc2e2e;
  }

  .mobile-search-nav-action {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding: 16px 0 max(20px, env(safe-area-inset-bottom));
    background: #f4f5f7;
  }

  .mobile-search-nav-action button {
    display: flex;
    width: 100%;
    height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #ff7414;
    border-radius: 12px;
    background: #fff;
    color: #f2670c;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-search-nav-action button:hover,
  .mobile-search-nav-action button:focus-visible {
    background: #fff0dc;
  }
}
