/* Crop step, Option A (crop-step.js, 2026-10-16). Text >= 18px, targets >= 48px, primary = --btn-primary-*. */
#s-cropstep .screen-body { padding-bottom: 12px; }
.cs-title { text-align: center; margin-bottom: 2px; }
.cs-ct.ct-root { margin: 0; }
.cs-ct input.ct-slider { display: block; width: 100%; height: 44px; margin: 0; padding: 0; flex: none; -webkit-appearance: auto; appearance: auto; accent-color: #2b2a28; }
/* A/B: "Use this crop" sits at the shared primary CTA spot; the inline copy is hidden (same button, clicked through) */
/* Vince 13:26: the crop step is EXACTLY the prod canvas-section controls (inline "Use this crop" + "Crop It Myself") */
#s-cropstep .cta-slot[hidden] { display: none; }
/* B: large preview + shape chip row (same cards, shown as chips) */
.cs-b #s-cropstep .ct-cards { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.cs-b #s-cropstep .ct-cards > * { flex: 1 1 0; min-width: 0; }
.cs-b #s-cropstep .ct-card { min-height: 64px; padding: 8px 10px; justify-content: center; text-align: center; gap: 0; border-radius: 12px; }
.cs-b #s-cropstep .ct-card .ct-thumb, .cs-b #s-cropstep .ct-card .ct-ex, .cs-b #s-cropstep .ct-card .ct-check, .cs-b #s-cropstep .ct-sel-wrap > .ct-mag { display: none; }
.cs-b #s-cropstep .ct-text { align-items: center; gap: 4px; }
.cs-b #s-cropstep .ct-tag { align-self: center; font-size: 18px; padding: 1px 8px; }
.cs-b #s-cropstep .ct-label { font-size: 18px; }
.cs-b #s-cropstep .ct-edit { position: static; display: block; margin: 4px auto 0; }
.cs-b #s-cropstep .ct-sel-wrap { display: flex; flex-direction: column; }
/* summary row: Proof (A/B) and Get (all) */
.cs-sum { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; margin: 10px 0 12px; text-align: left; width: 100%; box-sizing: border-box; }
.cs-sum[hidden] { display: none; }
.cs-thumb { position: relative; flex-shrink: 0; overflow: hidden; border-radius: 3px; background: #e5ddd2; display: block; }
.cs-sum-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cs-sum-t strong { font-size: 19px; }
.cs-sum-t span { font-size: 18px; color: var(--soft); line-height: 1.3; }
.cs-change { min-height: 48px; min-width: 48px; padding: 0 6px; background: none; border: 0; font: inherit; font-size: 18px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); flex-shrink: 0; cursor: pointer; }
@media (max-width: 359px) { .cs-sum { flex-wrap: wrap; } .cs-change { flex-basis: 100%; text-align: left; } }
#s-proof .cs-sum { max-width: 342px; margin-left: auto; margin-right: auto; }
/* Get: the crop UI no longer lives in the canvas card */
.cs-on #crop-thumbs { display: none !important; }
.cs-on #s-get.ct-choosing .cta-slot { display: flex; }
.cs-uses { font-size: 18px; line-height: 1.35; color: var(--ink); margin: 4px 0 0; font-weight: 600; }
.cs-uses[hidden] { display: none; }
#opt-wood-card.ct-on .canvas-size-row[data-ct-hidden] { display: none !important; }
#opt-wood-card.ct-on .canvas-size-list .canvas-size-row > label { font-size: 18px; }
.cs-mthumb { position: relative; overflow: hidden; display: inline-block; flex-shrink: 0; border-radius: 3px; background: #e5ddd2; margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 1px var(--line); }
.cs-mthumb.round { border-radius: 50%; }
.cs-on .magnet-size-row { align-items: center; }
/* per-size canvas previews start from the crop: no second "crop for me / I'll crop it" toggle, shape fixed by the crop */
/* C: expandable first section on the finished-portrait screen */
.cs-sec { width: 100%; max-width: 360px; margin: 0 auto 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: left; }
.cs-sec[hidden] { display: none; }
.cs-sec-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 14px; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.cs-sec-n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--cta-text, #F3EEE6); display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.cs-sec-t { flex: 1; display: flex; flex-direction: column; }
.cs-sec-t strong { font-size: 19px; }
.cs-sec-t span { font-size: 18px; color: var(--soft); }
.cs-caret { width: 12px; height: 12px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); margin: 0 6px 6px 0; transition: transform .15s; }
.cs-sec.open .cs-caret { transform: rotate(-135deg); margin: 6px 6px 0 0; }
.cs-sec-body { padding: 0 12px 12px; }
.cs-sec-body[hidden] { display: none; }
/* C: one primary per screen — "Use this crop" is the outline button here; "Get this portrait" stays primary */
.cs-c #cs-sec .ct-actions .ct-use { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); box-shadow: none; }

/* QL-14 merged Get header card (same white card / 1.5px line / 14px radius as .cs-sum) */
#s-get .get-portrait-bar.ql14 { align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); max-width: 342px; background: #fff; }
#s-get .get-portrait-bar.ql14 > img { display: none; }
#s-get .get-portrait-bar.ql14 .cs-thumb { border-radius: 6px; }
#s-get .get-portrait-bar.ql14 .meta { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
#s-get .get-portrait-bar.ql14 .meta strong { font-size: 19px; line-height: 1.3; }
#s-get .get-portrait-bar.ql14 .cs-change { min-height: 48px; padding: 0; margin-top: 2px; text-align: left; }
#cs-get-sum, #cs-proof-sum { display: none !important; }
/* Proof (flow v2): whole painting, no pill; magnifier opens the watermarked full-screen zoom */
#s-proof .proof-flip-card { position: relative; }
#s-proof .pf-pill[hidden], #s-confirm .pf-pill[hidden] { display: none; }
.pf-mag { position: absolute; right: 10px; top: 10px; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(243,238,230,.94); color: var(--ink);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; }
.pf-mag svg { width: 24px; height: 24px; }
/* Confirm crop (flow v2): same Before/After card as Proof (portrait-r1.css), After = the chosen crop (QL-15 code) */
#s-confirm .proof-flip-card { width: calc(100% + 24px); margin: 0 -12px 4px; }
#s-confirm .pf-flip { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #e8e0d4; cursor: pointer; }
#s-confirm .pf-flip img { display: block; width: 100%; transition: opacity .45s ease; }
#s-confirm .pf-flip .pf-after { position: relative; height: auto; }
#s-confirm .pf-flip .pf-before { position: absolute; inset: 0; height: 100%; object-fit: contain; opacity: 0; }
#s-confirm .pf-flip[aria-pressed="false"] .pf-before { opacity: 1; }
#s-confirm .pf-flip[aria-pressed="false"] .pf-after { opacity: 0; }
#s-confirm .pf-pill { position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(243,238,230,.94); color: var(--ink); font-size: 18px; font-weight: 600; padding: 8px 14px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.15); pointer-events: none; }
#s-confirm .pf-seg { display: flex; margin: 12px 0 4px; background: rgba(43,42,40,.07); border-radius: 12px; padding: 4px; }
#s-confirm .pf-seg button { flex: 1; min-height: 48px; border: 0; background: transparent; font: inherit; font-size: 18px; font-weight: 600; color: var(--soft); border-radius: 9px; }
#s-confirm .pf-seg button.on { background: #FFFCFA; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
#s-confirm .pf-flip.ql15 { height: auto; }
#s-confirm .pf-flip.ql15 .pf-after { position: absolute !important; max-width: none; object-fit: fill; right: auto; bottom: auto; }
#s-confirm .pf-flip.ql15 .pf-before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#s-confirm .action-stack { margin-top: 16px; }
#s-confirm .cf-change { display: block; margin: 8px auto 0; }
@media (prefers-reduced-motion: reduce) { #s-confirm .pf-flip img { transition: none; } }
/* v3b confirm (Oct 29): Before = whole painting, outside the crop dimmed 42% black, 3px white crop edge; After clipped to its card (2f) */
#s-confirm .pf-flip { overflow: hidden; contain: paint; isolation: isolate; }
#s-confirm .pf-flip .cf-edge { position: absolute; z-index: 1; box-sizing: border-box; border: 3px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.42); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
#s-confirm .pf-flip .cf-edge[hidden] { display: none; }
#s-confirm .pf-flip[aria-pressed="false"] .cf-edge { opacity: 1; }
#s-confirm .pf-flip.ql15 .pf-before { object-fit: fill; }
/* 2e (Oct 29): the sticky Inspired-by card covered the product tabs and size rows on short phones. Sticky only where there is room;
   on short screens it scrolls with the page. The confirm ratio pill sits inside the card (never under the header). */
@media (max-height: 700px) { #s-get .get-portrait-bar { position: relative; top: auto; } }
#s-get .get-portrait-bar { scroll-margin-top: 0; }
#s-get .opt-card, #s-get .p3d-seg { scroll-margin-top: 120px; }
#s-confirm .screen-body { padding-top: 12px; }
/* Saved crops in My Heirlooms (Oct 29) */
#s-portrait .pd-master { display: flex; gap: 14px; align-items: flex-start; margin: 8px 0 18px; }
#s-portrait .pd-master-btn { flex: none; width: 180px; padding: 0; border: 0; background: none; border-radius: 10px; overflow: hidden; cursor: pointer; }
#s-portrait .pd-master-btn img { display: block; width: 100%; height: auto; }
#s-portrait .pd-master-t { display: flex; flex-direction: column; gap: 12px; min-width: 0; font-size: 18px; }
#s-portrait .pd-new { min-height: 48px; font-size: 18px; }
#s-portrait .pd-h { font-size: 22px; margin: 6px 0 2px; }
#s-portrait .pd-sub { font-size: 18px; color: var(--soft); margin: 0 0 12px; }
#s-portrait .pd-card { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 14px; }
#s-portrait .pd-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
#s-portrait .pd-thumb { position: relative; display: block; flex: none; overflow: hidden; border-radius: 8px; background: #1f1d1b; width: 180px; height: 180px; }
#s-portrait .pd-pill { background: rgba(43,42,40,.08); font-size: 18px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
#s-portrait .pd-order { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 18px; }
#s-portrait .pd-onum { align-self: flex-start; min-height: 44px; background: none; border: 0; padding: 0; font: inherit; font-size: 18px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); cursor: pointer; }
#s-portrait .pd-again { margin-top: 8px; width: 100%; max-width: none; }
@media (max-width: 360px) { #s-portrait .pd-master-btn { width: 140px; } }
#s-orders .pd-backcrop { display: block; margin: 0 0 8px; min-height: 44px; }
#s-orders .pd-backcrop[hidden] { display: none; }
/* QL-22 B (Vince 2026-10-30 10:20 AM via Loom): fixed header (title + green sentence) above the scrolling picker; the Inspired-by
   line + one "Change this crop" link sit under the preview, no card, no thumbnail. They never move with the product tabs
   (the preview stage is a fixed height for canvas, magnet and wood). */
#s-get .get-head { flex: none; padding: 4px var(--pad-x) 6px; background: var(--bg); box-shadow: 0 1px 0 var(--line); position: relative; z-index: 6; }
#s-get .get-head .screen-title { margin: 0 0 2px; }
#s-get .get-head .get-multi-hint { margin: 0 auto 4px; }
#s-get .get-portrait-bar.ql22, #s-get .get-portrait-bar.ql22.ql14 { position: static; top: auto; display: block; width: 100%; max-width: none; margin: 0 auto 12px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: center; z-index: auto; }
#s-get .get-portrait-bar.ql22::before { content: none; }
#s-get .get-portrait-bar.ql22 > img, #s-get .get-portrait-bar.ql22 .cs-thumb { display: none !important; }
#s-get .get-portrait-bar.ql22 .meta { display: flex; flex-direction: column; align-items: center; text-align: center; }
#s-get .get-portrait-bar.ql22 .meta strong { font-size: 20px; line-height: 1.3; }
#s-get .get-portrait-bar.ql22 .cs-change { min-height: 48px; padding: 0 12px; margin: 0; text-align: center; }
#s-get .opt-card, #s-get .p3d-seg { scroll-margin-top: 8px; }
@media (max-width: 380px) { #s-get .p3d-cap { line-height: 1.35; height: 2.7em; box-sizing: content-box; } }   /* QL-22: wood caption wraps on narrow phones; reserve 2 lines so the Inspired-by line never moves */
