.cw-panel { width:min(1000px,96vw); max-height:92dvh; overflow:auto; padding:28px; background:#fffdf9; }
.cw-panel h2 { margin:0 0 12px; }.cw-panel .panel-header { align-items:flex-start; gap:18px; }
.cw-eyebrow { color:#9b4938; font-size:12px; font-weight:750; letter-spacing:.08em; }
.cw-checkout-grid { display:grid; grid-template-columns:1.25fr 1fr; gap:32px; }
.cw-payment { padding:22px; background:#f5f1e9; border-radius:16px; display:flex; flex-direction:column; gap:18px; }
.cw-items { overflow:auto; max-height:40vh; }.cw-items table { border-collapse:collapse; width:100%; font-size:15px; }
.cw-items th,.cw-items td { padding:12px 8px; border-bottom:1px solid #e8e1d6; text-align:left; vertical-align:top; }
.cw-items th { color:#726b61; font-size:12px; position:sticky; top:0; background:#fffdf9; }
.cw-items th:nth-child(n+2),.cw-items td:nth-child(n+2) { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.cw-items small { display:block; color:#786c5c; padding-top:6px; line-height:1.5; }
.cw-breakdown { padding:16px 8px; }.cw-breakdown>div { display:flex; justify-content:space-between; gap:16px; margin:10px 0; }
.cw-total,.cw-change { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 0; border-top:2px solid #dcd3c5; }
.cw-total strong { font-size:34px; font-variant-numeric:tabular-nums; }.cw-change strong { font-size:28px; }
.cw-wide { width:100%; }.cw-actions,.cw-shortcuts { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.cw-shortcuts button { min-width:56px; padding:10px; }.cw-inline { display:flex; gap:8px; }.cw-inline input { width:100%; min-width:0; }
.cw-inline>button { flex-shrink:0; white-space:nowrap; }
.cw-discounts { display:grid; gap:12px; }.cw-discount-section { min-width:0; margin:0; border:1px solid #ddd4c5; border-radius:12px; padding:14px; background:#fffdf9; }
.cw-discount-section legend { padding:0 6px; font-size:16px; font-weight:750; }.cw-discount-section .field { margin:0; }.cw-discount-section .cw-shortcuts { margin-bottom:0; }
.cw-discount-help { margin:0; color:#756b5d; font-size:12px; line-height:1.6; }.cw-discount-section .cw-discount-help { margin-top:8px; }
.cw-discount-current { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; font-weight:650; }.cw-discount-current button { flex-shrink:0; white-space:nowrap; }
.cw-discount-pending { margin:0; color:#9b4938; font-size:13px; line-height:1.5; }
.cw-check { display:flex; align-items:flex-start; gap:10px; font-size:14px; line-height:1.6; }.cw-check input { width:18px; height:18px; margin-top:2px; flex-shrink:0; }
.cw-error { color:#ad2920; white-space:pre-wrap; line-height:1.6; }.cw-error:empty { display:none; }.cw-notice { background:#fff4d8; border-radius:8px; padding:12px; line-height:1.7; font-size:14px; }
.cw-table-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.cw-table { border:1px solid #dedbd4; border-radius:14px; padding:16px; background:#faf9f5; }.cw-table.occupied { background:#fff6ed; border-color:#e5a175; }
.cw-table header { display:flex; justify-content:space-between; align-items:center; gap:10px; }.cw-table header strong { font-size:22px; }.cw-table header span { font-size:12px; color:#746751; }
.cw-table>b { font-size:24px; }.cw-table p { color:#776b58; margin:8px 0; }.cw-table .cw-actions { margin-bottom:0; }
.cw-customer { width:min(1100px,98vw); text-align:center; background:#fffdf9; }.cw-customer:fullscreen { width:100vw; max-height:100dvh; padding:4vh 8vw; overflow:auto; }
.cw-customer-header { display:flex; justify-content:space-between; align-items:center; gap:20px; color:#746751; }
.cw-customer h2 { margin:24px 0 10px; font-size:28px; }.cw-customer h2 small { font-size:16px; color:#796f61; font-weight:400; }
.cw-customer-amount { font-size:clamp(48px,7vw,88px); font-weight:800; letter-spacing:-.035em; color:#243b30; font-variant-numeric:tabular-nums; }
.cw-customer>.cw-items { max-height:30vh; }.cw-customer .cw-breakdown { max-width:600px; margin:auto; }.cw-customer .cw-actions { justify-content:center; }.cw-customer .primary-button { padding:18px 28px; font-size:19px; }
.cw-invoice { border-top:1px solid #dedbd4; margin-top:24px; padding-top:20px; }.cw-invoice summary { font-size:22px; font-weight:700; cursor:pointer; }.cw-invoice .field { margin:16px 0; }
.cw-history { display:flex; flex-direction:column; gap:10px; }.cw-history button { display:flex; justify-content:space-between; gap:16px; text-align:left; padding:18px; }
.cw-documents { font-size:14px; color:#6d6254; overflow-wrap:anywhere; }.cw-panel button:disabled { opacity:.5; cursor:wait; }
@media(max-width:700px) { .cw-panel { padding:18px; max-height:96dvh; }.cw-checkout-grid { grid-template-columns:1fr; gap:18px; }.cw-items { max-height:32vh; }.cw-table-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.cw-table { padding:12px; }.cw-table .cw-actions button { width:100%; }.cw-total strong { font-size:28px; } }

.ops-bill-hint { color:#6d6254; line-height:1.6; }.ops-bill-number { display:block; margin-top:6px; color:#786c5c; }
.cw-settlement-items { border-top:1px solid #dedbd4; padding-top:18px; margin:18px 0; }.cw-settlement-items summary,.cw-order-batches summary { cursor:pointer; font-weight:700; }

/* Use the available app viewport, including in WebViews without a Fullscreen API. */
.cw-screen {
  height:100dvh; padding:0; place-items:stretch; grid-template:minmax(0,1fr) / minmax(0,1fr); background:#fffdf9; touch-action:auto;
  padding:var(--app-safe-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.cw-screen > .cw-panel {
  width:100%; height:100%; max-width:none; max-height:none; min-height:0;
  border:0; border-radius:0; overscroll-behavior:contain;
  padding:16px;
}
.cw-screen .cw-payment-scroll { display:flex; flex-direction:column; gap:16px; }
.cw-screen .cw-checkout-grid > *, .cw-screen .cw-payment-scroll { min-width:0; }
.cw-screen .cw-panel > .panel-header, .cw-screen .cw-customer-header {
  position:sticky; top:0; z-index:2; background:#fffdf9;
}
.cw-screen .cw-customer [hidden] { display:none; }
.cw-payment-modes { display:flex; gap:6px; padding:5px; border:1px solid #dfddd6; background:#f1f0eb; border-radius:12px; align-self:flex-start; margin:0 0 16px; flex:none; }
.cw-payment-modes button { min-height:46px; min-width:140px; border:0; border-radius:8px; padding:10px 22px; background:transparent; color:#515b61; font:inherit; font-weight:650; cursor:pointer; }
.cw-payment-modes button.active { color:#fff; background:#26353b; }
.cw-discount-panel { margin-top:16px; border:1px solid #dfddd6; border-radius:12px; padding:0 14px; }
.cw-discount-panel > summary { padding:16px 0; cursor:pointer; font-weight:700; }
.cw-discount-panel .cw-discounts { padding-bottom:14px; }
.cw-mixed { display:flex; flex-direction:column; gap:14px; }
.cw-mixed h3 { margin:0; font-size:18px; }
.cw-method-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.cw-method-grid button { min-height:72px; border:1px solid #dadbd6; border-radius:12px; padding:12px; background:#fffdf9; color:#26353b; font:inherit; font-weight:650; cursor:pointer; display:flex; align-items:center; gap:10px; text-align:left; }
.cw-method-grid button > span { flex:none; display:grid; place-items:center; width:34px; height:34px; background:#e7eee8; border-radius:10px; color:#37604b; font-size:22px; }
.cw-method-grid button:active { background:#edf2ed; }
.cw-method-grid button:disabled { cursor:default; }
.cw-mixed-rows { display:grid; gap:12px; }
.cw-mixed-row { border:1px solid #d8dcd6; padding:14px; border-radius:12px; background:#fffdf9; display:grid; gap:12px; }
.cw-mixed-row header,.cw-part-change,.cw-mixed-totals > div,.cw-tender-summary > div { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.cw-mixed-row header button { min-width:44px; min-height:44px; padding:4px 10px; font-size:22px; }
.cw-mixed-row .field { margin:0; }
.cw-mixed-row input:not([type=checkbox]),.cw-mixed-row .cw-inline button { min-height:48px; }
.cw-part-change { font-size:14px; color:#37604b; }
.cw-mixed-totals { background:#e9eee8; border-radius:12px; padding:14px; display:grid; gap:10px; }
.cw-mixed-totals b,.cw-tender-summary b { font-variant-numeric:tabular-nums; white-space:nowrap; }
.cw-tender-summary { max-width:640px; display:grid; gap:12px; border:1px solid #d8dcd6; border-radius:12px; padding:16px; margin:16px 0; }
@media (max-width:700px) { .cw-payment-modes { align-self:stretch; }.cw-payment-modes button { flex:1; min-width:0; padding:10px 14px; }.cw-mixed-row { padding:12px; } }
@media (min-width:701px) and (min-height:521px) {
  #cashierCheckoutOverlay > .cw-panel:not(.cw-customer) { display:flex; flex-direction:column; align-items:stretch; }
  .cw-screen .cw-checkout-grid {
    flex:1; min-height:0; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:clamp(16px,2vw,32px);
  }
  .cw-screen .cw-checkout-grid > div { overflow:auto; }
  .cw-screen .cw-payment { min-height:0; gap:12px; padding:16px; }
  .cw-screen .cw-payment-scroll { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; }
  .cw-screen [data-submit] { flex:none; min-height:46px; }
}
