/* Shared by the marketplace and its public information and service pages. */
body footer.tf-footer {
  --tf-paper:#151a21;
  --tf-line:#39414a;
  --tf-text:#eff2ed;
  --tf-muted:#bac3c7;
  --tf-accent:#e2f876;
  --tf-gutter:clamp(16px,3vw,38px);
  box-sizing:border-box;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  width:100%; max-width:none; margin:0;
  padding:8px max(var(--tf-gutter),calc((100% - 1190px)/2));
  gap:2px 18px;
  border:0; border-top:1px solid var(--tf-line); border-radius:0;
  background:var(--tf-paper); color:var(--tf-text);
  font:500 14px/1.35 "Tovo Signal Sans","DM Sans",Arial,sans-serif;
  text-align:start;
}
body footer.tf-footer :is(.tf-links,.tf-utility,.storage-footer) {
  display:flex; align-items:center; flex-wrap:wrap; min-width:0; max-width:100%;
  margin:0; padding:0; gap:0 16px;
}
body footer.tf-footer .tf-links :is(a,button),
body footer.tf-footer :is(.tf-utility,.storage-footer) button,
body footer.tf-footer a.tf-brand {
  display:inline-flex; align-items:center; justify-content:flex-start;
  box-sizing:border-box; min-width:0; max-width:100%; min-height:36px;
  width:auto; margin:0; padding:0; border:0; border-radius:0;
  background:transparent; box-shadow:none; color:var(--tf-text) !important;
  font:inherit; font-size:14px; font-weight:550; line-height:1.3;
  text-align:start; text-decoration:none; overflow-wrap:anywhere;
  white-space:normal; cursor:pointer; touch-action:manipulation;
}
body footer.tf-footer .tf-links { flex-basis:auto; justify-content:flex-start; }
body footer.tf-footer .tf-help :is(a,button) { color:#d1d9d9 !important; font-weight:450; }
body footer.tf-footer :is(.tf-utility,.storage-footer) button { font-size:13px; color:var(--tf-muted) !important; }
body footer.tf-footer a.tf-brand { flex:0 0 auto; gap:4px; }
body footer.tf-footer a.tf-brand > img:not([hidden]) {
  display:block; width:78px; height:23px; max-width:none; object-fit:contain; object-position:left center;
}
body footer.tf-footer :is(.tf-copyright,.tf-note,.storage-footer span) {
  color:var(--tf-muted); font:450 12px/1.45 "Tovo Signal Sans","DM Sans",Arial,sans-serif;
}
body footer.tf-footer .tf-copyright { margin:0; white-space:normal; }
body footer.tf-footer .tf-note { flex:1 1 38ch; min-width:0; max-width:85ch; margin:3px 0; }
body footer.tf-footer .storage-footer span:empty { display:none; }
body footer.tf-footer :is(a,button):focus-visible { outline:2px solid var(--tf-accent) !important; outline-offset:3px; border-radius:2px; }
@media (hover:hover) {
  body footer.tf-footer :is(a,button):hover { color:var(--tf-accent) !important; text-decoration:underline; text-underline-offset:3px; }
}

/* Keep the first direct div available to native CMS, People and loyalty extensions. */
body > footer.tf-footer.tf-main {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; column-gap:12px; row-gap:0;
  justify-content:stretch; justify-items:start;
}
body > footer.tf-main > .tf-market { grid-column:1/3; grid-row:1; }
body > footer.tf-main > .tf-help { grid-column:3; grid-row:1; justify-self:end; justify-content:flex-end; }
body > footer.tf-main > .tf-brand { grid-column:1; grid-row:2; }
body > footer.tf-main > .tf-copyright { grid-column:2; grid-row:2; align-self:center; }
body > footer.tf-main > .storage-footer { grid-column:3; grid-row:2; justify-self:end; justify-content:flex-end; gap:0 8px; }

/* At desktop widths the normal footer fits on one line in its keyboard order. */
@media (min-width:1280px) {
  body > footer.tf-footer.tf-main {
    grid-template-columns:fit-content(32%) minmax(0,1fr) auto fit-content(12%) fit-content(16%);
    column-gap:clamp(16px,1.4vw,23px);
  }
  body > footer.tf-main > .tf-market { grid-area:1/1; }
  body > footer.tf-main > .tf-help { grid-area:1/2; justify-self:start; justify-content:flex-start; }
  body > footer.tf-main > .tf-brand { grid-area:1/3; }
  body > footer.tf-main > .tf-copyright { grid-area:1/4; }
  body > footer.tf-main > .storage-footer { grid-area:1/5; }
}

/* The native desktop rail and listing inspector reserve real columns alongside the footer. */
@media screen and (min-width:1101px) {
  body.ds-enabled > footer.tf-main {
    width:auto;
    margin-left:calc(var(--ollo-edge,0px) + var(--ds-rail));
    margin-right:var(--ollo-edge,0px);
    padding-inline:clamp(16px,2.4vw,34px);
  }
  body.ds-enabled.ds-detail-open > footer.tf-main {
    margin-right:calc(var(--ollo-edge,0px) + var(--ds-panel));
    grid-template-columns:auto minmax(0,1fr) auto;
  }
  body.ds-enabled.ds-detail-open > footer.tf-main > .tf-market { grid-area:1/1/2/-1; }
  body.ds-enabled.ds-detail-open > footer.tf-main > .tf-help { grid-area:2/1/3/-1; justify-self:start; justify-content:flex-start; }
  body.ds-enabled.ds-detail-open > footer.tf-main > .tf-brand { grid-area:3/1; }
  body.ds-enabled.ds-detail-open > footer.tf-main > .tf-copyright { grid-area:3/2; }
  body.ds-enabled.ds-detail-open > footer.tf-main > .storage-footer { grid-area:3/3; }

  /* Categories hide the entire native listings workspace, including its rail. */
  html[data-tovo-surface="directory"] body.ds-enabled > footer.tf-main {
    --tf-directory-gutter:clamp(14px,3vw,40px);
    width:100%; margin-inline:0;
    padding-inline:calc(max(0px,(100% - 1256px)/2) + var(--tf-directory-gutter));
  }
  html[data-tovo-surface="directory"].tovo-signal-active body.ds-enabled > footer.tf-main {
    --tf-directory-gutter:clamp(22px,3.5vw,52px);
  }
  html[data-tovo-surface="directory"]:has(#tovoDirectory[data-signal-level="primary"]) body.ds-enabled > footer.tf-main {
    --tf-directory-gutter:clamp(8px,2.8vw,36px);
  }
}

@media (max-width:760px) {
  body footer.tf-footer { gap:0 12px; padding-block:3px; }
  body footer.tf-footer :is(.tf-links,.tf-utility,.storage-footer) { gap:0 14px; }
  body footer.tf-footer .tf-links :is(a,button),
  body footer.tf-footer :is(.tf-utility,.storage-footer) button,
  body footer.tf-footer a.tf-brand { min-height:44px; }
  body footer.tf-footer .tf-links :is(a,button) { font-size:13px; }
  body footer.tf-footer .tf-note { flex-basis:100%; margin:5px 0; }
  body > footer.tf-main > .tf-market { grid-column:1/-1; grid-row:1; }
  body > footer.tf-main > .tf-help { grid-column:1/-1; grid-row:2; justify-self:start; justify-content:flex-start; }
  body > footer.tf-main > .tf-brand,
  body > footer.tf-main > .tf-copyright,
  body > footer.tf-main > .storage-footer { grid-row:3; }
  body > footer.tf-main > .storage-footer { max-width:min(52vw,290px); }
  body footer.tf-footer a.tf-brand > img:not([hidden]) { width:68px; height:20px; }
}

/* The native fixed bar is 51px of controls + 8px of padding + 1px of border. */
@media screen and (max-width:760px), screen and (max-width:1100px) and (orientation:portrait), screen and (max-width:1100px) and (any-pointer:coarse) {
  body:not(.account-workspace-mode,.people-active):has(> footer.tf-main):has(> #marketTabBar) {
    padding-bottom:calc(60px + env(safe-area-inset-bottom,0px));
  }
  body:not(.account-workspace-mode,.people-active):has(> footer.tf-main):has(> #marketTabBar) > #olloStorageBanner {
    bottom:calc(76px + env(safe-area-inset-bottom,0px));
    max-height:calc(100vh - 92px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
    max-height:calc(100dvh - 92px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
    overflow-y:auto;
  }
  body footer.tf-footer { padding-left:max(var(--tf-gutter),env(safe-area-inset-left,0px)); padding-right:max(var(--tf-gutter),env(safe-area-inset-right,0px)); }
  body footer.tf-footer .tf-links :is(a,button),
  body footer.tf-footer :is(.tf-utility,.storage-footer) button,
  body footer.tf-footer a.tf-brand { min-height:44px; }
}
@media (max-width:359px) {
  body footer.tf-footer { --tf-gutter:12px; }
  body footer.tf-footer .tf-links { column-gap:10px; }
  body > footer.tf-footer.tf-main { column-gap:8px; }
}
/* The service pages use the same footer without the catalogue's fixed tab bar. */
@media screen {
  html[data-tss] footer.tf-standalone .tf-links {width:auto; margin:0;}
  html[data-tss=advertise] footer.tf-standalone .tf-note,
  html[data-tss=shop] footer.tf-standalone .tf-note {flex:0 1 auto;}
  html[data-tss=vouchers] footer.tf-standalone .tf-note {flex-basis:100%; max-width:95ch; margin:1px 0 3px;}

  /* The shop component scopes every native rule to its root ID. */
  html[data-tss=shop] #ollo-store-200-20261116 footer.os-footer.tf-footer {
    padding:4px clamp(12px,3vw,30px);
    gap:0 14px;
    border-color:var(--tf-line);
    background:var(--tf-paper);
    color:var(--tf-muted);
    font:500 13px/1.4 var(--tss-font);
  }
  html[data-tss=shop] #ollo-store-200-20261116 footer.os-footer button.tf-utility {
    display:inline-flex; align-items:center; justify-content:flex-start;
    min-width:44px; min-height:36px; margin:0; padding:0;
    border:0; background:transparent; color:var(--tf-text);
    font:550 13px/1.3 var(--tss-font); text-underline-offset:3px;
  }
}

@media screen and (max-width:760px) {
  html[data-tss] footer.tf-standalone .tf-links {column-gap:10px;}
  html[data-tss] footer.tf-standalone .tf-links a {min-width:44px;}
  html[data-tss=information] footer.tf-standalone .tf-copyright {flex-basis:100%; margin-bottom:3px;}
  html[data-tss=shop] #ollo-store-200-20261116 footer.os-footer button.tf-utility {min-height:44px;}
  html[data-tss] footer.tf-standalone {padding-bottom:max(4px,env(safe-area-inset-bottom,0px));}
}
