/* Bookasion shared mobile tab bar — public + Client + Provider + Admin */
.bookasion-mobile-tabbar{display:none}

@media (max-width:820px){
  :root{
    --bookasion-tab-maroon:#78172a;
    --bookasion-tab-maroon-dark:#5c121f;
    --bookasion-tab-soft:#f8edef;
    --bookasion-tab-muted:#91888b;
    --bookasion-tab-line:rgba(227,219,214,.88);
    --bookasion-tab-safe-bottom:max(env(safe-area-inset-bottom,0px),10px);
    --bookasion-tab-height:72px;
    --bookasion-tab-lift:14px;
  }

  .bookasion-mobile-tabbar{
    position:fixed;
    z-index:1200;
    right:10px;
    left:10px;
    bottom:var(--bookasion-tab-lift);
    height:calc(var(--bookasion-tab-height) + var(--bookasion-tab-safe-bottom));
    padding:6px 10px calc(var(--bookasion-tab-safe-bottom) + 2px);
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:end;
    border:1px solid var(--bookasion-tab-line);
    border-radius:24px;
    background:rgba(255,255,255,.74);
    box-shadow:0 18px 44px -24px rgba(47,16,23,.24),0 8px 24px -18px rgba(47,16,23,.12);
    backdrop-filter:blur(20px) saturate(165%);
    -webkit-backdrop-filter:blur(20px) saturate(165%);
    isolation:isolate;
  }

  .bookasion-mobile-tab{
    appearance:none;
    -webkit-appearance:none;
    position:relative;
    min-width:0;
    height:58px;
    padding:4px 0 3px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    border:0;
    border-radius:15px;
    background:transparent;
    color:var(--bookasion-tab-muted);
    text-decoration:none;
    font:inherit;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }

  .bookasion-mobile-tab>i{
    width:22px;
    height:22px;
    display:grid;
    place-items:center;
    flex:0 0 22px;
    font-size:20px;
    line-height:1;
  }

  .bookasion-mobile-tab>span{
    max-width:100%;
    min-height:13px;
    padding-bottom:1px;
    overflow:hidden;
    color:inherit;
    font-size:8.5px;
    line-height:1.35;
    font-weight:800;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .bookasion-mobile-tab.active{
    background:rgba(125,21,47,.08);
    color:var(--bookasion-tab-maroon);
  }

  .bookasion-mobile-tab.active::before{
    content:"";
    position:absolute;
    top:1px;
    width:5px;
    height:5px;
    border-radius:50%;
    background:var(--bookasion-tab-maroon);
  }

  .bookasion-mobile-tab.is-primary{
    color:var(--bookasion-tab-maroon);
  }

  .bookasion-mobile-tab:active{
    background:var(--bookasion-tab-soft);
    transform:scale(.98);
  }

  .bookasion-mobile-tab-badge{
    position:absolute;
    top:2px;
    inset-inline-end:16px;
    min-width:17px;
    height:17px;
    padding:0 4px;
    display:grid;
    place-items:center;
    border:2px solid #fff;
    border-radius:999px;
    background:#d52d45;
    color:#fff;
    font-size:7px;
    line-height:1;
    font-weight:900;
  }

  /* Shared spacing so content and floating support never sit under the tab bar. */
  body.dashboard-body .dashboard-main,
  body.dashboard-body .dashboard-shell,
  .site-footer{
    padding-bottom:calc(var(--bookasion-tab-height) + var(--bookasion-tab-safe-bottom) + var(--bookasion-tab-lift) + 18px);
  }

  body.dashboard-body .bookasion-wa-widget,
  .bookasion-wa-widget{
    bottom:calc(var(--bookasion-tab-height) + var(--bookasion-tab-safe-bottom) + var(--bookasion-tab-lift) + 16px)!important;
  }

  html.pwa-standalone .bookasion-mobile-tabbar,
  html.pwa-server-mode .bookasion-mobile-tabbar,
  html[data-pwa-app-mode="1"] .bookasion-mobile-tabbar{
    display:grid;
  }
}

@media (max-width:380px){
  .bookasion-mobile-tabbar{right:8px;left:8px;padding-inline:7px}
  .bookasion-mobile-tab>i{font-size:19px}
  .bookasion-mobile-tab>span{font-size:8px}
}
