/* Print Lab · Artboard (customer page) — additions on top of css/app.css (the v2 Artboard look) */

/* start over: X in the top-right corner of the garment window (not the product-card ×) */
.stage-top { right: 62px; }
.stage-x { position: absolute; z-index: 8; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font-size: 22px; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); padding: 0 0 2px; }
.stage-x:hover { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.confirm-over { position: absolute; z-index: 9; top: 56px; right: 14px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(43,36,32,.18); padding: 12px 14px; width: 240px; }
.confirm-over p { margin: 0 0 10px; font-weight: 600; }
.confirm-over div { display: flex; gap: 8px; justify-content: flex-end; }

/* print quality line in the upload card */
.quality { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin: 8px 0 2px; padding: 6px 9px; border-radius: 8px; background: var(--linen-2); color: var(--ink-2); flex-wrap: wrap; }
.quality .q-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.quality.ok .q-dot { background: var(--warn); }
.quality.low { background: #FCEFE3; color: #7A3E12; font-weight: 600; }
.quality.low .q-dot { background: #C8501E; }
.quality .link-btn { margin-left: auto; }
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; }
.qgrid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.qgrid canvas { width: 100%; height: auto; display: block; image-rendering: pixelated; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.qgrid figcaption { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 4px; }
.modal.wide { width: 720px; }
.modal .qwait { font-size: 12px; color: var(--ink-3); }

/* whites on dark garments (Bright & bold / Vintage feel) */
.whites { margin: 0 0 10px; }
.whites .wl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.wseg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wseg label { cursor: pointer; }
.wseg input { position: absolute; opacity: 0; pointer-events: none; }
.wseg span { display: block; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; background: #fff; line-height: 1.2; }
.wseg b { display: block; font-size: 13px; }
.wseg small { font-size: 11px; color: var(--ink-3); }
.wseg input:checked + span { border-color: var(--espresso); box-shadow: inset 0 0 0 1px var(--espresso); background: var(--linen); }
.wseg input:focus-visible + span { outline: 2px solid var(--accent); }

/* ink list additions */
.ink .flag { display: inline-block; font-size: 11px; color: var(--warn); font-weight: 700; margin-left: 3px; cursor: help; }
.ink.underbase.first { border-color: #EBD9BC; }
.ink.knock.off { background: #fff; }
.tag.pr { background: var(--linen-2); color: var(--ink-2); }
.switch.sm { display: flex; gap: 7px; font-size: 12px; margin-top: 5px; }
.switch.sm span { width: 28px; height: 16px; }
.switch.sm span::after { width: 12px; height: 12px; }
.switch.sm input:checked + span::after { left: 14px; }

/* footer link to the staff page */
.staff-link { font-size: 11.5px; color: var(--ink-3); text-decoration: none; margin-right: 6px; }
.staff-link:hover { color: var(--ink); text-decoration: underline; }

/* quantity / order options */
.qty-lines { max-height: 52vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.qline { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.qline .qh { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.qline .qh img { width: 38px; height: 38px; }
.qline .qh span { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 12.5px; }
.qline .qh i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.qsizes { display: flex; gap: 8px; flex-wrap: wrap; }
.qsizes label { display: flex; flex-direction: column; align-items: center; font-size: 11.5px; font-weight: 600; color: var(--ink-2); gap: 3px; }
.qsizes input { width: 54px; padding: 5px 6px; border: 1px solid var(--line-2); border-radius: 6px; text-align: center; background: #fff; }
.qtotal { margin-right: auto; align-self: center; font-weight: 700; }
.modal .price { font-size: 16px; margin: 6px 0 8px; }
.modal .price .placeholder { display: block; font-size: 11px; color: #A33; font-weight: 700; letter-spacing: .04em; }
.modal .chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.modal .chips .chip { padding: 3px 10px; }
.modal .note { font-size: 12.5px; }
.modal .guarantee { color: var(--ok) !important; font-weight: 600; }
.modal h3 { margin: 12px 0 6px; }
.osum { display: flex; align-items: center; gap: 7px; font-size: 13px; padding: 3px 0; }
.osum i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }

/* recolor */
.change-link { border: none; background: none; padding: 0 2px; font-size: 11.5px; font-weight: 600; color: var(--accent-2); text-decoration: underline; cursor: pointer; }
.ink .changed { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.ink .changed i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); }
.ink .changed .link-btn { font-size: 11px; }
#swapPop { width: 320px; max-height: calc(100vh - 90px); overflow: auto; }
#swapPop .orig span { line-height: 1.2; }
#swapPop .hint { font-size: 11.5px; color: var(--ink-3); margin: 4px 0 2px; }
.picks { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.pick { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 2px 8px 2px 3px; font-size: 11.5px; }
.pick i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
.pick:hover, .pick.sel { border-color: var(--espresso); }
.free { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.free input[type=color] { width: 40px; height: 28px; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px; background: #fff; }
.free small { color: var(--ink-3); }
#swapPop .pms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; max-height: 300px; overflow: auto; }
#swapPop .pms-tile { display: flex; flex-direction: column; border: 1px solid var(--line, #ddd); border-radius: 6px; padding: 0; background: #fff; cursor: pointer; overflow: hidden; text-align: left; }
#swapPop .pms-tile i { display: block; height: 44px; }
#swapPop .pms-tile span { font-size: 10.5px; padding: 4px 5px; line-height: 1.2; }
#swapPop .pms-tile:hover, #swapPop .pms-tile.sel { border-color: #F4EEED; box-shadow: 0 0 0 2px #F4EEED; }
/* Bottom-docked Pantone Solid Coated palette */
#swapPop.pms-dock { position: fixed; padding: 0; border-radius: 0; overflow: hidden; background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.25); max-height: none; z-index: 60; }
#swapPop .pms-mat { height: 100%; overflow-y: scroll; overflow-x: hidden; display: grid; gap: 1px; background: #fff; align-content: start; scrollbar-width: auto; }
#swapPop .pms-mat .hint { grid-column: 1 / -1; padding: 10px; }
#swapPop .pms-cell { aspect-ratio: 1 / 0.82; border: 0; padding: 0; cursor: pointer; position: relative; }
#swapPop .pms-cell::after { display: none; }
#swapPop .pms-cell.e { cursor: default; } #swapPop .pms-cell.e::after { display: none; }
#swapPop .pms-cell:hover { outline: 2px solid #F4EEED; z-index: 1; }
#swapPop .pms-mat::-webkit-scrollbar { width: 12px; } #swapPop .pms-mat::-webkit-scrollbar-thumb { background: #9a9a9a; border-radius: 6px; } #swapPop .pms-mat::-webkit-scrollbar-track { background: #eee; }

/* Photoshop-style ink color picker */
#swapPop.cp-dock{position:fixed;z-index:60;background:#d6d6d6;border:1px solid #8a8a8a;border-radius:6px;box-shadow:0 8px 24px rgba(0,0,0,.35);font:11px Barlow,sans-serif;color:#222;padding:0;overflow:hidden}
.cp-title{background:#bdbdbd;text-align:center;font-weight:600;padding:5px 0;border-bottom:1px solid #9a9a9a}
.cp-sv{position:relative;aspect-ratio:1;min-height:180px;cursor:crosshair;border:1px solid #777}
.cp-knob{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;border:1.5px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #000;pointer-events:none}
.cp-hue{position:relative;cursor:ns-resize;border:1px solid #777;background:linear-gradient(to bottom,red,#ff0 17%,lime 33%,cyan 50%,blue 67%,#f0f 83%,red)}
.cp-hk{position:absolute;left:-4px;right:-4px;height:3px;margin-top:-1.5px;background:#fff;box-shadow:0 0 0 1px #000;pointer-events:none}

.cp-body{display:grid;grid-template-columns:190px 16px 1fr;gap:10px;padding:10px}
.cp-side{display:flex;flex-direction:column;gap:8px;min-width:0}
.cp-top{display:flex;gap:10px;align-items:flex-start}
.cp-prev{display:flex;flex-direction:column;width:64px;text-align:center}.cp-prev small{font-size:10px;color:#444}.cp-prev span{height:30px;border:1px solid #666}.cp-prev .cp-new{border-bottom:0}
.cp-btns{display:flex;flex-direction:column;gap:6px;flex:1}.cp-btns button{border:1px solid #666;border-radius:10px;background:#f4f4f4;padding:4px 0;font:600 12px Barlow,sans-serif;cursor:pointer}
.cp-btns button:hover{background:#F4EEED}
.cp-fields{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}
.cp-side label{display:flex;align-items:center;gap:4px}.cp-side input{width:100%;min-width:0;font:11px Barlow,sans-serif;padding:1px 3px;border:1px solid #999}/* FINAL_PRICE_SUMMARY_VIEW: wide summary with right-rail product cards two per row */
.modal.final-sum { width: 970px !important; max-width: calc(100vw - 40px); border-radius: 7px !important; padding: 26px 46px 34px; }
#modal:has(.modal.final-sum) { background: #000 !important; backdrop-filter: none !important; }
.modal.final-sum .pq-head { display: inline-block; background: #FAF5F2; padding: 6px 10px 8px; }
.modal.final-sum .box-right.pq-ocards { position: static !important; left: auto; top: auto; width: auto !important; height: auto !important; margin: 16px 0 0; }
.modal.final-sum .box-right.pq-ocards > .cards { position: static !important; display: grid !important; grid-template-columns: repeat(2, 424.28px); justify-content: center; gap: 10px 10px; width: auto !important; height: auto !important; max-height: 380px; overflow-y: auto; }
.modal.final-sum .sum-card text { user-select: none; }
.modal.final-sum .actions { justify-content: center; margin-top: 26px; }
/* Reset (ink) Ink — restores a deleted ink, shown inside the ink list */
#inkList .ink-reset { list-style: none; margin: 6px 0 0; }
#inkList .ink-reset-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 1px dashed #c9b8b0; border-radius: 10px; background: #fff; color: #131110; font: 600 14px/1.2 Barlow, sans-serif; cursor: pointer; text-align: left; }
#inkList .ink-reset-btn:hover { background: #F4EEED; }
#inkList .ink-reset-btn i { width: 22px; height: 22px; border-radius: 5px; border: 1px solid #bbb; flex: none; }
/* Union Ink swatch book (Ink Lab "change colour") */
#swapPop.cp-dock{background:#fff;border:1px solid #130b0c;border-radius:0;box-shadow:0 8px 24px rgba(0,0,0,.25);font-family:Barlow,sans-serif;color:#130b0c;padding:10px 12px 12px;max-height:none}
#swapPop .ui-head{display:flex;justify-content:space-between;align-items:center;font-weight:600;font-size:16px;margin-bottom:8px}
#swapPop .ui-x{background:none;border:0;font-size:16px;cursor:pointer;color:#130b0c}
#swapPop .ui-tabs{display:flex;gap:4px;margin-bottom:8px}
#swapPop .ui-tab{flex:1;border:1px solid #130b0c;background:#fff;color:#130b0c;font:600 12px Barlow,sans-serif;padding:5px 0;border-radius:0;cursor:pointer}
#swapPop .ui-tab[aria-selected="true"]{background:#e70000;border-color:#e70000;color:#fff}
#swapPop .ui-search{width:100%;box-sizing:border-box;border:1px solid #130b0c;border-radius:0;padding:6px 8px;font:500 13px Barlow,sans-serif;margin-bottom:8px}
#swapPop .ui-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;max-height:300px;overflow:auto}
#swapPop .ui-tile{background:#fff;border:1px solid transparent;padding:3px;cursor:pointer;text-align:center;border-radius:0;font-family:Barlow,sans-serif;color:#130b0c}
#swapPop .ui-tile:hover,#swapPop .ui-tile.on{border-color:#e70000}
#swapPop .ui-chip{display:block;height:44px;border:1px solid rgba(19,11,12,.15)}
#swapPop .ui-tile b{display:block;font-weight:600;font-size:12px;margin-top:3px;line-height:1.1}
#swapPop .ui-tile small{display:block;font-weight:500;font-size:10px;color:#6b6566}
#swapPop .ui-note{grid-column:1/-1;font-size:13px;color:#6b6566;margin:6px 0}

/* EXPANDED_INK_OPTIONS master: tight 5-col grid, bottom bar with tiny scroll bar, × , label, pills */
#swapPop.cp-dock{padding:6px 8px 6px;border-color:#231f20}
#swapPop .ui-grid{grid-template-columns:repeat(5,1fr);gap:4px 6px;max-height:420px;overflow-y:auto;scrollbar-width:none}
#swapPop .ui-grid::-webkit-scrollbar{display:none}
#swapPop .ui-tile{padding:1px;border:1px solid transparent}
#swapPop .ui-chip{height:42px;border:1px solid rgba(19,11,12,.18)}
#swapPop .ui-tile b{font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#swapPop .ui-foot{display:grid;grid-template-columns:14px auto 1fr;grid-template-rows:auto auto;align-items:center;column-gap:10px;margin-top:6px}
#swapPop .ui-sb{grid-row:1;grid-column:1;position:relative;width:6px;height:46px;background:#e6e6e6;border-radius:3px;cursor:pointer;justify-self:center}
#swapPop .ui-sb i{position:absolute;left:0;width:6px;background:#8f8f8f;border-radius:3px}
#swapPop .ui-x{grid-row:2;grid-column:1;font:400 22px Barlow,sans-serif;line-height:1;padding:0;color:#231f20}
#swapPop .ui-lbl{grid-row:1/3;grid-column:2;font:600 22px Barlow,sans-serif;color:#262425}
#swapPop .ui-pills{grid-row:1/3;grid-column:3;display:flex;flex-direction:column;gap:6px;width:150px}
#swapPop .ui-tab{border:.6px solid #231f20;background:#fff;color:#231f20;font:600 16px Barlow,sans-serif;padding:3px 0}
#swapPop .ui-tab[aria-selected="true"]{background:#e70000;border-color:#e70000;color:#fff}
