/* Batch workspace, task packages and delivery states. General page components use site.css. */
.batch-page { padding-bottom: 0; }
.batch-workspace :is(button,a,input):focus-visible, .batch-dialog :is(button,input):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.batch-hero { max-width: 840px; margin: auto; padding: 70px 0 38px; }
.batch-demo-note { display: flex; align-items: baseline; gap: 10px; padding: 13px 20px; border: 1px solid #2e423b; border-radius: 10px; color: #b8c8c0; background: #111c19; font-size: 12px; margin-bottom: 16px; }
.batch-workspace { border: 1px solid #313640; border-radius: 16px; background: #10141b; overflow: hidden; scroll-margin-top: 90px; }
.batch-workspace-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.batch-workspace-bar h2 { font-size: 14px; }
.batch-upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.batch-reference, .batch-sources { padding: 22px 26px; min-width: 0; }
.batch-reference { border-right: 1px solid var(--line); }
.batch-formats { font-size: 10px; text-align: center; margin-top: 12px; }
.batch-thumbnails { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; max-height: 310px; overflow: auto; margin-top: 14px; }
.batch-file { position: relative; min-width: 0; }
.batch-file-image { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: 7px; background: #202731; }
.batch-file-placeholder { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.batch-file-name { display: block; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); margin-top: 5px; }
.batch-remove { position: absolute; top: 5px; right: 5px; border: 1px solid #7779; width: 26px; height: 26px; border-radius: 50%; background: #090b10d9; color: white; cursor: pointer; font-size: 17px; line-height: 1; }
.batch-action-bar { display: flex; gap: 20px; align-items: center; justify-content: flex-end; padding: 16px 26px; border-top: 1px solid var(--line); background: #141a21; }
.batch-action-bar strong { font-size: 13px; }
.batch-error { margin: 16px 26px; color: #ffb1b9; font-size: 13px; }
/* Retained for batch_package_cards when integrated into the workflow. */
.batch-price-card { position: relative; }
.batch-price { font-size: 38px; letter-spacing: -.04em; margin: 20px 0 10px; font-weight: 600; }
.batch-price span { color: var(--muted); font-size: 12px; letter-spacing: 0; font-weight: 400; }
.batch-price-card .button { margin-top: 28px; width: 100%; }
.batch-best { border-color: #698c73; background: #15211c; }
.batch-value { position: absolute; top: -11px; right: 18px; background: var(--accent); color: #102217; border-radius: 4px; font-size: 9px; letter-spacing: .07em; padding: 3px 8px; font-weight: 700; }
.batch-dialog { color: var(--text); background: #141a22; border: 1px solid #455449; border-radius: 16px; padding: 28px; width: min(540px,calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; }
.batch-dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.batch-dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.batch-dialog h2 { font-size: 24px; line-height: 1.25; margin: 16px 0 8px; }
.batch-dialog > p { color: var(--muted); font-size: 13px; }
.batch-dialog fieldset { padding: 0; border: 0; margin: 24px 0; display: grid; gap: 10px; }
.batch-package-option { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.batch-package-option:has(input:checked) { background: #1c2f25; border-color: var(--accent); }
.batch-package-option:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.batch-package-option input { accent-color: var(--accent); }
.batch-package-option strong { font-size: 13px; }
.batch-package-option small { display: block; color: var(--muted); font-size: 11px; }
.batch-package-option em { font-style: normal; color: var(--accent); margin-left: 4px; }
.batch-package-option > b { margin-left: auto; font-size: 18px; }
.batch-checkout-note { font-size: 12px; color: #bbc7c0; margin-bottom: 20px; }
.batch-checkout-note p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.batch-dialog-back { display: block; margin: 14px auto 0; }
.batch-progress, .batch-delivery { max-width: 650px; margin: auto; text-align: center; padding: 45px 24px; }
.batch-state-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid #526958; color: var(--accent); font-size: 28px; margin: 0 auto 18px; }
.batch-progress h3, .batch-delivery h3 { font-size: 26px; margin: 14px 0 10px; line-height: 1.2; }
.batch-progress progress { display: block; width: 100%; height: 8px; accent-color: var(--accent); margin: 30px 0 14px; }
.batch-progress [data-progress-label] { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.batch-deliverables { text-align: left; margin: 28px 0; }
.batch-deliverables > div { position: relative; padding: 14px 65px 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.batch-deliverables span { display: block; color: var(--muted); font-size: 11px; }
.batch-deliverables b { position: absolute; right: 0; top: 18px; color: var(--accent); font-size: 10px; }
.batch-delivery-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.batch-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
 .batch-hero { padding-top: 40px; }
 .batch-upload-layout { grid-template-columns: 1fr; }
 .batch-reference { border-right: 0; border-bottom: 1px solid var(--line); }
 .batch-reference-preview { max-width: 260px; margin: auto; }
 .batch-reference, .batch-sources { padding: 20px; }
 .batch-action-bar { flex-direction: column; align-items: flex-end; padding: 16px 20px; }
 .batch-thumbnails { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .batch-workspace-bar { padding: 16px 20px; }
 .batch-dialog { padding: 20px; }
 .batch-package-option { padding: 13px 10px; gap: 9px; }
 .batch-package-option em { display: block; margin: 0; }
}

.batch-drop { width: 100%; flex-direction: column; gap: 2px; margin-top: 8px; color: var(--muted); cursor: pointer; }
.batch-upload-layout .tool-howto-step-title { font-size: 14px; }
.batch-upload-layout .tool-howto-step-desc { font-size: 14px; line-height: 1.7; }

.batch-upload-layout .tool-howto-step-num { font-size: 10px; border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; color: var(--muted); font-weight: 400; }

@media (min-width: 981px) { .batch-trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.batch-page .trust-strip { margin-top: 64px; border-top: 1px solid var(--line); }
@media (max-width: 680px) { .batch-page .trust-strip { margin-top: 40px; } }

/* Example treatments illustrate the layout until real batch results are available. */
.batch-example { margin: 0; }
.batch-example-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 32px; align-items: center; }
.batch-example-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.batch-example-frame { position: relative; min-width: 0; }
.batch-example-frame .compare-label { top: 12px; left: 12px; right: auto; }
.batch-example-arrow { display: grid; place-items: center; height: 64px; color: var(--accent); font-size: 24px; line-height: 1; }
.batch-example-photo { display: block; width: 100%; aspect-ratio: 3 / 4; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.batch-example-reference .batch-example-photo { aspect-ratio: 548 / 891; }
.batch-example-before-1 { filter: saturate(.55) hue-rotate(12deg) brightness(1.12); }
.batch-example-before-2 { filter: saturate(.7) hue-rotate(-12deg) brightness(.9); }
.batch-example-before-3 { filter: saturate(.45) brightness(1.15); }
@media (max-width: 680px) {
 .batch-example-layout { grid-template-columns: 1fr; gap: 24px; }
 .batch-example-reference { width: 160px; margin: auto; }
 .batch-example-results { gap: 8px; }
 .batch-example-frame .compare-label { top: 6px; left: 6px; min-width: 0; padding: 0 7px; font-size: 9px; }
}

.landing-section-head.batch-example-heading { margin-bottom: 48px; }
@media (max-width: 680px) { .landing-section-head.batch-example-heading { margin-bottom: 32px; } }

.batch-example-reference .compare-thumb-label { position: absolute; top: 12px; left: 12px; }
@media (max-width: 680px) { .batch-example-reference .compare-thumb-label { top: 6px; left: 6px; } }

.landing-section-head.batch-use-heading { margin-bottom: 40px; }
.batch-use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.batch-use-card { padding: 0; overflow: hidden; }
.batch-use-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.batch-use-copy { padding: 24px; }
.batch-use-interior { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.batch-use-interior .landing-privacy-link { display: inline-block; margin-top: 16px; }
@media (max-width: 680px) {
 .landing-section-head.batch-use-heading { margin-bottom: 28px; }
 .batch-use-grid { grid-template-columns: 1fr; }
 .batch-use-interior { grid-column: auto; grid-template-columns: 1fr; }
 .batch-use-copy { padding: 20px; }
}

.batch-section-action { margin-top: 40px; text-align: center; }
.batch-section-action .landing-privacy-link { margin-top: 0; }
@media (max-width: 680px) { .batch-section-action { margin-top: 32px; } }

.batch-upload-layout .batch-drop { height: 190px; }

.batch-action-bar [data-proceed] { width: min(320px, 100%); }

.batch-reference-preview:not([hidden]) { margin-top: 16px; }

/* Match the single-photo tool's contained reference preview. */
.batch-reference-preview:not([hidden]) { max-width: none; height: 190px; margin: 8px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.batch-reference-preview .batch-file { height: 100%; }
.batch-reference-preview .batch-file-image { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; background: transparent; border-radius: 8px; }
.batch-reference-preview .batch-file-name { display: none; }
.batch-reference-preview .batch-remove { top: 12px; right: 12px; width: 28px; height: 28px; border: 0; background: rgba(0,0,0,.6); font-size: 16px; }

.batch-selection-footer { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 12px; }

.batch-upload-layout .batch-drop-compact { height: auto; aspect-ratio: 4 / 3; margin: 0; border-radius: 7px; }
.batch-drop-compact-label { display: none; font-size: 12px; line-height: 1.3; }
.batch-drop-compact .batch-drop-full-label { display: none; }
.batch-drop-compact .batch-drop-compact-label { display: block; }

/* Three selectable package cards in the workflow. */
.batch-dialog { width: min(850px, calc(100% - 32px)); }
.batch-dialog fieldset { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.batch-package-option { display: block; padding: 20px; background: var(--surface); border-radius: 10px; }
.batch-package-option input { margin: 0 0 12px; }
.batch-package-content { display: block; }
.batch-package-content strong { display: block; font-size: 15px; }
.batch-package-content .batch-price { display: block; margin: 12px 0; font-size: 30px; }
.batch-package-limit { display: block; font-weight: 700; font-size: 13px; }
.batch-package-option small { margin-top: 5px; }
.batch-package-option em { display: inline-block; margin: 12px 0 0; font-size: 11px; }
.batch-package-option em[hidden] { display: none; }
@media (max-width: 680px) {
 .batch-dialog fieldset { grid-template-columns: 1fr; }
 .batch-package-option { padding: 16px; }
}

/* Give the upload workspace a clearer, calmer visual hierarchy. */
.batch-workspace { border-color: #303a40; border-radius: 20px; background: #10161c; }
.batch-reference, .batch-sources { padding: 32px; }
.batch-upload-layout .tool-howto-step-head { align-items: center; gap: 12px; }
.batch-upload-layout .tool-howto-step-num { padding: 4px 8px; border-color: #455a50; color: var(--accent); }
.batch-upload-layout .tool-howto-step-title { font-size: 15px; line-height: 1.45; }
.batch-upload-layout .batch-drop { margin-top: 18px; background: #131b21; border-color: #46534f; }
.batch-reference-preview:not([hidden]) { margin-top: 18px; }
.batch-upload-layout .batch-drop-compact { margin: 0; }
.batch-action-bar { padding: 20px 32px; background: #131c20; }
@media (max-width: 760px) {
 .batch-reference, .batch-sources { padding: 24px 20px; }
 .batch-action-bar { padding: 18px 20px; }
}

/* Keep the photo selection area stable as thumbnails are added. */
.batch-thumbnails:empty { display: none; }
.batch-thumbnails:not(:empty) { height: 150px; max-height: 150px; margin-top: 18px; align-content: start; }

.batch-sources { container-type: inline-size; }
.batch-thumbnails:not(:empty) { height: auto; min-height: 150px; max-height: calc((100cqw - 64px - 40px) * .45 + 20px); }
@media (max-width: 760px) {
 .batch-thumbnails:not(:empty) { max-height: calc((100cqw - 40px - 20px) * .75 + 20px); }
}

.batch-photo-count { color: var(--text); font-size: 16px; font-weight: 700; }

/* Package selection follows the centered LUT offer layout. */
.batch-dialog { position: fixed; padding: 40px; background: #12161a; border-color: #3c444c; }
.batch-dialog-intro { max-width: 680px; margin: 0 auto; text-align: center; }
.batch-dialog-intro .eyebrow { color: #9de8bb; margin: 0 0 14px; }
.batch-dialog-intro h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); }
.batch-dialog-intro > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.batch-dialog fieldset { margin: 34px 0 24px; gap: 14px; }
.batch-package-option { position: relative; min-width: 0; padding: 28px 20px 24px; text-align: center; transition: border-color .2s, background .2s; }
.batch-package-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.batch-package-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.batch-package-option em { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); margin: 0; padding: 3px 10px; border-radius: 4px; background: var(--accent); color: #102217; font-size: 10px; font-weight: 700; white-space: nowrap; }
.batch-dialog .batch-package-includes { gap: 12px 24px; }
.batch-dialog .batch-checkout-note { margin: 10px 0 24px; text-align: center; color: var(--muted); font-size: 12px; }
.batch-dialog [data-checkout] { display: flex; width: min(360px, 100%); margin: auto; }
@media (max-width: 680px) {
 .batch-dialog { padding: 36px 20px 24px; }
 .batch-dialog fieldset { gap: 16px; margin-top: 28px; }
 .batch-package-option { padding: 18px; }
 .batch-package-content .batch-price { margin: 6px 0; }
}


.batch-dialog-intro [data-package-count] { color: var(--text); font-weight: 700; }

.batch-dialog .batch-package-options { margin: 34px 0 24px; }
.batch-credit-panel { display: flex; align-items: end; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.batch-credit-summary { padding: 14px 26px; border-bottom: 1px solid var(--line); color: var(--text); background: #192a23; line-height: 1.6; overflow-wrap: anywhere; }
.batch-credit-summary strong { color: var(--accent); }
.batch-credit-summary p { margin: 4px 0 0; }
.batch-credit-summary select { display: block; max-width: 100%; margin-top: 6px; padding: 8px; color: var(--text); background: #12161a; border: 1px solid #637168; border-radius: 8px; }
.batch-credit-summary[hidden] { display: none; }
.batch-credit-panel label { display: grid; gap: 8px; text-align: left; color: var(--muted); }
.batch-credit-panel select { min-width: 240px; max-width: 100%; padding: 10px; color: var(--text); background: #12161a; border: 1px solid #637168; border-radius: 8px; }
.batch-credit-panel button:disabled { opacity: .5; }
.batch-dialog .batch-package-options fieldset { margin: 0; }
.batch-package-payment { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.batch-dialog .batch-package-includes { margin-bottom: 24px; }

/* Separate the recommended offer from the currently selected option. */
.batch-package-option:has(input:checked) { background: #1c3027; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.batch-package-content .batch-package-limit { color: var(--text); font-size: 15px; font-weight: 600; }
.batch-package-limit b { font-size: 25px; line-height: 1; }
.batch-package-content .batch-price { margin: 14px 0 8px; font-size: 30px; }
.batch-package-content .batch-package-name { color: var(--muted); font-size: 12px; font-weight: 500; }
.batch-package-option:has(input:disabled) { opacity: .65; }
.batch-package-option [data-package-unavailable] { color: #d3a5a5; margin-top: 10px; line-height: 1.4; }
.batch-package-option [data-package-unavailable][hidden] { display: none; }
.batch-package-option em { top: -15px; padding: 5px 14px; border-radius: 6px; font-size: 12px; letter-spacing: .02em; box-shadow: 0 4px 14px rgba(0,0,0,.25); }

.batch-progress { position: relative; max-width: 520px; padding: 48px 24px; }
.batch-progress .color-processing-state { gap: 18px; }
.batch-progress .color-processing-state p, .batch-progress .color-processing-state h2 { margin: 0; }
.batch-progress .color-progress { display: block; width: 100%; height: 12px; margin: 0; }
.batch-progress .eyebrow { justify-self: center; }
.batch-progress .batch-progress-notice { padding: 14px 18px; border: 1px solid #d7ad5a; border-radius: 10px; background: rgba(215, 173, 90, .12); color: #f6dca1; font-size: 15px; font-weight: 600; line-height: 1.5; }

.batch-progress:not([hidden]) { display: flex; flex-direction: column; justify-content: center; }

.batch-delivery h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; }
.batch-delivery-actions { margin-top: 28px; align-items: center; }

.batch-delivery:not([hidden]) { display: flex; flex-direction: column; justify-content: center; }
