/* Single footer geometry source for the landing and every CMS page. */
footer.footer .footer-layout.footer-layout-compact,
footer.footer.footer-modern .footer-layout.footer-layout-compact {
  gap: 10px;
  padding: 12px;
}

footer.footer .footer-layout.footer-layout-compact > .footer-card,
footer.footer .footer-layout.footer-layout-compact > .footer-card.rates-card,
footer.footer.footer-modern .footer-layout.footer-layout-compact > .footer-card,
footer.footer.footer-modern .footer-layout.footer-layout-compact > .footer-card.rates-card {
  min-height: 0;
  padding: 14px;
  margin: 0 !important;
}

footer.footer .footer-contacts {
  gap: 6px;
  justify-content: space-between;
}

footer.footer .footer-messengers {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

footer.footer .footer-messenger-button {
  display: inline-grid !important;
  grid-template-columns: 18px auto;
  align-items: center;
  justify-content: center;
  column-gap: 7px;
  min-height: 38px;
  line-height: 1;
}

footer.footer .footer-messenger-button .messenger-icon {
  display: block;
  align-self: center;
  justify-self: center;
  width: 18px;
  height: 18px;
  margin: 0;
  object-fit: contain;
  transform: none;
}

footer.footer .footer-messenger-button .messenger-label {
  display: inline-flex;
  align-items: center;
  height: 18px;
  line-height: 18px;
  white-space: nowrap;
}

footer.footer .footer-messenger-button .messenger-icon-max {
  width: 18px !important;
  height: 18px !important;
  flex-basis: 18px !important;
  filter: none;
}

footer.footer .footer-card .rates-card-head {
  margin-bottom: 8px;
}

footer.footer .rates-card .rates-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

footer.footer .rates-source-block {
  display: grid;
  flex: 1 1 auto;
  align-content: center;
  min-width: 0;
  margin-bottom: 0;
  padding: 12px;
}

footer.footer .rates-source-warning {
  justify-items: center;
  overflow: hidden;
}

footer.footer .rates-source-warning span {
  display: block;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

footer.footer .footer-company {
  gap: 2px;
  justify-content: space-between;
}

@media (max-width: 760px) {
  footer.footer .footer-layout.footer-layout-compact > .footer-card,
  footer.footer .footer-layout.footer-layout-compact > .footer-card.rates-card,
  footer.footer.footer-modern .footer-layout.footer-layout-compact > .footer-card,
  footer.footer.footer-modern .footer-layout.footer-layout-compact > .footer-card.rates-card {
    min-height: auto;
    padding: 14px;
  }
}
