/* POS register (sale screen). Scoped under .pr; colours follow the store's primary colour.
   Layout: product search + cart on the left, a full-height "ticket" on the right (customer, line details, totals, pay).
   Flat surfaces, hairline borders, 4px corners. */
[x-cloak] { display: none !important; }
.pr { --pr-line: #e3e8ef; --pr-soft: #f6f8fb; --pr-ink: #0f172a; --pr-ink2: #334155; --pr-muted: #64748b;
      --pr-brand: rgb(var(--primary-600)); --pr-brand-soft: rgb(var(--primary-50)); --pr-ok: #047857; --pr-danger: #e11d48; --pr-warn: #d97706;
      color: var(--pr-ink); font-size: 14px;
      display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px;
      height: calc(100dvh - 8rem); min-height: 600px; }
.dark .pr { --pr-line: rgba(255,255,255,.1); --pr-soft: rgba(255,255,255,.04); --pr-ink: #f1f5f9; --pr-ink2: #cbd5e1; --pr-muted: #94a3b8; --pr-brand-soft: rgba(255,255,255,.06); }
.pr *, .pr *::before, .pr *::after { box-sizing: border-box; }
.pr-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pr-ico--xl { width: 34px; height: 34px; stroke-width: 1.3; color: var(--pr-muted); }
.pr-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-strong { font-weight: 600; }
.pr-muted { color: var(--pr-muted); font-size: 12.5px; }
.pr-xs { font-size: 12px; }
.pr-danger { color: var(--pr-danger) !important; }
.pr-ok { color: var(--pr-ok) !important; }
.pr-r { text-align: right; } .pr-c { text-align: center; }
.pr-grow { flex: 1; } .pr-min0 { min-width: 0; }
.pr-clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-span2 { grid-column: span 2; }
.pr-w-auto { width: auto !important; flex: none; }
.pr kbd { font: 600 10.5px/1 ui-monospace, monospace; padding: 3px 5px; border-radius: 2px; border: 1px solid currentColor; opacity: .55; margin-left: 6px; }

/* inputs & buttons */
.pr-input { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--pr-line); border-radius: 4px; background: #fff; color: inherit; font: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
.dark .pr-input { background: rgba(255,255,255,.04); }
textarea.pr-input { height: auto; padding: 8px 11px; resize: vertical; }
.pr-input:focus { border-color: var(--pr-brand); box-shadow: 0 0 0 3px rgb(var(--primary-500) / .12); }
.pr-input:disabled { background: var(--pr-soft); color: var(--pr-muted); }
.pr-input--xl { height: 48px; font-size: 20px; font-weight: 600; }
.pr-field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--pr-line); border-radius: 4px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.dark .pr-field { background: rgba(255,255,255,.04); }
.pr-field:focus-within { border-color: var(--pr-brand); box-shadow: 0 0 0 3px rgb(var(--primary-500) / .12); }
.pr-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: inherit; height: 100%; }
.pr-field .pr-ico { color: var(--pr-muted); }
.pr-field--lg { height: 52px; font-size: 15.5px; padding: 0 14px; }
.pr-field--lg .pr-ico { width: 20px; height: 20px; color: var(--pr-ink2); }
.pr-kbd-hint { margin-left: 0 !important; }
.pr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--pr-line); background: #fff; color: var(--pr-ink2); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s; }
.dark .pr-btn { background: rgba(255,255,255,.05); }
.pr-btn:hover:not(:disabled) { background: var(--pr-soft); border-color: #cbd5e1; color: var(--pr-ink); }
.pr-btn:disabled { opacity: .45; cursor: not-allowed; }
.pr-btn--sm { height: 32px; padding: 0 10px; font-size: 12.5px; }
.pr-btn--ghost-danger { color: var(--pr-danger); }
.pr-btn--ghost-danger:hover:not(:disabled) { background: #fff1f2; border-color: #fecdd3; color: var(--pr-danger); }
.pr-pay { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border: 0; border-radius: 4px; background: var(--pr-ok); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.pr-pay:hover:not(:disabled) { background: #065f46; }
.pr-pay:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.dark .pr-pay:disabled { background: rgba(255,255,255,.08); color: #64748b; }
.pr-pay b { font-size: 18px; }
.pr-icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; border: 0; background: transparent; color: var(--pr-muted); cursor: pointer; flex: none; }
.pr-icon-btn:hover { background: var(--pr-soft); color: var(--pr-ink); }
.pr-del:hover { color: var(--pr-danger); }
.pr-chip-btn { height: 28px; padding: 0 10px; border-radius: 3px; border: 1px solid var(--pr-line); background: var(--pr-soft); font-weight: 600; font-size: 12.5px; cursor: pointer; color: var(--pr-ink2); white-space: nowrap; }
.pr-chip-btn:hover { border-color: #cbd5e1; color: var(--pr-ink); }
.pr-chip { display: inline-flex; align-items: center; gap: 7px; height: 52px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--pr-line); background: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; color: var(--pr-ink2); }
.pr-chip:hover { border-color: #cbd5e1; color: var(--pr-ink); }
.pr-chip .pr-ico { width: 16px; height: 16px; color: var(--pr-muted); }
.dark .pr-chip { background: rgba(255,255,255,.04); }
.pr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pr-muted); }
.pr-chip--ok .pr-dot { background: #10b981; } .pr-chip--warn .pr-dot { background: var(--pr-warn); }
.pr-badge { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 2px; font-size: 11px; font-weight: 600; background: var(--pr-brand-soft); color: var(--pr-brand); white-space: nowrap; }
.pr-badge--gray { background: var(--pr-soft); color: var(--pr-ink2); }
.pr-badge--ok { background: #ecfdf5; color: var(--pr-ok); }
.pr-badge--warn { background: #fffbeb; color: var(--pr-warn); }
.pr-badge--danger { background: #fff1f2; color: var(--pr-danger); }
.pr-spin { width: 16px; height: 16px; border: 2px solid var(--pr-line); border-top-color: var(--pr-brand); border-radius: 50%; animation: pr-spin .7s linear infinite; }
@keyframes pr-spin { to { transform: rotate(360deg); } }
.pr-section-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pr-muted); }

/* main column: search bar + cart */
.pr-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.pr-bar { display: flex; gap: 10px; align-items: stretch; }
.pr-search { position: relative; flex: 1; min-width: 0; }
.pr-register { display: flex; gap: 8px; }
.pr-register .pr-input { height: 52px; width: auto; }

.pr-lines { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; border: 1px solid var(--pr-line); border-radius: 4px; overflow: hidden; }
.dark .pr-lines { background: rgba(255,255,255,.02); }
.pr-lines-body { flex: 1; display: flex; flex-direction: column; overflow: auto; min-height: 0; }
.pr-lines-head, .pr-line { display: grid; grid-template-columns: minmax(0, 1fr) 110px 128px 110px 36px; gap: 10px; align-items: center; padding: 0 16px; }
.pr-lines-head { flex: none; height: 38px; background: var(--pr-soft); border-bottom: 1px solid var(--pr-line); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pr-muted); }
.pr-line { min-height: 60px; padding-top: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--pr-line); cursor: pointer; transition: background .12s; }
.pr-line:hover { background: var(--pr-soft); }
.pr-line.is-selected { background: var(--pr-brand-soft); box-shadow: inset 3px 0 0 var(--pr-brand); }
.pr-line.is-return { box-shadow: inset 3px 0 0 var(--pr-danger); }
.pr-line-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 3px; font-size: 12px; color: var(--pr-muted); }
.pr-qty { display: flex; align-items: center; border: 1px solid var(--pr-line); border-radius: 4px; overflow: hidden; height: 36px; background: #fff; }
.dark .pr-qty { background: rgba(255,255,255,.04); }
.pr-qty button { width: 34px; height: 100%; border: 0; background: var(--pr-soft); font-size: 17px; cursor: pointer; color: var(--pr-ink2); }
.pr-qty button:hover { background: var(--pr-brand-soft); color: var(--pr-brand); }
.pr-qty input { width: 100%; min-width: 0; height: 100%; border: 0; text-align: center; font: 600 15px/1 inherit; font-variant-numeric: tabular-nums; outline: none; background: transparent; color: inherit; -moz-appearance: textfield; }
.pr-qty input::-webkit-outer-spin-button, .pr-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pr-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 280px; padding: 40px 24px; text-align: center; }
.pr-empty-ico { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 6px; background: var(--pr-soft); border: 1px solid var(--pr-line); border-radius: 4px; }
.pr-empty-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pr-empty .pr-muted { max-width: 340px; }
.pr-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 12px; font-size: 12.5px; color: var(--pr-ink2); }
.pr-keys kbd { margin: 0 5px 0 0; opacity: 1; border-color: var(--pr-line); background: var(--pr-soft); color: var(--pr-ink2); padding: 3px 6px; }

/* dropdowns */
.pr-dropdown { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: 380px; overflow: auto; background: #fff; border: 1px solid var(--pr-line); border-radius: 4px; box-shadow: 0 16px 36px -18px rgba(15,23,42,.35); padding: 4px; }
.dark .pr-dropdown { background: rgb(24 24 27); }
.pr-dropdown--wide { max-height: 460px; }
.pr-dd-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 3px; background: transparent; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.pr-dd-row:hover, .pr-dd-row.is-active { background: var(--pr-brand-soft); }
.pr-dd-row .pr-muted { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-thumb { width: 36px; height: 36px; object-fit: contain; border-radius: 3px; background: var(--pr-soft); flex: none; }
.pr-empty-sm { padding: 14px; text-align: center; color: var(--pr-muted); font-size: 13px; }

/* ticket column */
.pr-ticket { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; border: 1px solid var(--pr-line); border-radius: 4px; }
.dark .pr-ticket { background: rgba(255,255,255,.02); }
.pr-ticket-sec { flex: none; display: grid; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--pr-line); }
.pr-customer { position: relative; }
.pr-cust-card { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 8px 8px 10px; border: 1px solid var(--pr-line); border-left: 3px solid var(--pr-brand); border-radius: 4px; background: var(--pr-soft); }
.pr-avatar { width: 32px; height: 32px; border-radius: 3px; display: grid; place-items: center; background: var(--pr-brand); color: #fff; font-weight: 700; flex: none; }
.pr-cust-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-cust-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 2px; font-size: 12px; color: var(--pr-ink2); }
.pr-ref { height: 38px; }
.pr-ticket-body { flex: 1; min-height: 0; overflow: auto; }

/* selected line (inside the ticket) */
.pr-side { min-width: 0; }
.pr-panel { display: grid; gap: 14px; padding: 16px; }
.pr-panel--empty { height: 100%; min-height: 140px; place-items: center; place-content: center; text-align: center; padding: 24px 28px; }
.pr-prod-head { display: flex; gap: 12px; }
.pr-prod-img { width: 60px; height: 60px; object-fit: contain; border-radius: 3px; border: 1px solid var(--pr-line); background: #fff; flex: none; }
.pr-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; color: var(--pr-ink2); }
.pr-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pr-lbl { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: var(--pr-ink2); }
.pr-inline { display: flex; gap: 6px; align-items: center; }
.pr-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pr-level { display: flex; justify-content: space-between; gap: 6px; padding: 7px 9px; border-radius: 3px; background: var(--pr-soft); font-size: 12.5px; }
.pr-level.is-active { background: var(--pr-brand-soft); color: var(--pr-brand); box-shadow: inset 0 0 0 1px var(--pr-brand); }
.pr-level--promo { grid-column: span 2; background: #ecfdf5; color: var(--pr-ok); }
.pr-reveal { border: 0; background: transparent; color: var(--pr-brand); font-weight: 600; font-size: 12.5px; cursor: pointer; padding: 0; }
.pr-history .pr-section-title { margin-bottom: 6px; }
.pr-hist-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--pr-line); font-size: 12.5px; }

/* checkout: totals + pay + actions */
.pr-checkout { flex: none; display: grid; gap: 12px; padding: 14px 16px 16px; border-top: 1px solid var(--pr-line); background: var(--pr-soft); }
.pr-sum { display: grid; gap: 6px; }
.pr-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--pr-ink2); }
.pr-sum b { color: var(--pr-ink); font-weight: 600; }
.pr-sum-total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--pr-line); }
.pr-sum-total span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pr-ink) !important; }
.pr-sum-total b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.pr-checkout .pr-pay { width: 100%; height: 56px; justify-content: space-between; padding: 0 18px; }
.pr-checkout .pr-pay kbd { margin-left: 0; }
.pr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pr-actions .pr-btn { height: 38px; }
.pr-btn--wide { grid-column: 1 / -1; }

/* modals */
.pr-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(15,23,42,.45); }
.pr-modal-card { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 6px; padding: 20px; display: grid; gap: 14px; box-shadow: 0 30px 60px -20px rgba(15,23,42,.45); }
.dark .pr-modal-card { background: rgb(24 24 27); }
.pr-modal-card--lg { max-width: 860px; }
.pr-modal-head { display: flex; align-items: center; justify-content: space-between; }
.pr-modal-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.pr-modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.pr-modal-foot .pr-muted { margin-right: auto; }
.pr-pay-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; }
.pr-pay-summary { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 4px; background: var(--pr-soft); }
.pr-pay-summary > div:not(.pr-ar), .pr-ar > div, .pr-done-figs > div { display: flex; justify-content: space-between; gap: 10px; }
.pr-pay-summary b { text-align: right; }
.pr-pay-summary span, .pr-ar span { color: var(--pr-ink2); }
.pr-big { padding-top: 8px; border-top: 1px solid var(--pr-line); font-size: 22px; font-weight: 700; }
.pr-big span { color: inherit !important; font-size: 15px; align-self: center; }
.pr-ar { display: grid; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--pr-line); font-size: 12.5px; }
.pr-methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pr-method { height: 50px; border-radius: 4px; border: 1px solid var(--pr-line); background: #fff; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--pr-ink2); }
.dark .pr-method { background: rgba(255,255,255,.04); }
.pr-method.is-active { background: var(--pr-brand); border-color: var(--pr-brand); color: #fff; }
.pr-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.pr-age { margin-top: 10px; padding: 10px; border-radius: 4px; background: #fff1f2; color: var(--pr-danger); font-weight: 600; }
.pr-paylist { margin: 12px 0; display: grid; gap: 6px; }
.pr-payrow { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 4px; background: var(--pr-soft); }
.pr-errors { padding: 10px 12px; border-radius: 4px; background: #fff1f2; color: var(--pr-danger); font-size: 13px; display: grid; gap: 4px; margin-top: 10px; }
.pr-done { text-align: center; justify-items: center; }
.pr-done-check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #ecfdf5; color: var(--pr-ok); font-size: 28px; font-weight: 700; }
.pr-done h2 { margin: 0; font-size: 20px; }
.pr-done-figs { width: 100%; display: grid; gap: 8px; padding: 14px; border-radius: 4px; background: var(--pr-soft); }
.pr-done-change { font-size: 24px; font-weight: 700; color: var(--pr-ok); }
.pr-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pr-table { display: grid; gap: 6px; }
.pr-trow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--pr-line); border-radius: 4px; }
.pr-pc { display: grid; gap: 8px; }
.pr-pc-price { font-size: 30px; font-weight: 700; color: var(--pr-brand); }
.pr-toast { position: fixed; z-index: 70; left: 50%; bottom: 32px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 4px; background: var(--pr-ink); color: #fff; font-weight: 600; font-size: 13.5px; box-shadow: 0 16px 40px -16px rgba(15,23,42,.5); }
.pr-toast--danger { background: var(--pr-danger); } .pr-toast--warning { background: var(--pr-warn); } .pr-toast--success { background: var(--pr-ok); }

/* selects: one clean chevron (Filament's form styles add their own background arrow) */
.pr select.pr-input { -webkit-appearance: none; appearance: none; padding-right: 30px !important; padding-left: 11px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") no-repeat right 9px center / 16px 16px !important; }
.dark .pr select.pr-input { background-color: rgba(255,255,255,.04) !important; }
.pr select.pr-w-auto { width: 64px !important; }

/* inner inputs: no extra focus ring from Filament's form styles (the wrapper shows focus) */
.pr-field input, .pr-qty input { box-shadow: none !important; outline: none !important; border: 0 !important; padding-left: 0; padding-right: 0; }
.pr-qty input { padding: 0 !important; }
.pr input[type=checkbox] { width: 16px; height: 16px; border-radius: 2px; }

/* narrower desktops */
@media (max-width: 1280px) {
    .pr { grid-template-columns: minmax(0, 1fr) 340px; }
    .pr-lines-head, .pr-line { grid-template-columns: minmax(0, 1fr) 92px 118px 96px 32px; gap: 8px; padding: 0 12px; }
}
/* tablet: one column; totals + pay stay pinned to the bottom of the screen */
@media (max-width: 960px) {
    .pr { display: flex; flex-direction: column; gap: 12px; height: auto; min-height: 0; padding-bottom: 150px; }
    .pr-lines { flex: none; }
    .pr-lines-body { overflow: visible; }
    .pr-empty { min-height: 220px; }
    .pr-ticket { overflow: visible; }
    .pr-ticket-body { overflow: visible; }
    .pr-panel--empty { display: none !important; } /* the line details appear once a line is picked */
    .pr-checkout { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 10px 16px 12px; background: #fff; border-top: 1px solid var(--pr-line); box-shadow: 0 -8px 24px -16px rgba(15,23,42,.35); }
    .dark .pr-checkout { background: rgb(24 24 27); }
    .pr-sum > div:not(.pr-sum-total) { display: none; }
    .pr-sum-total { margin: 0; padding: 0; border: 0; justify-content: flex-start !important; gap: 10px !important; }
    .pr-sum-total b { font-size: 22px; }
    .pr-checkout .pr-pay { width: auto; height: 48px; min-width: 200px; }
    .pr-actions { grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
    .pr-actions .pr-btn { height: 34px; padding: 0 6px; font-size: 12.5px; min-width: 0; }
    .pr-btn--wide { grid-column: auto; }
    .pr-pay-grid { grid-template-columns: 1fr; }
    .pr-toast { bottom: auto; top: 72px; }
}
/* phone */
@media (max-width: 640px) {
    .pr { font-size: 13.5px; padding-bottom: 160px; }
    .pr-bar { flex-wrap: wrap; }
    .pr-search { flex-basis: 100%; }
    .pr-register { width: 100%; }
    .pr-register .pr-chip, .pr-register .pr-input { flex: 1; height: 42px; justify-content: center; }
    .pr-field--lg { height: 48px; }
    .pr-kbd-hint { display: none; }
    .pr-lines-head { display: none; }
    .pr-line { grid-template-columns: minmax(0, 1fr) auto 32px; grid-template-areas: "name name del" "price qty total"; row-gap: 8px; }
    .pr-line > :nth-child(1) { grid-area: name; } .pr-line > :nth-child(2) { grid-area: price; text-align: left; }
    .pr-line > :nth-child(3) { grid-area: qty; width: 120px; } .pr-line > :nth-child(4) { grid-area: total; }
    .pr-line > :nth-child(5) { grid-area: del; }
    .pr-keys { display: none; }
    .pr-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-checkout { padding: 8px 10px 10px; }
    .pr-checkout .pr-pay { min-width: 0; padding: 0 14px; }
    .pr-checkout .pr-pay kbd { display: none; }
    .pr-actions .pr-btn { height: 32px; font-size: 11.5px; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; }
    .pr-actions kbd { display: none; }
    .pr-modal { padding: 0; align-items: end; }
    .pr-modal-card { border-radius: 6px 6px 0 0; max-height: 92vh; }
    .pr-grid2 { grid-template-columns: 1fr; }
    .pr-span2 { grid-column: auto; }
    .pr-trow { flex-wrap: wrap; }
    .pr kbd { display: none; }
}
