/*
 * The bookstore's self-checkout (PLAN.md Decision CR), on app.css's tokens
 * and parts: the same ground, type and buttons as the cafe's pages. No
 * orange anywhere: that is discounts only, and nothing here is discounted.
 */

.bs-top .title { font: 700 22px/1.2 var(--serif); }
.bs-mark { color: var(--mint); display: flex; }

.bs-home h1 { font: 700 26px/1.15 var(--serif); margin: 0 0 6px; }
.bs-home h2, .bs-basket h2 { font: 700 20px/1.2 var(--serif); margin: 0 0 10px; color: var(--cream); }
.bs-scan { display: flex; flex-direction: column; gap: 12px; }
.bs-scan .lede { margin: 0; }
.bs-scan-btn { min-height: 56px; font-size: 17px; }

.bs-camera { position: relative; display: flex; flex-direction: column; gap: 10px; }
.bs-camera[hidden] { display: none; }
.bs-camera video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r);
                   background: #000; }
/* Where to hold the barcode: a wide box, as a book's barcode is wide. */
.bs-aim { position: absolute; left: 12%; right: 12%; top: 22%; aspect-ratio: 2.2 / 1;
          max-height: 46%; border: 2px solid var(--mint); border-radius: 10px;
          box-shadow: 0 0 0 999px rgba(0, 0, 0, .28); pointer-events: none; }

.bs-status { margin: 0; min-height: 20px; font-size: 14px; color: var(--mint); }
.bs-status.bad { color: var(--cream); font-weight: 600; }

.bs-type label, .bs-receipt label { display: block; font-size: 13px; color: var(--muted);
                                    margin-bottom: 6px; }
.bs-type-row { display: flex; gap: 10px; align-items: stretch; }
.bs-type-row .field { flex: 1; min-width: 0; min-height: 48px; font-size: 16px; }
.bs-type-row .btn { width: auto; flex-shrink: 0; }

.bs-basket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
             padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bs-count { display: inline-flex; min-width: 24px; height: 24px; padding: 0 7px;
            align-items: center; justify-content: center; border-radius: 12px;
            background: var(--teal); color: var(--on-teal); font: 700 13px/1 var(--sans, inherit);
            vertical-align: middle; }
.bs-empty { margin: 0; }

.bs-lines, .bs-list { list-style: none; margin: 0; padding: 0; display: flex;
                      flex-direction: column; }
.bs-line, .bs-item { display: flex; align-items: center; gap: 10px; min-height: 48px;
                     border-bottom: 1px solid var(--line); padding: 4px 0; }
.bs-line:last-child, .bs-item:last-child { border-bottom: 0; }
.bs-item[hidden], [data-shelf][hidden] { display: none; }
.bs-name { flex: 1; min-width: 0; font-size: 15px; color: var(--cream); line-height: 1.3;
           overflow-wrap: anywhere; }
.bs-price { font-size: 14px; color: var(--body); white-space: nowrap; }
.bs-step { display: flex; align-items: center; gap: 2px; }
.bs-step form { display: contents; }
.bs-step .num { min-width: 2ch; text-align: center; color: var(--cream); }
.bs-add { color: var(--mint); }
.bs-item form { display: contents; }
.bs-checkout { margin-top: 4px; }

.bs-browse { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.bs-browse .section-label { margin: 14px 0 4px; }
.bs-browse .field { min-height: 48px; font-size: 16px; }

.bs-review { display: flex; flex-direction: column; gap: 8px; }
.bs-gift details summary { cursor: pointer; list-style: none; padding: 6px 0; }
.bs-gift details summary::-webkit-details-marker { display: none; }
.bs-gift form { margin-top: 8px; }

/* Paid: big enough to read at arm's length across a table. */
.bs-paid { display: flex; flex-direction: column; align-items: center; gap: 6px;
           padding: 22px 16px; border-radius: var(--r-lg); background: var(--surface);
           border: 2px solid var(--teal); text-align: center; }
.bs-tick { width: 72px; height: 72px; border-radius: 50%; background: var(--teal);
           color: var(--on-teal); display: flex; align-items: center; justify-content: center; }
.bs-paid-word { font: 700 44px/1 var(--serif); color: var(--cream); letter-spacing: .02em; }
.bs-clock { font-size: 30px; font-weight: 700; color: var(--mint); font-variant-numeric: tabular-nums; }
.bs-paid-at { font-size: 13px; color: var(--muted); }
.bs-receipt { display: flex; flex-direction: column; }
