.customer-navigation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
  width: min(1120px, calc(100% - 2rem));
  box-sizing: border-box;
  margin: .5rem auto 1rem;
}

.customer-navigation a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  padding: .45rem;
  border: 1px solid #674357;
  border-radius: .65rem;
  background: #231723;
  color: #f2e0ed;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  text-align: center;
}

.customer-navigation a[aria-current="page"] {
  color: #18302b;
  background: #b3f3dd;
  border-color: #caffef;
}

.customer-navigation a:hover, .customer-navigation a:focus-visible {
  border-color: #a8f5df;
  outline: 2px solid #a8f5df;
  outline-offset: 1px;
}

@media (max-width: 500px) {
  .customer-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
  .customer-navigation a { font-size: .85rem; }
}

.customer-navigation--main {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.skip-store-content {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  border-radius: .65rem;
  background: #b3f3dd;
  color: #18302b;
  font-weight: 700;
  translate: 0 calc(-100% - 1rem);
}

.skip-store-content:focus {
  translate: none;
  outline: 2px solid #a8f5df;
  outline-offset: 3px;
}

/* Recovery patterns adapted from Lucian Labs #089 and #440 (MIT).
   https://lucianlabs.dev/en/uxui-prompt/introducing/ */
.storefront-recovery {
  grid-column: 1 / -1;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid #6984a758;
  border-radius: .85rem;
  background: #19192b;
  color: #f2e0ed;
}

.storefront-recovery[hidden] { display: none; }
.storefront-recovery :is(h1, h2, h3) { margin: 0; }

.storefront-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.storefront-recovery-actions .button {
  min-height: 44px;
  justify-content: center;
  text-align: center;
}

@media (max-width: 500px) {
  .customer-navigation--main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-navigation--main a:last-child { grid-column: 1 / -1; }
  .storefront-recovery-actions .button { flex: 1 1 12rem; }
}
