:root {
  --bg: #f7f5f2;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --brand: #e07a5f;      /* corail chaleureux, ambiance maison d'hôtes */
  --brand-dark: #c85c40;
  --line: #e7e2db;
  --ok: #2f9e6f;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.wrap.center { min-height: 80vh; display: flex; align-items: center;
  justify-content: center; text-align: center; }

.head { text-align: center; margin-bottom: 28px; }
h1 { font-size: 1.7rem; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0; }
.notice {
  margin: 14px 0 0; padding: 10px 16px; font-size: .9rem;
  background: #fdf3e7; border: 1px solid #f0d9b5; border-radius: 10px;
  color: #92400e; display: inline-block;
}

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card-body { flex: 1; }
.card h2 { font-size: 1.05rem; margin: 0 0 4px; }
.desc { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.price { font-weight: 700; margin: 0; }
.unit { font-weight: 400; color: var(--muted); font-size: .85rem; }

.qty { display: flex; align-items: center; gap: 10px; }
.step {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.step:hover { border-color: var(--brand); color: var(--brand); }
.count { min-width: 20px; text-align: center; font-weight: 600; }

.summary {
  position: sticky; bottom: 0;
  margin-top: 24px; padding: 18px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.total { flex: 1; font-size: 1.05rem; }
#pay {
  background: var(--brand); color: #fff; border: 0;
  padding: 13px 24px; border-radius: 999px; font-size: 1rem;
  font-weight: 600; cursor: pointer;
}
#pay:hover:not(:disabled) { background: var(--brand-dark); }
#pay:disabled { opacity: .5; cursor: not-allowed; }

.err { color: #b91c1c; font-size: .9rem; width: 100%; margin: 0; }

.link {
  display: inline-block; margin-bottom: 16px;
  color: var(--brand); text-decoration: none; font-weight: 600;
  background: none; border: 0; cursor: pointer; font-size: .95rem;
}
.link:hover { text-decoration: underline; }

/* Marge pour laisser passer le badge "TEST MODE" de Stripe, positionné au-dessus
   du formulaire embarqué — sans elle, il est coupé par le coin arrondi. */
#checkout-element { margin-top: 20px; }

.badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.badge.warn { background: #d9a441; }
