.store-footer {
  max-width: 1600px;
  margin: 64px auto 0;
  padding: 0;
  border-block-start: 1px solid #ccc;
  background: transparent;
  color: #000;
  font-size: 12px;
  line-height: 1.5;
}

.store-footer h2 {
  margin: 0 0 12px;
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.store-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-footer p {
  margin: 0;
}

.store-footer a {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}

.store-footer a:focus-visible {
  text-decoration: underline;
}

.store-footer :is(nav, .footer-legal) a {
  color: #242424;
}

.store-footer .footer-apps a {
  color: #000;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(230px, 1fr) minmax(240px, .95fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  padding-block-start: 34px;
  padding-inline: 40px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  overflow-wrap: anywhere;
}

.footer-group a {
  display: inline-block;
  padding-block: 5px;
}

.footer-mobile-links {
  display: none;
}

.footer-signup {
  justify-self: center;
}

.footer-extras {
  justify-self: end;
}

.footer-apps,
.footer-social {
  display: flex;
  align-items: center;
}

.footer-apps {
  margin-block-end: 22px;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-apps img {
  display: block;
  width: auto;
  height: 35px;
}

.footer-signup-button {
  min-inline-size: 144px;
  min-height: 40px;
  margin-block-start: 12px;
  padding-inline: 16px;
  border: 1px solid #7a7b7d;
  border-radius: 999px;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.footer-social {
  gap: 10px;
}

.footer-social-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 22px;
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-bottom {
  margin: 28px 40px 0;
  padding-block: 16px 30px;
  border-block-start: 1px solid #dedede;
  text-align: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px 14px;
}

.store-footer .footer-copyright {
  max-inline-size: 78ch;
  margin-block-start: 6px;
  margin-inline: auto;
  color: #575757;
}

.footer-payment-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  margin-block-start: 12px;
}

.footer-payment-mark {
  width: 132px;
  height: auto;
  aspect-ratio: 192 / 13;
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-payments svg {
  display: block;
  width: 30px;
  height: 20px;
}

.footer-payments li:first-child svg {
  width: 34px;
}

.footer-payments li:nth-child(3) svg {
  width: 17px;
  height: 17px;
}

.footer-payments li:nth-child(5) {
  padding-inline-start: 9px;
  border-inline-start: 1px solid #ddd;
}

@media (min-width: 1024px) {
  .footer-bottom {
    display: grid;
    grid-template: "legal payments" auto "copyright payments" auto / minmax(0, 1fr) auto;
    column-gap: 32px;
    text-align: start;
  }

  .footer-bottom .footer-legal {
    grid-area: legal;
    justify-content: flex-start;
  }

  .store-footer .footer-copyright {
    grid-area: copyright;
    max-inline-size: none;
    margin-inline: 0;
  }

  .footer-bottom .footer-payment-row {
    grid-area: payments;
    align-self: center;
    margin-block-start: 0;
  }
}

html:has(.footer-newsletter[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.footer-newsletter {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 44px 64px 64px;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #242424;
}

.footer-newsletter.is-font-fallback {
  font-family: Arial, sans-serif;
}

.footer-newsletter::backdrop {
  background: rgb(0 0 0 / 50%);
}

@media (prefers-reduced-motion: no-preference) {
  .footer-newsletter[open] {
    animation: footer-newsletter-fade 200ms ease;
  }

  .footer-newsletter[open]::backdrop {
    animation: footer-newsletter-fade 200ms ease;
  }
}

@keyframes footer-newsletter-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.footer-newsletter-close {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
}

.footer-newsletter-close svg {
  width: 20px;
  height: 20px;
}

.footer-newsletter-brand {
  display: block;
  width: 208px;
  height: 44px;
  margin: 0 auto 31px;
  object-fit: contain;
}

.footer-newsletter h2 {
  margin: 0 0 30px;
  color: inherit;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}

.footer-newsletter-email {
  position: relative;
  display: block;
  margin: 0;
}

.footer-newsletter-email input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 20px 12px 4px;
  border: 1px solid #838383;
  border-radius: 4px;
  color: inherit;
  font: inherit;
  font-size: 14px;
}

.footer-newsletter-email-caption {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 12px;
  translate: 0 -50%;
  color: #555f6d;
  font-size: 14px;
  line-height: 1.4;
  pointer-events: none;
}

.footer-newsletter-email input:is(:focus, :not(:placeholder-shown)) + .footer-newsletter-email-caption {
  inset-block-start: 5px;
  translate: none;
  font-size: 11px;
}

.footer-newsletter-consent,
.footer-newsletter-status {
  margin: 15px 0 0;
  color: #555f6d;
  font-size: 12px;
  line-height: 1.5;
}

.footer-newsletter-consent a {
  color: #115ccb;
  text-decoration: underline;
}

.footer-newsletter-submit {
  width: 100%;
  min-height: 48px;
  margin-block-start: 16px;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.footer-newsletter-submit:disabled {
  opacity: .6;
  cursor: wait;
}

.footer-newsletter-status.is-error {
  color: #ae152f;
}

@media (hover: hover) {
  .store-footer :is(nav, .footer-apps, .footer-legal) a:hover {
    opacity: .75;
    text-decoration: underline;
  }

  .footer-signup-button:hover {
    opacity: .75;
    border-color: #000;
  }

  .footer-newsletter-consent a:hover {
    opacity: .75;
  }

  .footer-newsletter-submit:enabled:hover {
    background-image: linear-gradient(rgb(255 255 255 / 10%), rgb(255 255 255 / 10%));
  }
}

@media (max-width: 1023px) {
  .footer-main {
    display: block;
    padding-block-start: 28px;
    text-align: center;
  }

  .footer-groups,
  .footer-app-title,
  .footer-signup {
    display: none;
  }

  .footer-mobile-links {
    display: block;
  }

  .footer-mobile-links ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-mobile-links a {
    display: inline-block;
    padding: 5px 6px;
  }

  .footer-extras {
    justify-self: auto;
  }

  .footer-apps,
  .footer-social {
    justify-content: center;
  }

  .footer-apps {
    margin-block: 22px 24px;
    gap: 8px;
  }

  .footer-newsletter {
    padding: 40px 24px;
  }

  .footer-newsletter h2 {
    font-size: 28px;
  }
}

@media (max-width: 360px) {
  .footer-main {
    padding-inline: 24px;
  }

  .footer-bottom {
    margin-inline: 24px;
  }
}
