#shop-footer {
  display: block;
  max-width: none;
  margin-top: 22px;
  padding: 0 var(--gutter);
  background: #142b24;
  color: #eee8dd;
}

#shop-footer .store-footer-inner {
  max-width: var(--content);
  margin-inline: auto;
}

#shop-footer .store-footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding: 22px 0;
  border-bottom: 1px solid #55675b;
}

#shop-footer .brand {
  color: #f7eedc;
  font-size: clamp(20px, 3vw, 29px);
}

#shop-footer .store-footer-groups {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
  padding: 32px 0 38px;
  border: 0;
}

#shop-footer h2 {
  margin: 0 0 8px;
  color: #f7eedc;
  font: 600 15px/1.5 var(--sans);
  letter-spacing: .04em;
}

#shop-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#shop-footer a:not(.brand) {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  min-height: 44px;
  padding: 4px 0;
  color: #d0d8ca;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-decoration: none;
}

#shop-footer a:hover {
  color: #fff6e4;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#shop-footer a:focus-visible {
  outline-color: #f7eedc;
}

#shop-footer .store-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin: 0;
  padding: 16px 0 20px;
  border-top: 1px solid #55675b;
  color: #d0d8ca;
  font-size: 12px;
}

@media (max-width: 740px) {
  #shop-footer {
    padding-inline: 20px;
  }

  #shop-footer .store-footer-brand {
    padding: 16px 0;
  }

  #shop-footer .store-footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    padding: 24px 0;
  }

  #shop-footer .store-footer-service,
  #shop-footer .store-footer-social {
    grid-column: 1 / -1;
  }

  #shop-footer .store-footer-social ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
  }
}
