#ep-customer .ep-documents-form { display: grid; gap: 20px; margin: 0; }
#ep-customer .ep-documents-dropzone { padding: 28px 22px; border: 2px dashed #b8cbbc; border-radius: 12px; background: #f8fbf8; text-align: center; transition: background .15s, border-color .15s; }
#ep-customer .ep-documents-dropzone.is-dragging { border-color: var(--ep-green); background: #eaf6ed; }
#ep-customer .ep-documents-dropzone label { display: grid; justify-items: center; gap: 12px; margin-bottom: 16px; cursor: pointer; }
#ep-customer .ep-documents-upload-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #e5f2e8; color: var(--ep-green); font-size: 28px; }
#ep-customer .ep-documents-dropzone input { display: block; width: 100%; max-width: 100%; margin: 0 auto; color: var(--ep-muted); font: inherit; font-size: 14px; }
#ep-customer .ep-documents-dropzone input::file-selector-button { margin-right: 12px; padding: 10px 14px; border: 1px solid var(--ep-green); border-radius: 8px; background: var(--ep-white); color: var(--ep-green); font: inherit; font-weight: 600; cursor: pointer; }
#ep-customer .ep-documents-dropzone p { margin: 14px 0 0; color: var(--ep-muted); font-size: 13px; line-height: 1.6; }
#ep-customer .ep-documents-form .ep-order-button { justify-self: start; margin: 0; }
#ep-customer .ep-documents-queue, #ep-customer .ep-documents-saved { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
#ep-customer .ep-documents-queue:empty { display: none; }
#ep-customer .ep-documents-queue li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--ep-border); border-radius: 8px; font-size: 14px; }
#ep-customer .ep-documents-queue li > span { min-width: 0; overflow-wrap: anywhere; }
#ep-customer .ep-documents-queue button { flex-shrink: 0; margin: 0; padding: 5px; border: 0; background: transparent; color: #a12b2b; box-shadow: none; font: inherit; font-size: 13px; text-transform: none; cursor: pointer; }
#ep-customer .ep-documents-form[hidden], #ep-customer .ep-documents-progress[hidden], #ep-customer .ep-documents-add-more[hidden] { display: none; }
#ep-customer .ep-documents-progress { display: grid; gap: 18px; padding: 26px; border: 2px solid #b3d2ba; border-radius: 12px; background: #f1f8f3; color: var(--ep-text); font-size: 14px; scroll-margin-top: 100px; }
#ep-customer .ep-documents-progress:focus { outline: none; }
#ep-customer .ep-documents-progress-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#ep-customer .ep-documents-progress-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 50%; background: #dcefe1; color: var(--ep-green); font-size: 26px; font-weight: 600; }
#ep-customer .ep-documents-progress-title { flex: 1 1 180px; min-width: 0; color: var(--ep-green); font-size: 21px; font-weight: 600; line-height: 1.4; }
#ep-customer .ep-documents-progress-percent { margin-left: auto; color: var(--ep-green); font-size: 30px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
#ep-customer .ep-documents-progress-notice { margin: 16px 0 0; font-size: 15px; font-weight: 500; line-height: 1.6; }
#ep-customer .ep-documents-progress progress { display: block; width: 100%; height: 16px; border: 0; border-radius: 999px; overflow: hidden; background: #dce9df; accent-color: var(--ep-green); }
#ep-customer .ep-documents-progress progress::-webkit-progress-bar { border-radius: 999px; background: #dce9df; }
#ep-customer .ep-documents-progress progress::-webkit-progress-value { border-radius: 999px; background: var(--ep-green); }
#ep-customer .ep-documents-progress progress::-moz-progress-bar { border-radius: 999px; background: var(--ep-green); }
#ep-customer .ep-documents-progress-text { min-width: 0; color: var(--ep-muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
#ep-customer .ep-documents-progress.is-uploading .ep-documents-progress-icon { position: relative; }
#ep-customer .ep-documents-progress.is-uploading .ep-documents-progress-icon::after { content: ""; position: absolute; inset: -3px; border: 2px solid transparent; border-top-color: var(--ep-green); border-radius: 50%; animation: ep-documents-upload-spin 1s linear infinite; }
#ep-customer .ep-documents-progress.is-error { margin-bottom: 22px; border-color: #e5d29e; background: #fff9eb; }
#ep-customer .ep-documents-progress.is-error .ep-documents-progress-title, #ep-customer .ep-documents-progress.is-error .ep-documents-progress-icon { color: #58451d; }
#ep-customer .ep-documents-progress.is-error .ep-documents-progress-icon { background: #f5e9c9; }
#ep-customer .ep-documents-progress.is-error progress, #ep-customer .ep-documents-progress.is-error .ep-documents-progress-percent { display: none; }
#ep-customer .ep-documents-add-more { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; margin: 18px 0 0; padding: 10px 16px; border: 1px solid var(--ep-border); border-radius: 8px; background: var(--ep-white); color: var(--ep-green); box-shadow: none; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; text-transform: none; cursor: pointer; }
#ep-customer .ep-documents-add-more:hover { border-color: var(--ep-green); background: #f8fbf8; }
#ep-customer .ep-documents-add-more:focus-visible { outline: 2px solid var(--ep-green); outline-offset: 3px; }
@keyframes ep-documents-upload-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  #ep-customer .ep-documents-progress.is-uploading .ep-documents-progress-icon::after { animation: none; }
}
#ep-customer .ep-documents-success { margin: 18px 0 0; padding: 14px 16px; border: 1px solid #b3d2ba; border-radius: 10px; background: #eef8f1; color: #096a2a; }
#ep-customer .ep-documents-existing { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ep-border); }
#ep-customer .ep-documents-saved li { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 12px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--ep-border); overflow-wrap: anywhere; }
#ep-customer .ep-documents-saved .ep-documents-file-icon { display: grid; place-items: center; width: 36px; height: 40px; border-radius: 8px; background: #eef5f0; color: var(--ep-green); }
#ep-customer .ep-documents-file-icon svg { display: block; width: 22px; height: 22px; }
#ep-customer .ep-documents-file-info { display: grid; min-width: 0; gap: 4px; }
#ep-customer .ep-documents-saved strong { font-size: 14px; font-weight: 600; }
#ep-customer .ep-documents-saved span { color: var(--ep-muted); font-size: 12px; }
@media (max-width: 640px) {
  #ep-customer .ep-documents-dropzone { padding: 20px 14px; }
  #ep-customer .ep-documents-form .ep-order-button { width: 100%; }
  #ep-customer .ep-documents-progress { padding: 20px 16px; }
  #ep-customer .ep-documents-progress-heading { gap: 10px; }
  #ep-customer .ep-documents-progress-title { flex-basis: 150px; font-size: 19px; }
  #ep-customer .ep-documents-progress-percent { font-size: 26px; }
}

#ep-customer .ep-documents-notice { padding: 16px 18px; border: 1px solid #e5d29e; border-radius: 10px; background: #fff9eb; color: #58451d; font-size: 14px; line-height: 1.6; }
#ep-customer .ep-documents-notice p { margin: 0; }
#ep-customer .ep-documents-notice p + p { margin-top: 8px; }

/* Přechod z počítače na telefon. QR je lokální SVG s bílým ochranným okrajem. */
#ep-customer .ep-documents-mobile-transfer { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  #ep-customer .ep-documents-mobile-transfer { display: block; margin-bottom: 24px; }
}
#ep-customer .ep-documents-mobile-transfer summary { width: fit-content; padding: 11px 16px; border: 1px solid var(--ep-border); border-radius: 8px; background: var(--ep-white); color: var(--ep-green); font-weight: 600; cursor: pointer; }
#ep-customer .ep-documents-mobile-transfer summary:focus-visible, #ep-customer .ep-documents-copy-link:focus-visible { outline: 2px solid var(--ep-green); outline-offset: 3px; }
#ep-customer .ep-documents-mobile-panel { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 16px; padding: 20px; border: 1px solid var(--ep-border); border-radius: 12px; background: var(--ep-white); }
#ep-customer .ep-documents-mobile-panel p { font-size: 14px; }
#ep-customer .ep-documents-qr { width: 240px; max-width: 100%; background: #fff; }
#ep-customer .ep-documents-qr svg { display: block; width: 100%; height: auto; }
#ep-customer .ep-documents-mobile-link { display: block; width: 100%; min-width: 0; margin: 14px 0 8px; padding: 10px; border: 1px solid var(--ep-border); border-radius: 6px; background: #fff; color: var(--ep-text); font: inherit; font-size: 13px; }
#ep-customer .ep-documents-copy-link { margin: 0; padding: 6px 0; border: 0; background: transparent; color: var(--ep-green); box-shadow: none; font: inherit; font-size: 14px; text-transform: none; text-decoration: underline; cursor: pointer; }
#ep-customer .ep-documents-mobile-status { margin-top: 12px; color: var(--ep-green); }
@media (min-width: 1024px) and (max-width: 1279px) {
  #ep-customer .ep-documents-mobile-panel { grid-template-columns: minmax(0, 1fr); }
}

/* Samostatná mobilní stránka zachovává stejné barvy a průběh jako běžné nahrávání. */
body.ep-mobile-upload-page { margin: 0; background: #fff; }
body.ep-mobile-upload-page #ep-customer.ep-mobile-upload-shell { max-width: 600px; min-height: 100svh; margin: 0 auto; padding: 24px 16px 40px; }
#ep-customer .ep-mobile-upload-brand { margin-bottom: 24px; color: var(--ep-green); font-size: 16px; font-weight: 600; }
body.ep-mobile-upload-page #ep-customer h1 { font-size: 28px; }
body.ep-mobile-upload-page #ep-customer .ep-order-panel { padding: 20px 16px; border-radius: 12px; }
body.ep-mobile-upload-page #ep-customer .ep-documents-dropzone { padding: 16px 12px; border-width: 1px; text-align: left; }
body.ep-mobile-upload-page #ep-customer .ep-documents-dropzone label { justify-items: start; margin-bottom: 12px; font-size: 14px; }
body.ep-mobile-upload-page #ep-customer .ep-documents-form .ep-order-button { width: 100%; }
body.ep-mobile-upload-page #ep-customer .ep-documents-progress { margin-bottom: 20px; }
#ep-customer .ep-documents-camera-button { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px; border: 1px solid var(--ep-green); border-radius: 10px; background: var(--ep-green); color: #fff; font-weight: 600; cursor: pointer; }
#ep-customer .ep-documents-camera-button svg { flex-shrink: 0; }
#ep-customer .ep-documents-camera-control:focus-within .ep-documents-camera-button { outline: 2px solid var(--ep-green); outline-offset: 3px; }
#ep-customer .ep-documents-camera-control p { margin-top: 10px; color: var(--ep-muted); font-size: 13px; }
#ep-customer .ep-documents-next-sides { margin-bottom: 18px; padding: 16px; border: 1px solid #e5d29e; border-radius: 10px; background: #fff9eb; color: #58451d; }
#ep-customer .ep-documents-next-sides strong { display: block; font-size: 17px; line-height: 1.4; }
#ep-customer .ep-documents-next-sides p { margin-top: 8px; color: inherit; font-size: 14px; }
#ep-customer .ep-documents-next-sides[hidden] { display: none; }
#ep-customer .ep-documents-camera-auto-note[hidden] { display: none; }
