/* ---------- checkout ---------- */
.co-body { background: #fff; }
.co-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); background: #fff; }
.co-secure { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.co-back { justify-self: end; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.co-back:hover { text-decoration: underline; }

.co { min-height: 70vh; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: start; }
.co-form { padding: clamp(28px, 4vw, 56px) clamp(16px, 5vw, 72px) 72px var(--gutter); max-width: 760px; justify-self: end; width: 100%; }
.co-form h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 28px; }

fieldset { border: 0; padding: 0; margin: 0 0 34px; display: grid; gap: 14px; min-width: 0; }
legend { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; padding: 0; }
legend em { font-family: var(--body); font-size: 12px; font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--body); font-size: 12px; font-weight: 600; }

.f { display: grid; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.f em { font-style: normal; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.f input, .f select, .f textarea { width: 100%; font: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0; padding: 13px 14px; border: 1.5px solid #b9c1d3; background: #fff; border-radius: 0; color: var(--ink); }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--navy-2); outline-offset: 0; border-color: var(--navy-2); }
.f input:user-invalid, .f select:user-invalid { border-color: #b3261e; }
.f-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--navy); flex: none; }

.opts { display: grid; gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1.5px solid #b9c1d3; font-size: 14px; transition: border-color .15s, background .15s; }
.opt strong { font-weight: 600; }
.opt em { font-style: normal; color: var(--muted); font-size: 13px; }
.opt b { font-weight: 600; min-width: 44px; text-align: right; }
.opt input:checked + span { border-color: var(--navy); background: var(--mist); box-shadow: inset 0 0 0 1px var(--navy); }
.opt input:focus-visible + span { outline: 2px solid var(--navy-2); outline-offset: 2px; }
.freehint { margin-top: -2px; }

.pay-stub { border: 1.5px dashed #9aa6c2; padding: 18px 20px; background: var(--mist); font-size: 14px; }
.pay-stub p { margin-top: 6px; color: var(--muted); }
.approve { padding: 22px; background: var(--mist); border: 1px solid var(--line); }
.approve p { font-size: 14px; color: var(--muted); }
.approve .check { margin-top: 4px; color: var(--ink); font-weight: 600; }

.big { padding: 20px 28px; font-size: 13px; }
.center { text-align: center; margin-top: 14px; }
.co-error { background: #fdecea; color: #8a1c14; border: 1px solid #f1b5b0; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }

/* ---------- summary ---------- */
.co-summary { background: var(--mist); border-left: 1px solid var(--line); min-height: calc(100vh - 66px); }
.sum-inner { position: sticky; top: 0; padding: clamp(28px, 4vw, 56px) var(--gutter) 40px clamp(20px, 4vw, 48px); max-height: 100vh; overflow-y: auto; }
.sum-inner h2 { font-size: 30px; margin-bottom: 20px; }

.sum-line { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.art { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -22px rgba(11,31,75,.45); overflow: hidden; }
.art.ready { padding: 0; cursor: zoom-in; }
.art.ready img { width: 100%; height: 100%; object-fit: cover; animation: artin .6s ease both; }
.art.ready:hover .zoomtag, .art.ready:focus-visible .zoomtag { opacity: 1; transform: none; }
.zoomtag { position: absolute; right: 12px; bottom: 12px; background: var(--navy); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; opacity: .92; transition: opacity .2s, transform .2s; }
@keyframes artin { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.art.loading, .art.err, .art.noart { display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 24px; color: var(--navy); }
.art.loading p, .art.err p, .art.noart p { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 20px; }
.pbar { position: relative; width: min(70%, 220px); height: 6px; margin: 6px 0 2px; background: rgba(11, 29, 74, .14); border-radius: 3px; overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--navy); border-radius: 3px; transition: width .5s linear; }
.art.loading small { color: var(--muted); font-size: 12px; }
.art.err p, .art.noart p { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.streets { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; }
.streets path { fill: none; stroke: var(--navy); stroke-width: .8; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 3.2s ease-in-out infinite; }
.streets path:nth-child(2) { animation-delay: .25s; } .streets path:nth-child(3) { animation-delay: .5s; }
.streets path:nth-child(4) { animation-delay: .75s; } .streets path:nth-child(5) { animation-delay: 1s; } .streets path:nth-child(6) { animation-delay: 1.25s; }
@keyframes draw { 0% { stroke-dashoffset: 260; } 55%, 100% { stroke-dashoffset: 0; } }
.art.loading > p, .art.loading > small { position: relative; }

.sl-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sl-top h3 { font-size: 22px; line-height: 1.05; }
.sl-info p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.sl-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; }
.sl-row button { width: 28px; height: 28px; border: 1px solid var(--ink); background: #fff; }
.sl-row .rm { width: auto; height: auto; border: 0; background: none; font-size: 12px; text-decoration: underline; color: var(--muted); margin-left: 6px; }

.promo { display: flex; gap: 10px; margin-top: 6px; }
.promo input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid #b9c1d3; font: inherit; font-size: 14px; background: #fff; border-radius: 0; }
.promo .btn { padding: 12px 20px; }
#promoMsg { margin-top: 8px; }

.totals { margin: 22px 0 8px; display: grid; gap: 10px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.totals dd { margin: 0; font-weight: 600; text-align: right; }
.totals dd.fine { font-weight: 400; }
.totals .grand { padding-top: 14px; margin-top: 4px; border-top: 1px solid #b9c1d3; font-size: 18px; }
.totals .grand dd { font-family: var(--display); font-size: 30px; letter-spacing: .02em; }
.eta { font-size: 13px; color: var(--navy); font-weight: 600; margin-bottom: 18px; }
.trust { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.trust li { padding-left: 22px; position: relative; }
.trust li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 6px; height: 10px; border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(40deg) translateY(-30%); }

/* ---------- empty + confirmation ---------- */
.co-empty, .co-done { max-width: 640px; margin: 0 auto; padding: 90px var(--gutter) 110px; display: grid; justify-items: center; text-align: center; gap: 16px; }
.co-empty h1, .co-done h1 { font-size: clamp(44px, 7vw, 80px); }
.co-empty p:not(.eyebrow), .done-copy { color: var(--muted); max-width: 46ch; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.done-id { font-size: 15px; }
.done-id b { letter-spacing: .08em; }
.done-card { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--mist); padding: 20px 22px; margin: 10px 0 14px; display: grid; gap: 10px; font-size: 14px; }
.dl { display: flex; justify-content: space-between; gap: 16px; }
.dl em { font-style: normal; color: var(--muted); font-size: 12px; }
.dl.muted { color: var(--muted); }
.dl.total { border-top: 1px solid #b9c1d3; padding-top: 10px; font-size: 16px; }
.dest { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.dest strong { color: var(--ink); }

/* ---------- full-detail viewer ---------- */
.zoomdlg { width: min(1100px, 96vw); height: min(92vh, 1000px); padding: 0; border: 0; background: #111826; color: #fff; }
.zoomdlg[open] { display: grid; grid-template-rows: auto 1fr auto; }
.zoomdlg::backdrop { background: rgba(6, 10, 24, .8); }
.zbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #2a3350; }
.zcap { font-size: 12px; letter-spacing: .04em; color: #c9d3ee; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zbtns { display: flex; gap: 6px; flex: none; }
.zbtns button { min-width: 36px; height: 36px; padding: 0 12px; border: 1px solid #44507a; color: #fff; font-size: 13px; font-weight: 600; }
.zbtns button:hover { background: #1f2a4d; }
.zscroll { overflow: auto; cursor: grab; display: grid; place-items: center; padding: 12px; touch-action: none; }
.zscroll.grab { cursor: grabbing; }
.zscroll img { display: block; max-width: none; flex: none; background: #fff; user-select: none; -webkit-user-drag: none; margin: auto; }
.zhint { text-align: center; font-size: 11px; letter-spacing: .08em; color: #8c98bd; padding: 9px; border-top: 1px solid #2a3350; }

@media (max-width: 960px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-summary { order: -1; border-left: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .sum-inner { position: static; max-height: none; padding: 28px var(--gutter); }
  .co-form { padding: 28px var(--gutter) 64px; justify-self: stretch; max-width: none; }
  .sum-line { grid-template-columns: 110px minmax(0, 1fr); }
  .art.loading p { font-size: 13px; } .art.loading small, .zoomtag { display: none; }
}
@media (max-width: 560px) {
  .co-head { grid-template-columns: auto 1fr; } .co-secure { display: none; } .co-back { font-size: 11px; }
  .f-row { grid-template-columns: 1fr 1fr; } .f-row .f:first-child { grid-column: 1 / -1; }
  .opt span { grid-template-columns: 1fr auto; } .opt em { grid-column: 1; }
}

[hidden] { display: none !important; }

.wait-note { background: #fff; border-left: 4px solid var(--navy); padding: 12px 14px; color: var(--ink) !important; }
.wait-note strong { color: var(--navy); }

.approve > div { display: grid; gap: 16px; }
.approve > div[hidden] { display: none; }

.approve .check { text-transform: none; letter-spacing: 0; font-size: 14px; line-height: 1.5; }
