.customer-page { background:var(--brand-depth); color:var(--brand-ice); color-scheme:dark; }
.customer-page :focus-visible { outline:3px solid var(--brand-accent); outline-offset:4px; }
.order-header { max-width:1376px; margin:auto; padding:20px 48px; display:flex; justify-content:space-between; align-items:center; gap:24px; }
.order-header>a:last-child { min-height:44px; display:flex; align-items:center; font-size:14px; color:var(--brand-muted-dark); }
.order-page { max-width:840px; margin:auto; padding:40px 48px 64px; }
.flow-steps { display:flex; gap:24px; list-style:none; padding:0; margin:0 0 32px; font-size:13px; color:var(--brand-field); }
.flow-steps li { padding-bottom:8px; border-bottom:2px solid transparent; }
.flow-steps [aria-current] { color:var(--brand-accent); border-color:var(--brand-accent); }
.flow-heading { margin-bottom:32px; }
.customer-page h1 { font-size:clamp(32px,4vw,48px); line-height:1.08; letter-spacing:-.03em; }
.flow-heading>p { margin-top:16px; color:var(--brand-muted-dark); font-size:17px; max-width:48ch; }
#order-app [hidden] { display:none!important; }
#order-app :is(button,input) { font:inherit; }
#order-app button:disabled { opacity:.5; cursor:not-allowed; }
#order-app :is(.primary,.secondary) { min-height:52px; padding:14px 24px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:15px; line-height:1.4; border:1px solid transparent; }
#order-app .primary { background:var(--brand-accent); color:var(--brand-night); }
#order-app .secondary { background:transparent; border-color:var(--brand-field); color:var(--brand-ice); }
#order-app .wide { width:100%; }
#order-app .text-button { min-height:44px; color:var(--brand-muted-dark); background:transparent; padding:8px 0; font-size:14px; text-decoration:underline; text-underline-offset:4px; }
.dropzone { position:relative; display:flex; align-items:center; flex-direction:column; gap:16px; padding:40px 24px; border:1px dashed var(--brand-field); border-radius:16px; background:var(--brand-night); text-align:center; }
.dropzone>svg { width:32px; height:32px; color:var(--brand-accent); }
.dropzone label { min-height:44px; display:flex; align-items:center; font-weight:700; font-size:20px; color:var(--brand-ice); }
.dropzone input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.dropzone:focus-within { outline:3px solid var(--brand-accent); outline-offset:4px; }
.dropzone p { font-size:14px; color:var(--brand-muted-dark); }
.dropzone.dragging { border-color:var(--brand-accent); background:var(--brand-surface); }
.file-help { font-size:12px; color:var(--brand-muted-dark); margin:12px 0 24px; }
.gallery-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:24px 0 12px; font-size:15px; }
.thumbnails { padding:0; margin:0 0 24px; list-style:none; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.thumbnail { position:relative; min-width:0; }
.thumbnail-image { position:relative; display:flex; align-items:center; justify-content:center; aspect-ratio:4/3; overflow:hidden; border-radius:12px; background:var(--brand-surface); border:2px solid transparent; color:var(--brand-muted-dark); }
.thumbnail-image img { width:100%; height:100%; object-fit:cover; }
.thumbnail-image button { position:absolute; inset:0; width:100%; color:inherit; background:transparent; }
.thumbnail-image:has(button[aria-pressed=true]) { border-color:var(--brand-accent); }
.thumbnail-image:has(button[aria-pressed=true])::after { content:'Scelta'; position:absolute; bottom:6px; left:6px; pointer-events:none; color:var(--brand-night); background:var(--brand-accent); border-radius:4px; padding:2px 6px; font-size:11px; font-weight:700; }
.thumbnail .remove-photo { position:absolute; right:0; top:0; width:44px; height:44px; display:grid; place-items:center; border:0; background:transparent; color:var(--brand-ice); }
.remove-photo svg { width:26px; height:26px; padding:4px; border-radius:50%; background:var(--brand-night); }
.thumbnail p { margin-top:6px; font-size:12px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--brand-muted-dark); }
.batch-summary { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:20px 0; margin:8px 0 20px; border-top:1px solid var(--brand-line-dark); border-bottom:1px solid var(--brand-line-dark); font-size:16px; }
.batch-summary>strong { color:var(--brand-accent); white-space:nowrap; font-size:24px; font-variant-numeric:tabular-nums; }
.flow-actions { display:grid; gap:12px; margin:24px 0 20px; }
#order-app .micro { color:var(--brand-muted-dark); font-size:12px; line-height:1.65; margin:12px 0 20px; }
.micro a,.consent a { text-decoration:underline; }
.error,.notice { padding:16px 20px; border-radius:12px; margin-bottom:24px; line-height:1.6; background:var(--brand-surface); color:var(--brand-ice); }
.error { border:1px solid #ffb4a8; color:#ffb4a8; }
#test-notice { display:grid; gap:12px; }
.input-action { display:flex; gap:12px; }
progress { width:100%; height:8px; border:0; border-radius:8px; overflow:hidden; accent-color:var(--brand-accent); background:var(--brand-line-dark); margin:12px 0 24px; }
progress::-webkit-progress-bar { background:var(--brand-line-dark); }
progress::-webkit-progress-value { background:var(--brand-accent); }
progress::-moz-progress-bar { background:var(--brand-accent); }
#upload-label { font-size:14px; color:var(--brand-muted-dark); }
.comparison-view { display:grid; border-radius:16px; overflow:hidden; background:var(--brand-night); margin-bottom:16px; }
.comparison-view img { grid-area:1/1; width:100%; height:auto; max-height:65vh; object-fit:contain; }
.comparison-switch { display:flex; justify-content:center; gap:8px; margin-bottom:20px; }
.comparison-switch button { min-height:44px; min-width:96px; border:1px solid var(--brand-field); border-radius:999px; color:var(--brand-ice); background:transparent; padding:8px 20px; }
.comparison-switch button[aria-pressed=true] { color:var(--brand-night); background:var(--brand-ice); border-color:var(--brand-ice); }
.work-indicator { height:4px; width:64px; margin-bottom:24px; background:var(--brand-accent); animation:working 1.6s ease-in-out infinite alternate; transform-origin:left; }
@keyframes working { to { transform:scaleX(2.5); } }
#preview-wait p,.hint { color:var(--brand-muted-dark); font-size:15px; }
.field-label { display:block; font-weight:700; font-size:15px; margin-bottom:8px; }
#order-app input:not([type=file]):not([type=checkbox]) { width:100%; min-height:52px; background:var(--brand-night); color:var(--brand-ice); border:1px solid var(--brand-field); border-radius:12px; padding:12px 16px; font-size:16px; }
#order-app input::placeholder { color:var(--brand-muted-dark); }
.consent { display:flex; align-items:flex-start; gap:12px; margin:20px 0; padding:4px 0; font-size:13px; line-height:1.6; color:var(--brand-muted-dark); }
.consent input { flex:0 0 20px; width:20px; height:20px; margin:2px 0 0; accent-color:var(--brand-accent); }
.payment-summary p { font-size:13px; margin-top:4px; color:var(--brand-muted-dark); }
.saved-order { margin-top:32px; border-top:1px solid var(--brand-line-dark); padding-top:16px; }
#order-app .saved-order .micro { margin-top:0; margin-bottom:4px; }
.new-order { margin-top:8px; }
.download-list { padding:0; list-style:none; margin:24px 0; }
.download-list li { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--brand-line-dark); font-size:14px; }
.order-footer { max-width:1376px; margin:auto; padding:24px 48px max(24px,env(safe-area-inset-bottom)); border-top:1px solid var(--brand-line-dark); color:var(--brand-muted-dark); font-size:12px; }
.order-footer nav { display:flex; gap:24px; }
.order-footer a { min-height:44px; display:flex; align-items:center; }
.order-footer p { margin-top:8px; }
@media(hover:hover) { #order-app .primary:hover:not(:disabled) { background:var(--brand-accent-hover); } #order-app .secondary:hover:not(:disabled) { border-color:var(--brand-ice); } .text-button:hover { color:var(--brand-ice); } }
@media(max-width:760px) { .order-header { padding:12px 20px; } .order-page { padding:24px 20px 40px; } .flow-heading>p { font-size:15px; } .flow-heading { margin-bottom:24px; } .flow-steps { gap:20px; margin-bottom:24px; font-size:12px; } .dropzone { padding:24px 20px; gap:12px; } .thumbnails { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; } .order-footer { padding-inline:20px; } .batch-summary { font-size:15px; } }
@media(max-width:360px) { .order-header,.order-footer { padding-inline:16px; } .order-page { padding-inline:16px; } .flow-steps { gap:16px; } .thumbnails { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(prefers-reduced-motion:reduce) { .work-indicator { animation:none; } }

.thumbnail-fallback { position:absolute; inset:0; display:grid; place-items:center; font-size:12px; }
.thumbnail-image img { position:relative; }
.thumbnail-image button { z-index:1; }

#order-app .saved-order summary { padding:8px 0; min-height:44px; border:0; font-size:13px; color:var(--brand-muted-dark); font-weight:400; cursor:pointer; }
#order-app .saved-order { border-bottom:0; }
@media(max-width:760px) { .preview-thumbnails { grid-template-columns:repeat(2,minmax(0,1fr)); } }

#order-app .saved-order summary { display:flex; align-items:center; justify-content:space-between; gap:16px; }
#order-app .saved-order summary svg { width:16px; height:16px; transform:none; transition:transform 160ms ease; }
#order-app .saved-order[open] summary svg { transform:rotate(90deg); }
@media(prefers-reduced-motion:reduce) { #order-app .saved-order summary svg { transition:none; } }

@media(max-width:760px) { .desktop-hint { display:none; } }

.delivery-summary { color:var(--brand-muted-dark); font-size:15px; margin-bottom:20px; }
#downloads .download-main .hint { margin:12px 0 0; font-size:14px; line-height:1.65; }
.delivery-status { margin-top:16px; font-size:14px; color:var(--brand-ice); }
.result-gallery { list-style:none; padding:0; margin:28px 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.result-gallery li { position:relative; overflow:hidden; border-radius:12px; aspect-ratio:4/3; display:grid; place-items:center; background:var(--brand-surface); }
.result-gallery img { width:100%; height:100%; object-fit:contain; }
.result-gallery span { position:absolute; bottom:8px; left:8px; padding:3px 7px; border-radius:4px; background:var(--brand-night); color:var(--brand-ice); font-size:12px; }
.zip-delivery { margin:12px 0; }
.zip-delivery .hint { font-size:14px; margin-top:12px; }
#order-app a.primary { text-decoration:none; }
#order-app a[aria-disabled=true] { opacity:.5; cursor:wait; }
.single-downloads { border-top:1px solid var(--brand-line-dark); border-bottom:1px solid var(--brand-line-dark); }
.single-downloads summary { min-height:52px; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; font-size:14px; }
.single-downloads svg { width:16px; height:16px; }
.single-downloads[open] svg { transform:rotate(90deg); }
.single-downloads .download-list { margin:0 0 12px; }
.download-list a { display:inline-flex; align-items:center; }
.single-downloads .download-list li:last-child { border-bottom:0; }
@media(max-width:760px) { .result-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:24px 0; } }
