/**
 * UWE Footer — layout overrides (works with theme footer markup).
 */

body.uwe-footer-v2 .ecoimpact-footer {
  --eco-footer-bg: #1b4332;
  overflow-x: clip;
  max-width: 100%;
}

body.uwe-footer-v2 .ecoimpact-footer__curve-fill {
  fill: #1b4332;
}

body.uwe-footer-v2 .ecoimpact-footer__main {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(1.5rem, 3vw, 2.5rem) !important;
  align-items: start;
}

body.uwe-footer-v2 .ecoimpact-footer__brand-col {
  min-width: 0;
}

body.uwe-footer-v2 .ecoimpact-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-column: 2 / -1;
  min-width: 0;
}

body.uwe-footer-v2 .ecoimpact-footer__links-col {
  min-width: 0;
}

body.uwe-footer-v2 .ecoimpact-footer__col-title {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9a227;
}

body.uwe-footer-v2 .ecoimpact-footer__links a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.uwe-footer-v2 .ecoimpact-footer__addresses p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.uwe-footer-v2 .ecoimpact-footer__bar {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

body.uwe-footer-v2 .ecoimpact-footer__bar-col--copyright,
body.uwe-footer-v2 .ecoimpact-footer__bar-meta {
  flex: 1 1 14rem;
  min-width: 0;
}

body.uwe-footer-v2 .ecoimpact-footer__bar-col--credit,
body.uwe-footer-v2 .ecoimpact-footer__design-credit {
  opacity: 0.85;
}

body.uwe-footer-v2 .ecoimpact-footer__bar-trust,
body.uwe-footer-v2 .ecoimpact-footer__bar-col--payments,
body.uwe-footer-v2 .ecoimpact-footer__bar-col--registered {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  body.uwe-footer-v2 .ecoimpact-footer__main {
    grid-template-columns: 1fr !important;
  }

  body.uwe-footer-v2 .ecoimpact-footer__nav {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.uwe-footer-v2 .ecoimpact-footer__main > .ecoimpact-footer__links-col {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body.uwe-footer-v2 .ecoimpact-footer__nav,
  body.uwe-footer-v2 .ecoimpact-footer__main {
    grid-template-columns: 1fr !important;
  }

  body.uwe-footer-v2 .ecoimpact-footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
