{#if data.title}

{data.title}

{/if} {#if data.heading}

{data.heading}

{/if} {#if lapsed.length} {/if} {#if basket.lines.length === 0}

Your basket is empty

{#if shopAbove}

Pick a service or product above.

{:else} Book a session {/if}
{:else} {#if holdLeftMs !== null && slotLineCount} {@const ending = holdLeftMs < RENEW_OFFER_MS}

{slotLineCount === 1 ? 'Your time is' : 'Your times are'} reserved for {formatCountdown(holdLeftMs)}{ending ? ' — after that it goes back to the shop.' : '.'}

{#if ending && payState !== 'confirming'} {/if}
{/if}
Subtotal {formatPrice(basket.total, currency)}
{#if basket.pass} {@const left = basket.pass.parts.filter((p) => p.redeemable)}

Code {basket.pass.code} · {basket.pass.name}

{left.map((p) => `${p.left} × ${p.name} (${formatDuration(p.minutes ?? 0)})`).join(', ')} left after this basket{basket.pass.expiresAt ? ` · valid until ${formatInstant(basket.pass.expiresAt, timezone, { day: 'numeric', month: 'long', year: 'numeric' })}` : ''}.

{#if !basket.lines.some((l) => l.passCovered)}

Nothing in your basket matches this code — book one of the sessions above, at the same length.

{/if}
{:else}
{ e.preventDefault(); applyCode(); }} >
{/if} {#if codeError}{/if}
{ e.preventDefault(); startPayment(); }} >

Your details

{data.notesHint || DEFAULT_NOTES_HINT}

{data.privacyNotice || DEFAULT_PRIVACY_NOTICE} {#if privacyPage} Privacy policy {/if}

{#if payState === 'idle' || payState === 'creating'} {/if}

Payment

{#if errorMsg} {/if} {#if basketChanged && !lapsed.length}

Basket changed — please press Pay again.

{/if} {#if payState === 'ready' || payState === 'confirming'} {/if} {#if payState === 'idle' && !errorMsg}

{nothingToPay ? 'Nothing to pay — your code covers everything. Fill in your details and press Confirm booking.' : 'Fill in your details and press Pay to continue to secure payment.'}

{/if}
{/if}