/* front2 — checkout & order pages */

.co-head { margin-bottom: 32px; }
.co-head .h-1 { margin-top: 10px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.co-main { display: grid; gap: 20px; }
.co-side { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 980px) { .co-grid { grid-template-columns: 1fr; } .co-side { position: static; } }

.co-card { background: var(--surface); border: 0; margin: 0; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-1); min-width: 0; }
.co-step { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 800; margin-bottom: 20px; padding: 0; float: left; width: 100%; }
.co-step + * { clear: both; }
.co-step span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field-grid[hidden] { display: none; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; font-weight: 500; color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(43, 76, 155, .12); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check a { color: var(--blue); text-decoration: underline; }

.options { display: grid; gap: 10px; margin-bottom: 14px; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__box {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--bg); cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease-out);
}
.option__box small { display: block; color: var(--ink-3); font-weight: 500; font-size: 13px; }
.option__box .icon { color: var(--ink-3); }
.option input:checked + .option__box { border-color: var(--ink); background: #fff; box-shadow: var(--shadow-1); }
.option input:checked + .option__box .icon { color: var(--accent); }
.option input:focus-visible + .option__box { outline: 2px solid var(--blue); outline-offset: 2px; }
.option input:disabled + .option__box { opacity: .45; cursor: not-allowed; }

.co-summary .h-3 { margin-bottom: 14px; }
.co-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-line img, .co-line .ph { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: #fff; }
.co-line__name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.co-line__meta { font-size: 13px; color: var(--ink-3); }
.co-line__price { font-weight: 700; font-size: 14px; text-align: right; }
.co-totals { margin: 16px 0; display: grid; gap: 8px; }
.co-totals div { display: flex; justify-content: space-between; }
.co-totals dt { color: var(--ink-2); }
.co-totals dd { margin: 0; font-weight: 700; }
.co-total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; }
.co-total dd { font-size: 24px; font-weight: 800; }
.co-submit { width: 100%; min-height: 56px; font-size: 16px; }
.muted { color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.small { font-size: 13px; margin-top: 12px; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 14px; margin: 12px 0; flex-wrap: wrap; }
.alert p { margin: 0; width: 100%; }
.alert--warn { background: #FDF3E1; color: #7A5212; }
.alert--err { background: #FCE8E4; color: #8E2A17; flex-direction: column; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Order page */
.order-wrap { max-width: 820px; text-align: center; }
.order-wrap .lead { margin: 14px auto 28px; }
.order-card { text-align: left; }
.order-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 16px; }
.order-meta small { display: block; color: var(--ink-3); font-size: 13px; }
.order-meta strong { font-size: 16px; }
.order-wrap .hero__actions { justify-content: center; }
.order-check { width: 84px; height: 84px; margin: 0 auto 20px; }
.order-check svg { width: 100%; height: 100%; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.order-check circle { stroke-dasharray: 183; stroke-dashoffset: 183; animation: draw .8s var(--ease-out-3) forwards; }
.order-check path { stroke-dasharray: 45; stroke-dashoffset: 45; animation: draw .5s .6s var(--ease-out-3) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
