/* STİLO FİNCAN · Customer footer. Monochrome, compact, phone-first (320-430px).
   ID-scoped so legacy storefront rules cannot win. Single clean replacement. */
#sf-footer.sf-footer{
  --sf-bg:#fff;--sf-ink:#111111;--sf-soft:#4a4a4a;--sf-line:#e3e3e3;
  --sf-font:Urbanist,system-ui,sans-serif;
  position:relative!important;display:block!important;box-sizing:border-box;
  width:auto!important;max-width:none!important;margin:28px 0 0!important;
  padding:0 16px 14px!important;border:0!important;border-top:1px solid var(--sf-line)!important;border-radius:0!important;
  background:var(--sf-bg)!important;color:var(--sf-ink)!important;font:400 14px/1.45 var(--sf-font)!important;
  text-align:left!important;overflow:hidden;overflow-wrap:anywhere;box-shadow:none!important
}
#sf-footer.sf-footer *,#sf-footer.sf-footer *::before,#sf-footer.sf-footer *::after{box-sizing:border-box}
/* Measured dock clearance lives inside the footer surface. */
#fincan-store.store-shell:not([data-route="cart"]):not([data-route="checkout"]){
  padding-bottom:0!important;
}
#fincan-store.store-shell>#sf-footer.sf-footer{
  padding-bottom:calc(22px + var(--shop-dock-space,calc(190px + env(safe-area-inset-bottom))))!important;
}
#fincan-store.store-shell:is([data-route="cart"],[data-route="checkout"])>#sf-footer.sf-footer{
  display:none!important;
}
#sf-footer .sf-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#sf-footer :is(p,ul,dl,dd,dt,h2){margin:0;padding:0}
#sf-footer ul{list-style:none}
#sf-footer svg{flex:none;width:18px;height:18px}
#sf-footer :is(a,button,summary){-webkit-tap-highlight-color:transparent;color:var(--sf-ink)!important}
#sf-footer :is(a,button,summary):focus-visible{outline:2px solid var(--sf-ink)!important;outline-offset:2px;border-radius:4px}

/* Promise strip */
#sf-footer .sf-facts{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));margin:0!important;padding:10px 0!important;border-bottom:1px solid var(--sf-line);background:none;font-weight:500!important}
#sf-footer .sf-facts li{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;padding:2px 3px;font-size:12px;line-height:1.2;color:var(--sf-ink);text-align:left}
#sf-footer .sf-facts li+li{border-left:1px solid var(--sf-line)}
#sf-footer .sf-facts svg{width:17px;height:17px}

/* Brand row */
#sf-footer .sf-brand{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0 10px}
#sf-footer .sf-logo{display:block;flex:0 1 auto;min-width:0}
#sf-footer .sf-logo img{display:block;width:auto;height:26px;max-width:150px;object-fit:contain;filter:grayscale(1) contrast(1.4)}
#sf-footer .sf-place{display:flex;align-items:center;gap:4px;color:var(--sf-soft);font-size:13px;white-space:nowrap}
#sf-footer .sf-place svg{width:16px;height:16px}

/* WhatsApp */
#sf-footer a.wa-footer-link.sf-wa{display:flex!important;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;padding:0 14px!important;border:0!important;border-radius:10px;background:var(--sf-ink)!important;color:#fff!important;font:600 15px/1.2 var(--sf-font)!important;text-decoration:none!important;cursor:pointer}
#sf-footer a.sf-wa strong{flex:1;text-align:center;font-weight:600;color:inherit}
#sf-footer a.sf-wa svg{width:20px;height:20px}
#sf-footer a.sf-wa::before{content:"";flex:none;width:22px;height:22px;background:#fff;-webkit-mask:url("/assets/ui/whatsapp-ink.svg") center/contain no-repeat;mask:url("/assets/ui/whatsapp-ink.svg") center/contain no-repeat}
#sf-footer a.sf-wa>svg:first-child{display:none}
#sf-footer a.sf-wa[aria-disabled="true"]{opacity:.65;cursor:progress}
#sf-footer a.sf-wa[data-state="error"] strong::after{content:" · tekrar deneyin";font-weight:400}

/* Phone / email */
#sf-footer .sf-channels{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 12px;padding:4px 0;border-bottom:1px solid var(--sf-line)}
#sf-footer .sf-channels li{display:flex;align-items:center;gap:6px;min-width:0;min-height:44px}
#sf-footer .sf-channels li:has(>[data-contact-phone][hidden]){display:none}
#sf-footer .sf-channels a{padding:8px 0!important;font:500 14px/1.2 var(--sf-font)!important;text-decoration:none!important;font-variant-numeric:tabular-nums}

/* Native closed reveals */
#sf-footer .sf-fold{border-bottom:1px solid var(--sf-line)}
#sf-footer .sf-fold>summary{display:flex;align-items:center;justify-content:space-between;min-height:46px;font-weight:600;font-size:15px;cursor:pointer;list-style:none}
#sf-footer .sf-fold>summary::-webkit-details-marker{display:none}
#sf-footer .sf-fold>summary::after{content:"+";font:300 24px/1 var(--sf-font)}
#sf-footer .sf-fold[open]>summary::after{content:"\2212"}
#sf-footer .sf-company dl{display:grid;gap:8px;padding:0 0 12px}
#sf-footer .sf-company dt{color:var(--sf-soft);font-size:11px;letter-spacing:.3px}
#sf-footer .sf-company dd{font-size:13px;font-variant-numeric:tabular-nums}
#sf-footer nav.sf-links{display:grid!important;gap:0!important;padding:0 0 8px}
#sf-footer nav.sf-links a{display:flex;align-items:center;min-height:40px;padding:0!important;font:500 14px/1.3 var(--sf-font)!important;text-decoration:none!important}

/* Base row */
#sf-footer .sf-base{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:6px;color:var(--sf-soft);font-size:13px}
#sf-footer .sf-cookie{min-height:40px;padding:0!important;border:0!important;background:none!important;font:400 13px/1 var(--sf-font)!important;text-decoration:underline!important;text-underline-offset:3px;cursor:pointer;display:inline-flex;align-items:center}

@media(max-width:359px){
  #sf-footer .sf-facts li{gap:3px;font-size:10.5px}
  #sf-footer .sf-facts svg{width:15px;height:15px}
  #sf-footer .sf-channels a{font-size:12px!important}
  #sf-footer .sf-logo img{height:22px}
}
@media(min-width:768px){
  #sf-footer.sf-footer{padding-inline:max(24px,calc((100% - 760px)/2))!important}
}
@media(prefers-reduced-motion:reduce){#sf-footer *{transition:none!important}}

/* Standalone legal/contact pages */
.sf-standalone #sf-footer.sf-footer{margin:32px 0 0!important;padding-bottom:calc(16px + env(safe-area-inset-bottom))!important}
.sf-standalone #sf-footer :is(h2,section){background:none;border:0}
/* The direct footer contact replaces the duplicate green floating badge here. */
body.legal-page:has(#sf-footer) .wa-floating{display:none!important}

/* Focused payment/upload steps hide the footer. */
#fincan-store[data-route="payment"] #sf-footer{display:none!important}
#fincan-store[data-route="notify"] #sf-footer{display:none!important}
