@media (max-width: 900px) {
  /* Short screens need natural height so the legal links remain reachable. */
  html body #root #cozumler.adesa-footer {
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: var(--mobile-section, calc(100svh - 72px)) !important;
    margin: 0 !important;
    overflow: visible !important;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html body #root #cozumler.adesa-footer .adesa-footer__inner {
    box-sizing: border-box !important;
    width: min(90%, 1560px) !important;
    max-width: 1560px !important;
    margin-inline: auto !important;
    flex: 0 0 auto !important;
    min-width: 0;
  }
  html body #root #cozumler.adesa-footer .adesa-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body #root #cozumler.adesa-footer .adesa-footer__contact {
    padding-inline: 12px !important;
    min-width: 0;
  }
  html body #root #cozumler.adesa-footer .adesa-footer__contact a {
    overflow-wrap: anywhere;
  }
  html body #root #cozumler.adesa-footer .adesa-footer__bottom {
    box-sizing: border-box !important;
    width: 100% !important;
  }
  /* Keep the original controls together below the footer copy.
     Back to top sits at the left edge; Phone, WhatsApp and Share stay in their column on the right. */
  .adesa-footer-back-button {
    left: max(12px, env(safe-area-inset-left, 0px)) !important;
  }
  body:has(.adesa-social:not(.is-open)) .adesa-footer-back-button[data-visible="true"] {
    transition: visibility 0s .7s, opacity .15s .7s;
  }
  body:has(.adesa-social.is-open) .adesa-footer-back-button {
    visibility: hidden !important;
    opacity: 0;
    pointer-events: none !important;
    transition: none;
  }
  /* Phone, WhatsApp and Share keep their vertical column at the footer too (owner's request
     2026-11-18); they used to line up in one row next to "Başa dön" here. */
}
