/* PRINTO-MNAV-V5 (2026-11-19) - mobile header bar.
   Scoped to <=991px so the desktop header is untouched. Loaded after
   layout/header.css, which floats .skip-link cells at 20% width inside a
   #00bbd3 bar; everything here is an override of that.
   Greens/greys reuse tokens already in the site: #1f9d55 (landing green). */

@media only screen and (max-width: 991px) {

  .po-mnav-host { background: #00bbd3; padding: 9px 12px 0; }

  .po-mnav { display: flex; align-items: center; gap: 8px; float: none; clear: none; }
  .po-mnav:after { display: none; }

  /* undo the old floated 20%/25% cells */
  .po-mnav .skip-link {
    float: none; width: auto; height: auto; border: 0;
    line-height: 1.1; text-align: center; padding: 0;
  }
  .po-mnav .skip-link.skip-nav { border-left: 0; }
  .po-mnav .skip-link:hover, .po-mnav .skip-link.skip-active { background: none; }

  /* ---- Menu: round white button, green bars, label underneath ---- */
  .po-mnav__menu {
    flex: 0 0 auto; display: flex; flex-direction: column;
    align-items: center; gap: 4px; text-decoration: none;
  }
  .po-mnav__burger {
    width: 40px; height: 40px; border-radius: 50%; background: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.18);
  }
  .po-mnav__burger i { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: #1f9d55; }
  .po-mnav__menu .label {
    display: block !important; font-size: 11px; line-height: 1;
    color: #fff; font-weight: 600; letter-spacing: .01em;
  }
  .po-mnav__menu.skip-active .po-mnav__burger { background: #eafaf0; }

  /* ---- Search: fills the bar, solid white, icon inside ----
     The field is already styled by the site's own "search glass" rules, which
     set the input transparent, pin the width and lay the magnifier out as a
     static sibling. Rather than re-implement that, this only corrects what
     breaks inside a 375px bar: let it fill the row, make the pill solid so it
     reads against the cyan, and stop the placeholder clipping. The !important
     flags are scoped to .po-mnav__search, so nothing outside this bar moves. */
  /* a theme rule puts 10px of padding here, which costs the field 20px and
     clips the placeholder on a 375px screen. */
  .po-mnav__search { flex: 1 1 auto; min-width: 0; display: block; padding: 0 !important; margin: 0 !important; }
  /* the outer searchautocomplete form carries its own glass background,
     which halos the white pill on the cyan bar - flatten it here only. */
  .po-mnav__search form.searchautocomplete,
  .po-mnav__search > form {
    background: transparent !important; border: 0 !important;
    box-shadow: none !important; padding: 0 !important; margin: 0 !important;
    border-radius: 22px;
    width: 100% !important; max-width: none !important; float: none !important;
  }
  .po-mnav__search .form-search {
    position: relative; margin: 0;
    width: 100% !important; max-width: none !important;
    background: #fff !important; border-radius: 22px;
    display: flex; align-items: center;
  }
  .po-mnav__search label { display: none; }
  .po-mnav__search input#search,
  .po-mnav__search .input-text {
    flex: 1 1 auto; min-width: 0;
    width: auto !important; height: 38px;
    border: 0 !important; background: transparent !important;
    padding: 0 4px 0 12px !important; margin: 0;
    font-size: 14px !important; color: #333; box-sizing: border-box;
  }
  .po-mnav__search input#search::-webkit-input-placeholder { color: #7b848f; }
  .po-mnav__search input#search::placeholder { color: #7b848f; }
  .po-mnav__search .search-button { flex: 0 0 auto; margin-right: 3px; }
  /* the autocomplete panel must hang off the field */
  .po-mnav__search .search-autocomplete { top: 46px !important; left: 0; right: 0; width: auto; }

  /* ---- account + cart, compact ---- */
  .po-mnav__icon, .po-mnav .po-mnav__cart { flex: 0 0 auto; }
  .po-mnav__icon .icon { font-size: 24px; color: #fff; line-height: 40px; }
  .po-mnav__icon .label { display: none !important; }

  /* ---- most-ordered chips, no label ---- */
  .po-mchips {
    display: flex; gap: 7px; align-items: center;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 10px 0 11px; margin: 0;
    scrollbar-width: none;
  }
  .po-mchips::-webkit-scrollbar { display: none; }
  .po-mchips a {
    flex: 0 0 auto; display: inline-block;
    font-size: 12.5px; line-height: 1; font-weight: 500;
    color: #15181d; background: #fff;
    border-radius: 18px; padding: 9px 14px;
    text-decoration: none; white-space: nowrap;
  }
  .po-mchips a:hover, .po-mchips a:active { background: #fec006; color: #16181d; }
}

/* the bar is mobile-only; header.css already hides .skip-container.mobile
   above 991px, this just makes sure the chip row goes with it. */
@media only screen and (min-width: 992px) {
  .po-mnav-host, .po-mchips { display: none !important; }
}
