/* Phone layout for the storefront.
   Loaded after the built stylesheet so these win without a rebuild.
   The header is absolutely positioned over the hero; on a narrow screen that
   header is taller than the hero's top padding, and the wordmark lands on
   the greeting. This puts the bar back in its own rows and gives the hero
   enough air to start below it. */

@media (max-width: 860px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "phones phones phones"
      "brand access menu";
    align-items: center;
    column-gap: 4px;
    row-gap: 0;
    padding: 0 8px 8px;
  }

  .site-header > .site-topbar,
  .site-header > .site-topbar > .container,
  .site-header > .container {
    display: contents;
  }

  .topbar-contact {
    grid-area: phones;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    min-height: 40px;
    padding: 6px 8px 0;
  }

  .site-topbar {
    font-size: 12.5px;
    border-bottom: 0;
  }

  .site-topbar a {
    font-size: 12.5px;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
    padding-left: 8px;
  }

  .brand img {
    height: 44px;
    max-height: 44px;
    width: auto;
  }

  .a11y-widget {
    grid-area: access;
    margin: 0;
    justify-self: end;
  }

  .nav-button {
    grid-area: menu;
    margin: 0;
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
  }

  .a11y-fab-header {
    min-width: 44px;
    min-height: 44px;
  }

  .site-header .nav-toggle:checked ~ .site-nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    grid-column: 1 / -1;
    width: auto;
    margin: 4px 0 0;
    border-radius: 12px;
  }

  .hero {
    padding-top: 116px;
  }

  .hero-search input,
  .hero-search select,
  .toolbar input,
  .toolbar select,
  .quote-box input,
  .lookup-card input,
  .chat-input-row input,
  .checkout-form input,
  .checkout-form select,
  .checkout-form textarea {
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  .svc-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    gap: 0;
  }

  .svc-tabs label {
    text-align: center;
    padding: 8px 2px;
    font-size: 12.5px;
  }

  .hero-search {
    padding: 8px 12px 14px;
  }

  .section-head {
    align-items: flex-start;
    gap: 10px;
  }

  .section-head h2 {
    font-size: 1.25rem;
  }

  .section-head a {
    white-space: normal;
    text-align: right;
  }

  .footer-legal {
    gap: 8px 16px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 420px) {
  .svc-panel .field,
  .svc-panel .field-wide,
  .svc-panel .field-narrow {
    flex: 1 1 100%;
    min-width: 0;
  }

  .hero-search button {
    width: 100%;
  }

  .occ-panel {
    left: 0;
    right: 0;
    min-width: 0;
  }
}
