/* Improve touch targets and preserve the native catalog interactions. */
@media (max-width: 767px) {
  :root body :is(button, select, input[type="search"], input[type="text"], input:not([type]), main summary) {
    min-block-size: 44px;
  }

  :root body button {
    min-inline-size: 44px;
  }

  :root body :is(select, input[type="search"], input[type="text"], input:not([type])) {
    max-inline-size: 100%;
    font-size: 16px;
  }

  :root :is(header, nav) a {
    min-inline-size: 44px;
    min-block-size: 44px;
    align-content: center;
  }

  :root :is(header, nav) a:not(:has(> :is(img, svg, div, span, strong, small))),
  :root header :is(.store-link, .header-shop, .pill, .link),
  :root main .brand-links a {
    display: inline-flex;
    align-items: center;
    min-inline-size: 44px;
    min-block-size: 44px;
  }

  :root main summary {
    align-content: center;
  }

  .brand-links {
    row-gap: 6px;
  }
}
@media (max-width: 700px) {
  header .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    gap: 6px 12px;
    padding-block: 8px;
  }
  header .nav > .brand { grid-area: 1 / 1; }
  header .nav > .store-link { grid-area: 1 / 2; white-space: nowrap; }
  header .nav > nav {
    position: static;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  :root header .nav > nav a:first-child { display: none; }
  :root header .nav > nav a:not(:first-child) {
    display: flex;
    justify-content: center;
    min-inline-size: 0;
    padding-inline: 4px;
    text-align: center;
  }
  main :is(.underlink, .table-buy) {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
  }
  .compare-scroll-hint { display: block; margin-block: 0 8px; }
}
@media (min-width: 701px) {
  .compare-scroll-hint { display: none; }
}
