/* TCHAHIT — customer bottom tab bar on the website (components/customer-chrome.tsx).
 * Same five destinations and the same look as the home page bar (app/home-v96.css):
 * docked, five equal 56px columns, 22px icons, 13px/600 labels, the current page in
 * the action colour with a top indicator. Phones and small tablets only; the
 * Android / installed app draws its own tabs (html[data-app]). */
.tc-webtabs { display: none; }
@media (max-width: 900px) {
  html:not([data-app]) .tc-webtabs {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 90;
    margin: 0;
    padding: 4px max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    border-top: 1px solid var(--tc-border, #efe2d4);
    background: var(--tc-surface, #fff);
    box-shadow: 0 -6px 20px rgba(31, 26, 23, .06);
    font-family: var(--tc-font-ui, inherit);
  }
  .tc-webtabs > a {
    position: relative;
    min-width: 0;
    min-height: 56px;
    padding: 6px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: var(--tc-r-md, 12px);
    color: var(--tc-text-3, #6d625a);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .tc-webtabs > a:hover { color: var(--tc-text, #1f1a17); }
  .tc-webtabs > a:focus-visible { outline: 3px solid var(--tc-focus, #c2410c); outline-offset: -3px; }
  .tc-webtabs > a[aria-current="page"] { background: var(--tc-brand-50, #fff5f0); color: var(--tc-action, #c2410c); }
  .tc-webtabs > a[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: -5px;
    inset-inline: 30%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--tc-action, #c2410c);
  }
  .tc-webtabs svg { flex: none; width: 22px; height: 22px; stroke-width: 2; }
  .tc-webtabs small { font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
  .tc-webtabs > a > i {
    position: absolute;
    top: 2px;
    inset-inline-start: calc(50% + 4px);
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid var(--tc-surface, #fff);
    border-radius: 999px;
    background: var(--tc-action, #c2410c);
    color: var(--tc-on-action, #fff);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
  }

  /* Room for the bar: the page never ends under it, the assistant floats above it. */
  html[data-web-tabs]:not([data-app]) body { padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px)); }
  html[data-web-tabs]:not([data-app]) .assistant-launcher { bottom: calc(77px + env(safe-area-inset-bottom, 0px)); }
  html[data-web-tabs]:not([data-app]) { --as-bottom: calc(77px + var(--as-launch, 56px) + 12px + env(safe-area-inset-bottom, 0px)); }
  /* The shared footer already clears the round launcher; with the tab bar it only needs its normal padding. */
  html[data-web-tabs]:not([data-app]) footer.tc-footer { padding-bottom: calc(var(--as-gap, 16px) + var(--as-launch, 56px) + 16px); }
  /* Full-screen map: the canvas and its floating button stop above the bar. */
  html[data-web-tabs]:not([data-app]) .public-map-page { bottom: calc(65px + env(safe-area-inset-bottom, 0px)); }
  html[data-web-tabs]:not([data-app]) .public-map-locate { bottom: calc(81px + env(safe-area-inset-bottom, 0px)); }
  html[data-web-tabs]:not([data-app]) .public-map-locate-status { bottom: calc(141px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .tc-webtabs > a { transition: color var(--tc-dur-2, 180ms) var(--tc-ease-out, ease), background-color var(--tc-dur-2, 180ms) var(--tc-ease-out, ease); }
}
@media print { .tc-webtabs { display: none !important; } }
