/* Shared footer layout for Home, tires, services and account. */
footer {
  background: #080808;
  color: #fff;
  padding: 34px 24px 22px;
}
footer .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
footer .footer-payments {
  min-width: 0;
  text-align: left;
}
footer .footer-payments-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
footer .payment-methods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
footer .payment-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 4px 0;
}
footer .payment-logo img {
  display: block;
  width: auto;
  height: 25px;
  max-width: 100%;
  object-fit: contain;
}
footer .footer-opening-hours {
  text-align: right;
  font-size: 14px;
  line-height: 1.7;
}
footer .footer-opening-hours p {
  margin: 0;
}
footer .footer-opening-hours p + p {
  margin-top: 12px;
}
footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1100px;
  margin: 16px auto 0;
  font-size: 13px;
  line-height: 1.6;
}
footer .footer-copyright {
  flex-shrink: 0;
  margin: 0;
  color: #c8c8c8;
}
footer .footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 22px;
}
footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #dedede;
  text-decoration: none;
  text-underline-offset: 4px;
}
footer .footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}
footer .footer-links a:focus-visible {
  outline: 2px solid #ffc400;
  outline-offset: 4px;
  border-radius: 2px;
}
@media (max-width: 700px) {
  footer {
    padding: 30px 20px 18px;
  }
  footer .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-bottom: 24px;
  }
  footer .footer-payments,
  footer .footer-opening-hours {
    text-align: center;
  }
  footer .payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    max-width: 260px;
    margin: 0 auto;
  }
  footer .footer-opening-hours {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .16);
  }
  footer .footer-bottom {
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    text-align: center;
  }
  footer .footer-links {
    flex-direction: column;
    gap: 0;
  }
  footer .footer-links a {
    justify-content: center;
    padding: 0 8px;
  }
}


/* Canonieke footer op alle pagina's: gelijk aan de homepagina. */
footer .footer-main {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 48px !important;
  width: min(100%, 1100px) !important;
  margin: 0 auto 28px !important;
  padding-bottom: 26px !important;
}
footer .footer-payments,
footer .footer-address,
footer .footer-opening-hours {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}
footer .footer-payments { text-align: left !important; }
footer .footer-address { text-align: center !important; font-size: 14px !important; line-height: 1.7 !important; }
footer .footer-opening-hours { text-align: right !important; font-size: 14px !important; line-height: 1.7 !important; }
footer .footer-address p,
footer .footer-opening-hours p { margin: 0 !important; }
footer .footer-opening-hours p + p { margin-top: 18px !important; }
footer .payment-methods {
  justify-content: flex-start !important;
  gap: 8px !important;
}
footer .payment-logo {
  width: 82px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 2px 0 !important;
}
footer .payment-logo img {
  max-width: 82px !important;
  max-height: 36px !important;
}
@media (max-width: 700px) {
  footer .footer-main {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding-bottom: 24px !important;
  }
  footer .footer-payments,
  footer .footer-address,
  footer .footer-opening-hours {
    text-align: center !important;
  }
  footer .payment-methods {
    justify-content: center !important;
  }
}


/* Exacte footerafwerking van de homepagina voor alle vensters. */
footer .footer-payments-title {
  font-size: 15px !important;
  line-height: 1.7 !important;
}
footer .footer-address,
footer .footer-opening-hours {
  font-size: 15px !important;
  line-height: 1.75 !important;
}
footer .footer-bottom {
  font-size: 14px !important;
  line-height: 1.7 !important;
}
footer .footer-links a {
  font-size: 14px !important;
}
footer .payment-logo {
  width: 88px !important;
  height: 44px !important;
  min-height: 44px !important;
}
footer .payment-logo img {
  max-width: 88px !important;
  max-height: 38px !important;
}
@media (max-width: 700px) {
  footer .footer-payments-title,
  footer .footer-address,
  footer .footer-opening-hours {
    font-size: 15px !important;
  }
  footer .footer-bottom,
  footer .footer-links a {
    font-size: 13px !important;
  }
}


/* Zelfde betaalindeling als Home: Apple Pay onder Bancontact. */
footer .payment-methods {
  display: grid !important;
  grid-template-columns: repeat(3, 88px) !important;
  grid-template-rows: repeat(2, 44px) !important;
  align-items: center !important;
  justify-content: start !important;
  gap: 8px !important;
}
footer .payment-logo:nth-child(1) { grid-column: 1; grid-row: 1; }
footer .payment-logo:nth-child(2) { grid-column: 2; grid-row: 1; }
footer .payment-logo:nth-child(3) { grid-column: 3; grid-row: 1; }
footer .payment-logo:nth-child(4) { grid-column: 1; grid-row: 2; }
@media (max-width: 700px) {
  footer .payment-methods {
    grid-template-columns: repeat(2, 88px) !important;
    grid-template-rows: repeat(2, 44px) !important;
    justify-content: center !important;
  }
  footer .payment-logo:nth-child(1) { grid-column: 1; grid-row: 1; }
  footer .payment-logo:nth-child(2) { grid-column: 2; grid-row: 1; }
  footer .payment-logo:nth-child(3) { grid-column: 2; grid-row: 2; }
  footer .payment-logo:nth-child(4) { grid-column: 1; grid-row: 2; }
}

/* Laptop: Visa direct onder Maestro; mobiele indeling behouden. */
@media (min-width: 701px) {
  footer .payment-methods { grid-template-columns: repeat(2, 88px) !important; }
  footer .payment-logo:nth-child(3) { grid-column: 2 !important; grid-row: 2 !important; }
}
