/* Waterlily centered mobile logo: apply after waterlily-mobile-brand-compact.css.
   Two independent navigation controls remain intact; desktop is unchanged. */
@media (max-width: 991px) {
  html body header.wl36-header .wl36-header-row {
    display:grid !important;
    grid-template-columns: minmax(52px,1fr) auto minmax(104px,1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 8px !important; row-gap: 8px !important;
    align-items:center !important;
    padding: 10px 12px !important;
    position:relative !important;
  }
  /* The wide brand is centered within the whole header, not just the space
     left between the menu buttons. */
  html body header.wl36-header a.wl36-brand {
    grid-column:1 / -1 !important; grid-row:1 !important;
    justify-self:center !important; align-self:center !important;
    display:flex !important; justify-content:center !important;
    align-items:center !important; text-align:center !important;
    margin:0 auto !important; padding:0 !important;
    width:min(220px, 76vw) !important;
    max-width:min(220px, 76vw) !important;
  }
  html body header.wl36-header a.wl36-brand img {
    display:block !important; width:100% !important; height:auto !important;
    max-height:70px !important; max-width:100% !important;
    object-fit:contain !important; object-position:center center !important;
    margin:0 auto !important;
  }
  /* Show Website toggle at left, wishlist/bag in center, account at right.
     display:contents allows existing buttons to participate in the grid. */
  html body header.wl36-header .wl-mobile-dual-toggles {
    display:contents !important;
  }
  html body header.wl36-header #wl-mobile-site-toggle {
    grid-column:1 !important; grid-row:2 !important;
    justify-self:start !important;
    width:48px !important; min-width:48px !important; min-height:44px !important;
    padding:7px !important;
  }
  html body header.wl36-header .wlb-hdr-actions {
    grid-column:2 !important; grid-row:2 !important;
    justify-self:center !important; align-self:center !important;
    display:flex !important; width:auto !important;
    margin:0 !important; gap:2px !important;
  }
  html body header.wl36-header #wl-mobile-account-toggle,
  html body header.wl36-header .wl-mobile-signin-toggle {
    grid-column:3 !important; grid-row:2 !important;
    justify-self:end !important; align-self:center !important;
    min-width:0 !important; max-width:100% !important;
    width:auto !important; min-height:44px !important;
    padding:8px 9px !important;
    white-space:nowrap !important;
    font-size:11px !important; gap:4px !important;
  }
  /* User explicitly requested no search on mobile and tablet. */
  html body header.wl36-header #wl-mobile-search-toggle,
  html body header.wl36-header .wl-mobile-search-toggle,
  html body header.wl36-header #wl36-mobile-search-panel,
  html body header.wl36-header .wl-mobile-search-panel,
  html body header.wl36-header form.wl36-search {
    display:none !important;
  }
}
@media (max-width: 380px) {
  html body header.wl36-header .wl36-header-row {
    grid-template-columns:minmax(45px,1fr) auto minmax(99px,1fr) !important;
    column-gap:5px !important; padding:8px 9px !important;
  }
  html body header.wl36-header a.wl36-brand {
    width:min(200px, 75vw) !important; max-width:min(200px, 75vw) !important;
  }
  html body header.wl36-header .wlb-hdr-actions > a {
    min-width:32px !important; padding:4px !important;
  }
  html body header.wl36-header #wl-mobile-account-toggle,
  html body header.wl36-header .wl-mobile-signin-toggle {
    padding:7px 6px !important; font-size:10px !important;
  }
}
@media (min-width: 992px) {
  /* Do not affect desktop menu/search/grid. */
}
