/* Mobile header: keep 4 equal icon cells; search panel full-width below; hero text not clipped */

@media only screen and (max-width: 770px) {
  html:root body #header .page-header-container {
    display: block !important;
    overflow: visible !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html:root body #header .skip-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 50px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border-top: 1px solid #e5e5e5 !important;
    border-bottom: 1px solid #e5e5e5 !important;
  }

  /* Beat the desktop account-button rule that also matches on mobile */
  html:root body #header .skip-links > .skip-link,
  html:root body #header .skip-links .skip-link.skip-nav,
  html:root body #header .skip-links .skip-link.skip-search,
  html:root body #header .skip-links .skip-link.skip-account,
  html:root body #header .skip-links .skip-link.skip-account:hover,
  html:root body #header .skip-account.skip-active,
  html:root body #header .account-cart-wrapper > .skip-link,
  html:root body #header .header-minicart .skip-cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-right: 1px solid #e5e5e5 !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    float: none !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    color: #111 !important;
  }

  html:root body #header .skip-links > .skip-link.skip-nav,
  html:root body #header .skip-links > .skip-link.skip-search {
    flex: 1 1 25% !important;
    width: 25% !important;
    max-width: 25% !important;
  }

  html:root body #header .account-cart-wrapper {
    display: flex !important;
    flex: 2 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-sizing: border-box !important;
  }

  html:root body #header .account-cart-wrapper > .skip-link,
  html:root body #header .header-minicart,
  html:root body #header .header-minicart .skip-cart {
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    height: 50px !important;
  }

  html:root body #header .header-minicart .skip-cart {
    width: 100% !important;
    max-width: 100% !important;
    border-right: 0 !important;
  }

  html:root body #header #header-search,
  html:root body #header #header-search.skip-content,
  html:root body #header #header-search:not(.skip-active) {
    display: none !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

  html:root body #header #header-search.skip-active,
  html:root body #header #header-search.skip-content.skip-active {
    display: block !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
    padding: 12px 16px !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e5e5 !important;
  }

  html:root body #header #header-search.skip-active form,
  html:root body #header #header-search.skip-active .input-box {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html:root body .lux-hero,
  html:root body .lux-hero.lux-bleed {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  html:root body .lux-hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 32px 16px !important;
  }

  html:root body .lux-hero-content h1,
  html:root body .lux-hero-content p {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  html:root body .lux-hero-content h1 {
    font-size: 1.75rem !important;
  }

  html:root body .lux-hero-actions,
  html:root body .lux-hero-actions .lux-btn {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
