/* SamCart-cloned checkout look (from "Professional checkout page" reference) */
/* ONE brand colour, and every shade of it computed from that one hex with
   color-mix, so the install sweep (tools/apply-config.mjs) only has to find
   --pink. The plain hex and rgba lines directly above each color-mix are the
   fallback for a browser too old for color-mix: they are the same colour, and
   they are the only two values a venue with such a browser has to hand-edit
   (apps/cart/CLAUDE.md lists them). The local seed is Wollongong Kart
   Raceway's signage red. */
:root {
  --pink:#d81f26;
  --brand-tint:#fbeaea;
  --brand-tint:color-mix(in srgb, var(--pink) 9%, #fff);
  --brand-shadow:rgba(216,31,38,0.35);
  --brand-shadow:color-mix(in srgb, var(--pink) 35%, transparent);
  --navy:#0f172a; --gray:#64748b; --line:#e2e8f0;
  --bump-bg:var(--brand-tint);
}
* { box-sizing:border-box; margin:0; padding:0; }
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; background:#fff; color:var(--navy); display:flex; justify-content:center; padding:28px 16px 60px; -webkit-font-smoothing:antialiased; }
.wrap { width:100%; max-width:530px; }
.logo { width:44px; height:44px; border-radius:6px; margin-bottom:26px; display:block; }
h2.sec { font-size:19px; font-weight:600; letter-spacing:-0.01em; margin:30px 0 14px; }
h2.sec:first-of-type { margin-top:0; }
/* order summary */
.order-line { display:flex; gap:14px; align-items:flex-start; padding:6px 0 18px; }
.order-line img { width:72px; border-radius:6px; }
.order-line .n { font-size:15.5px; font-weight:500; flex:1; }
.order-line .p { font-size:15.5px; font-weight:600; white-space:nowrap; }
.sumrow { display:flex; justify-content:space-between; padding:9px 0; font-size:14.5px; border-top:1px solid var(--line); }
.sumrow.due { font-weight:700; font-size:16px; }
.sumrow.due .cur { color:var(--gray); font-size:11px; font-weight:600; margin-right:5px; vertical-align:2px; }
.fx-hint { font-size:12px; color:var(--gray); text-align:right; margin-top:2px; }
/* bumps: "Popular add-ons" */
.bump { position:relative; background:var(--bump-bg); border:1.5px solid var(--pink); border-radius:10px; padding:18px 84px 18px 20px; margin-bottom:14px; }
.bump .point { position:absolute; right:29px; top:calc(50% - 58px); width:26px; height:26px; animation:bump-point 1.2s ease-in-out infinite; pointer-events:none; }
.bump .point svg { width:26px; height:26px; stroke:var(--pink); display:block; }
@keyframes bump-point { 0%,100% { transform:translateY(0); } 50% { transform:translateY(8px); } }
.bump.added .point { display:none; }
.bump .d strong { color:var(--navy); font-weight:700; }
.bump .t { font-size:15.5px; font-weight:600; margin-bottom:4px; }
.bump .pr { font-size:14.5px; margin-bottom:10px; }
.bump .pr s { color:var(--gray); margin-right:6px; }
/* Shown only on a per-driver bump when more than one driver is booked. */
.bump .pr .per { color:var(--gray); font-weight:400; }
.bump .d { font-size:13.5px; color:var(--gray); line-height:1.55; white-space:pre-wrap; }
.bump .add { position:absolute; right:20px; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%; border:none; background:var(--pink); color:#fff; font-size:24px; line-height:1; cursor:pointer; box-shadow:0 4px 12px var(--brand-shadow); transition:transform .12s; }
.bump .add:active { transform:translateY(-50%) scale(.94); }
.bump.added { }
/* Per-slot accents: slot 1 keeps brand pink; slots 2/3 get their own colour so
   stacked bumps read as clearly different offers at a glance. */
.bump-a1 { border-color:#f0a114; background:#fdf4e6; }
.bump-a1 .point svg { stroke:#f0a114; }
.bump-a1 .add { background:#f0a114; box-shadow:0 4px 12px rgba(240,161,20,0.35); }
.bump-a2 { border-color:#0e7490; background:#e8f6fb; }
.bump-a2 .point svg { stroke:#0e7490; }
.bump-a2 .add { background:#0e7490; box-shadow:0 4px 12px rgba(14,116,144,0.35); }
/* Added state stays green regardless of slot accent (declared last so it wins). */
.bump.added .add { background:#0ea45f; }
/* fields */
label.f { display:block; font-size:14.5px; font-weight:500; margin:14px 0 7px; }
input.f { width:100%; border:1px solid #d6dee8; border-radius:8px; padding:13px 14px; font-size:15px; font-family:inherit; color:var(--navy); box-shadow:0 1px 2px rgba(15,23,42,0.04); }
input.f::placeholder { color:#94a3b8; }
input.f:focus { outline:none; border-color:var(--pink); box-shadow:0 0 0 1.5px var(--pink); }
#payment-element { margin-top:10px; }
/* coupon */
.coupon-row { display:flex; gap:8px; margin-top:14px; }
.coupon-row input { flex:1; text-transform:uppercase; }
.coupon-row button { border:1px solid #d6dee8; background:#fff; border-radius:8px; padding:0 16px; font-size:13.5px; font-weight:500; cursor:pointer; font-family:inherit; color:var(--gray); }
.ok-coupon { color:#0ea45f; font-size:13px; margin-top:6px; display:none; }
/* terms agreement */
.agree { display:flex; gap:10px; align-items:flex-start; margin-top:18px; font-size:12.5px; color:var(--gray); line-height:1.55; text-align:left; cursor:pointer; border-radius:8px; padding:6px; transition:background .2s; }
.agree input { margin-top:2px; width:16px; height:16px; accent-color:var(--pink); flex-shrink:0; cursor:pointer; }
.agree a { color:var(--navy); }
.agree.flash { background:#fef2f2; color:#dc2626; }
.agree.flash a { color:#dc2626; }

/* Event entries: the line under the team fields that says how many places are
   left on the grid. Quiet by default, it only appears when the events app has
   told the checkout a number. */
.entry-note { display:none; margin-top:8px; font-size:12.5px; color:var(--gray); }
/* pay */
.pay { width:100%; border:none; border-radius:10px; padding:16px; font-size:17px; font-weight:600; cursor:pointer; background:var(--pink); color:#fff; margin-top:16px; font-family:inherit; letter-spacing:0.01em; }
.pay:hover { filter:brightness(1.06); } .pay:disabled { opacity:.55; cursor:default; }
.badge { display:flex; justify-content:center; margin-top:14px; }
.badge span { display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:7px; padding:5px 12px; font-size:11px; color:var(--gray); letter-spacing:0.06em; }
.badge b { letter-spacing:0; font-size:12.5px; color:var(--navy); }
.err { color:#dc2626; font-size:13.5px; margin-top:12px; display:none; }
.loading { text-align:center; color:var(--gray); padding:60px 0; }
.divider { display:flex; align-items:center; gap:12px; color:var(--gray); font-size:13px; margin:18px 0 4px; }
.divider::before,.divider::after { content:''; flex:1; height:1px; background:var(--line); }

/* Booking recap (venue commerce): what they booked, when, and how long the
   slot stays held. Sits above the order summary on the checkout page. */
.booking-recap { border:1.5px solid var(--pink); background:var(--bump-bg); border-radius:10px; padding:16px 18px; margin-bottom:24px; }
.booking-recap .br-t { font-size:15.5px; font-weight:600; margin-bottom:4px; }
.booking-recap .br-l { font-size:13.5px; color:var(--gray); line-height:1.6; }
.booking-recap .br-hold { font-size:13px; font-weight:600; color:var(--pink); margin-top:8px; }
.booking-recap .br-hold.gone { color:#b42318; }
/* Stand-in for the Stripe Payment Element: local test mode, or a gift voucher
   that covers the whole amount so there is nothing to pay. */
.mockpay { border:1px dashed #d6dee8; border-radius:8px; padding:16px; font-size:13.5px; color:var(--gray); text-align:center; }
