/* The order's own page inside My Postcard Portal, and the "Needs your attention" list on the Orders tab. Loaded after lp-portal-r1.css. */

/* ---- Needs your attention (Orders tab) ---- */
.portal-attention{margin:0 0 18px;padding:16px 18px;border:2px solid #e6b68d;border-radius:12px;background:#fff7ef}
.portal-attention h3{margin:0 0 10px;font-size:19px;color:#8a3a06}
.portal-attention-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.portal-attention-item{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:14px;align-items:center;background:#fff;border:1px solid #f0d5bd;border-radius:10px;padding:10px 12px}
.portal-attention-thumb{display:block;width:96px;height:64px;object-fit:cover;border:1px solid #d9d4cc;border-radius:6px;background:#f3f0eb}
.portal-attention-thumb.portal-thumb-none{display:flex;align-items:center;justify-content:center;font-size:11px;color:#7b7a85;text-align:center;font-style:italic}
.portal-attention-text{display:grid;gap:3px;min-width:0;font-size:14px;color:#3a3a50}
.portal-attention-text strong{color:#1a1a2e;overflow-wrap:anywhere}
.portal-attention-text span{overflow-wrap:anywhere}
.portal-attention-open{white-space:nowrap;padding:11px 16px;font-size:14px}
@media(max-width:640px){
 .portal-attention{padding:12px}
 .portal-attention-item{grid-template-columns:72px minmax(0,1fr);align-items:start}
 .portal-attention-thumb{width:72px;height:48px}
 .portal-attention-open{grid-column:1/-1;text-align:center;white-space:normal}
}

/* ---- links from the grid ---- */
.portal-open-thumb{display:inline-block;border-radius:6px}
.portal-open-thumb:focus-visible,.portal-open-order:focus-visible{outline:3px solid #f1b837;outline-offset:2px}
.portal-grid td[data-col=business] strong a{color:inherit;text-decoration-color:#b8d4e6;text-underline-offset:3px}
.portal-grid td[data-col=business] strong a:hover{color:var(--blue)}

/* ---- the order page ---- */
.portal-order{display:grid;gap:16px;min-width:0}
.portal-order .card{margin:0;padding:22px}
.portal-order .order-thanks{margin:0 auto}
.order-back-button{justify-self:start;padding:9px 14px;font-size:14px}
.order-test-banner{margin:0;background:#b42318;color:#fff;padding:10px 14px;font-weight:800;border-radius:8px;font-size:14px;letter-spacing:.3px}
.order-head{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:22px;align-items:start}
.order-thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:12px}
.order-thumb{margin:0;min-width:0}
.order-thumb-img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border:1px solid #d5dbe0;border-radius:6px;background:#f3f0eb;box-shadow:0 6px 16px #1a2a3a14}
.order-thumb-none{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:3/2;border:1px dashed #c9c4bb;border-radius:6px;background:#f7f5f1;color:#7b7a85;font-size:12px;font-style:italic;text-align:center;padding:6px}
.order-thumb figcaption{font-size:11px;letter-spacing:1px;font-weight:800;text-transform:uppercase;color:#6b6b80;margin:6px 0 0}
.order-head-text{min-width:0}
.order-head-text h2{font-size:28px;line-height:1.15;margin:0 0 8px;overflow-wrap:anywhere}
.order-head-text h2:focus{outline:none}
.order-head-text .eyebrow{margin:0 0 8px}
.order-viewing{margin:0 0 10px;padding:8px 12px;border-left:4px solid #1a2332;background:#eef2f7;color:#1a2332;font-weight:600;overflow-wrap:anywhere}
.order-campaign{font-size:16px;margin:0 0 10px;color:#3a3a50;overflow-wrap:anywhere}
.order-ref,.order-placed{font-size:14px;margin:0 0 6px;color:#425a6b;overflow-wrap:anywhere}
.order-ref code{font-size:13px;background:#f3f0eb;padding:2px 6px;border-radius:5px}
.order-ref-short{font-weight:700}
.order-copy{padding:3px 8px!important;font-size:12px!important}
.order-copy-state{font-size:12px;color:#117657;margin-left:6px}
.order-attention{border:2px solid #e6b68d;border-radius:12px;background:#fff7ef;padding:14px 18px}
.order-attention h3{margin:0 0 6px;color:#8a3a06;font-size:18px}
.order-attention p{margin:0 0 6px;color:#3a3a50;font-size:15px}
.order-attention-hint{font-size:13px!important;color:#5b6d79!important}
.order-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;align-items:start}
.order-col-main,.order-col-side{display:grid;gap:16px;min-width:0}
.order-section h3{margin:0 0 10px;font-size:20px}
.order-sub{font-size:14px;margin:0 0 14px}
.order-final-line{font-size:15px;margin:0 0 14px;padding:10px 12px;border-left:4px solid #315f4d;background:#f4f8f6;border-radius:4px}
/* timeline: vertical, with a rail joining the markers */
.order-timeline{list-style:none;margin:0;padding:0;display:grid;gap:0}
.order-step{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:0 0 18px}
.order-step:last-child{padding-bottom:0}
.order-step::before{content:"";position:absolute;left:16px;top:34px;bottom:0;width:2px;background:#d9d4cc}
.order-step:last-child::before{display:none}
.order-step.is-done::before{background:#1f7a4d}
.order-marker{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:2px solid #b9c2ca;background:#fff;color:#6b6b80;font-weight:800;font-size:14px;z-index:1}
.order-step.is-done .order-marker{background:#1f7a4d;border-color:#1f7a4d;color:#fff}
.order-step.is-next .order-marker,.order-step.is-current .order-marker{background:#337ab7;border-color:#337ab7;color:#fff;box-shadow:0 0 0 4px #337ab733}
.order-step.is-stopped .order-marker{background:#fff0e0;border-color:#c46a14;color:#a24700}
.order-step-body{min-width:0;padding-top:3px}
.order-step-title{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin:0 0 4px}
.order-step-title strong{font-size:16px;color:#1a1a2e;overflow-wrap:anywhere}
.order-step.is-next .order-step-title strong,.order-step.is-current .order-step-title strong{color:#1a5f94}
.order-step.is-not-yet .order-step-title strong{color:#5b5b70}
.order-step-time{font-size:13px;color:#425a6b}
.order-step-text{margin:0;font-size:14px;line-height:1.55;color:#3a3a50;overflow-wrap:anywhere}
.order-step.is-not-yet .order-step-text,.order-step.is-unknown .order-step-text{color:#5b6d79}
.portal-pill-info{background:#e1effa;color:#1a5f94}.portal-pill-muted{background:#eeece8;color:#5b5b70}
/* facts and price */
.order-facts{display:grid;grid-template-columns:minmax(0,12em) minmax(0,1fr);gap:8px 14px;margin:0 0 14px;font-size:14px}
.order-facts dt{color:#5b6d79;font-weight:700}
.order-facts dd{margin:0;color:#1a1a2e;overflow-wrap:anywhere}
.order-price-title{margin:6px 0 6px;font-size:14px;text-transform:uppercase;letter-spacing:.5px;color:#6b6b80}
.order-price-lines{list-style:none;margin:0 0 10px;padding:0;font-size:14px}
.order-price-lines li{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #eee9e3}
.order-price-lines strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.order-price-lines .order-total{border-bottom:0;font-size:17px;padding-top:10px}
.order-test-note{font-size:12px;color:#5b6d79;margin:0}
/* files */
.order-files{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:6px;font-size:14px}
.order-files a{font-weight:700;overflow-wrap:anywhere}
.order-files small{color:#7b7a85;overflow-wrap:anywhere}
.order-previews{display:flex;flex-wrap:wrap;gap:16px;margin:0 0 12px}
.order-preview{margin:0;max-width:200px}
.order-preview-img{display:block;width:100%;height:auto;max-height:280px;object-fit:cover;object-position:top;border:1px solid #cfd6dc;border-radius:6px}
.order-preview figcaption{font-size:12px;font-weight:700;margin:6px 0 0;letter-spacing:0}
.order-more summary{cursor:pointer;color:var(--blue);font-weight:700;font-size:14px;margin:0 0 8px}
/* emails */
.order-emails-body{display:grid;gap:12px;margin:0 0 8px}
.order-email{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid #eee9e3;border-radius:10px;background:#fbf9f6}
.order-email-main{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;min-width:0;flex:1 1 320px}
.order-email-meta{flex-basis:100%;font-size:13px;color:#425a6b;overflow-wrap:anywhere}
.order-email-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.order-resend-ask{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px}
.order-email button,.order-actions button{padding:9px 14px;font-size:14px}
/* actions */
.order-actions{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center}
.order-actions .order-back-button{margin-left:auto}
.order-help{font-size:13px;color:#5b6d79;flex:1 1 280px;margin:0}
/* loading, errors */
.order-loading{display:grid;gap:10px}
.order-note{max-width:680px}
.order-note h2{font-size:24px;margin:0 0 8px}
.order-note h2:focus{outline:none}
.order-note-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
/* wide screens: the thumbnails get more room */
@media(min-width:1200px){.order-thumbs{grid-template-columns:repeat(2,minmax(0,260px))}}
/* tablet: one column */
@media(max-width:1000px){
 .order-grid{grid-template-columns:minmax(0,1fr)}
 .order-head{grid-template-columns:minmax(0,1fr)}
 .order-thumbs{grid-template-columns:repeat(2,minmax(0,240px))}
}
/* phone */
@media(max-width:640px){
 .portal-order .card{padding:16px}
 .order-thumbs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .order-head-text h2{font-size:24px}
 .order-facts{grid-template-columns:minmax(0,1fr);gap:2px}
 .order-facts dt{margin-top:8px}
 .order-step{grid-template-columns:30px minmax(0,1fr);gap:10px}
 .order-marker{width:30px;height:30px;font-size:13px}
 .order-step::before{left:14px;top:30px}
 .order-actions .order-back-button{margin-left:0}
 .order-email{padding:12px}
 .order-email button{min-height:44px}
 .order-resend-ask{width:100%}
}
@media(prefers-reduced-motion:reduce){.order-marker{transition:none}}
.portal-email-list{margin:0 0 12px;padding-left:20px;font-size:14px;line-height:1.6;color:#3a3a50}
.portal-email-list li{margin:0 0 10px}

/* ---- the ready-to-print proof (approval 2), shown only when the server switches it on ---- */
.order-proof{display:grid;gap:14px;border:2px solid #1f6f9a;background:#fbfdff}
.order-proof h3{margin:0;font-size:22px}
.order-proof h4{margin:6px 0 4px;font-size:16px}
.order-proof h3:focus{outline:none}
.proof-state{margin:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-weight:700}
.proof-intro,.proof-sub,.proof-masked{margin:0;color:#3a3a50;overflow-wrap:anywhere}
.proof-sub{font-size:14px;color:#5a5a70}
.proof-masked{padding:10px 12px;border-left:4px solid #1f6f9a;background:#eef6fb;font-size:14px}
.proof-thumbs{grid-template-columns:repeat(2,minmax(0,320px))}
.proof-facts{margin:0}
.proof-files{margin:6px 0 0}
.proof-deadline{padding:12px 14px;border:2px solid #e6b68d;border-radius:10px;background:#fff7ef;display:grid;gap:4px}
.proof-deadline p{margin:0;overflow-wrap:anywhere}
.proof-deadline.is-late{border-color:#b42318;background:#fff3f1}
.proof-deadline-late{font-weight:700;color:#8a1d12}
.proof-deadline-rule,.proof-deadline-zone{font-size:14px;color:#5a4a3a}
.proof-actions{display:grid;gap:10px;justify-items:start}
.proof-actions>button{min-width:240px}
.proof-confirm,.proof-change{display:grid;gap:10px;padding:14px;border:2px solid #1f6f9a;border-radius:10px;background:#fff;width:100%;box-sizing:border-box}
.proof-confirm p,.proof-change p{margin:0}
.proof-confirm-label{display:flex;gap:10px;align-items:flex-start;font-weight:600;line-height:1.4}
.proof-confirm-label input{width:22px;height:22px;flex:0 0 auto;margin-top:2px}
.proof-confirm-buttons{display:flex;flex-wrap:wrap;gap:10px}
.proof-change textarea{width:100%;box-sizing:border-box;font:inherit;padding:10px;border:1px solid #9aa7b2;border-radius:8px;resize:vertical;min-height:110px}
.proof-words{margin:0;padding:8px 12px;border-left:4px solid #9aa7b2;background:#f3f0eb;white-space:pre-wrap;overflow-wrap:anywhere}
.proof-done{margin:0;padding:10px 12px;border-left:4px solid #117657;background:#eef8f3;overflow-wrap:anywhere}
.proof-message{margin:0;overflow-wrap:anywhere}
@media(max-width:640px){
 .proof-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .proof-actions>button,.proof-confirm-buttons>button{width:100%}
}

/* ---- OUR CHECK of the final files (staff only, orders placed under one approval; src/client/lp-portal-staff-check-r1.js) ---- */
.order-staff-check{display:grid;gap:14px;border:2px solid #a45a0a;background:#fffaf3}
.order-staff-check h3{margin:0;font-size:22px}
.order-staff-check h3:focus{outline:none}
.order-staff-check h4{margin:6px 0 4px;font-size:16px}
.check-intro,.check-message{margin:0;color:#3a3a50;overflow-wrap:anywhere}
.check-message.is-warn{padding:10px 12px;border-left:4px solid #b42318;background:#fff3f1}
.check-message.is-note{padding:10px 12px;border-left:4px solid #a45a0a;background:#fff4e2;font-weight:600}
.check-message.is-good{padding:10px 12px;border-left:4px solid #117657;background:#eef8f3}
.check-thumbs{grid-template-columns:repeat(2,minmax(0,320px))}
.check-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.check-col{min-width:0}
.check-facts{margin:0}
.check-form{display:grid;gap:10px;padding:14px;border:2px solid #a45a0a;border-radius:10px;background:#fff;box-sizing:border-box}
.check-ticks{display:grid;gap:8px}
.check-tick{display:flex;gap:10px;align-items:flex-start;line-height:1.4;font-weight:600}
.check-tick input{width:22px;height:22px;flex:0 0 auto;margin-top:2px}
.check-label{font-weight:700}
.check-form textarea{width:100%;box-sizing:border-box;font:inherit;padding:10px;border:1px solid #9aa7b2;border-radius:8px;resize:vertical;min-height:96px}
.check-count{color:#5a5a70}.check-count.is-short{color:#8a1d12}
.check-actions>button{min-width:240px}
.check-differences{margin:0 0 0 18px;padding:0}
.check-done{margin:0;padding:10px 12px;border-left:4px solid #117657;background:#eef8f3;overflow-wrap:anywhere}
@media(max-width:640px){
 .check-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}
 .check-compare{grid-template-columns:1fr}
 .check-actions>button{width:100%}
}

/* ---- "Thank you" confirmation (src/client/lp-order-thanks-r1.js): shown straight after an order is placed ---- */
.order-thanks{max-width:860px;margin:0 auto;display:grid;gap:12px;padding:18px 24px;border:2px solid #cfe3d8;background:#fff}
.order-thanks:focus-within{outline:none}
.order-thanks-head h2{margin:0 0 6px;font-size:28px;line-height:1.2;color:#0e5a43;overflow-wrap:anywhere}
.order-thanks-head h2:focus{outline:none}
.order-thanks-head h2:focus-visible{outline:3px solid #f1b837;outline-offset:3px}
.order-thanks-lead{margin:0;font-size:17px;line-height:1.5;color:#2a2a40}
.order-thanks-test{margin:10px 0 0;padding:8px 12px;border-radius:8px;background:#fff3d6;border:1px solid #cfad63;color:#634a16;font-weight:600;font-size:14px}
.order-thanks-block{display:grid;gap:8px;padding-top:12px;border-top:1px solid #e8e5e0}
.order-thanks-block h3{margin:0;font-size:17px;color:#1a1a2e}
.order-thanks-sumbody{display:flex;gap:18px;align-items:flex-start}
body[data-thanks] #view-portal .portal-page-title,body[data-thanks] #view-portal .portal-sub-wrap{display:none}
body[data-thanks] #view-portal{padding-top:14px}
.order-thanks-thumb{margin:0;flex:none;width:260px;position:relative;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.order-thanks-thumb .lp-zoom-btn{margin-top:0;padding:6px 9px;white-space:nowrap}
.order-thanks-thumb .order-thumb-img{display:block;width:260px;max-width:100%;height:auto;border:1px solid #d9d4cc;border-radius:6px;background:#f3f0eb}
.order-thanks-facts{margin:0;flex:1 1 auto;min-width:0;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 16px;font-size:15px}
.order-thanks-facts dt{color:#5a5a6e}.order-thanks-facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.order-thanks-steps{margin:0;padding-left:22px;display:grid;gap:6px;font-size:15px;line-height:1.45}
.order-thanks-contact,.order-thanks-cancel{margin:0;font-size:15px;line-height:1.45}
html body #portal-order-host .order-thanks-contact a[href]{display:inline;padding:0!important;margin:0;min-width:0!important;min-height:0!important;letter-spacing:normal;word-spacing:normal}   /* a link inside a sentence stays in the sentence (the 44 px floor is for stand-alone links); no gap before the comma */
.order-thanks-actions{margin:0;display:flex;gap:10px;flex-wrap:wrap}
.order-thanks-actions button{padding:12px 20px;font-size:16px}
.order-thanks-layer{position:fixed;inset:0;z-index:300;overflow:auto;background:#faf9f7;padding:20px 14px}
@media(max-width:640px){
 .order-thanks{padding:16px 14px}.order-thanks-head h2{font-size:23px}
 .order-thanks-sumbody{flex-direction:column;gap:12px}.order-thanks-thumb{width:min(100%,260px)}.order-thanks-thumb .order-thumb-img{width:100%}.order-thanks-thumb .lp-zoom-btn{flex:1 1 auto;min-height:44px}
 .order-thanks-actions button{flex:1 1 100%;min-height:46px}
}

/* ---- back from the payment page: a full-screen "confirming your order" panel (src/client/lp-test-checkout-r1.js) ---- */
.lp-placing{position:fixed;inset:0;z-index:300;overflow:auto;background:#faf9f7;display:flex;align-items:flex-start;justify-content:center;padding:48px 16px}
.lp-placing-card{width:min(640px,100%);background:#fff;border:2px solid #cfe3d8;border-radius:14px;padding:26px 28px;display:grid;gap:12px}
.lp-placing-card h2{margin:0;font-size:26px;line-height:1.2;color:#0e5a43}
.lp-placing-card h2:focus{outline:none}
.lp-placing-card p{margin:0;font-size:16px;line-height:1.5}
.lp-placing-card .lp-placing-note{font-size:14px;color:#634a16}
.lp-placing-actions{display:flex;gap:10px;flex-wrap:wrap}
.lp-placing-actions a,.lp-placing-actions button{display:inline-block;padding:12px 20px;font-size:16px;text-align:center}
@media(max-width:640px){.lp-placing{padding:20px 12px}.lp-placing-card{padding:18px 16px}.lp-placing-card h2{font-size:22px}.lp-placing-actions>*{flex:1 1 100%}}
.lp-placing{z-index:2147483000}
.lp-placing-body{display:grid;gap:12px}
.lp-placing-actions a.outline,.lp-placing-actions button.outline{background:#fff;color:#1d5f94;border:2px solid #337ab7;text-decoration:none}
.lp-placing-actions a{border-radius:8px;text-decoration:none;font-weight:700}

.order-timeline .order-tracking-link{margin:12px 10px 0 0}
