/* The order on white, in the light language of the redesigned home, as the owner chose screen by screen on 1 November
   2026 (phone first, then the computer). Loaded after order-entry.css and site-chrome.css; order-look.js adds the
   kicker, the drawn underline and the few blocks the designs add (cards, steps, bars, notes). The outer spacing
   stays the generated public-content-spacing block. */
body.customer-page { background: #fff; }
.customer-page #main { color: var(--brand-night); }

/* Heading: kicker, title with the amber underline on its key word, text. */
.customer-page .flow-heading { margin-bottom: 0; text-align: left; }
.customer-page .order-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; color: var(--brand-focus); font-size: 13px; font-weight: 800; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase; }
.customer-page .order-kicker svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.customer-page #flow-title { color: var(--brand-night); font-size: 34px; line-height: 1.08; letter-spacing: -.035em; }
.order-entry #flow-title { font-size: 38px; line-height: 1.05; }
.customer-page .order-mark { position: relative; display: inline-block; white-space: nowrap; }
.customer-page .order-swoosh { position: absolute; left: -2%; bottom: -.1em; width: 104%; height: .28em; overflow: visible; fill: none; stroke: var(--brand-accent); stroke-width: 5; stroke-linecap: round; }
.customer-page .order-swoosh path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: order-draw 800ms cubic-bezier(.65, 0, .35, 1) 500ms forwards; }
@keyframes order-draw { to { stroke-dashoffset: 0; } }
.customer-page #flow-description { max-width: 34ch; margin: 14px 0 0; color: #4a5a6e; font-size: 16.5px; line-height: 1.5; text-align: left; }
.customer-page .order-ico { flex: none; width: 20px; height: 20px; fill: none; stroke: #b36900; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.customer-page .order-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; color: #4a5a6e; font-size: 14.5px; line-height: 1.45; }
.customer-page .order-card { border: 1px solid var(--brand-line-light); border-radius: 24px; background: #fff; box-shadow: 0 22px 44px -32px rgb(11 22 37 / .4); }
@media (prefers-reduced-motion: reduce) {
  .customer-page .order-swoosh path { stroke-dashoffset: 0; animation: none; }
  .customer-page :is(.preview-wait-photo, .order-pending)::after { animation: none !important; }
  .customer-page .order-tracker .is-on i { animation: none; }
}

/* Shared parts on white: secondary buttons, gallery controls, messages, the leave dialog, the toast. */
.customer-page #order-app .secondary, .customer-page .gallery-control, .customer-page #start-new-order { border: 1.5px solid var(--brand-line-light); background: #fff; color: var(--brand-night); }
.customer-page #order-app .secondary:hover:not(:disabled), .customer-page .gallery-control:hover:not(:disabled), .customer-page #start-new-order:hover { background: #f4f7fa; }
.customer-page #order-app .text-button { color: var(--brand-night); }
.customer-page #order-app :is(.primary, .stripe-elements-submit) { border-radius: 999px; }
.customer-page #app-status, .customer-page #test-notice { border-color: var(--brand-line-light); background: #f4f7fa; color: var(--brand-night); }
.customer-page #app-error { border-color: #f1c2bd; background: #fdf1ef; color: #8f2318; }
.customer-page .micro, .customer-page #package-remaining, .customer-page .hint { color: #4a5a6e; }
.customer-page .preview-selection-hint { color: var(--brand-night); }
.customer-page .thumbnail-image, .customer-page .paid-group-photo .thumbnail-image { border-color: transparent; background: #eef2f6; }
.customer-page .add-photo { color: var(--brand-night); }
.customer-page #upload-progress label { color: var(--brand-night); }
.customer-page #upload-meter, .customer-page #download-progress { accent-color: var(--brand-accent); }
.customer-page .batch-summary { border-color: var(--brand-line-light); background: #f4f7fa; color: var(--brand-night); }
#back-confirmation { border-color: var(--brand-line-light); background: #fff; color: var(--brand-night); box-shadow: 0 30px 60px -30px rgb(11 22 37 / .5); }
#back-confirmation p { color: #4a5a6e; }
#back-confirmation .secondary { border-color: var(--brand-line-light); color: var(--brand-night); }
#back-confirmation .secondary:hover { border-color: var(--brand-night); }
#back-confirmation.is-removing .removal-spinner { border-color: #e3e9f0; border-top-color: var(--brand-accent); }
#photo-save-toast { border-color: var(--brand-line-light); background: #fff; color: var(--brand-night); box-shadow: 0 16px 40px -20px rgb(11 22 37 / .5); }
.customer-page .delivery-spinner { border-color: #e3e9f0; border-top-color: var(--brand-accent); }

/* «Carica le foto» (O2C): the white card with the upload, the three numbered steps under it. */
.order-entry .order-upload-card { margin-top: 24px; padding: 16px; }
/* With photos in the group the upload card is only a wrapper of the hidden drop area: no frame. */
.customer-page:not(.order-entry) .order-upload-card { border: 0; border-radius: 0; background: none; box-shadow: none; }
.order-entry .order-upload-card .dropzone { display: grid; grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 12px 14px; min-height: 0; margin: 0; padding: 4px; border: 0; border-radius: 18px; background: transparent; color: var(--brand-night); text-align: left; }
.order-entry .order-upload-card .dropzone > svg:not(.order-upload-icon), .order-entry .order-upload-card .upload-invitation { display: none; }
.order-entry .order-upload-card .order-upload-icon { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: #fff4e0; fill: none; stroke: #b36900; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.order-entry .order-upload-text { display: grid; gap: 2px; }
.order-entry .order-upload-title { color: var(--brand-night); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.order-entry .order-upload-help { color: #4a5a6e; font-size: 13.5px; line-height: 1.45; }
.order-entry .order-upload-card .dropzone label { display: flex; grid-column: 1 / -1; width: 100%; min-height: 54px; margin-top: 4px; border-radius: 999px; font-size: 16px; font-weight: 700; }
.order-entry .file-guide { display: none; }
.customer-page .order-steps { display: none; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: order-step; }
.order-entry .order-steps { display: grid; }
.customer-page .order-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--brand-line-light); counter-increment: order-step; }
.customer-page .order-steps li::before { content: counter(order-step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-accent); color: var(--brand-night); font-size: 15px; font-weight: 800; }
.customer-page .order-steps b { display: block; color: var(--brand-night); font-size: 16px; }
.customer-page .order-steps span span { display: block; margin-top: 2px; color: #4a5a6e; font-size: 14px; line-height: 1.45; }
.order-entry .order-upload-card + .order-steps { margin-top: 26px; }

/* «Quale foto vuoi provare?» (S1) and the group of photos: light tiles two per row, the chosen one in amber. */
.order-collection #thumbnails { margin-top: 24px; }
.choosing-preview #thumbnails { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choosing-preview #thumbnails .thumbnail-image { border: 2px solid transparent; border-radius: 16px; background: #eef2f6; }
.choosing-preview #thumbnails .thumbnail-image:has(button[aria-pressed=true]) { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgb(245 165 36 / .25); }
.customer-page .preview-choice-mark { width: 28px; height: 28px; border: 2px solid #fff; background: rgb(11 22 37 / .35); box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.customer-page [aria-pressed=true] .preview-choice-mark { border-color: var(--brand-accent); background: var(--brand-accent); color: var(--brand-night); }
.choosing-preview #thumbnails .thumbnail p { color: #4a5a6e; font-size: 13.5px; font-weight: 600; }
.choosing-preview .thumbnail:has(button[aria-pressed=true]) p { color: #b36900; }
.choosing-preview #inline-preview-actions { max-width: none; margin: 24px 0 0; }
.choosing-preview #preview-button { min-height: 56px; border-radius: 999px; background: var(--brand-accent); color: var(--brand-night); font-size: 16px; font-weight: 700; }
.choosing-preview #preview-button:disabled { background: #e3e9f0; color: #6b7a8d; opacity: 1; }
.order-collection #toggle-gallery { margin: 16px 0 0; }

/* «Stiamo preparando la tua anteprima» (A2): the photo in a white card with a light sweep and a bar, then the steps. */
.preview-page #preview-stage { text-align: left; }
.preview-page #preview-wait { margin-top: 24px; padding: 8px; border: 1px solid var(--brand-line-light); border-radius: 24px; background: #fff; box-shadow: 0 22px 44px -32px rgb(11 22 37 / .4); }
.preview-page .preview-wait-photo { border-radius: 16px; background: #eef2f6; }
.preview-page .preview-wait-photo img { object-fit: cover; }
.preview-page .preview-wait-overlay { background: transparent; }
.preview-page .preview-progress { display: none; }
.preview-page .preview-wait-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .5) 50%, transparent 70%); transform: translateX(-110%); animation: order-sweep 2400ms cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes order-sweep { 70%, 100% { transform: translateX(110%); } }
.preview-page .order-wait-bar { padding: 14px 8px 6px; }
.preview-page .order-wait-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; color: var(--brand-night); font-size: 14px; font-weight: 700; }
.preview-page .order-wait-pct { font-variant-numeric: tabular-nums; }
.preview-page .order-wait-track { height: 6px; overflow: hidden; border-radius: 6px; background: #e3e9f0; }
.preview-page .order-wait-track i { display: block; width: calc(var(--p, 0) * 1%); height: 100%; border-radius: inherit; background: var(--brand-accent); transition: width 300ms linear; }
.customer-page .order-tracker { display: none; margin: 26px 0 0; padding: 0; list-style: none; }
.preview-page.preview-waiting .order-tracker { display: block; }
.customer-page .order-tracker li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--brand-line-light); }
.customer-page .order-tracker i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eef2f6; color: #6b7a8d; font-size: 15px; font-style: normal; font-weight: 800; }
.customer-page .order-tracker :is(.is-done, .is-on) i { background: var(--brand-accent); color: var(--brand-night); }
.customer-page .order-tracker .is-on i { animation: order-halo 1600ms ease-out infinite; }
@keyframes order-halo { from { box-shadow: 0 0 0 0 rgb(245 165 36 / .55); } to { box-shadow: 0 0 0 12px rgb(245 165 36 / 0); } }
.customer-page .order-tracker i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.customer-page .order-tracker b { display: block; color: var(--brand-night); font-size: 16px; }
.customer-page .order-tracker span span { display: block; margin-top: 2px; color: #4a5a6e; font-size: 14px; line-height: 1.45; }
.customer-page .order-tracker li:not(.is-done):not(.is-on) b { color: #6b7a8d; }
.preview-page .preview-upload-note { color: #4a5a6e; }

/* «La tua anteprima è pronta» (P1 + N2): the photo and «Prima | Dopo» in one white card with the watermark line,
   the pale amber discount box, the amber button. */
.preview-page .order-shot { margin-top: 24px; padding: 8px; }
.preview-page .comparison-view { margin: 0; border-radius: 16px; background: #eef2f6; }
/* The whole photo, never trimmed: a vertical photo shows with light bands, as on today's page. */
.preview-page .comparison-view { position: relative; }
.preview-page .comparison-view img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
/* «Prima» shows the customer's photo with its colours at 80%, like every original on the home (owner's choice,
   3 November 2026); only the display changes, never the file. */
.preview-page #live-before { filter: saturate(.8); }
.preview-page .comparison-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 8px 0 0; padding: 4px; border-radius: 999px; background: #eef2f6; }
#order-app .comparison-switch button { min-width: 0; padding: 8px 12px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: #4a5a6e; font-size: 15px; font-weight: 700; }
#order-app .comparison-switch button[aria-pressed=true] { border: 0; background: #fff; color: var(--brand-night); box-shadow: 0 4px 12px -6px rgb(11 22 37 / .45); }
.preview-page .order-shot-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 6px 6px; color: #4a5a6e; font-size: 13.5px; line-height: 1.4; text-align: left; }
.preview-page .order-shot-note svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #b36900; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.customer-page #preview-offer { max-width: none; margin: 20px 0 0; padding: 16px 18px; border: 1px solid #f3d29a; border-radius: 20px; background: #fff8ec; text-align: left; }
.customer-page .preview-offer strong { color: var(--brand-night); font-size: 19px; }
.customer-page .preview-offer .offer-title-discount { color: #b36900; font-size: 24px; }
.customer-page .preview-offer p { margin: 6px 0 0; color: #4a5a6e; font-size: 14.5px; line-height: 1.5; }
.customer-page .preview-offer.offer-expired { border-color: var(--brand-line-light); background: #f4f7fa; }
.customer-page .preview-offer.offer-expired strong { color: var(--brand-night); }
.preview-page .preview-actions { align-items: stretch; }
.preview-page #buy-after-preview { max-width: none; border-radius: 999px; }
.preview-page #buy-after-preview small { color: rgb(11 22 37 / .78); }

@media (min-width: 900px) {
  /* «Carica le foto» on a computer (D3): centred heading, a large drop area, the three steps side by side. */
  .order-entry #main.order-page { max-width: 1080px; width: 100%; margin: 0 auto; padding-inline: 40px; }
  .order-entry #order-app { max-width: none; }
  .order-entry .flow-heading { text-align: center; }
  .order-entry .order-kicker { justify-content: center; }
  .order-entry #flow-title { font-size: 56px; }
  .order-entry #flow-description { max-width: 52ch; margin: 16px auto 0; font-size: 18px; text-align: center; }
  .order-entry .order-upload-card { max-width: 760px; margin: 36px auto 0; padding: 12px; }
  .order-entry .order-upload-card .dropzone { grid-template-columns: 1fr; justify-items: center; gap: 14px; padding: 44px 24px 36px; border: 2px dashed #c9d2dd; background: #f7f9fb; text-align: center; }
  .order-entry .order-upload-card .order-upload-icon { order: 1; width: 68px; height: 68px; padding: 16px; }
  .order-entry .order-upload-card .upload-invitation { display: block; order: 2; color: var(--brand-night); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
  .order-entry .order-upload-text { order: 3; justify-items: center; }
  .order-entry .order-upload-title { display: none; }
  .order-entry .order-upload-card .dropzone label { order: 4; grid-column: auto; width: auto; min-width: 300px; margin-top: 6px; }
  .order-entry .order-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 48px auto 0; }
  .order-entry .order-steps li { grid-template-columns: 1fr; gap: 14px; align-content: start; padding: 22px; border: 0; border-radius: 20px; background: #f4f7fa; }

  /* The other screens on a computer (D2): the heading on the left, in view below the 84 px header, the working part
     on the right; order-look.js moves the few blocks that sit under the heading. */
  .order-split #main.order-page { max-width: 1180px; width: 100%; margin: 0 auto; padding-inline: 40px; }
  .order-split #order-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); column-gap: 80px; align-items: start; max-width: none; }
  .order-split #order-app > * { grid-column: 2; }
  .order-split #order-app > .flow-heading { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 108px; align-self: start; }
  .order-split #order-app :is(#preview-stage, #payment-stage, #delivery-stage, #paid-photos-stage) { max-width: none; margin: 0; }
  .order-split #flow-title { font-size: 54px; }
  .order-split #flow-description { max-width: 40ch; font-size: 18px; }
  .order-split .flow-heading .order-tracker { margin-top: 36px; }
  .order-split .flow-heading #preview-offer { max-width: 460px; margin: 28px 0 0; }
  .order-split .flow-heading .preview-actions { max-width: 460px; margin-top: 16px; }
  .order-split .flow-heading #inline-preview-actions { max-width: 420px; margin: 28px 0 0; }
  .order-split.choosing-preview #thumbnails { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .order-split .preview-wait-photo, .order-split .order-shot { margin-top: 0; }
  .order-split.preview-page #preview-wait, .order-split.preview-page .order-shot { margin-top: 0; }
}

/* «Completa l’acquisto» (K3 without the preview card): the packages as a two-way switch, the chosen price large and
   centred under it with the deadline, then Stripe's form in a white card. */
.payment-page.group-checkout .checkout-photo-summary { margin-top: 22px; padding: 0; }
.payment-page #checkout-package-options legend { margin: 0 0 10px; color: var(--brand-night); font-size: 16px; }
.payment-page .checkout-package-grid { grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: #eef2f6; }
.payment-page #order-app .checkout-package { position: relative; display: grid; grid-template-columns: 1fr; place-items: center; min-height: 46px; padding: 8px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; color: #4a5a6e; }
.payment-page #order-app .checkout-package:has(input:checked) { background: #fff; box-shadow: 0 4px 12px -6px rgb(11 22 37 / .45); }
.payment-page #order-app .checkout-package input[type=radio] { position: absolute; opacity: 0; }
.payment-page #order-app .checkout-package .checkout-package-price { display: none; }
.payment-page #order-app .checkout-package-label { color: #4a5a6e; font-size: 14.5px; font-weight: 700; }
.payment-page #order-app .checkout-package:has(input:checked) .checkout-package-label { color: var(--brand-night); }
.payment-page .order-price { display: grid; justify-items: center; gap: 2px; margin: 18px 0 0; color: var(--brand-night); }
.payment-page .order-price .package-original-line { display: flex; align-items: center; gap: 8px; }
.payment-page .order-price del { color: #6b7a8d; font-size: 16px; }
.payment-page .order-price .package-offer-badge { padding: 2px 8px; border-radius: 6px; background: var(--brand-accent); color: var(--brand-night); font-size: 14px; font-weight: 800; }
.payment-page .order-price strong { font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.payment-page .order-price small { color: #4a5a6e; font-size: 13.5px; }
.payment-page .checkout-offer-validity { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; color: #4a5a6e; font-size: 13.5px; }
.payment-page .checkout-offer-validity .order-ico { width: 17px; height: 17px; }
.payment-page .checkout-form-panel { margin-top: 22px; padding: 18px 16px; border: 1px solid var(--brand-line-light); border-radius: 24px; background: #fff; box-shadow: 0 22px 44px -32px rgb(11 22 37 / .4); }
.payment-page :is(#payment-loading, .checkout-total-label, .checkout-once, .checkout-output-note) { color: #4a5a6e; }
.payment-page .checkout-form-panel #retry-payment.secondary { border-color: var(--brand-line-light); background: #fff; color: var(--brand-night); }

/* «Aggiungi le foto da migliorare» (G2): the counter card with «Rimuovi tutte», every photo three per row,
   «Aggiungi foto» first. */
.paid-group-page #paid-photos-stage { margin-top: 24px; text-align: left; }
.paid-group-page .order-room { display: grid; gap: 10px; margin: 0 0 18px; padding: 16px; }
.paid-group-page .order-room-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.paid-group-page .order-room b { color: var(--brand-night); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.paid-group-page .order-room-track { height: 8px; overflow: hidden; border-radius: 8px; background: #e3e9f0; }
.paid-group-page .order-room-track i { display: block; width: calc(var(--used, 0) * 1%); height: 100%; border-radius: inherit; background: var(--brand-accent); transition: width 400ms ease; }
.paid-group-page .order-room p { margin: 0; color: #4a5a6e; font-size: 14px; }
.paid-group-page .paid-group-count { display: none; }
.paid-group-page .paid-group-toolbar { margin: 0; }
.paid-group-page .paid-group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
/* Every photo of the group is shown: the fold to the first row (and its button) is not used in this design. */
.paid-group-page #order-app .paid-group-grid .paid-group-photo[hidden] { display: block !important; }
.paid-group-page .paid-group-toggle { display: none !important; }
.paid-group-page .paid-group-grid :is(.thumbnail-image, .add-photo) { aspect-ratio: 1; border: 0; border-radius: 12px; background: #eef2f6; }
.paid-group-page .paid-group-grid .thumbnail-image img { object-fit: cover; }
.paid-group-page .paid-group-grid .add-photo-tile { order: -1; grid-area: auto !important; }
.paid-group-page .paid-group-grid .add-photo { border: 1.5px dashed #c9d2dd; background: #f7f9fb; color: var(--brand-night); font-weight: 700; }
.paid-group-page .paid-group-grid .add-photo span { font-size: 13px; }
.paid-group-page .paid-group-grid .add-photo svg { color: #b36900; }
.paid-group-page .paid-group-grid .remove-photo { top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--brand-night); box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.paid-group-page .paid-group-grid .remove-photo svg { width: 16px; height: 16px; padding: 0; border-radius: 0; background: transparent; fill: none; stroke: currentColor; stroke-width: 2.4; }
.paid-group-page :is(.paid-group-empty, .paid-group-status, .paid-group-actions p, .paid-group-upload) { color: #4a5a6e; }
.paid-group-page .paid-group-actions { margin-top: 24px; }
.paid-group-page .paid-group-confirm { width: 100%; min-height: 56px; font-size: 16px; }

/* «Le tue foto sono in elaborazione» (L2): the progress card, the email line, the photos two per row. */
.customer-page:is(.processing-page, .ready-page) #delivery-symbol { display: none !important; }
:is(.processing-page, .ready-page) #delivery-stage { margin-top: 24px; text-align: left; }
.processing-page #order-progress { margin: 0; padding: 16px; border: 1px solid var(--brand-line-light); border-radius: 20px; background: #fff; box-shadow: 0 22px 44px -32px rgb(11 22 37 / .4); }
.processing-page .processing-meta { margin-bottom: 10px; }
.processing-page :is(#processing-count, #processing-percentage) { color: var(--brand-night); font-size: 16px; font-weight: 800; }
.processing-page #processing-meter { appearance: none; width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 8px; background: #e3e9f0; }
.processing-page #processing-meter::-webkit-progress-bar { border-radius: 8px; background: #e3e9f0; }
.processing-page #processing-meter::-webkit-progress-value { border-radius: 8px; background: var(--brand-accent); }
.processing-page #processing-meter::-moz-progress-bar { border-radius: 8px; background: var(--brand-accent); }
.processing-page #delivery-help { color: #4a5a6e; }
.customer-page .order-processing-note { display: none; }
.processing-page .order-processing-note { display: flex; }
.processing-page .result-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
:is(.processing-page, .ready-page) .result-gallery li { position: relative; overflow: hidden; border-radius: 16px; background: #eef2f6; }
:is(.processing-page, .ready-page) .result-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 16px; }
:is(.processing-page, .ready-page) .photo-download { box-shadow: 0 4px 12px -4px rgb(0 0 0 / .45); }
/* The photos still in progress: dimmed, with the light sweep of the preview wait and a white «In lavorazione» pill. */
.processing-page .result-gallery .order-pending { aspect-ratio: 4 / 3; }
.processing-page .order-pending img { filter: saturate(.55) brightness(.92); }
.processing-page .order-pending::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .5) 50%, transparent 70%); transform: translateX(-110%); animation: order-sweep 2400ms cubic-bezier(.45, 0, .25, 1) infinite; }
.processing-page .order-pending:nth-child(3n)::after { animation-delay: 400ms; }
.processing-page .order-pending:nth-child(3n+1)::after { animation-delay: 800ms; }
.processing-page .order-pending span { position: absolute; z-index: 1; left: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--brand-night); font-size: 12px; font-weight: 800; }

/* «Le tue foto sono pronte» (C1): check tile, the amber main button, the photos two per row, the deadline with a
   clock, «Ottimizza altre foto» as a light pill. */
.customer-page .order-sign { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: #fff4e0; color: #b36900; }
.customer-page .order-sign svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ready-page :is(#download-primary a, #download-photos) { width: 100%; min-height: 56px; border-radius: 999px; font-size: 16px; }
.ready-page #download-help { margin: 10px 0 0; color: #4a5a6e; font-size: 14px; line-height: 1.45; text-align: left; }
.ready-page #delivery-summary { margin: 26px 0 12px; color: var(--brand-night); font-size: 17px; font-weight: 800; text-align: left; }
.ready-page .result-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ready-page #downloads #expiry-message { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; color: #4a5a6e; font-size: 13.5px; line-height: 1.45; text-align: left; }
.ready-page #downloads #expiry-message .order-ico { width: 17px; height: 17px; }
.ready-page #delivery-status { color: #4a5a6e; }
.ready-page #downloads .ios-photo-hint { border-color: var(--brand-line-light); background: #f4f7fa; color: var(--brand-night); }
.ready-page #start-new-order { display: flex; width: fit-content; margin: 28px auto 0; }

/* «Anteprima non riuscita» (E1 with F2/F4): paper plane on a cream tile (a check once the email is left), the white
   card with the words, the field and the amber button. */
.preview-page #preview-failure { max-width: none; margin: 24px 0 0; padding: 18px 16px; border: 1px solid var(--brand-line-light); border-radius: 24px; background: #fff; box-shadow: 0 22px 44px -32px rgb(11 22 37 / .4); }
.preview-page .preview-failure-message { color: var(--brand-night); font-size: 16px; font-weight: 600; line-height: 1.5; text-align: left; }
.preview-page .preview-contact-form { max-width: none; margin: 14px 0 0; }
#order-app #preview-contact-email { min-height: 54px; padding: 12px 16px; border: 1.5px solid #c9d2dd; border-radius: 14px; background: #fff; color: var(--brand-night); font-size: 16px; }
#order-app #preview-contact-email::placeholder { color: #6b7a8d; }
.preview-page .preview-contact-form input:focus-visible { border-color: var(--brand-accent); outline: 3px solid rgb(245 165 36 / .3); outline-offset: 0; }
.preview-page .preview-contact-form button { min-height: 56px; margin-top: 4px; font-size: 16px; }
.preview-page .preview-contact-status { color: #4a5a6e; font-size: 14px; }
.order-failure #delivery-symbol { display: none !important; }

@media (min-width: 900px) {
  /* Payment (D2): the switch, the price centred under it and the deadline on the left; Stripe's form on the right. */
  .order-split .flow-heading .checkout-photo-summary { max-width: 440px; margin-top: 30px; text-align: left; }
  .order-split.payment-page #flow-title { font-size: 46px; }
  .order-split.payment-page .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .order-split.payment-page .checkout-form-panel { margin-top: 0; }
  /* Paid group (D2): the counter card and the confirm button on the left, the photos three per row on the right. */
  .order-split .flow-heading .order-room { max-width: 440px; margin: 30px 0 0; text-align: left; }
  .order-split .flow-heading .paid-group-actions { max-width: 440px; margin: 16px 0 0; }
  /* The photos start level with the title, as on «Le tue foto sono in elaborazione». */
  .order-split #order-app #paid-photos-stage { margin-top: 32px; }
  .order-split .paid-group-grid { gap: 10px; }
  /* Processing (D2): progress and the email line on the left, the photos two per row on the right. */
  .order-split .flow-heading #order-progress { max-width: 440px; margin: 30px 0 0; text-align: left; }
  .order-split .flow-heading .order-processing-note { max-width: 440px; }
  .order-split.processing-page #delivery-stage, .order-split.processing-page .result-gallery { margin-top: 0; }
  /* Photos ready (D2): heading, ZIP button with «Ottimizza altre foto» centred under it on the left; the photos two
     per row and the deadline centred under them on the right. */
  .order-split .flow-heading .download-main { max-width: 440px; margin: 30px 0 0; }
  .order-split .flow-heading #start-new-order { margin: 22px auto 0; }
  .order-split.ready-page #downloads #expiry-message { justify-content: center; text-align: center; }
  .order-split.ready-page #delivery-stage, .order-split.ready-page #delivery-summary { margin-top: 0; }
  /* Failed preview (D3): everything centred, the email card 620 px wide. */
  .order-failure #main.order-page { max-width: 1080px; width: 100%; margin: 0 auto; padding-inline: 40px; }
  .order-failure .flow-heading { text-align: center; }
  .order-failure .order-sign { margin: 0 auto 20px; }
  .order-failure .order-kicker { justify-content: center; }
  .order-failure #flow-title { font-size: 56px; }
  .order-failure #preview-stage { max-width: 620px; margin-inline: auto; }
  .order-failure #preview-failure { margin-top: 32px; padding: 26px 24px; }
  .order-failure .preview-failure-message { text-align: center; }
}

/* The professional crop (owner, 2 November 2026): the switch under «Prima | Dopo» in the preview (V2, its line
   following the switch) and the card that opens the save block in the delivery (K1). */
.customer-page .order-crop-row { display: flex; align-items: center; gap: 10px; color: var(--brand-night); font-size: 14.5px; font-weight: 700; line-height: 1.35; text-align: left; cursor: pointer; }
.customer-page .order-crop-row > svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #b36900; stroke-width: 1.9; }
.customer-page .order-crop-text { flex: 1; min-width: 0; }
.customer-page .order-crop-text b { display: block; font-weight: 700; }
.customer-page .order-crop-text small { display: block; margin-top: 1px; color: #4a5a6e; font-size: 12.5px; font-weight: 500; }
.customer-page .order-toggle { position: relative; flex: none; width: 50px; height: 30px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: #c9d2dd; transition: background .2s; }
.customer-page .order-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .25); transition: transform .2s; }
.customer-page .order-toggle[aria-checked="true"] { background: var(--brand-accent); }
.customer-page .order-toggle[aria-checked="true"]::after { transform: translateX(20px); }
.customer-page #preview-crop { margin: 10px 6px 2px; }
.customer-page .order-crop-card { margin: 0 0 16px; padding: 12px 14px; }
.customer-page .order-crop-card .order-crop-row { font-size: 15px; }
.customer-page .order-crop-card .order-crop-text small { font-size: 13px; }
.customer-page .order-crop-count { margin: 8px 0 0 30px; color: #4a5a6e; font-size: 12.5px; line-height: 1.4; text-align: left; }
/* While the group is processing the card follows the email line; on a computer it is as wide as the progress card. */
.processing-page #delivery-crop { margin-top: 14px; }
@media (min-width: 900px) { .order-split .flow-heading #delivery-crop { max-width: 440px; } }
@media (prefers-reduced-motion: reduce) { .customer-page .order-toggle, .customer-page .order-toggle::after { transition: none; } }

/* Owner's review of 3 November 2026: the post-preview offer as a chip on «Vai ai pacchetti», with its deadline in
   one line under the button, in place of the large discount box; «Pagamento unico» under «Scegli il pacchetto»; a
   title written again keeps its underline drawn instead of drawing it once more. */
.customer-page .has-purchase-offer { min-height: 0; gap: 10px; }
/* A regular pill: fixed height, round ends of half its height, the figures centred. Its colour marks the saving;
   the line under the button stays neutral, with a clock of the same colour. */
#order-app { --offer-chip: var(--brand-accent); --offer-chip-ink: var(--brand-night); --offer-clock: #b36900; --offer-label: var(--brand-accent); }
/* With the offer, «Vai ai pacchetti» takes the colours of the discounted package of the home's «Prezzi»: blu notte,
   the label and the «−45%» amber, as the owner chose on 3 November 2026. */
#order-app .primary.has-purchase-offer { background: var(--brand-night); color: var(--offer-label); }
@media (hover: hover) { #order-app .primary.has-purchase-offer:hover:not(:disabled) { background: var(--brand-surface-raised); } }
#order-app .primary.has-purchase-offer:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }
.customer-page .purchase-offer-chip { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 24px; min-width: 52px; padding: 0 10px; border-radius: 12px; background: var(--offer-chip); color: var(--offer-chip-ink); box-shadow: 0 1px 2px rgb(11 22 37 / .18); font-size: 13px; font-weight: 800; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.customer-page .purchase-offer-line { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; color: #4a5a6e; font-size: 13.5px; font-weight: 600; line-height: 1.4; text-align: center; }
.customer-page .purchase-offer-line .order-ico { flex: none; width: 15px; height: 15px; stroke: var(--offer-clock, var(--offer-chip)); }
.customer-page .purchase-offer-line[hidden] { display: none; }
.customer-page .order-package-note { margin: -2px 0 12px; color: #4a5a6e; font-size: 14px; line-height: 1.4; }
.customer-page .order-mark.is-drawn .order-swoosh path { animation: none; stroke-dashoffset: 0; }
/* On the phone the ready preview has no visible title and the comparison moves up (owner, 4 November 2026);
   screen readers still hear the title. The computer keeps it. */
@media (max-width: 899.98px) {
  .order-preview-ready #order-app .flow-heading { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .customer-page.order-preview-ready main#main.order-page { padding-top: 16px; }
}
