/* Footer in the style of mobility.autopay.pl: content sits on a rounded lime panel
   (--promo-soft-color = lime-100, the same #e6ffa0 the main Autopay site uses). */
.footer {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 40px;
  padding-bottom: 28px;
}

/* React apps pin a CTA bar to the bottom of the viewport on mobile (<=767px) —
   reserve space under the footer so the bar doesn't cover its links. */
@media (max-width: 767px) {
  .footer--spa {
    padding-bottom: 5rem;
  }
}

.footer__panel {
  padding: 56px 56px 32px;
  border-radius: var(--border-radius);
  background: var(--promo-soft-color);
  color: var(--ink-color);
}

.footer__panel a,
.footer__panel .apm-consent-reopen {
  color: var(--ink-color);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 8px;
  margin: 0;
  padding: 0;
}

.footer__links > li {
  margin-top: 0;
}

.footer--spa .footer__panel { padding: 24px 32px; font-size: 14px; }

.footer__app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
  padding: 32px;
  background: var(--background-white-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.footer__app-copy { max-width: 650px; }
.footer__app h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; }
.footer__app-copy p { margin: 0 0 20px; }
.footer__app-stores { display: flex; flex-wrap: wrap; gap: 12px; }
/* Store badges: black tiles with the store glyph and a two-line label, like the official buttons */
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 9px 18px;
  border-radius: var(--button-radius);
  background: var(--ink-color);
  color: var(--white-color);
  line-height: 1.15;
  text-decoration: none;
}
.store-button:hover,
.store-button:focus-visible { background: var(--accent-strong-color); color: var(--white-color); text-decoration: none; }
.store-button__icon { width: 26px; height: 26px; flex: none; }
.store-button__label { display: flex; flex-direction: column; text-align: left; }
.store-button__hint { font-size: 12px; }
.store-button__name { font-size: 18px; font-weight: 600; }
.footer__app-qr { flex: 0 0 180px; text-align: center; }
.footer__app-qr-image { display: inline-flex; padding: 12px; border-radius: 16px; background: var(--promo-soft-color); }
.footer__app-qr img { display: block; }
.footer__app-qr p { font-size: 14px; margin: 12px 0 0; }

.footer__navigation {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(170px, 1fr));
  gap: 40px;
}

.footer__navigation > * { min-width: 0; }
.footer__logo { display: inline-flex; min-height: 44px; align-items: center; }
.footer__brand p {
  max-width: 380px;
  margin: 18px 0 0;
  font-family: var(--market-header-fonts);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}
.footer__group h2 {
  margin: 0 0 16px;
  font-family: var(--market-content-fonts);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary-color);
}
.footer__group ul { margin: 0; padding: 0; }
.footer__group li { margin: 0 0 12px; font-size: 15px; line-height: 1.4; }
.footer__group a { overflow-wrap: anywhere; }
.footer__documents {
  margin-top: 36px;
  padding: 20px 0;
  border-block: 1px solid var(--promo-hover-color);
  font-size: 14px;
}
.footer__documents .footer__links { gap: 12px 24px; }
.footer__documents .footer__links > li { margin: 0; }
.footer__copyright {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  color: var(--text-secondary-color);
  font-size: 12px;
}

@media (max-width: 1023px) {
  .footer__navigation { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .footer { padding-top: 24px; }
  .footer__panel { padding: 32px 20px 24px; }
  .footer--spa .footer__panel { padding: 16px 20px; }
  .footer--spa .footer__links { row-gap: 0; }
  .footer--spa .footer__links a,
  .footer--spa .footer__links button { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__app { padding: 24px 16px; }
  .footer__app-qr { display: none; }
  .footer__app h2 { font-size: 24px; }
  .footer__navigation { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer__brand p { max-width: none; font-size: 24px; }
  .footer__group li { margin: 0; }
  .footer__group a, .footer__documents a, .footer__documents button { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__documents { margin-top: 28px; }
  .footer__documents .footer__links { flex-direction: column; gap: 0; }
}
