
.order-page { background: var(--panel); }
.order-back { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.order { padding: 24px 0 140px; }
.order__view:focus { outline: none; }
.order__title { font-family: var(--f-head); font-weight: 800; font-size: clamp(24px, 6vw, 34px); line-height: 1.45; }
.order__lead { margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }

.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 28px; counter-reset: p; }
.progress li { counter-increment: p; display: grid; justify-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--ink-2); text-align: center; }
.progress li::before { content: counter(p); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--rule); background: #fff; font-family: var(--f-head); font-size: 13px; }
.progress li.is-done::before { content: ""; border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.progress li[aria-current] { color: var(--ink); }
.progress li[aria-current]::before { border-color: var(--accent); background: var(--accent); color: #fff; }

.pick { display: grid; gap: 12px; margin-top: 20px; }
.pick__item { display: grid; grid-template-columns: 84px 1fr; gap: 10px 12px; padding: 14px; border: 2px solid transparent; border-radius: var(--radius); background: #fff; }
.pick__item.is-on { border-color: var(--accent); }
.pick__item img { width: 84px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.pick__tag { display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--gold); font-size: 11px; font-weight: 700; line-height: 1.8; }
.pick__name { margin-top: 4px; font-size: 15px; line-height: 1.5; }
.pick__price { font-size: 13px; line-height: 1.4; }
.pick__price b { font-family: var(--f-head); font-weight: 800; font-size: 22px; color: var(--accent); }
.pick__price s { margin-left: 6px; color: var(--ink-2); font-size: 12px; }
.pick__left { margin-top: 2px; font-size: 11px; line-height: 1.6; color: var(--ink-2); }
.pick__left b { color: var(--ink); }
.qty { grid-column: 1 / -1; justify-self: end; display: flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.qty button { width: 44px; height: 40px; border: 0; background: #fff; font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--sky); }
.qty output { min-width: 36px; text-align: center; font-family: var(--f-head); font-weight: 800; font-size: 18px; }

.form { display: grid; gap: 16px; margin-top: 20px; }
.field label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.req, .opt { padding: 0 6px; border-radius: 4px; font-size: 11px; line-height: 1.6; }
.req { background: var(--ink); color: #fff; }
.opt { background: var(--rule); }
.field input, .field select { width: 100%; min-height: 48px; margin-top: 6px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; font-size: 16px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field__err { margin-top: 4px; font-size: 13px; font-weight: 700; color: #B3261E; }
.form__next { justify-self: center; margin-top: 12px; }
.form__back { justify-self: center; border: 0; background: none; color: var(--ink-2); font-size: 14px; text-decoration: underline; cursor: pointer; }

.paylist { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.pay { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 2px solid var(--rule); border-radius: var(--radius); background: #fff; cursor: pointer; }
.pay:has(input:checked) { border-color: var(--accent); }
.pay input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--accent); }
.pay b { display: block; }
.pay small { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.6; }

.sum { margin-top: 16px; padding: 18px; border-radius: var(--radius); background: #fff; font-size: 14px; line-height: 1.8; }
.sum h2 { margin-bottom: 6px; font-size: 13px; color: var(--ink-2); }
.sum li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.sum li b { font-family: var(--f-head); white-space: nowrap; }
.sum__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-weight: 700; }
.sum__total b { font-family: var(--f-head); font-weight: 800; font-size: 26px; color: var(--accent); }
.sum--guarantee { border: 2px solid var(--gold); }

.done { display: grid; justify-items: center; gap: 16px; padding: 24px 0; text-align: center; }
.done__mark { width: 72px; }
.done__mark circle { fill: var(--accent); }
.done__mark path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.done__no { display: grid; padding: 14px 24px; border-radius: var(--radius); background: #fff; font-size: 13px; color: var(--ink-2); }
.done__no b { font-family: var(--f-head); font-size: 22px; color: var(--ink); letter-spacing: .04em; }
.flow { display: grid; gap: 8px; width: 100%; max-width: 420px; text-align: left; }
.flow li { display: grid; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: #fff; font-size: 14px; }
.flow b { font-size: 12px; color: var(--accent); }

.order-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px rgba(30, 39, 55, .08); }
.order-bar[hidden] { display: none; }
.order-bar__sum { display: grid; font-size: 11px; line-height: 1.4; color: var(--ink-2); }
.order-bar__sum b { font-family: var(--f-head); font-weight: 800; font-size: 22px; color: var(--ink); }
.order-bar__next { min-height: 48px; padding: 0 20px; border: 0; cursor: pointer; }
.order-bar__next:disabled { background: var(--rule); color: var(--ink-2); cursor: not-allowed; }
.order-footer { padding-bottom: 120px; }

@media (min-width: 768px) {
  .pick__item { grid-template-columns: 120px 1fr auto; align-items: center; }
  .pick__item img { width: 120px; }
  .qty { grid-column: auto; }
  .order-bar { justify-content: center; gap: 32px; }
}
