/* sale_edit.css — the main checkout while a Quick Sale ticket is being edited
   (Luis, 2026-10-07). Script: sale_edit.js. */

/* Only the difference is settled, at Save — so trade-in, pre-order, points
   and the fee row are put away for the edit. The payment keys stay, as the
   ticket's own method (Cash / Card / Zelle) so a wrong pick can be fixed;
   Acima and Split are not fixes an edit makes. */
body.sale-editing .payment-icon-btn[data-value="acima"],
body.sale-editing #splitToggleBtn,
body.sale-editing #splitPanel,
body.sale-editing #acimaNote,
body.sale-editing #tradeinSummary,
body.sale-editing #tradeinToggleBtn,
body.sale-editing #preorderBtn,
body.sale-editing #rewardPointsSection,
body.sale-editing #cardFeeRow,
body.sale-editing #pointsDiscountRow,
body.sale-editing #tradeinCreditRow,
body.sale-editing #tradeinToPayRow { display: none !important; }
body.sale-editing .checkout-date-input:disabled { opacity: .7; cursor: default; }

/* The banner: which ticket, how it was paid, and the difference so far. */
.se-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.se-diff { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: rgba(29, 29, 31, .07); color: #3a3a3e; }
.se-diff.is-more { background: rgba(46, 125, 82, .14); color: #1f6b44; }
.se-diff.is-less { background: rgba(192, 43, 34, .12); color: #b3141d; }
.se-diff.is-fix { background: rgba(0, 102, 204, .12); color: #0b5cad; }

/* "Paid with": the hint beside the label, and a split ticket's keys at rest. */
.se-paidhint { margin-left: 6px; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #86868b; }
body.sale-editing .payment-group.se-split .payment-icons-row { pointer-events: none; opacity: .45; }

/* The money step. Shut only by its own buttons (house rule). */
.se-overlay { position: fixed; inset: 0; z-index: 10055; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 17, 21, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: seFade .18s ease; }
@keyframes seFade { from { opacity: 0; } to { opacity: 1; } }
.se-card { width: min(420px, 100%); padding: 22px 22px 18px; border-radius: 22px; background: #fff; color: #1d1d1f;
  box-shadow: 0 30px 80px rgba(15, 17, 21, .28); animation: seRise .35s var(--ease-liquid, cubic-bezier(.22, 1.12, .36, 1)); }
@keyframes seRise { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.se-kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #86868b; }
.se-title { margin-top: 4px; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.se-sub { margin: 6px 0 16px; font-size: 13px; line-height: 1.45; color: #6e6e73; }
.se-methods { display: flex; gap: 8px; }
.se-overlay .se-m { flex: 1; height: 48px; border-radius: 14px; border: 1.5px solid rgba(0, 0, 0, .12); background: #fff;
  font: inherit; font-size: 15px; font-weight: 700; color: #1d1d1f; cursor: pointer; }
.se-overlay .se-m:hover { border-color: rgba(107, 55, 68, .45); }
.se-overlay .se-m.on { border-color: #6b3744; background: rgba(107, 55, 68, .08); color: #6b3744; box-shadow: 0 0 0 3px rgba(107, 55, 68, .12); }
.se-fee { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px;
  border-radius: 12px; background: #f6f6f8; font-size: 12.5px; line-height: 1.4; color: #3a3a3e; }
.se-fee[hidden] { display: none; }
.se-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.se-overlay .se-btn { height: 42px; padding: 0 20px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.se-overlay .se-no { border: 1px solid rgba(0, 0, 0, .1); background: #f5f5f7; color: #1d1d1f; }
.se-overlay .se-go { border: 0; color: #fff; background: #6b3744; box-shadow: 0 6px 16px rgba(107, 55, 68, .28); }
.se-overlay .se-go:disabled { background: #c7c7cc; box-shadow: none; cursor: default; }
