/* Shared checkout sheet — Square-style, launched in context (not a tab). */
#coDlg,html.one #coDlg{padding:0;border:0;background:transparent}
#coDlg .co-sheet,html.one #coDlg .co-sheet{
  display:flex;flex-direction:column;background:var(--card,#fff);color:var(--ink);
  overflow:hidden;position:relative
}
#coDlg #bzSale{flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:16px 20px 24px}
#coDlg .bzhead{position:sticky;top:0;z-index:2;background:var(--card,#fff);padding-top:8px;padding-bottom:10px;margin:0 0 8px;border-bottom:1px solid var(--line,#e4dfd8);align-items:center}
#coDlg .bzpay,#coDlg .bzpaid,#coDlg #bzRcpt2{position:sticky;bottom:0}
#coDlg .cosig{margin-top:12px}
#coDlg .cosig canvas{width:100%;max-width:640px;height:160px;border:1.5px solid var(--line-2,#d6d3d1);border-radius:12px;background:#fff;touch-action:none;cursor:crosshair}
#coDlg .co-x{position:absolute;top:10px;right:10px;z-index:3;min-width:44px;min-height:44px;width:44px;padding:0;font-size:20px;line-height:1}
@media (min-width:1024px){
  #coDlg,html.one #coDlg{
    width:min(1100px,96vw);max-width:1100px;min-width:min(960px,96vw);
    height:auto;max-height:90vh;margin:auto;border-radius:20px
  }
  #coDlg .co-sheet{max-height:90vh;border-radius:20px;box-shadow:0 24px 80px rgba(28,25,23,.28);border:1px solid var(--line,#e4dfd8)}
  #coDlg::backdrop{background:rgba(15,18,25,.45)}
}
@media (max-width:1023px){
  #coDlg,html.one #coDlg{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}
  #coDlg .co-sheet{height:100dvh;max-height:100dvh;border-radius:0}
}
html[data-theme=dark] #coDlg .co-sheet,html[data-theme=dark] #coDlg .bzhead{background:var(--card,#1c1c1e)}
html[data-theme=dark] #coDlg .cosig canvas{background:#111;border-color:#3f3f46}
html[data-device=phone] .one-search{flex-wrap:wrap}
html[data-device=phone] #oneNewSale{flex:1 1 100%;min-height:48px;justify-content:center}
.one-search #oneNewSale{min-height:48px;white-space:nowrap}

#coDlg{position:relative}
#coDlg .bzpay-sheet{
  position:absolute;inset:0;z-index:8;display:flex;align-items:center;justify-content:center;
  padding:24px;background:rgba(15,18,25,.45)
}
#coDlg .bzpay-sheet .bzpayf{
  width:min(480px,100%);max-height:min(720px,calc(90vh - 48px));overflow:auto;
  background:var(--card,#fff);color:var(--ink);border-radius:16px;padding:20px 22px 18px;
  box-shadow:0 16px 48px rgba(28,25,23,.28)
}
html[data-theme=dark] #coDlg .bzpay-sheet .bzpayf{background:var(--card,#1c1c1e)}
#coDlg .bzpay-sheet .bzmeth{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#coDlg .bzpay-sheet .bzmeth button{min-height:44px}
