/* Shared checkout and post-payment print files. No motion inside functional forms. */
body.premium .payment-options .radio-card > div { width: 100%; min-width: 0; }
.payment-provider-logo { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; width: 120px; max-width: 100%; height: 56px; margin: 0 auto 12px; }
.payment-provider-logo > img { display: block; width: 112px; height: auto; max-width: 100%; max-height: 48px; object-fit: contain; }
.payment-provider-logo--blik { width: 112px; background: #000; border-radius: 6px; }
.payment-provider-logo--blik > img { position: absolute; top: 50%; left: 50%; width: 157.142857%; height: auto; max-width: none; max-height: none; transform: translate(-50%,-50%); }
.payment-provider-logo--card > img { position: absolute; top: 50%; left: 50%; width: 90%; height: auto; max-width: none; max-height: none; transform: translate(-50%,-50%); }
.payment-provider-logo--apple > img { mix-blend-mode: multiply; }
.payment-provider-logo--paypo > img { width: 120px; }
.payment-provider-logo--transfer > .ico { width: 40px; height: 40px; color: #174b7a; }
body.premium .progress.book-order-progress { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; max-width: none; margin: 26px 0 44px; padding: 0; gap: 0; list-style: none; }
body.premium .progress.book-order-progress > li { position: relative; min-width: 0; text-align: center; }
body.premium .progress.book-order-progress > li::before { display: block; content: ""; position: absolute; z-index: 0; top: 21px; left: -50%; right: 50%; height: 2px; background: #dce6f1; }
body.premium .progress.book-order-progress > li.done::before,
body.premium .progress.book-order-progress > li.current::before { background: #2c7bf1; }
body.premium .progress.book-order-progress > li:first-child::before { display: none; }
body.premium .book-order-progress .book-progress-label { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; padding: 0 12px; font-size: 16px; line-height: 1.5; color: #71879c; }
body.premium .book-order-progress .book-progress-label i { position: relative; z-index: 1; flex: 0 0 44px; box-sizing: border-box; width: 44px; height: 44px; border: 3px solid #fff; margin: 0; font-size: 17px; }
body.premium .book-order-progress .book-progress-label > span { max-width: 22ch; white-space: normal; }
body.premium .book-order-progress .current .book-progress-label { color: #0874ed; font-weight: 700; }
body.premium .book-order-progress .done .book-progress-label { color: #19365f; }
.premium .book-checkout-form > .form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.book-address-fields { margin-top: 24px; }
.premium .book-order-summary .order-mini { grid-template-columns: 70px minmax(0,1fr); }
.premium .book-order-summary .order-mini img { width: 70px; height: 70px; }
.premium .book-order-summary .order-mini small { display: block; margin-top: 8px; }
.book-next-step { display: flex; align-items: flex-start; gap: 12px; padding: 20px; margin: 24px 0; background: #f0f7fd; border-radius: 12px; color: #143866; }
.book-next-step > .ico { flex-shrink: 0; color: #0874ed; margin-top: 3px; }
.premium .book-next-step p { margin: 8px 0 0; font-size: 16px; color: #6b8197; line-height: 1.7; }
.premium .book-form-error, .premium .book-file-errors { margin: 20px 0; padding: 16px 20px; background: #fff4ed; border: 1px solid #f3d6c4; border-radius: 10px; color: #894722; font-size: 16px; line-height: 1.7; }
.book-file-errors ul { margin: 10px 0 0; padding-left: 20px; }
.book-upload-status { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: -12px 0 32px; color: #6b8197; font-size: 16px; }
.book-paid-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; color: #267450; background: #edf8f1; font-weight: 700; }
.book-paid-badge .ico { width: 20px; height: 20px; }
.book-upload-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; margin-bottom: 65px; }
.premium .book-files-panel, .premium .book-upload-summary { padding: 32px; min-width: 0; }
.premium .book-files-panel > h2 { margin: 0 0 24px; }
.book-editor-notice { display: flex; gap: 16px; align-items: flex-start; padding: 24px; margin-bottom: 32px; background: #f0f7fd; border: 1px solid #dcebf7; border-radius: 12px; }
.book-editor-notice > .ico { flex: 0 0 28px; width: 28px; height: 28px; color: #0874ed; margin-top: 2px; }
.premium .book-editor-notice h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.35; }
.premium .book-editor-notice p { margin: 0; font-size: 16px; line-height: 1.8; color: #5c7791; }
.book-editor-notice strong { color: #143866; }
.book-file-drop { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; min-height: 220px; padding: 32px 24px; border: 1px dashed #93bce7; border-radius: 12px; background: #f5faff; text-align: center; color: #0769c5; cursor: pointer; }
.book-file-drop > .ico { width: 34px; height: 34px; }
.book-file-drop > strong { font-size: 18px; line-height: 1.5; }
.book-file-drop > span { color: #6b8197; font-size: 15px; line-height: 1.65; }
.book-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.book-file-drop:focus-within, .book-file-drop.is-dragover { outline: 3px solid #b7d7fa; outline-offset: 3px; background: #ecf5ff; border-color: #0874ed; }
.book-file-drop.is-busy { cursor: wait; opacity: .7; }
.book-files-counter { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin: 28px 0 18px; font-size: 16px; }
.book-files-counter > span { color: #6b8197; }
.book-file-list { list-style: none; padding: 0; margin: 0 0 26px; }
.book-file-row { display: grid; grid-template-columns: 28px minmax(0,1fr) 175px; gap: 14px; align-items: center; padding: 20px 0; border-top: 1px solid #e6edf4; }
.book-file-number { color: #8da3b8; font-size: 16px; }
.book-file-info { min-width: 0; }
.book-file-info > strong { display: block; overflow-wrap: anywhere; font-size: 16px; line-height: 1.5; }
.book-file-info > small { display: block; margin-top: 6px; color: #71879c; font-size: 14px; }
.book-part-label { min-width: 0; }
.book-part-label select { width: 100%; padding: 10px 9px; font-size: 15px; }
.book-part-label .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.book-file-part { color: #6b8197; font-size: 15px; }
.book-file-actions { display: flex; gap: 8px; grid-column: 2 / -1; justify-content: flex-end; }
.book-file-actions .icon-btn { width: 38px; height: 38px; font-size: 20px; }
.book-file-actions .icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.premium .book-file-confirm { align-items: flex-start; margin: 24px 0; line-height: 1.7; }
.book-file-confirm input { margin-top: 6px; }
.premium .book-local-note { align-items: flex-start; margin-top: 24px; font-size: 14px; line-height: 1.8; }
.book-local-note .ico { flex: 0 0 20px; margin-top: 3px; }
.premium .book-upload-summary { position: sticky; top: 24px; }
.book-upload-summary h2 { font-size: 24px; line-height: 1.3; margin: 14px 0 20px; }
.book-upload-summary h3 { font-size: 18px; margin: 28px 0 14px; }
.book-upload-product { display: block; width: 100%; height: 170px; object-fit: contain; background: #f7faff; border-radius: 10px; margin-bottom: 22px; }
.book-upload-summary dl { margin: 0; }
.book-upload-summary dl > div { padding: 13px 0; border-bottom: 1px solid #e6edf4; }
.book-upload-summary dt { color: #71879c; font-size: 14px; margin-bottom: 5px; }
.book-upload-summary dd { margin: 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.book-upload-tips { padding-left: 20px; margin: 0 0 22px; color: #6b8197; font-size: 16px; line-height: 1.8; }
.book-upload-tips li + li { margin-top: 12px; }
.book-files-success { display: flex; gap: 16px; align-items: flex-start; padding: 24px; margin-bottom: 24px; border-radius: 12px; background: #eff8f3; color: #267450; }
.book-files-success > .ico { width: 32px; height: 32px; flex: 0 0 32px; }
.premium .book-files-success h2 { font-size: 23px; margin: 0 0 10px; }
.premium .book-files-success p { margin: 0; font-size: 16px; line-height: 1.7; }
.book-file-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
@media(max-width:1000px) { .book-upload-layout { grid-template-columns: minmax(0,1fr); } .premium .book-upload-summary { position: static; } }
@media(max-width:600px) {
  .premium .book-files-panel, .premium .book-upload-summary { padding: 22px 18px; }
  .book-file-drop { padding: 26px 18px; min-height: 215px; }
  .book-editor-notice { padding: 20px 16px; gap: 12px; }
  .book-editor-notice > .ico { flex-basis: 24px; width: 24px; height: 24px; }
  .book-file-row { grid-template-columns: 22px minmax(0,1fr); gap: 12px; }
  .book-part-label, .book-file-part { grid-column: 2; }
  .book-file-actions { grid-column: 2; justify-content: flex-start; }
  .book-part-label select { max-width: 240px; }
  body.premium .progress.book-order-progress { margin: 22px 0 32px; }
  body.premium .book-order-progress .book-progress-label { padding: 0 5px; gap: 10px; }
  .premium .book-files-success { padding: 20px 16px; gap: 12px; }
  .book-upload-status { margin-top: 0; gap: 12px; }
}
