@layer base {
  /* Горизонтальні модулі займають рядок цілком, щоб поруч не лишалась порожня текстова колонка. */
  .site-footer .footer-horizontal {
    width: 100%;
    grid-column: 1 / -1;
  }

  .site-footer .footer-horizontal .footer-column-links,
  .site-footer .footer-horizontal.footer-help,
  .site-footer .footer-horizontal.footer-eeat {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5rem 1.25rem;
  }

  .site-footer .footer-eeat,
  .site-footer .footer-country { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
  .site-footer .footer-country > p { flex-basis: 100%; }
  .site-footer .footer-country img { width: 3rem; height: 3rem; object-fit: contain; }

  .site-footer .footer-help[data-footer-help][data-footer-help-mode="horizontal"] { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: start; }
  .site-footer .footer-help[data-footer-help][data-footer-help-mode="horizontal"] > .footer-heading,
  .site-footer .footer-help[data-footer-help][data-footer-help-mode="horizontal"] > [data-footer-disclosure] { flex-basis: 100%; }
  .site-footer [data-footer-mode="inline"] .footer-help[data-footer-help] { display: contents; }
  .site-footer [data-footer-mode="inline"] > nav:not(:has(a)) { display: none; }
  .site-footer [data-footer-mode="inline"] .footer-help-links { margin: 0; }
}
