/* Marketing /business and /business/signup only. After page CSS so presses, the sticky bar, the menu, and the waitlist sheet win the cascade. */
:root{
  --ease-out:cubic-bezier(.23,1,.32,1);
  --ease-in-out:cubic-bezier(.77,0,.175,1);
  --ease-drawer:cubic-bezier(.32,.72,0,1);
  --ease:var(--ease-out);
}

@keyframes bz-reveal{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:none}}
@keyframes bz-sheet{from{opacity:.6;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes bz-sheet-fade{from{opacity:0}to{opacity:1}}
@keyframes bz-spin{to{transform:rotate(360deg)}}

/* Nav pickup and menu. html.hz already hides the nav CTA while the hero ZIP is on screen. */
html body #nav.ux .links a,
html body #nav.ux .nav-in{transition:background-color .15s var(--ease-out)}
html body #nav.ux .home-nav-book{
  transform-origin:center;
  touch-action:manipulation;
  transition:transform .12s var(--ease-out),opacity .2s var(--ease-out),background-color .16s var(--ease-out),visibility 0s linear!important;
}
html.hz body #nav.ux .home-nav-book{
  opacity:0!important;
  visibility:hidden!important;
  transform:scale(.95);
  pointer-events:none;
  transition:transform .2s var(--ease-out),opacity .2s var(--ease-out),background-color .16s var(--ease-out),visibility 0s linear .2s!important;
}
html body #nav.ux .home-nav-book:active{transform:scale(.97)}
html.hz body #nav.ux .home-nav-book:active{transform:scale(.95)}
html body #nav.ux #nav-mobile-menu .mnav-p.nlx-drawer{
  transition:opacity .2s var(--ease-out),transform .22s var(--ease-drawer)!important;
}
html body .nlx-drawer{transition:transform .22s var(--ease-drawer),opacity .2s var(--ease-out)!important}
html body .nlx-bd{transition:opacity .2s var(--ease-out)!important}

/* Primary presses. Colors stay with the page. */
html body main.bz-page .bs-pill button,
html body main.bz-page a.bs-reserve,
html body main.bz-page .btn:not(.ghost),
html body main.bz-page .bz8-go,
html body main.bz-page .bk-go,
html body main.bz-page .map-tools button,
html body main.bz-page .bz8-vid-btn{
  transform-origin:center;
  touch-action:manipulation;
  transition:transform .12s var(--ease-out),background-color .16s var(--ease-out),opacity .16s var(--ease-out),border-color .16s var(--ease-out)!important;
}
html body main.bz-page .bz8-go:hover,
html body main.bz-page .bz8-intro .btn:hover,
html body main.bz-page .bz8 .bz-panel .btn:hover,
html body main.bz-page .bz8-plans .bz-plan:hover,
html body main.bz-page .bk-go:hover{transform:none}
html body main.bz-page .bs-pill button:active,
html body main.bz-page a.bs-reserve:active,
html body main.bz-page .btn:not(.ghost):active,
html body main.bz-page .bz8-go:active,
html body main.bz-page .bk-go:active,
html body main.bz-page .map-tools button:active,
html body main.bz-page .bz8-vid-btn:active{transform:scale(.97)!important}
html body main.bz-page .bz8-faq summary::after{transition:transform .2s var(--ease-out)!important}
html body main.bz-page .bz8-plans .bz-plan{transition:border-color .16s var(--ease-out),box-shadow .16s var(--ease-out),background-color .16s var(--ease-out)!important}

/* Sticky reserve bar: short fade and scale, not a 350ms slide. */
@media(max-width:700px){
  html body a.bz-stick#mbar{
    opacity:1;
    transform-origin:center;
    touch-action:manipulation;
    transition:transform .22s var(--ease-out),opacity .22s var(--ease-out),background-color .16s var(--ease-out)!important;
  }
  html body a.bz-stick#mbar.hide{
    transform:translateY(12px) scale(.95)!important;
    opacity:0;
  }
  html body a.bz-stick#mbar:not(.hide):active{transform:scale(.97)!important}
  html body:has(a.bz-stick#mbar:not(.hide)) #nav.ux .home-nav-book{
    opacity:0!important;
    visibility:hidden!important;
    transform:scale(.95);
    pointer-events:none;
    transition:transform .2s var(--ease-out),opacity .2s var(--ease-out),background-color .16s var(--ease-out),visibility 0s linear .2s!important;
  }
  html body:has(a.bz-stick#mbar:not(.hide)) #nav.ux .home-nav-book:active{transform:scale(.95)}
}

/* Out-of-area sheet. Desktop keeps its centered transform, so only opacity runs there. */
html body #bzw button.zw-join,
html body #bzw button.zw-share{
  touch-action:manipulation;
  transition:transform .12s var(--ease-out),background-color .16s var(--ease-out);
}
html body #bzw button.zw-join:active,
html body #bzw button.zw-share:active{transform:scale(.97)}
@media(prefers-reduced-motion:no-preference) and (max-width:899px){
  html body #bzw:not([hidden]) .zw-sheet{animation:bz-sheet .26s var(--ease-drawer)}
}
@media(prefers-reduced-motion:no-preference) and (min-width:900px){
  html body #bzw:not([hidden]) .zw-sheet{animation:bz-sheet-fade .2s var(--ease-out)}
}
@media(prefers-reduced-motion:no-preference){
  html body #bzw .zw-go .zw-ring{animation:zw-ring .26s var(--ease-out) forwards}
  html body #bzw .zw-go .zw-tick{animation:zw-tick .2s var(--ease-out) .12s forwards}
}

/* Signup: address list, tip chips, and the footer press. Places markup is unchanged. */
@media(prefers-reduced-motion:no-preference){
  html body #bs .uber-address-suggestions:not([hidden]){transform-origin:top center;animation:bz-reveal .2s var(--ease-out) both}
}
html body #bs .stage[data-step="4"] .checkout-tip-choice{
  touch-action:manipulation;
  transition:transform .12s var(--ease-out),border-color .16s var(--ease-out),background-color .16s var(--ease-out);
}
html body #bs .stage[data-step="4"] .checkout-tip-choice:active{transform:scale(.97)}
html body #nl-booking-footer #nl-booking-next,
html body #nl-booking-footer #submit,
html body #nl-booking-footer button.pay{
  touch-action:manipulation;
  transition:transform .12s var(--ease-out),background-color .16s var(--ease-out),opacity .16s var(--ease-out)!important;
}
html body #nl-booking-footer #nl-booking-next:not(:disabled):active,
html body #nl-booking-footer #submit:not(:disabled):active,
html body #nl-booking-footer button.pay:not(:disabled):active{transform:scale(.97)!important}
html body #nl-booking-footer [aria-busy="true"]{position:relative}
html body #nl-booking-footer [aria-busy="true"]::after{
  content:"";
  position:absolute;
  right:18px;
  top:50%;
  width:16px;
  height:16px;
  margin-top:-8px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  animation:bz-spin .55s linear infinite;
}

@media(prefers-reduced-motion:reduce){
  html body #nav.ux .home-nav-book,
  html.hz body #nav.ux .home-nav-book,
  html body:has(a.bz-stick#mbar:not(.hide)) #nav.ux .home-nav-book,
  html body #nav.ux .home-nav-book:active,
  html body #nav.ux #nav-mobile-menu .mnav-p.nlx-drawer,
  html body .nlx-drawer,
  html body .nlx-bd,
  html body #nav.ux .links a,
  html body #nav.ux .nav-in,
  html body main.bz-page .bs-pill button,
  html body main.bz-page a.bs-reserve,
  html body main.bz-page .btn,
  html body main.bz-page .bz8-go,
  html body main.bz-page .bk-go,
  html body main.bz-page .map-tools button,
  html body main.bz-page .bz8-vid-btn,
  html body main.bz-page .bz8-faq summary::after,
  html body main.bz-page .bz8-plans .bz-plan,
  html body a.bz-stick#mbar,
  html body a.bz-stick#mbar.hide,
  html body #bzw button.zw-join,
  html body #bzw button.zw-share,
  html body #bzw .zw-sheet,
  html body #bzw .zw-go .zw-ring,
  html body #bzw .zw-go .zw-tick,
  html body #bs .uber-address-suggestions,
  html body #bs .stage[data-step="4"] .checkout-tip-choice,
  html body #nl-booking-footer #nl-booking-next,
  html body #nl-booking-footer #submit,
  html body #nl-booking-footer button.pay,
  html body #nl-booking-footer [aria-busy="true"]::after{
    animation:none!important;
    transition:none!important;
  }
  html.hz body #nav.ux .home-nav-book,
  html body:has(a.bz-stick#mbar:not(.hide)) #nav.ux .home-nav-book,
  html body a.bz-stick#mbar.hide{transform:none}
}
