/* Keep footer navigation links and contact actions aligned across main pages. */
.whatsapp-contact {
  display: inline-grid !important;
  place-items: center;
  box-sizing: border-box;
  flex: 0 0 30px;
  width: 30px !important;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  margin-left: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #25d366 !important;
  color: #fff !important;
  line-height: 1;
  text-decoration: none !important;
}

.whatsapp-contact svg {
  display: block;
  width: 17px !important;
  height: 17px !important;
}

.whatsapp-contact span {
  display: none !important;
}

.whatsapp-contact:focus-visible {
  outline: 2px solid #167d3b;
  outline-offset: 3px;
}

.topbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-contact > a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

footer br:has(+ a.whatsapp-contact) {
  display: none;
}

footer .whatsapp-contact {
  margin-left: 2px !important;
}

.topbar-contact .whatsapp-contact {
  margin-left: 0 !important;
}

footer .footergrid,
footer .footer-grid {
  align-items: start;
}

footer .footergrid > div:not(:first-child),
footer .footer-grid > div:not(:first-child) {
  min-width: 0;
}

footer .footergrid > div:not(:first-child) > br,
footer .footer-grid > div:not(:first-child) > br {
  display: none;
}

footer .footergrid > div:not(:first-child) > a:not(.whatsapp-contact),
footer .footer-grid > div:not(:first-child) > a:not(.whatsapp-contact) {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 27px;
  padding: 2px 0;
  line-height: 1.5;
}

footer .footergrid > div > h3,
footer .footergrid > div > h4,
footer .footer-grid > div > h3,
footer .footer-grid > div > h4 {
  min-height: 14px;
  margin: 4px 0 12px;
}

footer .footergrid .whatsapp-contact,
footer .footer-grid .whatsapp-contact {
  display: grid !important;
  place-items: center;
  grid-column: 2;
  grid-row: 2;
  width: 30px !important;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  vertical-align: middle;
}

footer .footergrid > div:last-child,
footer .footer-grid > div:last-child {
  display: grid;
  grid-template-columns: max-content 30px;
  justify-content: start;
  align-content: start;
  align-items: center;
  column-gap: 4px;
}

footer .footergrid > div:last-child > h3,
footer .footergrid > div:last-child > h4,
footer .footer-grid > div:last-child > h3,
footer .footer-grid > div:last-child > h4 {
  grid-column: 1 / -1;
}

footer .footergrid > div:last-child > br,
footer .footer-grid > div:last-child > br {
  display: none;
}

footer .footergrid > div:last-child > a[href^="tel:"],
footer .footer-grid > div:last-child > a[href^="tel:"] {
  grid-column: 1;
  grid-row: 2;
}

footer .footergrid > div:last-child > a:not([href^="tel:"]):not(.whatsapp-contact),
footer .footer-grid > div:last-child > a:not([href^="tel:"]):not(.whatsapp-contact) {
  grid-column: 1 / -1;
}

footer .footergrid .whatsapp-contact svg,
footer .footer-grid .whatsapp-contact svg {
  width: 16px !important;
  height: 16px !important;
}

footer .footergrid .whatsapp-contact span,
footer .footer-grid .whatsapp-contact span {
  display: none;
}

footer .footergrid a:focus-visible,
footer .footer-grid a:focus-visible {
  outline: 2px solid #c5a66b;
  outline-offset: 3px;
}
