.site-footer .sx-footer-main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.sx-footer-row,
.sx-footer-brand,
.sx-footer-links,
.sx-footer-channels {
  display: flex;
  align-items: center;
}

.sx-footer-row {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 4px 12px;
}

.sx-footer-brand {
  gap: 12px;
}

.sx-footer-brand .brand-art {
  width: auto;
  max-width: none;
}

.sx-footer-tagline {
  padding-inline-start: 12px;
  border-inline-start: 1px solid #cfac93;
  color: #574237;
  font: 400 12px/1.35 system-ui, sans-serif;
}

.sx-footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  color: #473227;
  font: 500 12px/1.35 system-ui, sans-serif;
}

.sx-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 36px;
  padding-block: 6px;
  white-space: nowrap;
}

/* Trailing separator so a wrapped item never starts a new line with a dot. */
.sx-footer-links a::before {
  content: none !important;
}
.sx-footer-links a:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b9896c;
  flex-shrink: 0;
}

.sx-footer-links a:hover {
  color: #873813;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sx-footer-channels {
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-block: 10px;
  border-top: 1px solid #ead9cc;
  font: 600 12.5px/1.4 system-ui, sans-serif;
  color: #473227;
}

.sx-footer-channels a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #dfc3ab;
  background: #fffdf9;
  color: #6f2d0f;
  text-decoration: none;
}

.sx-footer-channels a.sx-whatsapp-channel {
  border-color: #b7d7c2;
  background: #f3fbf6;
  color: #165934;
}

.sx-footer-channels a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sx-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-block: 10px;
  border-top: 1px solid #ead9cc;
}

.sx-social-label {
  color: #5c3f2e;
  font: 700 11.5px/1.2 system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sx-social-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
}

.sx-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #dfc3ab;
  background: #fffdf9;
  color: #5b260e;
  font: 600 12.5px/1.2 system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.sx-social-links a:hover {
  border-color: #c98f63;
  background: #fff4e6;
  color: #843400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sx-social-links svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #b45118;
}

.sx-footer-company {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding-block: 10px 8px;
  border-top: 1px solid #ead9cc;
  color: #574237;
  font: 400 11px/1.45 system-ui, sans-serif;
  text-align: center;
}

.sx-footer-company span::before {
  content: none !important;
}

.sx-footer-company span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: .9em;
  margin-inline-start: 12px;
  background: #d7bdaa;
  vertical-align: -.1em;
}

@media (max-width: 960px) {
  .sx-footer-row,
  .sx-footer-links {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .site-footer .sx-footer-main {
    width: calc(100% - 24px);
  }

  .sx-footer-row {
    flex-direction: column;
    gap: 8px;
    padding-block-end: 10px;
  }

  .sx-footer-tagline {
    display: none;
  }

  .sx-footer-links {
    gap: 6px 14px;
  }

  .sx-footer-links a:not(:last-child)::after {
    display: none;
  }

  .sx-footer-company {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .sx-footer-company span:not(:last-child)::after {
    display: none;
  }

  .sx-footer-social {
    flex-direction: column;
    gap: 8px;
    padding-block: 10px;
  }

  .sx-social-links {
    width: 100%;
    gap: 8px;
  }

  .sx-social-links a {
    min-height: 40px;
    padding: 6px 11px;
    font-size: 12px;
    gap: 5px;
  }
}

@media (max-width: 339px) {
  .sx-social-links {
    flex-wrap: wrap;
  }
}
