/* The header on phones (below 760px): wordmark, "Tap in" and Menu in one row, the links
   in a panel that Menu opens (mobile.js). Shared by the homepage (loaded straight after
   town.css, where it used to be, so the order of the rules is unchanged) and /delivery. */

/* The header on phones (as before the town: wordmark, "Tap in" and Menu in one row) */
@media (max-width: 759px) {
  .site-header__inner {
    position: relative;
    gap: 0 16px;
    padding-top: 8px;
    padding-bottom: 4px;
  }

  .site-header .wordmark {
    gap: 7px;
  }

  .site-header .wordmark__tap {
    font-size: 36px;
  }

  .site-header .wordmark__bar {
    height: 25px;
  }

  .site-header .wordmark__retail {
    font-size: 16px;
  }

  .site-nav {
    width: 100%;
  }

  .site-header .btn--nav {
    position: absolute;
    right: var(--gutter);
    top: 10px;
    min-height: 40px;
    padding: 0 16px;
    font-size: 15px;
  }

  .js .site-header__inner {
    flex-wrap: nowrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .js .site-nav {
    width: auto;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .js .site-header .btn--nav {
    position: static;
    min-height: 44px;
    padding: 0 14px;
    white-space: nowrap;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 1.5px solid var(--navy);
    white-space: nowrap;
    border-radius: 6px;
    background: var(--white);
    color: var(--navy);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }

  .js .site-nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    padding: 4px var(--gutter) 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 18px 30px rgba(20, 33, 61, 0.12);
  }

  .js .site-nav__links.is-open {
    display: flex;
  }

  .js .site-nav__links .site-nav__link {
    min-height: 52px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .js .site-nav__links .site-nav__link:last-child {
    border-bottom: 0;
  }

  .js .site-header .btn--nav {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .js .site-nav .menu-btn {
    padding: 0 10px;
  }

  .js .site-header .btn--nav {
    padding: 0 12px;
  }
}
