/* Customer PWA install + standalone shell polish */
:root{
  --safe-top:env(safe-area-inset-top,0px);
  --safe-right:env(safe-area-inset-right,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-left:env(safe-area-inset-left,0px);
}
html.standalone-app body,
body.standalone-app{
  padding-top:var(--safe-top);
  padding-left:var(--safe-left);
  padding-right:var(--safe-right);
}
.header{padding-left:max(16px,var(--safe-left));padding-right:max(16px,var(--safe-right))}
body.has-mobile-home-bar .mobile-actions:not([hidden]){
  padding-bottom:max(0px,var(--safe-bottom));
  padding-left:max(0px,var(--safe-left));
  padding-right:max(0px,var(--safe-right));
  max-height:calc(72px + var(--safe-bottom));
}
body.has-mobile-home-bar .wa-float{
  bottom:calc(84px + var(--safe-bottom));
  right:max(20px,var(--safe-right));
}
body.has-mobile-home-bar.checkout-route .wa-float,
body.has-mobile-home-bar.manage-route .wa-float{
  bottom:calc(96px + var(--safe-bottom));
}
@media (min-width:601px){
  .mobile-actions,.mobile-actions:not([hidden]){display:none!important}
  body.has-mobile-home-bar .wa-float,
  body.has-mobile-home-bar.checkout-route .wa-float,
  body.has-mobile-home-bar.manage-route .wa-float{
    bottom:max(20px,var(--safe-bottom));
    right:max(20px,var(--safe-right));
  }
}
@media (display-mode:standalone),(display-mode:minimal-ui){
  body.has-mobile-home-bar .mobile-actions:not([hidden]){
    height:auto!important;
    max-height:calc(72px + var(--safe-bottom))!important;
  }
  body.has-mobile-home-bar .mobile-actions a{
    flex:0 0 auto!important;
    height:auto!important;
    max-height:64px!important;
  }
}
#gtf-install-banner{
  position:fixed;left:max(12px,var(--safe-left));right:max(12px,var(--safe-right));bottom:max(12px,var(--safe-bottom));
  z-index:40;display:none;gap:12px;align-items:center;flex-wrap:wrap;
  background:#10243a;color:#fff;border:1px solid rgba(199,244,56,.35);border-radius:14px;padding:14px 16px;
  box-shadow:0 12px 40px rgba(16,36,58,.35);max-width:calc(100vw - 24px - var(--safe-left) - var(--safe-right));
  box-sizing:border-box;overflow-wrap:anywhere
}
body.has-mobile-home-bar #gtf-install-banner{
  bottom:calc(76px + var(--safe-bottom));
}
#gtf-install-banner[data-open="1"]{display:flex}
body:has(#gtf-install-banner[data-open="1"]) .wa-float{
  bottom:calc(110px + var(--safe-bottom));
}
body.has-mobile-home-bar:has(#gtf-install-banner[data-open="1"]) .wa-float{
  bottom:calc(160px + var(--safe-bottom));
}
@media (min-width:601px){
  body:has(#gtf-install-banner[data-open="1"]) .wa-float{
    bottom:calc(110px + var(--safe-bottom));
  }
}
#gtf-install-banner strong{display:block;font:700 15px/1.3 Manrope,sans-serif}
#gtf-install-banner p{margin:4px 0 0;font-size:13px;color:#c7d5e1;max-width:42ch;overflow-wrap:anywhere}
#gtf-install-banner .install-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
#gtf-install-banner button{
  min-height:44px;min-width:44px;border-radius:999px;border:0;padding:0 16px;font-weight:700;cursor:pointer
}
#gtf-install-banner [data-install-confirm]{background:#c7f438;color:#10243a}
#gtf-install-banner [data-install-dismiss]{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35)}
button[data-action="install-customer-app"],
a[data-action="install-customer-app"]{
  min-height:44px
}
#nav a[data-action="install-customer-app"]{white-space:nowrap}
body.is-offline .header::after{
  content:"Offline · bookings need internet";
  display:block;text-align:center;font-size:12px;font-weight:700;letter-spacing:.04em;
  background:#8b1e3d;color:#fff;padding:8px 12px;overflow-wrap:anywhere
}
@media (max-width:760px){
  #gtf-install-banner{flex-direction:column;align-items:flex-start}
  #gtf-install-banner .install-actions{margin-left:0;width:100%}
  #gtf-install-banner .install-actions button{flex:1}
}
dialog#gtf-ios-install{border:0;border-radius:16px;padding:0;max-width:min(420px,92vw)}
dialog#gtf-ios-install::backdrop{background:rgba(16,36,58,.55)}
dialog#gtf-ios-install .sheet{padding:22px 20px 20px;background:#fff;color:#10243a}
dialog#gtf-ios-install h2{margin:0 0 8px;font-size:1.25rem}
dialog#gtf-ios-install ol{margin:12px 0 18px;padding-left:1.2rem;line-height:1.55}
dialog#gtf-ios-install .sheet-actions{display:flex;gap:8px;justify-content:flex-end}
