/* Public site footer v2 (Figma qCb3RQEVojZl1JuYnJ3xUx 523:53 / 523:179 desktop, 523:411 mobile).
   One stylesheet for the one footer markup (SiteChrome.php and shared/presentation/site-footer, both from site-chrome.json).
   Columns: Brand | Help | Company | Our branches | Contact us. Branch chips are radio inputs; the checked one shows its branch (no script).
   Scoped to footer#site-footer.site-footer--v2 so older .site-footer / .footer-inner rules in energetic.css cannot reach it. */
customer-site-header { display: contents; }
.footer-top-anchor { display: block; width: 1px; height: 0; margin: 0; padding: 0; overflow: hidden; pointer-events: none; }
#site-footer.site-footer--v2 { position: relative; box-sizing: border-box; display: block; width: 100%; margin: 0; padding: 72px var(--space-6) var(--space-8); border: 0; border-top: 1px solid var(--divider); border-radius: 0; background: var(--canvas); box-shadow: none; color: var(--ink); font-family: var(--font-body); font-size: var(--text-14); line-height: var(--leading-14); overflow: hidden; }
#site-footer.site-footer--v2 :is(h2, h3, p, ul, li) { margin: 0; padding: 0; }
#site-footer.site-footer--v2 ul { list-style: none; }
#site-footer.site-footer--v2 a { color: inherit; text-decoration: none; }
#site-footer.site-footer--v2 a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
#site-footer.site-footer--v2 a:focus-visible, #site-footer.site-footer--v2 .footer-branch-chip:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }
#site-footer.site-footer--v2 .footer-inner { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--space-10); box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0; }
#site-footer.site-footer--v2 .footer-top { display: grid; grid-template-columns: minmax(0, 360px) 120px 120px 240px 240px; justify-content: space-between; column-gap: var(--space-8); align-items: start; }
#site-footer.site-footer--v2 .footer-groups { display: contents; }
#site-footer.site-footer--v2 :is(.footer-brand, .footer-group, .footer-branches, .footer-contact) { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; }
#site-footer.site-footer--v2 .footer-brand { gap: var(--space-4); padding-right: var(--space-6); }
#site-footer.site-footer--v2 .footer-wordmark { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); }
#site-footer.site-footer--v2 .footer-mark { display: block; flex: none; width: 32px; height: 32px; }
#site-footer.site-footer--v2 .footer-name { font-size: var(--text-18); font-weight: 600; letter-spacing: -0.2px; line-height: var(--leading-18); }
#site-footer.site-footer--v2 .footer-tagline { color: var(--muted); font-size: var(--text-15); line-height: var(--leading-15); }
#site-footer.site-footer--v2 h2 { color: var(--ink); font-size: var(--text-12); font-weight: 600; letter-spacing: 0.2px; line-height: var(--leading-12); text-transform: none; }
#site-footer.site-footer--v2 .footer-group ul { display: flex; flex-direction: column; gap: var(--space-3); }
#site-footer.site-footer--v2 .footer-group a, #site-footer.site-footer--v2 .footer-link-pending { color: var(--muted); font-size: var(--text-14); line-height: var(--leading-14); white-space: nowrap; }
#site-footer.site-footer--v2 .footer-group a[aria-current='page'] { color: var(--ink); font-weight: 500; }
#site-footer.site-footer--v2 .footer-link-pending { cursor: default; opacity: .7; }

/* Our branches: chips (Figma Chip 7:42 / 7:44) and the selected branch. */
#site-footer.site-footer--v2 .footer-branch-chips { display: flex; flex-wrap: wrap; gap: var(--space-1); width: 100%; }
#site-footer.site-footer--v2 .footer-branch-chip { position: relative; display: inline-flex; align-items: center; box-sizing: border-box; height: 32px; padding: 0 var(--space-3); border: 1px solid var(--divider); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font-size: var(--text-13); font-weight: 500; line-height: var(--leading-13); white-space: nowrap; cursor: pointer; }
#site-footer.site-footer--v2 .footer-branch-chip:hover { background: var(--soft); }
#site-footer.site-footer--v2 .footer-branch-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#site-footer.site-footer--v2 .footer-branch-chip:has(input:checked) { border-color: var(--action); background: var(--soft); color: var(--action); }
#site-footer.site-footer--v2 .footer-branch-panels { width: 100%; }
#site-footer.site-footer--v2 .footer-branch { display: none; flex-direction: column; gap: var(--space-2); width: 100%; padding-top: var(--space-3); }
#site-footer.site-footer--v2 .footer-branches:has(.footer-branch-chip:nth-child(1) input:checked) .footer-branch:nth-child(1),
#site-footer.site-footer--v2 .footer-branches:has(.footer-branch-chip:nth-child(2) input:checked) .footer-branch:nth-child(2),
#site-footer.site-footer--v2 .footer-branches:has(.footer-branch-chip:nth-child(3) input:checked) .footer-branch:nth-child(3),
#site-footer.site-footer--v2 .footer-branches:has(.footer-branch-chip:nth-child(4) input:checked) .footer-branch:nth-child(4),
#site-footer.site-footer--v2 .footer-branches:has(.footer-branch-chip:nth-child(5) input:checked) .footer-branch:nth-child(5),
#site-footer.site-footer--v2 .footer-branches:has(.footer-branch-chip:nth-child(6) input:checked) .footer-branch:nth-child(6),
#site-footer.site-footer--v2 .footer-branches:has(.footer-branch-chip:nth-child(7) input:checked) .footer-branch:nth-child(7),
#site-footer.site-footer--v2 .footer-branches:has(.footer-branch-chip:nth-child(8) input:checked) .footer-branch:nth-child(8),
#site-footer.site-footer--v2 .footer-branches:has(.footer-branch-chip:nth-child(9) input:checked) .footer-branch:nth-child(9),
#site-footer.site-footer--v2 .footer-branches:has(.footer-branch-chip:nth-child(10) input:checked) .footer-branch:nth-child(10),
#site-footer.site-footer--v2 .footer-branches:has(.footer-branch-chip:nth-child(11) input:checked) .footer-branch:nth-child(11),
#site-footer.site-footer--v2 .footer-branches:has(.footer-branch-chip:nth-child(12) input:checked) .footer-branch:nth-child(12) { display: flex; }
@supports not selector(:has(*)) { #site-footer.site-footer--v2 .footer-branch:first-child { display: flex; } }
#site-footer.site-footer--v2 .footer-branch h3 { color: var(--ink); font-size: var(--text-15); font-weight: 600; line-height: var(--leading-15); }
#site-footer.site-footer--v2 :is(.footer-address, .footer-phone) { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--muted); }
#site-footer.site-footer--v2 .footer-address-lines { display: flex; flex-direction: column; }
#site-footer.site-footer--v2 .footer-hours { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); color: var(--muted); }
#site-footer.site-footer--v2 .footer-hours a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
#site-footer.site-footer--v2 .chrome-icon { display: block; flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
#site-footer.site-footer--v2 .footer-branch-empty a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
/* While the published view is still being read (customer app only): keep the column height, show nothing instead of the no-data fallback. */
#site-footer.site-footer--v2 .footer-column-pending { width: 100%; }
#site-footer.site-footer--v2 .footer-column-pending--branches { min-height: 170px; }
#site-footer.site-footer--v2 .footer-column-pending--contact { min-height: 56px; }
/* design/src/styles/layout.css (v1 footer) gives .footer-brand a 26px bottom margin in the customer-app bundle only; v2 columns have no outer margins in either renderer. */
#site-footer.site-footer--v2 :is(.footer-brand, .footer-group, .footer-branches, .footer-contact) { margin: 0; }

/* Contact us. */
#site-footer.site-footer--v2 .footer-contact-row { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); overflow-wrap: anywhere; }
#site-footer.site-footer--v2 .footer-contact .chrome-icon { width: 20px; height: 20px; margin: 0; color: var(--ink); }

/* Bottom: divider, the "256-bit SSL encryption" chip (Figma 523:142, only when published), footer extras (text links, only when enabled),
   copyright + Privacy / Terms + payment logos, social (only when published). No language switcher in the footer. */
#site-footer.site-footer--v2 .footer-bottom { display: flex; flex-direction: column; gap: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--divider); }
#site-footer.site-footer--v2 .footer-trust { display: flex; flex-wrap: wrap; gap: var(--space-2); }
#site-footer.site-footer--v2 .footer-badge { display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; min-height: 28px; padding: 5px 10px; border: 1px solid var(--divider); border-radius: var(--radius-pill); color: var(--muted); font-size: var(--text-12); line-height: var(--leading-12); }
#site-footer.site-footer--v2 .footer-badge a { display: inline-flex; align-items: center; gap: 6px; }
#site-footer.site-footer--v2 .footer-badge img { display: block; max-height: 20px; width: auto; }
#site-footer.site-footer--v2 .footer-badge .chrome-icon { width: 16px; height: 16px; margin: 0; }
#site-footer.site-footer--v2 .footer-bottom-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 36px; }
#site-footer.site-footer--v2 .footer-copy { color: var(--muted); font-size: var(--text-12); line-height: var(--leading-12); }
/* Copyright + Privacy / Terms (Figma 550:490: gap 16, Caption/12 muted, nowrap) then payment methods (Figma 538:268): one row, gap 24;
   the logos wrap with gap 8. Images only, alt = brand name, no links. */
#site-footer.site-footer--v2 .footer-legal-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); min-width: 0; }
#site-footer.site-footer--v2 .footer-copy-legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); white-space: nowrap; }
#site-footer.site-footer--v2 .footer-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
#site-footer.site-footer--v2 .footer-legal-links a, #site-footer.site-footer--v2 .footer-legal-links .footer-link-pending { color: var(--muted); font-size: var(--text-12); line-height: var(--leading-12); }
#site-footer.site-footer--v2 .footer-legal-links a:hover { color: var(--ink); text-decoration: underline; }
/* Footer extras (Figma 545:13644): plain text links only; no badge or star artwork until it is licensed. */
#site-footer.site-footer--v2 .footer-extras { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
#site-footer.site-footer--v2 .footer-extras a { color: var(--muted); font-size: var(--text-12); line-height: var(--leading-12); text-decoration: underline; }
#site-footer.site-footer--v2 .footer-extras a:hover { color: var(--ink); }
#site-footer.site-footer--v2 .footer-payments { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
#site-footer.site-footer--v2 .footer-social { display: flex; gap: var(--space-2); }
/* Social (Figma 523:158): 36x36 slots, gap 8, no border; official Facebook / Instagram / X marks at 24px (icons/social/PROVENANCE.md). */
#site-footer.site-footer--v2 .footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-pill); color: var(--muted); }
#site-footer.site-footer--v2 .footer-social-mark { display: block; width: 24px; height: 24px; object-fit: contain; }
#site-footer.site-footer--v2 .language-nav { display: none; }

@media (max-width: 1199px) {
  #site-footer.site-footer--v2 .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-8); }
  #site-footer.site-footer--v2 .footer-brand { grid-column: 1 / -1; }
}
/* Payment logo tiles (Figma 538:259-266), shared by the public footer and the admin editor (both load this sheet). Official marks, never redrawn:
   Visa, Mastercard and American Express sit in a 50x32 bordered badge; Discover (Figma 538:262) and Apple Pay are their own marks in a 50x32 box
   (Discover scaled evenly to 48.75x32, no badge); Google Pay 60x32 is cropped from its mark. */
.payment-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; box-sizing: border-box; width: 50px; height: 32px; overflow: hidden; }
.payment-mark--badge { border: 1px solid var(--divider); border-radius: 4px; background: var(--surface); }
.payment-mark img { display: block; flex: none; max-width: none; }
.payment-mark[data-payment-method='visa'] img { width: auto; height: 24.55px; }
.payment-mark[data-payment-method='mastercard'] img { width: auto; height: 33px; }
.payment-mark[data-payment-method='amex'] img { width: 38.4px; height: 38.4px; transform: translateY(-0.48px); }
.payment-mark[data-payment-method='discover'] img { width: 48.75px; height: 32px; }
.payment-mark[data-payment-method='apple_pay'] img { width: 50px; height: 32px; }
.payment-mark[data-payment-method='google_pay'] { width: 60.16px; }
.payment-mark[data-payment-method='google_pay'] img { width: 87.52px; height: 59.36px; }

/* Mobile (Figma 523:411): one column, order Brand, Our branches, Help + Company side by side, Contact us. */
@media (max-width: 767px) {
  /* Copyright + payment methods (Figma 538:362): copyright full width, logos wrap below (gap 12); social follows 16px below. */
  #site-footer.site-footer--v2 .footer-legal-line { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: var(--space-3); }
  /* Copyright + Privacy / Terms (Figma 550:492): full width, wraps. */
  #site-footer.site-footer--v2 .footer-copy-legal { white-space: normal; }
  #site-footer.site-footer--v2 { padding: var(--space-12) var(--space-4) var(--space-8); }
  #site-footer.site-footer--v2 .footer-inner { gap: var(--space-8); }
  #site-footer.site-footer--v2 .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); row-gap: var(--space-8); }
  #site-footer.site-footer--v2 .footer-brand { grid-column: 1 / -1; order: 1; padding-right: 0; gap: var(--space-3); }
  #site-footer.site-footer--v2 .footer-branches { grid-column: 1 / -1; order: 2; }
  #site-footer.site-footer--v2 .footer-group[data-footer-column='help'] { order: 3; }
  #site-footer.site-footer--v2 .footer-group[data-footer-column='company'] { order: 4; }
  #site-footer.site-footer--v2 .footer-contact { grid-column: 1 / -1; order: 5; }
  /* Touch targets (44 px, the staging functional layout check): every footer link and button keeps its type and colour but gets a
     44 px row; the link lists drop their 12 px gap so each row is the hit area. */
  #site-footer.site-footer--v2 .footer-group ul { gap: 0; }
  #site-footer.site-footer--v2 :is(.footer-wordmark, .footer-address, .footer-phone, .footer-contact-row) { min-height: var(--control-touch); }
  #site-footer.site-footer--v2 .footer-phone { align-items: center; }
  #site-footer.site-footer--v2 :is(.footer-group a, .footer-hours a, .footer-branch-empty a, .footer-legal-links a, .footer-extras a, .footer-badge a, .footer-legal-button) { display: inline-flex; align-items: center; box-sizing: border-box; min-width: var(--control-touch); min-height: var(--control-touch); }
  #site-footer.site-footer--v2 .footer-social a { width: var(--control-touch); height: var(--control-touch); }
}
