/* ============================================================
   CN NEWSWIRE — Checkout styles (responsive)
   ============================================================ */
.co-wrap { background: var(--paper); padding: clamp(28px, 5vw, 52px) 0 clamp(60px, 8vw, 90px); min-height: 60vh; }
.co-container { max-width: 980px; }

.co-steps {
  display: flex; justify-content: center; gap: 0;
  list-style: none; margin-bottom: 38px; padding: 0;
}
.co-steps li {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 13.5px; font-weight: 600;
  position: relative; padding: 0 28px;
}
.co-steps li:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 1px; background: var(--line);
}
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line); background: #fff;
  font-size: 13px; color: var(--muted);
}
.co-steps li.active { color: var(--ink); }
.co-steps li.active .step-num { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.co-steps li.done .step-num { border-color: var(--gold); background: var(--gold); color: var(--ink); }

.co-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}
.co-main { min-width: 0; }
.co-step-panel { display: none; }
.co-step-panel.active { display: block; animation: fadeIn .28s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.co-step-panel h2 { margin-bottom: 6px; }
.co-step-panel .muted { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.co-error {
  background: oklch(0.45 0.18 25 / .08);
  border: 1px solid oklch(0.45 0.18 25 / .35);
  color: var(--red-deep);
  padding: 12px 16px; border-radius: 10px;
  font-size: 14px; margin-bottom: 18px;
}

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  border: 2px dashed oklch(0.75 0.04 250);
  border-radius: var(--r-md);
  background: #fff;
  padding: clamp(30px, 6vw, 52px) 20px;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: oklch(0.98 0.015 78 / .25); }
.dz-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: oklch(0.93 0.02 78 / .5);
  color: var(--gold-deep); font-size: 22px; font-weight: 700;
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.dz-title { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.dz-sub { color: var(--muted); font-size: 13.5px; }
.dz-sub u { color: var(--gold-deep); }

.co-file {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px; margin-top: 14px;
}
.co-file-ico { font-size: 26px; }
.co-file-info { flex: 1; min-width: 0; }
.co-file-name { font-weight: 700; color: var(--ink); font-size: 14px; word-break: break-all; }
.co-file-size { color: var(--muted); font-size: 12.5px; }
.co-file-remove {
  border: 0; background: none; color: var(--red-deep); font-weight: 600; font-size: 13px; cursor: pointer; padding: 6px;
}

.co-form label { display: block; font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 8px; }
.co-form label small { color: var(--muted); font-weight: 500; }
.co-form textarea {
  width: 100%; min-height: 110px; resize: vertical;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px; font-size: 14.5px; font-family: inherit; color: var(--ink);
  outline: none; margin-bottom: 16px;
  transition: border-color .2s;
}
.co-form textarea:focus { border-color: var(--gold); }
.co-check {
  display: flex !important; align-items: flex-start; gap: 10px;
  font-weight: 500 !important; color: var(--ink-soft) !important; font-size: 14px !important; cursor: pointer;
}
.co-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.co-check strong { color: var(--ink); }

.co-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.co-actions .btn { min-width: 140px; }

/* Payment methods */
.pay-methods { display: grid; gap: 12px; margin-top: 6px; }
.pay-method {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: #fff; padding: 14px 16px; cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.pay-method:hover { border-color: var(--gold); }
.pay-method:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px oklch(0.66 0.08 78 / .15); }
.pay-method input { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.pay-logo {
  width: 64px; height: 36px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  flex-shrink: 0;
}
.pay-logo--stripe { background: linear-gradient(135deg, #635bff, #7a73ff); color: #fff; }
.pay-logo--paypal { background: linear-gradient(135deg, #003087, #009cde); color: #fff; }
.pay-desc { display: flex; flex-direction: column; }
.pay-desc strong { color: var(--ink); font-size: 14.5px; }
.pay-desc small { color: var(--muted); font-size: 12.5px; }

.co-secure-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Summary */
.co-summary {
  background: #ffffff;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px;
  position: sticky; top: 24px;
  box-shadow: 0 1px 3px oklch(0.22 0.03 255 / 0.06);
}
.co-summary h3 { color: var(--ink); font-size: 17px; margin-bottom: 18px; }
.sum-plan {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.sum-plan-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.sum-plan-price { color: var(--gold-deep); font-weight: 800; font-size: 18px; }
.sum-row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 13.5px; padding: 8px 0; color: var(--ink-soft);
}
.sum-row span:first-child { color: var(--muted); }
.sum-row span:last-child { text-align: right; }
.sum-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 15px; }
.sum-total span:last-child { color: var(--gold-deep); font-weight: 800; font-size: 20px; }
.sum-guarantee {
  margin-top: 16px; padding: 12px 14px;
  background: var(--paper-2); border-radius: 8px;
  font-size: 12px; color: var(--muted); line-height: 1.7;
}

/* Mobile */
@media (max-width: 820px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; margin-bottom: 6px; padding: 20px; }
  .co-steps li { padding: 0 12px; font-size: 12px; }
  .co-steps li:not(:last-child)::after { width: 14px; }
  .step-num { width: 26px; height: 26px; font-size: 12px; }
}
@media (max-width: 480px) {
  .co-steps { gap: 4px; }
  .co-steps li { flex-direction: column; gap: 4px; text-align: center; padding: 0 8px; }
  .co-steps li:not(:last-child)::after { display: none; }
  .co-actions .btn { flex: 1; min-width: 120px; }
  .co-actions .btn--ghost { order: -1; }
}
/* ============================================================
   EMPHASIS PASS - checkout
   ============================================================ */
/* Stepper: current step gold highlight + halo, completed step check color */
.co-steps li.active .step-num {
  box-shadow: 0 0 0 4px oklch(0.66 0.08 78 / 0.18);
  font-weight: 800;
}
.co-steps li.active { color: var(--ink); font-weight: 700; }
.co-steps li.done .step-num { font-weight: 800; }

/* Payment methods: selected red/gold outline + background */
.pay-method:has(input:checked) {
  border-color: var(--gold);
  background: oklch(0.98 0.015 78 / 0.35);
  box-shadow: 0 0 0 3px oklch(0.66 0.08 78 / 0.15);
}
