/* ============================================
   CHECKOUT — modern PayU flow
   ============================================ */
.co {
  position: relative;
  padding: 1.25rem 1.15rem 3.75rem;
  overflow: clip;
}
.co-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 280px;
  background:
    radial-gradient(520px 200px at 90% 0%, rgba(61, 95, 217, 0.18), transparent 60%),
    linear-gradient(180deg, #e8eefc 0%, var(--bg, #f5f7fc) 100%);
  pointer-events: none;
  z-index: 0;
}
.co-wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.co-steps {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}
.co-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.co-step-n {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(3, 27, 78, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
}
.co-step-n .shop-icon {
  width: 14px;
  height: 14px;
}
.co-step.is-active { color: var(--blue); }
.co-step.is-active .co-step-n {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.co-step.is-done { color: var(--ink-soft); }
.co-step.is-done .co-step-n {
  background: #e7f7ee;
  border-color: rgba(10, 122, 74, 0.25);
  color: #0a7a4a;
}
.co-step-line {
  width: 28px;
  height: 2px;
  background: rgba(3, 27, 78, 0.1);
  border-radius: 2px;
}

.co-head {
  margin-bottom: 1.35rem;
  max-width: 42ch;
}
.co-head .shop-h2 { margin: 0.25rem 0 0.4rem; }
.co-head .shop-lead { margin: 0; }

.co-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .co-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 1.35rem;
  }
  .co-summary {
    position: relative;
  }
}

.co-card {
  background: #fff;
  border: 1px solid rgba(3, 27, 78, 0.08);
  border-radius: 22px;
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) {
  .co-card { padding: 1.45rem 1.4rem; }
}
.co-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.co-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.co-card-head h2 .shop-icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.co-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--blue-mist);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.co-pill-ok {
  background: #e7f7ee;
  color: #0a7a4a;
}

.co-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.co-lines li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(3, 27, 78, 0.07);
}
.co-lines li:last-child { border-bottom: 0; }
.co-line-media {
  width: 56px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-wash);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.co-line-media img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.co-line-fallback .shop-icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.co-line-copy strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.1rem;
  line-height: 1.25;
}
.co-line-copy span {
  font-size: 0.8rem;
  color: var(--muted);
}
.co-line-right {
  text-align: right;
}
.co-line-right em {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
}
.co-line-right small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
}

.co-totals {
  margin-top: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--blue-wash), #fff);
  border: 1px solid rgba(36, 72, 198, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.co-totals > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.co-ok { color: #0a7a4a; }
.co-disc strong { color: #0a7a4a; }
.co-disc span,
.co-earn span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.co-disc .shop-icon,
.co-earn .shop-icon {
  width: 15px;
  height: 15px;
}
.co-earn {
  padding: 0.45rem 0;
  border-top: 1px dashed rgba(3, 27, 78, 0.14);
  border-bottom: 1px dashed rgba(3, 27, 78, 0.14);
  color: var(--blue) !important;
  font-weight: 700;
}
.co-earn strong {
  color: var(--blue);
  font-size: 1.02rem;
}
.co-pay {
  padding-top: 0.15rem;
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 1.02rem !important;
}
.co-pay strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.co-hint {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.co-hint b { color: var(--ink-soft); font-weight: 700; }

.co-trust {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.co-trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(3, 27, 78, 0.06);
}
.co-trust .shop-icon {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

.co-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.co-block-lead {
  margin: -0.35rem 0 0.95rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.co-points-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.co-points-top label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}
.co-points-val {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
}
.co-points input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
  height: 28px;
  cursor: pointer;
}
.co-points input[type="range"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.co-points-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 0.15rem;
}
.co-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.co-presets button {
  border: 1px solid rgba(3, 27, 78, 0.1);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.co-presets button:hover {
  background: var(--blue-mist);
  border-color: rgba(36, 72, 198, 0.25);
  color: var(--blue);
}
.co-points-empty {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.co-methods {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.co-method {
  position: relative;
  display: grid;
  grid-template-columns: 22px 48px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1.5px solid rgba(3, 27, 78, 0.1);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.co-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.co-method-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(3, 27, 78, 0.22);
  display: grid;
  place-items: center;
}
.co-method-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}
.co-method.is-checked {
  border-color: rgba(36, 72, 198, 0.45);
  background: var(--blue-mist);
  box-shadow: 0 0 0 3px rgba(36, 72, 198, 0.08);
}
.co-method.is-checked .co-method-mark {
  border-color: var(--blue);
}
.co-method.is-checked .co-method-mark::after {
  background: var(--blue);
}
.co-method-ico {
  width: 48px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(3, 27, 78, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.co-method-blik {
  background: linear-gradient(135deg, #111 0%, #333 100%);
  color: #fff;
  border-color: transparent;
  font-size: 0.68rem;
}
.co-method-ico .shop-icon {
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.co-method-copy strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.1rem;
}
.co-method-copy small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.co-mode {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.co-mode em {
  font-style: normal;
  color: #b45309;
  font-weight: 700;
}

.co-zero {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #e7f7ee, #fff);
  border: 1px solid rgba(10, 122, 74, 0.18);
}
.co-zero .shop-icon {
  width: 22px;
  height: 22px;
  color: #0a7a4a;
  margin-top: 0.1rem;
}
.co-zero strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
}
.co-zero p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.co-form .shop-btn-lg {
  margin-top: 0.15rem;
}
.co-legal {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}
.co-legal a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.co-legal a:hover { text-decoration: underline; }

/* Mock payment */
.co-mock {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1.15rem 3.5rem;
}
.co-mock .co-card { text-align: center; }
.co-mock-amt {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--blue);
  margin: 0.35rem 0 1.25rem;
  letter-spacing: -0.02em;
}
.co-mock-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 560px) {
  .co-lines li {
    grid-template-columns: 44px 1fr auto;
    gap: 0.55rem;
  }
  .co-line-media { width: 44px; height: 30px; }
  .co-method {
    grid-template-columns: 20px 40px 1fr;
    padding: 0.8rem 0.85rem;
  }
  .co-method-ico { width: 40px; height: 32px; }
}
