/* Production result/payment UI. The controller and IDs are retained from web.py. */
/* Immediate result positioning must also work in background tabs/reduced motion. */
html { scroll-behavior: auto; }
.live-result, #память { max-width: 860px; margin-inline: auto; text-align: left; }
.live-result:not(:empty) { margin-top: 26px; }
.result-document { max-width: 860px; margin: 24px auto -12px; text-align: left; font-size: 12px; overflow-wrap: anywhere; }
.live-result .строка, .память { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 14px; overflow-wrap: anywhere; }
.live-result .строка b { font-size: 22px; }
.live-result .price-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.live-result .live-price-total { flex: 0 0 auto; max-width: 100%; }
.live-result .price-guarantee { display: flex; align-items: center; gap: 10px; max-width: 350px; color: var(--green); font-size: 14px; font-weight: 600; line-height: 1.5; }
.live-result .price-guarantee svg { width: 24px; height: 24px; flex: 0 0 24px; }
.live-result .готово { border-left: 3px solid var(--green); }
.live-result .ошибка { color: #a13333; }
.live-result .мелко, .память .мелко { color: var(--muted); font-size: 13px; margin-top: 12px; line-height: 1.7; }
.live-result a.скачать, .live-result #платить { display: inline-block; padding: 12px 18px; margin: 12px 10px 4px 0; background: var(--blue); color: #fff; border: 0; border-radius: 8px; font-weight: 600; min-height: 46px; text-decoration: none; }
.live-result .готово a.скачать:first-of-type { background: var(--green); }
.live-result a.скачать:hover, .live-result #платить:hover { filter: brightness(.94); }
.live-result button:disabled { opacity: .55; cursor: wait; }
.live-result #почта { display: block; width: 100%; max-width: 390px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; margin-top: 7px; color: var(--ink); background: #fff; }
.live-result #платёж { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 16px; }
.live-result .qr { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; max-width: 100%; }
.live-result .qr svg { width: 230px; height: 230px; max-width: 100%; }
.live-result .иначе { padding: 10px 0; background: transparent; border: 0; color: var(--blue); font-size: 14px; }
.live-result .этапы { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.live-result .этапы i { font-style: normal; color: var(--muted); }
.live-result .этапы .идёт { color: var(--blue); font-weight: 600; }
.live-result .этапы .было { color: var(--green); }
.live-result .этапы s { text-decoration: none; color: var(--muted); }
.live-result .paid-progress { align-self: stretch; padding: 24px; background: #f3f6fb; border: 1px solid #cfd9eb; border-left: 4px solid var(--blue); border-radius: 10px; }
.live-result .paid-confirmation { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 15px; font-weight: 600; }
.live-result .paid-confirmation span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 14px; }
.live-result .paid-progress-heading { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.live-result .paid-progress h3 { font-size: 26px; line-height: 1.3; letter-spacing: -.025em; }
.live-result .paid-spinner { flex: 0 0 22px; width: 22px; height: 22px; border: 2px solid #cfd9eb; border-top-color: var(--blue); border-radius: 50%; animation: paid-spin 1.2s linear infinite; }
.live-result .paid-progress-time { color: var(--ink); font-size: 15px; margin: 12px 0 0; }
.live-result .paid-progress-help { font-size: 14px; margin: 14px 0 0; line-height: 1.65; }
.live-result .paid-order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.live-result .paid-order-link, .live-result .paid-order-copy { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--blue); border-radius: 8px; font: inherit; font-size: 14px; line-height: 1.4; text-align: center; cursor: pointer; }
.live-result .paid-order-link { background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; }
.live-result .paid-order-copy { background: #fff; color: var(--blue); }
.live-result .paid-order-link:focus-visible, .live-result .paid-order-copy:focus-visible, .live-result .paid-order-address:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.live-result .paid-order-copy-status { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.live-result .paid-order-copy-status:empty { display: none; }
.live-result .paid-order-address { width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: 16px; }
@keyframes paid-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .live-result .paid-spinner { animation: none; } }
.live-result .после-оплаты { padding-top: 14px; margin-top: 20px; border-top: 1px solid var(--line); }
.память { margin-top: 22px; font-size: 14px; }
.память a { display: block; color: var(--blue); margin-top: 8px; }
.seller-details { margin-top: 26px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.seller-details a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.live-comparison > p { margin: 20px 0 30px; max-width: 650px; }
.live-comparison .сравнение { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.live-comparison table { width: 100%; min-width: 630px; border-collapse: collapse; font-size: 14px; }
.live-comparison th, .live-comparison td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; }
.live-comparison th { font-weight: 600; }
.live-comparison .мы { background: #edf2ff; }
.live-comparison tr:last-child > * { border-bottom: 0; }
.upload-form.над #document-file { border-color: var(--blue); background: #e1ebff; }
@media (max-width: 480px) {
  .live-result .paid-progress { padding: 18px 16px; }
  .live-result .paid-progress h3 { font-size: 22px; }
  .live-result .строка, .память { padding: 17px; }
  .live-result a.скачать { width: 100%; text-align: center; margin-right: 0; }
}
/* The paid PDF agent can take minutes per page: visible BEFORE payment. */
.agent-timing{margin:16px 0;padding:14px 16px;border:1px solid #c9d6ef;border-radius:10px;background:#f0f5ff;color:#24354f;font-size:15px;line-height:1.6}
