body {
  font-family: system-ui, Arial, sans-serif;
  background: #f5f6f8;
  margin: 0;
  padding: 40px 16px;
  color: #1a1a1a;
}
.card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
h1 { font-size: 20px; margin: 0 0 4px; }
.sub { color: #666; font-size: 14px; margin-bottom: 20px; }
.ok { color: #0f7b3c; }
.ko { color: #b00020; }

.row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid #eee; font-size:15px; }

.amount-box {
  background: #eef7f0;
  border: 1px solid #cdeada;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin: 18px 0;
}
.amount-label { font-size: 13px; color: #555; }
.amount-value { font-size: 28px; font-weight: 800; color: #0f7b3c; font-family: Georgia, serif; }

.cgv {
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 8px;
  line-height: 1.4;
}
.cgv input { margin-top: 3px; }
.cgv a { color: #0f5fb0; }

.captcha {
  background: #f0f1f3;
  border-radius: 8px;
  padding: 14px;
  margin: 16px 0;
  font-size: 14px;
}
.captcha .q { font-weight: 700; margin-bottom: 8px; }
.captcha input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
.captcha .err { color: #b00020; font-size: 12px; margin-top: 6px; }

button, .pay-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: #0f7b3c;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}
button:disabled { opacity: .5; cursor: not-allowed; }
.pay-btn img { height: 22px; background: #fff; border-radius: 4px; padding: 2px 4px; }

.msg { margin-top: 16px; font-size: 14px; color: #b00020; white-space: pre-wrap; }

.tbl { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.tbl th { text-align: left; color: #666; font-weight: 500; padding: 6px 8px 6px 0; vertical-align: top; width: 55%; }
.tbl td { padding: 6px 0; font-weight: 600; }

.desc { font-size: 14px; color: #333; margin: 8px 0 0; }
.help { font-size: 13px; color: #666; margin-top: 16px; }

.actions { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.actions a, .actions button { text-align: center; }
.email-row { display: flex; gap: 8px; margin-top: 6px; }
.email-row input { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 6px; }
.email-row button { width: auto; padding: 10px 16px; margin-top: 0; }
#emailMsg { font-size: 13px; color: #444; min-height: 18px; }

.back { display: inline-block; margin-top: 18px; color: #0f7b3c; text-decoration: none; font-size: 14px; }

.legal { font-size: 14px; line-height: 1.6; }
.legal h2 { font-size: 16px; margin-top: 24px; }

@media print {
  .actions, .back { display: none; }
}
