/* Stripe Checkout–inspired pay page (light, clean, two-column) */
:root {
  --ck-bg: #f6f9fc;
  --ck-surface: #ffffff;
  --ck-text: #1a1f36;
  --ck-muted: #697386;
  --ck-border: #e3e8ee;
  --ck-accent: #e8a838;
  --ck-accent-hover: #d4962a;
  --ck-accent-text: #111;
  --ck-shadow: 0 4px 6px rgba(50, 50, 93, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
  --ck-radius: 12px;
  --ck-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--ck-font);
  background: var(--ck-bg);
  color: var(--ck-text);
  font-size: 16px;
  line-height: 1.45;
}
a { color: var(--ck-text); }
.ck-skip {
  position: absolute; left: -999px;
}
.ck-skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }

.ck-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) {
  .ck-shell { grid-template-columns: 1fr; }
}

/* LEFT: order summary (Stripe-style) */
.ck-summary {
  background: #0e0f12;
  color: #e8eaef;
  padding: 48px 40px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ck-summary-inner {
  width: min(100%, 420px);
  margin: 0 auto;
}
.ck-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #9aa3b2;
  text-decoration: none;
  margin-bottom: 28px;
}
.ck-back:hover { color: #fff; }
.ck-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ck-accent);
  margin: 0 0 8px;
}
.ck-summary h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.2;
}
.ck-price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 24px;
}
.ck-price {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}
.ck-price small {
  font-size: 16px;
  font-weight: 500;
  color: #9aa3b2;
}
.ck-intro {
  font-size: 14px;
  color: #9aa3b2;
  margin: 0 0 28px;
}

.ck-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid #2a2e38;
}
.ck-item:last-of-type { border-bottom: 1px solid #2a2e38; }
.ck-thumb {
  width: 56px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #1a1d25;
  border: 1px solid #2a2e38;
  flex-shrink: 0;
}
.ck-item-body { flex: 1; min-width: 0; }
.ck-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
}
.ck-item-desc {
  font-size: 13px;
  color: #9aa3b2;
  margin: 0;
}
.ck-item-price {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.ck-totals {
  margin-top: 20px;
  font-size: 14px;
}
.ck-total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: #9aa3b2;
}
.ck-total-row.grand {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #2a2e38;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.ck-total-row.grand span:last-child {
  font-size: 22px;
  color: var(--ck-accent);
}

.ck-bullets {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #9aa3b2;
}
.ck-bullets li {
  padding: 6px 0 6px 22px;
  position: relative;
}
.ck-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ck-accent);
  font-weight: 700;
}

/* RIGHT: payment panel */
.ck-pay {
  background: var(--ck-surface);
  padding: 48px 40px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ck-pay-inner {
  width: min(100%, 400px);
  margin: 0 auto;
}
.ck-pay h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.ck-pay-lead {
  font-size: 14px;
  color: var(--ck-muted);
  margin: 0 0 28px;
}

.ck-field {
  margin-bottom: 16px;
}
.ck-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ck-text);
  margin-bottom: 6px;
}
.ck-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ck-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ck-text);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.ck-field input:focus {
  outline: none;
  border-color: var(--ck-accent);
  box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.2);
}
.ck-field input::placeholder { color: #a3acb9; }

.ck-card-mock {
  border: 1px solid var(--ck-border);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fafbfc;
  margin-bottom: 20px;
}
.ck-card-mock p {
  margin: 0;
  font-size: 13px;
  color: var(--ck-muted);
  line-height: 1.45;
}
.ck-card-mock strong { color: var(--ck-text); }

.ck-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 8px;
  background: var(--ck-accent);
  color: var(--ck-accent-text);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--ck-shadow);
  transition: background 0.12s, transform 0.1s;
}
.ck-btn:hover {
  background: var(--ck-accent-hover);
  color: var(--ck-accent-text);
  text-decoration: none;
  transform: translateY(-1px);
}
.ck-btn:disabled,
.ck-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.ck-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ck-muted);
}
.ck-legal {
  margin-top: 28px;
  font-size: 12px;
  color: var(--ck-muted);
  text-align: center;
  line-height: 1.5;
}
.ck-legal a { color: var(--ck-muted); text-decoration: underline; }

.ck-pending {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff8eb;
  border: 1px solid #f0d9a0;
  border-radius: 8px;
  font-size: 13px;
  color: #5c4a1f;
}
.ck-pending code {
  font-size: 12px;
  background: #fff;
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .ck-summary, .ck-pay { padding: 32px 24px 40px; }
  .ck-summary { order: 1; }
  .ck-pay { order: 2; }
}
