@layer components {
  /* Plain pages: errors */
  .plain-page {
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    max-inline-size: 36rem;
    margin-inline: auto;
    padding: var(--s-6) var(--gutter);
  }
  .plain-page__brand { font-family: var(--font-display); font-size: var(--text-xl); }
  .plain-page__brand img { display: block; block-size: 1.5em; inline-size: auto; max-inline-size: 16rem; object-fit: contain; }

  /* Buyer: phone first, with the shop always named and the main actions in thumb reach */
  .buyer-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
    padding: var(--s-3) var(--gutter);
    background: var(--surface);
    border-block-end: 1px solid var(--line);
  }
  .buyer-header__brand { font-family: var(--font-display); font-size: var(--text-xl); }
  .buyer-header__shop { font-weight: var(--weight-bold); }

  .buyer-main {
    /*max-inline-size: var(--content-max);*/
    margin-inline: auto;
    padding: var(--s-4) var(--gutter) calc(var(--nav-height) + var(--safe-bottom) + var(--s-5));
  }

  /* One line on the member host, only in a normal browser. The installed site and the store apps hide it. */
  .member-browser {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-2) var(--s-4);
    margin-block-start: var(--s-6);
    color: var(--ink-2);
    font-size: var(--text-sm);
  }
  .member-browser[hidden],
  html[data-installed="true"] .member-browser { display: none; }
  @media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
    .member-browser { display: none; }
  }
  .member-browser a { color: inherit; }

  .bottom-nav {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-block-size: calc(var(--nav-height) + var(--safe-bottom));
    padding-block-end: var(--safe-bottom);
    background: var(--surface);
    border-block-start: 1px solid var(--line);
  }
  .bottom-nav__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-block-size: var(--tap);
    color: var(--ink-2);
    font-size: var(--text-sm);
    text-decoration: none;
  }
  .bottom-nav__item[aria-current="page"] { color: var(--accent); font-weight: var(--weight-bold); }
  .bottom-nav__item[aria-disabled="true"] { color: var(--ink-3); }
}
