/* Checkout summary (templates/_checkout_summary.html), contract forms (withdraw.html, cancel.html), small status pages.
   Uses the tokens of site.css. No inline styles anywhere (strict CSP). */
.checkout [hidden] { display: none !important; }

.co-choose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.co-choice {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 18px 18px 16px; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line2); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.co-choice:hover { border-color: rgba(0, 113, 227, 0.5); transform: translateY(-1px); }
.co-choice.featured { background: linear-gradient(180deg, #ffffff, #f4f9ff); }
.co-choice.is-on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18); }
.co-choice-title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.co-choice-price { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.co-choice-note { font-size: 13.5px; color: var(--ink2); }
.co-badge {
  position: absolute; top: -10px; right: 12px; background: linear-gradient(180deg, #2997ff, #0071e3); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 980px;
}

.co-box { margin-top: 20px; padding: 24px; border: 1px solid var(--line2); border-radius: var(--radius); background: #fbfbfd; }
.co-box h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; }
.co-intro { color: var(--ink2); font-size: 15px; margin-bottom: 14px; }
.co-line { font-size: 17px; font-weight: 600; line-height: 1.35; }
.co-term { margin: 8px 0 18px; color: var(--ink2); font-size: 14.5px; line-height: 1.45; }
.co-check { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.co-check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.co-choice-price .vat { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--ink3); letter-spacing: 0; }
.co-after { margin-top: 10px; color: var(--ink2); font-size: 13.5px; }
.co-links { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 16px 32px; font-size: 14px; }
.co-box .msg { margin-top: 4px; }
.co-pay { margin-top: 18px; }
.co-pay.is-locked { opacity: 0.45; pointer-events: none; filter: grayscale(0.3); }
.co-pay .pp-slot { min-height: 48px; }
.co-pay.is-locked .pp-slot { min-height: 0; }

@media (max-width: 720px) {
  .co-choose { grid-template-columns: 1fr; }
  .co-box { padding: 18px; }
  .co-links { margin-left: 0; }
}

/* withdrawal and cancellation forms, 429 and Discord status pages */
.contract .auth-card { max-width: 600px; }
.contract .auth-card h1 { font-size: 28px; }
.contract .auth-card .lead { text-align: left; font-size: 15.5px; }
.contract textarea {
  width: 100%; min-height: 110px; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line2); background: #fff; color: var(--ink); resize: vertical;
}
.contract textarea:focus, .contract select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16); }
.contract select {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; margin-bottom: 8px; border-radius: 12px;
  border: 1px solid var(--line2); background: #fff; color: var(--ink);
}
.contract .field input[type="date"] { min-height: 48px; }
.contract .field.has-error input, .contract .field.has-error textarea { border-color: var(--red); }
.contract .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.contract .kv dd { text-align: left; font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; }
.contract .done-ref { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 4px; overflow-wrap: anywhere; }
.contract .note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); font-size: 14.5px; }
.status-page .auth-card { text-align: center; }
.status-page .auth-card .lead { text-align: center; }
.status-page .stack { justify-content: center; }
