/* One shared footer, independent of the selected theme's former footer layout. */
#store-footer {
  display: block;
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
#store-footer .store-footer-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  min-height: 49px;
  padding: 8px clamp(20px, 2.4vw, 36px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
/* Auto margins center the entire group and collapse when the row needs to scroll. */
#store-footer .store-footer-row > :first-child { margin-inline-start: auto; }
#store-footer .store-footer-row > :last-child { margin-inline-end: auto; }
.platform-credit .footer-copyright { min-width: 0; overflow-wrap: anywhere; }
#store-footer .footer-pages { display: flex; flex: 0 0 auto; align-items: center; gap: 22px; }
#store-footer .footer-pages :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}
#store-footer .footer-pages button { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; font: inherit; cursor: pointer; }
#store-footer .footer-pages :is(a, button):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
#store-footer .footer-pages :is(a, button):focus-visible { outline: 2px solid var(--action, var(--ink)); outline-offset: 3px; border-radius: 3px; }
#store-footer .platform-credit,
.mobile-information .platform-credit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}
#store-footer .platform-credit { min-height: 49px; line-height: 20px; }
.platform-credit-divider { width: 1px; height: 16px; flex: 0 0 1px; background: var(--line); }
.platform-credit-label { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 420px) {
  .mobile-information .platform-credit { flex-wrap: wrap; gap: 6px 12px; }
  .mobile-information .platform-credit .footer-copyright { flex-basis: 100%; }
  .mobile-information .platform-credit-divider { display: none; }
}
.platform-credit a { display: inline-block; color: var(--ink); font-weight: 600; text-decoration: none; }
.platform-credit a:hover { text-decoration: none; }
.platform-credit a:focus-visible { outline: 2px solid var(--action, var(--ink)); outline-offset: 4px; border-radius: 2px; }
.mobile-information .platform-credit { margin-top: 18px; }
@media (max-width: 760px) {
  #store-footer { display: none; }
}

/* Social profiles belong with the information links in the store menu. */
.social-profiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 180px;
  margin: 0 0 6px;
  padding: 0;
}
.social-profiles .social-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}
.social-profiles .social-profile-link svg { width: 18px; height: 18px; flex: none; }
.social-profiles .social-profile-link:hover { color: var(--ink); border-color: var(--muted); }
.social-profiles .social-profile-link:focus-visible { outline: 2px solid var(--action, var(--ink)); outline-offset: 3px; }
.mobile-information .social-profiles { max-width: 200px; gap: 8px; margin: 0 0 12px; }
.mobile-information .social-profile-link { min-height: 44px; }
