/* Cart, order lookup and order status pages */
.od { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 24px; }
.od-narrow { max-width: 640px; }
.od-title { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 28px !important; text-wrap: balance; }
.od-id { font-family: var(--body); font-weight: 700; letter-spacing: 0; font-size: 0.6em; vertical-align: middle; background: var(--paper-2); border-radius: 10px; padding: 4px 12px; }
.od-lead { font-size: 18px; color: var(--muted); margin-bottom: 20px !important; }
.od-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.od-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }

/* items */
.od-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.od-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.od-item-photo { display: block; width: 112px; aspect-ratio: 1; border-radius: 16px; background: var(--paper-2); overflow: hidden; }
.od-item-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transform: scale(1.12); transform-origin: center 62%; }
/* printed on both sides: front and back photos side by side */
.od-item-photo-two { width: auto; aspect-ratio: auto; display: flex; gap: 6px; background: none; overflow: visible; }
.od-item-photo-two img { width: 112px; height: 112px; flex: none; border-radius: 16px; background: var(--paper-2); transform: none; object-position: center 40%; }
.od-item-photo-two img[hidden] { display: none; }
.od-item-photo-two img.od-item-back-drawn { object-fit: contain; padding: 14px; box-sizing: border-box; border: 1px solid var(--line); }
.od-item:has(.od-item-photo-two) { grid-template-columns: auto minmax(0, 1fr) auto; }
@media (max-width: 620px) { .od-item-photo-two { flex-direction: column; } .od-item-photo-two img { width: 84px; height: 84px; border-radius: 12px; } .od-item-photo-two img.od-item-back-drawn { padding: 10px; } }
.od-item-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.od-item-title { font-weight: 700; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
a.od-item-title:hover { text-decoration: underline; }
.od-item-meta { font-size: 15px; color: var(--muted); }
.od-item-controls { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.od-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.od-qty button { width: 40px; height: 40px; border: 0; background: none; font: 500 20px var(--body); color: var(--ink); cursor: pointer; border-radius: 999px; }
.od-qty button:disabled { color: rgba(28, 26, 22, 0.25); cursor: default; }
.od-qty span { min-width: 28px; text-align: center; font-weight: 700; }
.od-remove { background: none; border: 0; padding: 8px 0; font: 600 14px var(--body); color: var(--muted); text-decoration: underline; cursor: pointer; }
.od-remove:hover { color: var(--danger); }
.od-item-price { font-weight: 700; font-size: 17px; white-space: nowrap; }
.od-continue { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--ink) !important; }

/* summary */
.od-summary { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.od-summary-title { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin-bottom: 12px !important; }
.od-summary .od-summary-title { margin-bottom: 0 !important; }
.od-nudge { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; font-size: 15px; font-weight: 600; }
.od-nudge-done { background: #d3e6d8; }
.od-lines { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.od-lines > div { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.od-lines dt { color: var(--muted); }
.od-lines dd { margin: 0; font-weight: 600; }
.od-lines .od-total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 19px; }
.od-lines .od-total dt { color: var(--ink); font-weight: 700; }
.od-lines .od-total dd { font-weight: 800; }
.od-tax { font-size: 13px; color: var(--muted); margin-top: -8px; }
.od-checkout { width: 100%; min-height: 58px; font-size: 17px; }
.od-checkout:disabled { opacity: 0.7; cursor: progress; }
.od-error { font-size: 15px; font-weight: 600; color: var(--danger); }
.od-error-block { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-weight: 500; }
.od-error-block a { font-weight: 700; }
.od-perks { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.od-perks li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.od-perks svg { flex: none; color: var(--ink); margin-top: 1px; }
.od-fine { font-size: 13px; color: var(--muted); line-height: 1.5; }
.od-fine a { color: var(--ink); font-weight: 600; }

.od-empty { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 48px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.od-empty p { font-size: 18px; color: var(--muted); }
.od-empty-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* lookup */
.od-lookup { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.od-lookup input { flex: 1 1 220px; min-height: 52px; border: 1px solid var(--line); border-radius: 999px; padding: 0 22px; font: 600 17px var(--body); color: var(--ink); background: #fff; letter-spacing: 0.04em; }
.od-lookup input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.od-narrow .od-fine { margin-top: 20px !important; font-size: 15px; }

/* order status */
.od-thanks { margin-bottom: 8px; }
.od-thanks .od-title { margin-bottom: 12px !important; }
.od-thanks p { font-size: 18px; color: var(--muted); margin-bottom: 28px !important; max-width: 640px; }
.od-thanks strong { color: var(--ink); }
.od-loading { color: var(--muted); font-size: 17px; padding: 24px 0; }
.od-status { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); margin-bottom: 36px; display: flex; flex-direction: column; gap: 18px; }
.od-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.od-steps li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-top: 30px; color: var(--muted); }
.od-steps li::before { content: ''; position: absolute; top: 9px; left: 22px; right: -12px; height: 3px; background: var(--line); border-radius: 3px; }
.od-steps li:last-child::before { display: none; }
.od-steps li.od-done::before { background: #3d8a5a; }
.od-steps li.od-current::before { background: var(--line); }
.od-dot { position: absolute; top: 0; left: 0; width: 21px; height: 21px; border-radius: 999px; border: 3px solid var(--line); background: #fff; }
.od-steps li.od-done .od-dot { background: #3d8a5a; border-color: #3d8a5a; }
.od-steps li.od-done strong { color: var(--ink); }
.od-steps strong { font-size: 16px; }
.od-steps small { font-size: 14px; }
.od-status-note { font-size: 15px; font-weight: 600; background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.od-status-note.od-status-bad { color: var(--danger); }
.od-track-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.od-items-static .od-item { grid-template-columns: 88px minmax(0, 1fr) auto; }
.od-items-static .od-item-photo { width: 88px; }
.od-actions { display: flex; flex-direction: column; gap: 10px; }
.od-actions .btn { width: 100%; min-height: 48px; font-size: 15px; }

@media (max-width: 860px) {
    .od-grid { grid-template-columns: 1fr; }
    .od-summary { position: static; }
}
@media (max-width: 520px) {
    .od-item { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
    .od-item:has(.od-item-photo-two) { grid-template-columns: auto minmax(0, 1fr); }
    .od-item-photo { width: 84px; }
    .od-item-price { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; font-size: 16px; }
    .od-item-info { grid-column: 2; grid-row: 1; padding-right: 72px; }
    .od-items-static .od-item { grid-template-columns: 72px minmax(0, 1fr); }
    .od-items-static .od-item-photo { width: 72px; }
    .od-steps { grid-template-columns: 1fr; gap: 16px; }
    .od-steps li { padding-top: 0; padding-left: 34px; }
    .od-steps li::before { top: 24px; left: 9px; right: auto; bottom: -18px; width: 3px; height: auto; }
    .od-steps li strong { margin-top: 1px; }
}
