.site-footer {
  margin-top: 40px;
  background: #1d2335;
  color: #d9deea;
  padding: 30px 0 0;
}

html {
  min-height: 100%;
}

body.cart-page {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

body.cart-page > .container {
  width: 100%;
  flex: 1 0 auto !important;
}

body.cart-page > .site-footer {
  margin-top: auto !important;
  flex: 0 0 auto !important;
}

.site-footer .wrap {
  width: calc(100% - 64px);
  max-width: 1080px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(300px, 1.15fr) minmax(330px, 1.15fr);
  gap: 48px;
  align-items: start;
}

.footer-grid > div {
  min-width: 0;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.4;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 8px;
  color: #c7cfdd;
  font-size: 14px;
  line-height: 1.65;
}

.footer-grid > div:nth-child(3) {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  column-gap: 28px;
  row-gap: 8px;
}

.footer-grid > div:nth-child(3) h4 {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.footer-grid > div:nth-child(3) a {
  margin-bottom: 0;
}

.site-footer a:hover {
  color: #d61f26;
}

.footer-icp {
  margin-top: 24px;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: #171d2d;
  color: #8f9aaf;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.footer-icp .wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-icp p {
  margin: 0;
  color: #8f9aaf;
  text-align: center;
}

.footer-icp a {
  display: inline-block;
  margin: 0;
  color: #8f9aaf;
  text-align: center;
}

.footer-icp a:hover {
  color: #cbd5e1;
}

@media (max-width: 1280px) {
  .site-footer .wrap {
    width: calc(100% - 48px);
  }
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-grid > div:nth-child(3) {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
}

@media (max-width: 640px) {
  .site-footer .wrap {
    width: calc(100% - 24px);
  }
}
