/* Deposit & online payment preview (demo only — no real charges) */
.pay-box {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 14px 14px;
  margin: 4px 0 0;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  min-width: 0;
}
.pay-box legend { padding: 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.demo-chip { font-size: 9px; letter-spacing: 0.12em; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.pay-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--ink); }
.pay-sub { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pay-options { display: grid; gap: 8px; }
.pay-opt { position: relative; display: block; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt .card {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center;
  border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 12px 12px;
  background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
[data-theme="barber"] .pay-opt .card { background: #fff; }
.pay-opt .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.pay-opt input:checked + .card { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.pay-opt input:checked + .card .dot { border-color: var(--accent); }
.pay-opt input:checked + .card .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pay-opt input:focus-visible + .card { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-opt b { display: block; font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.pay-opt small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.pay-opt .amt { font-weight: 800; font-size: 15px; color: var(--accent); }
.pay-provider { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pay-provider > span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.seg label { display: block; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span { display: block; padding: 7px 14px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: none; letter-spacing: 0; }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.pay-methods { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.pay-methods i { font-style: normal; font-size: 11px; font-weight: 700; border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 9px; color: var(--ink); }
.pay-fine { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.pay-fine b { color: var(--ink); }

/* Confirmation ticket extras */
.dep-card { margin: 14px 0 6px; border-radius: 16px; background: #1a140f; color: #faf6f0; padding: 14px 16px; }
.dep-card .dep-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dep-card .dep-top span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #c4a574; }
.dep-card .dep-top b { font-size: 24px; font-weight: 800; }
.dep-card p { margin: 6px 0 12px !important; font-size: 12.5px !important; color: #d8cdbd !important; line-height: 1.5; }
.dep-card .btn { width: 100%; background: #faf6f0 !important; color: #1a140f !important; flex: none; }
.dep-note { font-size: 11px !important; color: #8a7b68 !important; margin-top: 8px !important; }
.sms-mini { background: #eef0f4; border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 13px; color: #1a1a1a; margin: 10px 0 4px; line-height: 1.45; }
.paid-badge { display: inline-flex; gap: 6px; align-items: center; background: #e2f4ea; color: #1f6b47; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 12.5px; margin: 10px 0 2px; }

/* Demo checkout modal */
.pay-modal[hidden] { display: none; }
.pay-modal { position: fixed; inset: 0; z-index: 120; background: rgba(8,8,12,.66); display: grid; place-items: end center; padding: 12px; overflow-y: auto; }
@media (min-width: 720px) { .pay-modal { place-items: center; } }
.pay-sheet { width: min(100%, 440px); background: #fff; color: #14151a; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.pay-demo-bar { background: #fff4c7; color: #6b5200; font-size: 11.5px; font-weight: 700; text-align: center; padding: 8px 12px; letter-spacing: .02em; }
.pay-head { padding: 18px 20px 4px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pay-head .merchant { font-size: 13px; color: #5b6070; }
.pay-head .merchant b { display: block; color: #14151a; font-size: 15px; }
.pay-head .total { text-align: right; font-size: 11px; color: #5b6070; text-transform: uppercase; letter-spacing: .08em; }
.pay-head .total b { display: block; font-size: 30px; letter-spacing: -.02em; color: #14151a; text-transform: none; }
.pay-line { padding: 0 20px; font-size: 13px; color: #5b6070; display: flex; justify-content: space-between; border-bottom: 1px solid #eceef3; padding-bottom: 12px; margin-top: 4px; }
.pay-body { padding: 16px 20px 6px; }
.pay-wallets { display: grid; gap: 8px; }
.wallet-btn { border: 0; border-radius: 12px; min-height: 48px; font-weight: 700; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.wallet-apple { background: #000; color: #fff; }
.wallet-google { background: #fff; color: #3c4043; border: 1.5px solid #dadce0; }
.pay-or { text-align: center; font-size: 12px; color: #8a8f9c; margin: 12px 0; display: flex; align-items: center; gap: 10px; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: #eceef3; }
.pay-card { display: grid; gap: 8px; }
.pay-card label { display: grid; gap: 4px; font-size: 11px; color: #5b6070; text-transform: none; letter-spacing: 0; font-weight: 600; }
.pay-card input { background: #f6f7fa !important; color: #14151a; border: 1px solid #e1e4ec; border-radius: 10px; padding: 11px 12px; font-size: 14px; }
.pay-card .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-go { width: 100%; margin-top: 12px; min-height: 50px; border: 0; border-radius: 12px; font-weight: 800; font-size: 15px; cursor: pointer; color: #fff; background: #635bff; }
.pay-sheet[data-provider="square"] .pay-go { background: #111; }
.pay-go:disabled { opacity: .7; cursor: wait; }
.pay-foot { padding: 12px 20px 18px; font-size: 11.5px; color: #6c7283; line-height: 1.5; text-align: center; }
.pay-foot b { color: #14151a; }
.pay-close { background: none; border: 0; color: #5b6070; font-size: 13px; cursor: pointer; padding: 4px 8px; margin: 0 auto 10px; display: block; }
.pay-success { text-align: center; padding: 26px 22px 10px; }
.pay-success .check { width: 58px; height: 58px; border-radius: 50%; background: #e2f4ea; color: #1f8a57; display: grid; place-items: center; font-size: 30px; margin: 0 auto 12px; }
.pay-success h3 { margin: 0 0 6px; font-size: 20px; }
.pay-success p { margin: 0 0 6px; font-size: 13.5px; color: #4a5060; line-height: 1.5; }
.pay-success .receipt { margin: 14px 0 4px; font-size: 12px; color: #6c7283; }
.pay-success .btn { margin-top: 10px; width: 100%; background: #14151a; color: #fff; }

/* —— Owner dashboard deposit controls —— */
.dep-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(22,21,19,.06); color: var(--muted); }
.dep-pill.dep-paid { background: #d8f0e4; color: #1f7a54; }
.dep-pill.dep-sent { background: #dbeafe; color: #1d4ed8; }
.dep-pill.dep-pay_now { background: #f8e7b8; color: #7a5a10; }
.dep-pill.dep-text_link { background: #ede4ff; color: #5b3bb5; }
.dep-toggle { border: 1px solid rgba(22,21,19,.1); border-radius: 12px; padding: 10px 12px; background: #fbfaf7; display: grid; gap: 10px; }
.dep-switch { display: flex !important; flex-direction: row !important; gap: 10px !important; align-items: flex-start; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; }
.dep-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dep-track { flex: none; width: 38px; height: 22px; border-radius: 999px; background: #c9ccd4; position: relative; transition: background .15s; margin-top: 1px; }
.dep-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.dep-switch input:checked + .dep-track { background: #635bff; }
.dep-switch input:checked + .dep-track::after { transform: translateX(16px); }
.dep-switch input:focus-visible + .dep-track { outline: 2px solid #635bff; outline-offset: 2px; }
.dep-switch input:disabled + .dep-track { opacity: .5; }
.dep-copy b { display: block; font-size: 13px; color: #161513; font-weight: 700; text-transform: none; letter-spacing: 0; }
.dep-copy small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.dep-provider { display: inline-flex; border: 1px solid rgba(22,21,19,.14); border-radius: 999px; overflow: hidden; width: fit-content; }
.dep-provider[hidden], .dep-preview[hidden] { display: none; }
.dep-prov { border: 0; background: #fff; padding: 6px 14px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.dep-prov.is-on { background: #161513; color: #fff; }
.dep-preview .who { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dep-preview .sms-bubble { word-break: break-word; }
