/* Canonical buyer footer. Shared by home, catalogue and private buyer flows.
   Keep this after page skins; page-specific footer treatments are not supported. */
body.shop-public.reference-shell[data-shop-page] .site-footer {
  grid-template-columns: 1.1fr 1fr 1.35fr 1.15fr !important;
  gap: 28px !important;
  margin-top: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  grid-template-rows: auto !important;
  grid-auto-rows: auto;
  padding: 32px max(14px, calc((100vw - 1230px) / 2)) 26px !important;
  background: var(--reference-footer) !important;
  color: var(--color-text) !important;
}

body.shop-public.reference-shell[data-shop-page] .site-footer > div {
  gap: 5px !important;
  height: auto !important;
  min-height: 0 !important;
}

body.shop-public.reference-shell[data-shop-page] .site-footer > :is(.footer-column, .footer-company) {
  grid-column: auto !important;
}

body.shop-public.reference-shell[data-shop-page] .site-footer strong,
body.shop-public.reference-shell[data-shop-page] .site-footer > div > a:first-child {
  color: var(--color-text) !important;
  font-size: 13px !important;
  font-weight: 800;
}

body.shop-public.reference-shell[data-shop-page] .site-footer .footer-column > strong,
body.shop-public.reference-shell[data-shop-page] .site-footer .footer-company > strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.shop-public.reference-shell[data-shop-page] .site-footer .footer-heading-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: var(--reference-orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

body.shop-public.reference-shell[data-shop-page] .site-footer a,
body.shop-public.reference-shell[data-shop-page] .site-footer button,
body.shop-public.reference-shell[data-shop-page] .site-footer span,
body.shop-public.reference-shell[data-shop-page] .site-footer p,
body.shop-public.reference-shell[data-shop-page] .site-footer small {
  color: var(--color-text-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body.shop-public.reference-shell[data-shop-page] .site-footer a:hover {
  color: var(--reference-orange) !important;
}

body.shop-public.reference-shell[data-shop-page] .site-footer .footer-update-row {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start !important;
  gap: 16px;
  margin-top: 8px;
  padding-top: 17px;
  border-top: 1px solid var(--color-retained-cbd2db);
}

body.shop-public.reference-shell[data-shop-page] .site-footer .footer-update-row > strong {
  flex: 0 0 auto;
  font-size: 15px !important;
}

body.shop-public.reference-shell[data-shop-page] .site-footer .footer-update-row > span {
  flex: 1 1 auto;
}

body.shop-public.reference-shell[data-shop-page] .site-footer .footer-update-row .button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 3px;
  background: var(--reference-orange);
  color: var(--color-surface) !important;
  font-size: 12px !important;
  box-shadow: 0 2px 0 var(--color-text);
}

body.shop-public.reference-shell[data-shop-page] .site-footer .footer-bottom {
  grid-column: 1 / -1 !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between !important;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-retained-cbd2db);
}

body.shop-public.reference-shell[data-shop-page] .site-footer .footer-bottom-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

body.shop-public.reference-shell[data-shop-page] .site-footer .footer-bottom .brand strong {
  font-size: 23px !important;
}

body.shop-public.reference-shell[data-shop-page] .site-footer .footer-bottom small {
  max-width: 620px;
  color: var(--color-text-muted) !important;
}

@media (max-width: 800px) {
  body.shop-public.reference-shell[data-shop-page] .site-footer {
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 14px !important;
    padding: 26px 14px 22px !important;
  }

  body.shop-public.reference-shell[data-shop-page] .site-footer .footer-update-row,
  body.shop-public.reference-shell[data-shop-page] .site-footer .footer-bottom {
    grid-column: 1 / -1 !important;
  }

  body.shop-public.reference-shell[data-shop-page] .site-footer .footer-update-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px !important;
  }

  body.shop-public.reference-shell[data-shop-page] .site-footer .footer-update-row .button {
    margin-top: 3px;
  }

  body.shop-public.reference-shell[data-shop-page] .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (min-width: 801px) {
  body.shop-public.reference-shell[data-shop-page] .site-footer {
    min-height: var(--shop-footer-min-height) !important;
    grid-template-rows: minmax(0, 1fr) auto auto !important;
  }
}
@media (max-width: 520px) {
  body.shop-public.reference-shell[data-shop-page] .site-footer {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
