/* Photo preparation: group tools, print previews and a persistent order total. */
.workspace-tools-summary{min-height:48px;cursor:pointer;line-height:1.5;font-size:15px;padding:4px 0}.workspace-tools-summary strong{display:inline;font-size:15px}.workspace-tools-summary span{display:block;margin-top:4px;color:var(--muted);font-size:13px}.order-entry-note{padding:14px 18px;border:1px solid #bfcf9a;background:#edf6dc;border-radius:12px;font-size:14px;margin:18px 0;line-height:1.7}
.order-page .calculator{max-width:1440px;padding-left:24px;padding-right:24px}
.order-page #calc-form{padding:30px}
.order-page #flow-self-settings{padding:22px;background:#f3f6ec;border:1px solid var(--line);border-radius:16px;margin-bottom:24px}
.order-page #flow-self-settings .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.order-page #flow-self-settings .workspace-quantity{display:none}
.order-page #flow-self-settings h3{font-size:1.35rem}
.order-page #flow-self-settings .check{margin-bottom:0}
.order-page #flow-editor{display:grid;grid-template-columns:280px minmax(0,1fr);gap:0 24px;align-items:start}
.order-page #photo-controls{grid-column:1;grid-row:1/6;margin:0;position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow:auto;background:white;padding:18px}
.order-page #photo-controls .photo-toolbar{grid-template-columns:1fr}
.order-page #photo-controls .photo-selection-bar{gap:8px}
.order-page #photo-selection{display:block;width:100%;font-weight:700;color:var(--ink);font-size:.9375rem}
.order-page #photo-controls button:not(.crop-mode){width:100%;min-height:44px;text-align:left}
.order-page #photo-controls h4{font-size:1rem;line-height:1.4;margin:22px 0 8px}
.order-page #photo-controls .form-hint{font-size:.75rem;margin:0}
.order-page #workspace-bulk{border-top:1px solid var(--line)}
.order-page #photo-controls .bulk-crop-mode .crop-modes{grid-template-columns:1fr;gap:8px}
.order-page #photo-controls .bulk-crop-mode .crop-mode{grid-template-columns:42px 1fr;gap:4px 8px;padding:10px}
.order-page #photo-controls .crop-mode-art{width:42px;height:30px;grid-row:1/4}
.order-page #photo-controls .crop-mode-art.fit::before{inset:0 9px}
.order-page #photo-controls .crop-mode strong{font-size:.8125rem}
.order-page #photo-controls .crop-mode>span:not(.crop-mode-art){font-size:.75rem}
.order-page #photo-controls .photo-selection-bar button{font-size:.8125rem}
.order-page #photo-bulk-apply{background:var(--graphite);color:var(--lime);border-color:var(--graphite);font-weight:700}
.order-page #photo-bulk-remove,.order-page #clear-photos{color:#884d34}
.order-page #clear-photos{margin-top:18px;background:transparent}
.workspace-gallery-head{grid-column:2;grid-row:1;display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:12px;padding:0;max-width:none}
.order-page .workspace-gallery-head h3{font-size:1.35rem;line-height:1.2}
.workspace-gallery-head>div:first-child{margin-right:auto}
.workspace-gallery-head p{color:var(--muted);font-size:.8125rem;margin-top:6px}
.workspace-view{display:flex;padding:4px;background:#e9ede1;border-radius:10px;gap:4px}
.workspace-view button{padding:8px 12px;min-height:40px;border:0;border-radius:7px;background:transparent;color:var(--ink);font-size:.8125rem}
.workspace-view button[aria-pressed=true]{background:var(--graphite);color:var(--lime);font-weight:700}
.workspace-notice{grid-column:2;grid-row:2;color:#3e5c18;background:#edf7db;border-radius:10px;padding:12px;font-size:.8125rem;overflow-wrap:anywhere}
.workspace-notice:empty{display:none}
.order-page #photo-pagination{grid-column:2;grid-row:3;margin:12px 0}
.order-page #photo-preview{grid-column:2;grid-row:4;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;gap:14px;min-width:0}
.order-page #flow-crop-hint{grid-column:2;grid-row:5;margin:18px 0}
.order-page #duplex-panel{grid-column:1/-1;grid-row:6}
.order-page #flow-pricing{grid-column:1/-1;grid-row:7;margin-top:22px}
.order-page #flow-pricing>.total{display:none}
.order-page .photo-card{padding:12px;gap:8px;border:2px solid var(--line);background:white}
.order-page .photo-card.is-selected{border-color:#728d1b;box-shadow:0 0 0 1px #728d1b;background:#f4fadf}
.order-page .photo-select{align-items:center;margin:0;gap:8px;font-size:.8125rem;line-height:1.4;flex-wrap:wrap}
.order-page .photo-select input{width:20px;height:20px;margin:0}
.photo-selected-badge{display:block;flex-basis:100%;font-size:.6875rem;color:var(--muted);letter-spacing:.02em}
.is-selected .photo-selected-badge{color:#436013;font-weight:700}
.order-page .photo-frame,.order-page .photo-card button.photo-frame{height:210px;padding:12px;background:#303630;border-radius:10px}
.order-page .photo-card button.photo-frame:hover{background:#424b3b}
.order-page .photo-dimensions{font-size:.6875rem}
.order-page .photo-card .photo-card-controls{grid-template-columns:1fr}
.order-page .photo-card-controls>label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}
.order-page .photo-card-controls input{width:76px;min-height:44px;font-size:.875rem;text-align:center}
.order-page .photo-card .photo-edit-button{min-height:44px;padding:10px 12px;font-size:.8125rem;justify-content:center;margin-top:auto}
.order-page .photo-card summary{font-size:.75rem}
.order-page .photo-card .crop-mode{padding:8px;font-size:.6875rem}
.order-page .photo-card .crop-mode strong{font-size:.75rem}
.order-page .photo-card .crop-mode-art{width:48px;height:32px}
.order-page #photo-preview.photo-list{grid-template-columns:1fr}
.order-page .photo-list .photo-card{display:grid;grid-template-columns:180px minmax(0,1fr) 155px;column-gap:18px;align-items:center}
.order-page .photo-list .photo-frame{grid-column:1;grid-row:1/6;height:160px;width:100%}
.order-page .photo-list .photo-select,.order-page .photo-list .photo-dimensions,.order-page .photo-list .photo-quality,.order-page .photo-list details{grid-column:2}
.order-page .photo-list .photo-card-controls{grid-column:3;grid-row:1/3}
.order-page .photo-list .photo-edit-button{grid-column:3;grid-row:3/5;margin:0}
.order-page .photo-list details{grid-column:2/-1}
.order-page .photo-list .crop-modes{max-width:440px}
.order-page .workspace-studio .workspace-gallery-head,.order-page .workspace-studio #workspace-notice,.order-page .workspace-studio #photo-pagination,.order-page .workspace-studio #photo-preview{grid-column:1/-1}
.order-page #workspace-navigation.is-preparing{position:sticky;bottom:12px;z-index:5;padding:16px 20px;background:var(--graphite);color:white;border:1px solid #3b4337;border-radius:16px;box-shadow:0 10px 30px #1b1e2029;gap:14px;align-items:center}
.workspace-order-summary{flex:1;min-width:220px}
.workspace-order-summary>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
.workspace-order-summary span{font-size:.75rem;color:#d4dcc9}
.workspace-order-summary strong{font-size:1.4rem;line-height:1.3;color:var(--lime)}
.workspace-order-summary p{font-size:.75rem;color:#d4dcc9;margin-top:6px;overflow-wrap:anywhere}
.order-page #workspace-navigation.is-preparing .secondary{color:white;background:transparent;border-color:#626e58}
@media(min-width:1500px){.order-page .photo-frame,.order-page .photo-card button.photo-frame{height:245px}}
@media(max-width:1200px){.order-page #flow-editor{grid-template-columns:250px minmax(0,1fr);gap:0 18px}.order-page #photo-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.order-page .photo-list .photo-card{grid-template-columns:135px minmax(0,1fr) 130px;column-gap:12px}}
@media(max-width:900px){.order-page #flow-editor{grid-template-columns:1fr}.order-page #photo-controls{grid-column:1;grid-row:auto;position:static;max-height:none;margin-bottom:22px}.order-page #photo-controls .photo-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.order-page #photo-controls .photo-selection-bar button{width:auto}.order-page #photo-controls .bulk-crop-mode .crop-modes{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-gallery-head,.workspace-notice,.order-page #photo-pagination,.order-page #photo-preview,.order-page #flow-crop-hint,.order-page #duplex-panel,.order-page #flow-pricing{grid-column:1;grid-row:auto}.order-page #photo-controls button:not(.crop-mode){width:auto}.order-page #flow-self-settings .fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.order-page .calculator{padding-left:12px;padding-right:12px}.order-page #calc-form{padding:16px}.order-page #flow-self-settings{padding:16px}.order-page #photo-preview{grid-template-columns:1fr}.order-page #photo-controls .photo-toolbar,.order-page #photo-controls .bulk-crop-mode .crop-modes,.order-page #flow-self-settings .fields{grid-template-columns:1fr}.order-page .photo-frame,.order-page .photo-card button.photo-frame{height:260px}.order-page .photo-list .photo-card{grid-template-columns:96px minmax(0,1fr);gap:8px 12px}.order-page .photo-list .photo-frame{grid-column:1;grid-row:1/4;height:110px;padding:6px}.order-page .photo-list .photo-select,.order-page .photo-list .photo-dimensions,.order-page .photo-list .photo-quality{grid-column:2}.order-page .photo-list .photo-card-controls,.order-page .photo-list .photo-edit-button,.order-page .photo-list details{grid-column:1/-1;grid-row:auto}.order-page #workspace-navigation.is-preparing{bottom:0;padding:14px;border-radius:12px;gap:10px}.workspace-order-summary{min-width:0;flex-basis:100%}.order-page #workspace-navigation .button{width:auto;flex:1;padding:12px 10px;min-height:44px}.workspace-order-summary strong{font-size:1.2rem}}
@media(max-width:900px){.order-page :is(input:not([type=checkbox]):not([type=range]),select,textarea){font-size:16px}.order-page .photo-select{min-height:44px;overflow-wrap:anywhere}.order-page #photo-controls{padding:14px 18px}.order-page #workspace-tools[open] .workspace-tools-summary{border-bottom:1px solid var(--line);margin-bottom:16px;padding-bottom:14px}.order-page .photo-pagination button{min-height:44px}.order-page .workspace-view button{min-height:44px}.order-page .photo-card summary{min-height:44px;padding:12px 0;cursor:pointer}.order-page .photo-card button{min-height:44px}}
@media(max-width:600px){.order-page #workspace-navigation.is-preparing{display:grid;grid-template-columns:1fr 1fr;padding:12px 12px calc(12px + env(safe-area-inset-bottom));gap:8px;bottom:0}.order-page #workspace-order-summary{grid-column:1/-1}.order-page #workspace-navigation .button{width:100%;font-size:14px}.order-page .workspace-order-summary p{line-height:1.45;margin-top:4px}.order-page :is(input:not([type=checkbox]):not([type=range]),select){min-height:48px}.order-page .photo-selection-bar{flex-wrap:wrap}body.order-page:has(#calc-form input:focus,#calc-form select:focus,#photo-project input:focus) #workspace-navigation.is-preparing{position:static}}
.photo-rejections :is(p,li){overflow-wrap:anywhere}.photo-duplicate-choice{font-size:.875rem}.photo-duplicate-choice input{flex-shrink:0;accent-color:#749519}
