/*
 * EmRuth 2026 order.css: the proof and order status page (Phase 2, board Status-phone).
 * Phone order follows the board: head, proof, facts, actions, approve-by line, timeline, help.
 * Desktop: the proof stays in a sticky left column (7 of 12), everything else on the right (5 of 12).
 * Square corners, 2px rules, one pink action per screen, nothing under 14px.
 */

/* Minimal header: logo and "Text us" at every width (the checkout header hides its text link on phones). */
.em2-hdr-os .em2-logo img { width:140px; }
.em2-hdr-os-text { font-size:16px; }
@media (min-width:1024px) { .em2-hdr-os .em2-logo img { width:190px; } }

.em2-os { padding-top:20px; padding-bottom:48px; }
.em2-os-grid { display:grid; grid-template-columns:minmax(0, 1fr); grid-template-areas:"head" "media" "main"; gap:16px; }
.em2-os-head { grid-area:head; display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.em2-os-media { grid-area:media; display:flex; flex-direction:column; gap:12px; min-width:0; }
.em2-os-main { grid-area:main; display:flex; flex-direction:column; gap:16px; min-width:0; }
.em2-os-h1 { font:400 32px/1.05 var(--display); }
.em2-os-intro { font:500 16px/1.5 var(--body); color:var(--ink-2); max-width:560px; }

/* Proof tiles: the owner's image, contained in a square light tile with a corner badge. */
.em2-os-proof { position:relative; margin:0; padding:24px 40px; }
.em2-os-proof img { width:100%; height:auto; aspect-ratio:1/1; object-fit:contain; }
.em2-os-proof .em2-badge { position:absolute; top:12px; left:12px; }
.em2-os-proof .em2-badge svg { width:16px; height:16px; }

/* Facts under the proof. */
.em2-os-facts { display:flex; flex-direction:column; gap:6px; font:500 16px/1.45 var(--body); color:var(--ink-2); }
.em2-os-facts b { font-weight:800; color:var(--ink); }

/* Actions and the approve-by line. */
.em2-os-actions { display:flex; flex-direction:column; gap:12px; }
.em2-os-actions-row { flex-direction:row; flex-wrap:wrap; }
.em2-os-msg[hidden] { display:none; }
.em2-os-by { text-align:center; }
.em2-os-by b { color:var(--ink); font-weight:800; white-space:nowrap; }

/* Ask for a change: the form replaces the two buttons in place. */
.em2-os-change { display:flex; flex-direction:column; gap:12px; }
.em2-os-change textarea.em2-input { min-height:132px; }

/* Shipped: the tracking card. */
.em2-os-track { display:flex; flex-direction:column; gap:12px; }
.em2-os-track-no { font:700 17px/1.3 var(--mono); letter-spacing:.02em; word-break:break-all; }

/* "Where it’s at": a vertical timeline. Done = ink square with a white check, now = ink outline with a small ink
   square (set apart by shape, not color), later = ink outline. */
.em2-os-tl-wrap { display:flex; flex-direction:column; gap:16px; padding-top:8px; }
.em2-os-tl { list-style:none; margin:0; padding:0; }
.em2-os-step { position:relative; display:flex; align-items:flex-start; gap:14px; padding-bottom:20px; }
.em2-os-step:last-child { padding-bottom:0; }
.em2-os-step::before { content:""; position:absolute; left:11px; top:24px; bottom:0; width:2px; background:var(--line); }
.em2-os-step:last-child::before { display:none; }
.em2-os-dot { position:relative; z-index:1; flex:none; display:grid; place-items:center; width:24px; height:24px; border:2px solid var(--ink); background:var(--paper); color:var(--paper); }
.em2-os-dot svg { width:14px; height:14px; stroke-width:3.5; }
.em2-os-step.is-done .em2-os-dot { background:var(--ink); }
.em2-os-step.is-now .em2-os-dot::after { content:""; width:10px; height:10px; background:var(--ink); }
.em2-os-step-text { display:flex; flex-direction:column; gap:2px; min-width:0; }
.em2-os-step-text .em2-small a { color:var(--ink); font-weight:800; }

/* Need help? */
.em2-os-help { display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding:16px; background:var(--band); }
.em2-os-help a { color:var(--ink); font-weight:800; }

/* My Account > Orders > an order: the status card above WooCommerce's order details. */
.em2-os-card { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin:0 0 24px; }

@media (min-width:1024px) {
  .em2-os { padding-top:48px; padding-bottom:80px; }
  .em2-os-grid { grid-template-columns:minmax(0, 7fr) minmax(0, 5fr); grid-template-areas:"media head" "media main"; grid-template-rows:auto 1fr; column-gap:48px; row-gap:24px; }
  .em2-os-media { position:sticky; top:calc(var(--hdr-h) + 24px + var(--wp-admin--admin-bar--height, 0px)); align-self:start; }
  .em2-os-h1 { font-size:44px; }
  .em2-os-intro { font-size:17px; }
  .em2-os-proof { padding:48px 72px; }
  .em2-os-help { padding:20px 24px; }
}
