/* discount.css — the Discount pill, the locked price box, and the dialog
   (Luis, 2026-09-26). Loaded by both checkouts with discount.js. The dialog
   is the Apple sheet the trade-in and upgrade dialogs use. */

.price-edit.price-locked { background: #f5f5f7 !important; color: #1d1d1f !important; cursor: default; box-shadow: none !important; }
.price-edit.price-locked:focus { outline: none; box-shadow: none !important; border-color: rgba(0, 0, 0, .10) !important; }
/* An Admin's PIN opens it (2026-10-09): a pointer, and a small lock at the
   box's right edge while the mouse is over it. */
.price-edit.price-locked { cursor: pointer; }
.price-edit.price-locked:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b3744' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 10px center !important; background-size: 13px 13px !important;
  border-color: rgba(107, 55, 68, .35) !important;
}

.dsc-pill {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 4px 10px;
  border-radius: 999px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: #6b3744; background: rgba(107, 55, 68, .08); border: 1px solid rgba(107, 55, 68, .22);
  white-space: nowrap; vertical-align: middle; transition: background .15s ease;
}
.dsc-pill:hover { background: rgba(107, 55, 68, .15); }
.dsc-pill.on { color: #0b6b4f; background: rgba(18, 138, 98, .10); border-color: rgba(18, 138, 98, .32); }
.dsc-pill s { color: #86868b; font-weight: 600; }
.dsc-ticket-btn {
  margin-left: 10px; padding: 2px 9px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  color: #6b3744; background: rgba(107, 55, 68, .08); border: 1px solid rgba(107, 55, 68, .22); vertical-align: middle;
}
.dsc-ticket-btn:hover { background: rgba(107, 55, 68, .15); }
.dsc-ticket-btn[hidden] { display: none; }
.dsc-sum { color: #0b6b4f; font-weight: 700; }

.dsc-overlay { position: fixed; inset: 0; z-index: 10070; display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, .30); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dsc-overlay.open { display: flex; }
.dsc-card { width: min(94vw, 520px); box-sizing: border-box; background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: 22px;
  padding: 20px 24px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .28), 0 2px 8px rgba(0, 0, 0, .08); color: #1d1d1f; font-family: var(--font-ui, inherit); }
.dsc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.dsc-head b { font-size: 17px; }
.dsc-on { font-size: 12px; color: #6e6e73; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.dsc-lbl { margin: 12px 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #86868b; }
.dsc-amt { position: relative; }
.dsc-amt span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #86868b; font-size: 16px; }
.dsc-amt input { width: 100%; box-sizing: border-box; padding: 12px 14px 12px 30px; border-radius: 12px; font: inherit; font-size: 20px; font-weight: 700;
  text-align: right; font-variant-numeric: tabular-nums; color: #1d1d1f; background: #f5f5f7; border: 1px solid rgba(0, 0, 0, .06); outline: none; }
.dsc-amt input:focus { background: #fff; border-color: #0a84ff; box-shadow: 0 0 0 4px rgba(10, 132, 255, .18); }
.dsc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dsc-chips button { padding: 7px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700;
  color: #1d1d1f; background: #f5f5f7; border: 1px solid rgba(0, 0, 0, .06); }
.dsc-chips button:hover { background: #ebebf0; }
.dsc-chips button.on { background: #fff; border-color: #0a84ff; box-shadow: 0 0 0 3px rgba(10, 132, 255, .16); color: #0a5fcf; }
.dsc-reasons { margin-top: 0; }
.dsc-note { width: 100%; box-sizing: border-box; margin-top: 10px; padding: 10px 14px; border-radius: 12px; font: inherit; font-size: 13px;
  color: #1d1d1f; background: #f5f5f7; border: 1px solid rgba(0, 0, 0, .06); outline: none; }
.dsc-note:focus { background: #fff; border-color: #0a84ff; box-shadow: 0 0 0 4px rgba(10, 132, 255, .18); }
.dsc-preview { margin-top: 12px; font-size: 13px; font-weight: 700; color: #0b6b4f; text-align: right; min-height: 1.2em; }
.dsc-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.dsc-need { margin-right: auto; font-size: 12px; font-weight: 600; color: #b45309; }
.dsc-btn { border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.dsc-cancel { background: #f5f5f7; color: #1d1d1f; border: 1px solid rgba(0, 0, 0, .08); }
.dsc-cancel:hover { background: #ebebf0; }
.dsc-remove { background: rgba(179, 20, 29, .08); color: #b3141d; border: 1px solid rgba(179, 20, 29, .25); }
.dsc-remove[hidden] { display: none; }
.dsc-apply { color: #fff; border: 0; background: radial-gradient(130% 120% at 22% 10%, #6db6ff 0%, #1a84f2 45%, #0a5fcf 100%);
  box-shadow: 0 6px 18px rgba(0, 102, 204, .30), inset 0 1px 0 rgba(255, 255, 255, .45); }
.dsc-apply:disabled { opacity: .4; cursor: default; }
