.store-header > .store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: .45rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--forest, #0b63d8);
  color: white;
  font: 700 .94rem/1.2 system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.store-button::before {
  content: "";
  width: 1.02rem;
  height: 1.02rem;
  background: currentColor;
  -webkit-mask: url("store-apple.svg") center / contain no-repeat;
  mask: url("store-apple.svg") center / contain no-repeat;
}

a.store-button:hover { filter: brightness(.88); }
a.store-button:focus-visible { outline: 3px solid currentColor; outline-offset: -5px; }
.store-header > .store-button:disabled {
  background: #e2e5e5;
  color: #58615f;
  cursor: default;
  opacity: 1;
}

/* Keep the brand and download on the first row when navigation needs its own line. */
@media (max-width: 820px) {
  header .store-header:not(.inline-store-header) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .3rem .7rem;
    padding-block: .55rem;
  }
  .store-header > :first-child { min-width: 0; max-width: 100%; }
  .store-header:not(.inline-store-header) > .store-button { grid-area: 1 / 2; }
  .store-header:not(.inline-store-header) > :nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-inline: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .store-header > .store-button { padding-inline: 0; }
  .store-button > span { display: none; }
}
