Reservation 2
Salon service-menu booking block: a full-bleed studio photo with a printed service menu and a booking panel overlapping its bottom edge. Every service and add-on ticked grows a live time-in-the-chair total, so the client books knowing exactly how long it takes and what it costs.
Use it in a prompt
Use forms/reservation-2 from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/forms/reservation-2.tsx. - Import it and pass your copy and images (Props tab):
import { Reservation2 } from "@/components/funneldna/forms/reservation-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/forms/reservation-2/component.tsx 865 lines
// layout: photo-overlap-card
// Salon service-menu booking block: a full-bleed studio photo with a printed service menu and a booking panel overlapping its bottom edge. Every service and add-on ticked grows a live time-in-the-chair total, so the client books knowing exactly how long it takes and what it costs.
// Theme: colours, faces, radius and shadows read the theme and role tokens; hex appears only as var() fallbacks.
import * as React from 'react';
import { AlertCircle, CalendarCheck, Check, Clock, Lock, ShieldCheck, Users } from 'lucide-react';
export type SalonService = {
value: string;
name: string;
/** Length of the service in minutes, used for the live total */
minutes: number;
/** Price as a number, e.g. 85 */
price: number;
/** Short line under the name */
detail?: string;
/** Small flag such as Most booked; shown only when supplied */
flag?: string;
};
export type SalonCategory = { title: string; services: SalonService[] };
export type SalonStylist = {
value: string;
name: string;
/** Short line under the name, e.g. Colour lead */
detail?: string;
/** Portrait (slot presenter) */
image?: string;
imageAlt?: string;
};
export type SalonTime = {
time: string;
/** Taken for everyone: shown struck through */
full?: boolean;
/** Stylist values already booked at this time */
booked?: string[];
};
export type SalonDay = { value: string; label: string; times: SalonTime[] };
export type Reservation2Values = {
services: string[];
addOns: string[];
/** Stylist value, or any for first available */
stylist: string;
day: string;
time: string;
name: string;
phone: string;
totalMinutes: number;
totalPrice: number;
};
export type Reservation2Copy = {
addOnsTitle: string;
stylistTitle: string;
anyStylist: string;
anyStylistDetail: string;
daysLabel: string;
timeTitle: string;
full: string;
busy: string;
nameLabel: string;
namePlaceholder: string;
phoneLabel: string;
phonePlaceholder: string;
emptySummary: string;
/** Placeholder: {time} */
summaryLabel: string;
/** Placeholder: {time} (the finish time) */
doneBy: string;
hours: string;
minutes: string;
plus: string;
serviceOne: string;
/** Placeholder: {n} */
serviceMany: string;
barEmpty: string;
barAction: string;
buttonEmpty: string;
/** Placeholder: {price} (the live total) */
buttonTemplate: string;
psLabel: string;
errorServices: string;
errorTime: string;
errorName: string;
errorPhone: string;
};
export type Reservation2Props = {
headline?: string;
/** Phrase inside the headline that gets the marker stroke */
highlight?: string;
lead?: string;
/** Slot scene: the empty chair waiting for them */
chairImage?: string;
chairAlt?: string;
menuTitle?: string;
menuNote?: string;
categories?: SalonCategory[];
addOns?: SalonService[];
stylists?: SalonStylist[];
/** Supplied days with their open times; when omitted, times is used for one day */
days?: SalonDay[];
times?: SalonTime[];
currency?: string;
defaultServices?: string[];
defaultAddOns?: string[];
defaultStylist?: string;
defaultDay?: string;
defaultTime?: string;
/** Length the time bar is drawn against, in minutes */
barScale?: number;
panelTitle?: string;
/** Risk reversal that leads the book action, e.g. a free-change policy */
policy?: string;
/** P.S. line under the action */
ps?: string;
reassurance?: string;
disabled?: boolean;
disabledNote?: string;
copy?: Partial<Reservation2Copy>;
state?: 'default' | 'hover' | 'active' | 'disabled' | 'error';
/** Called with the validated booking; the page wires what happens next */
onSubmit?: (values: Reservation2Values) => void;
className?: string;
};
type Line = SalonService & { kind: 'service' | 'addon' };
type ErrorKey = 'services' | 'time' | 'name' | 'phone';
const ANY = 'any';
export function Reservation2(props: Reservation2Props) {
const {
headline = 'Build your visit and see the total before you sit down',
highlight = 'before you sit down',
lead = 'Tick your services, pick your stylist and an open time. Your time in the chair and your price add up as you go.',
chairImage,
chairAlt = 'An empty styling chair in a bright hair studio',
menuTitle = 'Tick everything you want done',
menuNote = '',
categories = DEFAULT_CATEGORIES,
addOns = DEFAULT_ADDONS,
stylists = [],
days,
times = DEFAULT_TIMES,
currency = '$',
defaultServices = [],
defaultAddOns = [],
defaultStylist = ANY,
defaultDay,
defaultTime = '',
barScale = 240,
panelTitle = 'Lock in your chair',
policy = '',
ps = '',
reassurance = 'We only use your details for this booking.',
disabled = false,
disabledNote = 'Online booking is paused right now. Please check back soon.',
copy,
state = 'default',
onSubmit,
className,
} = props;
const t: Reservation2Copy = { ...DEFAULT_COPY, ...copy };
const uid = React.useId();
const rootRef = React.useRef<HTMLElement>(null);
const panelHeadRef = React.useRef<HTMLHeadingElement>(null);
const isDisabled = disabled || state === 'disabled';
const dayList: SalonDay[] = days && days.length ? days : [{ value: '', label: '', times }];
const [services, setServices] = React.useState<string[]>(defaultServices);
const [extras, setExtras] = React.useState<string[]>(defaultAddOns);
const [stylist, setStylist] = React.useState(defaultStylist);
const [day, setDay] = React.useState(defaultDay ?? dayList[0].value);
const [time, setTime] = React.useState(defaultTime);
const [name, setName] = React.useState('');
const [phone, setPhone] = React.useState('');
const [submitted, setSubmitted] = React.useState(state === 'error');
const [open, setOpen] = React.useState(state === 'error');
React.useEffect(() => {
setSubmitted(state === 'error');
if (state === 'error') setOpen(true);
}, [state]);
const allServices = categories.flatMap((c) => c.services);
const items: Line[] = [
...allServices.filter((s) => services.includes(s.value)).map((s) => ({ ...s, kind: 'service' as const })),
...addOns.filter((a) => extras.includes(a.value)).map((a) => ({ ...a, kind: 'addon' as const })),
];
const totalMinutes = items.reduce((n, i) => n + i.minutes, 0);
const totalPrice = items.reduce((n, i) => n + i.price, 0);
const serviceCount = items.filter((i) => i.kind === 'service').length;
const currentDay = dayList.find((d) => d.value === day) ?? dayList[0];
const canBook = (s: SalonTime, who: string) => {
if (s.full) return false;
if (who === ANY) return !(stylists.length > 0 && stylists.every((p) => s.booked?.includes(p.value)));
return !s.booked?.includes(who);
};
const slot = currentDay.times.find((s) => s.time === time && canBook(s, stylist));
const firstOpenTime = currentDay.times.find((s) => canBook(s, stylist));
const errors: Partial<Record<ErrorKey, string>> = {};
if (!serviceCount) errors.services = t.errorServices;
if (!slot) errors.time = t.errorTime;
if (!name.trim()) errors.name = t.errorName;
if (phone.replace(/[^0-9]/g, '').length < 7) errors.phone = t.errorPhone;
const shown: Partial<Record<ErrorKey, string>> = submitted ? errors : {};
const money = (n: number) => formatMoney(n, currency);
const duration = formatDuration(totalMinutes, t);
const end = slot && totalMinutes ? addMinutes(slot.time, totalMinutes) : null;
const label = serviceCount ? fill(t.buttonTemplate, { price: money(totalPrice) }) : t.buttonEmpty;
const scale = Math.max(barScale, totalMinutes);
const toggle = (list: string[], v: string) => (list.includes(v) ? list.filter((x) => x !== v) : [...list, v]);
const pickStylist = (v: string) => {
setStylist(v);
const s = currentDay.times.find((x) => x.time === time);
if (s && !canBook(s, v)) setTime('');
};
const pickDay = (v: string) => {
setDay(v);
setTime('');
};
const focusKey = (key: ErrorKey) => {
const el = rootRef.current?.querySelector<HTMLElement>(`[data-focus='${key}']`);
el?.focus();
};
const openPanel = () => {
setOpen(true);
window.requestAnimationFrame(() => {
const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
panelHeadRef.current?.scrollIntoView({ behavior: reduce ? 'auto' : 'smooth', block: 'start' });
panelHeadRef.current?.focus({ preventScroll: true });
});
};
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
if (isDisabled) return;
setSubmitted(true);
const first = (['services', 'time', 'name', 'phone'] as ErrorKey[]).find((k) => errors[k]);
if (first) {
if (first !== 'services') setOpen(true);
window.requestAnimationFrame(() => focusKey(first));
return;
}
onSubmit?.({
services: items.filter((i) => i.kind === 'service').map((i) => i.value),
addOns: items.filter((i) => i.kind === 'addon').map((i) => i.value),
stylist,
day: currentDay.value,
time,
name: name.trim(),
phone: phone.trim(),
totalMinutes,
totalPrice,
});
};
let firstRow = true;
const row = (s: SalonService, kind: 'service' | 'addon') => {
const on = kind === 'service' ? services.includes(s.value) : extras.includes(s.value);
const id = `${uid}-${kind}-${s.value}`;
const focusMe = kind === 'service' && firstRow;
if (focusMe) firstRow = false;
const described = [`${id}-meta`, shown.services ? `${uid}-svc-err` : ''].filter(Boolean).join(' ');
return (
<label key={s.value} htmlFor={id} className='r2-row' data-kind={kind} data-on={on ? '' : undefined}>
<input
id={id}
type='checkbox'
className='r2-sr'
checked={on}
disabled={isDisabled}
data-focus={focusMe ? 'services' : undefined}
aria-describedby={described}
onChange={() => (kind === 'service' ? setServices((l) => toggle(l, s.value)) : setExtras((l) => toggle(l, s.value)))}
/>
<span className='r2-tick' aria-hidden='true'>
<Check size={16} strokeWidth={3} />
</span>
<span className='r2-row-main'>
<span className='r2-row-line'>
<span className='r2-row-name'>{s.name}</span>
<span className='r2-leader' aria-hidden='true' />
<span className='r2-row-price'>
{kind === 'addon' ? t.plus : ''}
{money(s.price)}
</span>
</span>
<span className='r2-row-meta' id={`${id}-meta`}>
{s.flag && kind === 'service' ? <span className='r2-flag'>{s.flag}</span> : null}
<span className='r2-dur'>
<Clock size={16} strokeWidth={2.5} aria-hidden='true' />
{kind === 'addon' ? t.plus : ''}
{formatDuration(s.minutes, t)}
</span>
{s.detail ? <span className='r2-detail'>{s.detail}</span> : null}
</span>
</span>
</label>
);
};
const field = (key: 'name' | 'phone', labelText: string, placeholder: string, value: string, set: (v: string) => void) => {
const id = `${uid}-${key}`;
const err = shown[key];
return (
<div className='r2-field' key={key}>
<label htmlFor={id} className='r2-label'>
{labelText}
</label>
<input
id={id}
className='r2-input'
type={key === 'phone' ? 'tel' : 'text'}
inputMode={key === 'phone' ? 'tel' : undefined}
autoComplete={key === 'phone' ? 'tel' : 'name'}
placeholder={placeholder}
value={value}
disabled={isDisabled}
data-focus={key}
aria-invalid={err ? true : undefined}
aria-describedby={err ? `${id}-err` : undefined}
onChange={(e) => set(e.target.value)}
/>
{err ? (
<p className='r2-err' id={`${id}-err`}>
<AlertCircle size={16} strokeWidth={2.5} aria-hidden='true' className='r2-inline' />
{err}
</p>
) : null}
</div>
);
};
const people: SalonStylist[] = [{ value: ANY, name: t.anyStylist, detail: t.anyStylistDetail }, ...stylists];
return (
<section
ref={rootRef}
className={['cf-reservation-2', className].filter(Boolean).join(' ')}
data-photo={chairImage ? '' : undefined}
data-open={open ? '' : undefined}
data-disabled={isDisabled ? '' : undefined}
aria-labelledby={`${uid}-h`}
>
<style>{CSS}</style>
<div className='r2-head'>
<h2 id={`${uid}-h`} className='r2-title'>
{renderHighlight(headline, highlight)}
</h2>
{lead ? <p className='r2-lead'>{lead}</p> : null}
</div>
{chairImage ? (
<div className='r2-photo'>
<img src={chairImage} alt={chairAlt} width={1600} height={900} decoding='async' />
</div>
) : null}
<form className='r2-stage' noValidate onSubmit={handleSubmit}>
<div className='r2-menu r2-card'>
<h3 className='r2-h3'>{menuTitle}</h3>
{menuNote ? <p className='r2-note'>{menuNote}</p> : null}
{shown.services ? (
<p className='r2-err r2-err-box' id={`${uid}-svc-err`} role='alert'>
<AlertCircle size={16} strokeWidth={2.5} aria-hidden='true' className='r2-inline' />
{shown.services}
</p>
) : null}
{categories.map((cat) => (
<fieldset key={cat.title} className='r2-cat'>
<legend className='r2-cat-title'>
<span className='r2-cat-line'>{cat.title}</span>
</legend>
{cat.services.map((s) => row(s, 'service'))}
</fieldset>
))}
{addOns.length ? (
<fieldset className='r2-cat'>
<legend className='r2-cat-title'>
<span className='r2-cat-line'>{t.addOnsTitle}</span>
</legend>
{addOns.map((a) => row(a, 'addon'))}
</fieldset>
) : null}
</div>
<div className='r2-bar'>
<div className='r2-bar-sum' aria-live='polite'>
{items.length ? (
<>
<strong>
{duration} · {money(totalPrice)}
</strong>
<span>{serviceCount === 1 ? t.serviceOne : fill(t.serviceMany, { n: String(serviceCount) })}</span>
</>
) : (
<strong>{t.barEmpty}</strong>
)}
</div>
<button
type='button'
className='r2-btn r2-btn-sm'
onClick={openPanel}
aria-controls={`${uid}-panel`}
aria-expanded={open}
disabled={isDisabled}
>
{t.barAction}
</button>
</div>
<div className='r2-panel r2-card' id={`${uid}-panel`}>
<h3 className='r2-h3' ref={panelHeadRef} tabIndex={-1}>
{panelTitle}
</h3>
<div className='r2-sum' aria-live='polite'>
{items.length ? (
<>
<div className='r2-sum-top'>
<span className='r2-sum-time' key={`t${totalMinutes}`}>
<Clock size={20} strokeWidth={2.5} aria-hidden='true' />
{duration}
</span>
<span className='r2-sum-price' key={`p${totalPrice}`}>
{money(totalPrice)}
</span>
</div>
<div className='r2-sum-bar' role='img' aria-label={fill(t.summaryLabel, { time: duration })}>
{items.map((i) => (
<span key={i.kind + i.value} className='r2-seg' data-kind={i.kind} style={{ flexGrow: i.minutes }} />
))}
<span className='r2-seg-rest' style={{ flexGrow: scale - totalMinutes }} />
</div>
<ul className='r2-sum-list'>
{items.map((i) => (
<li key={i.kind + i.value}>
<span className='r2-swatch' data-kind={i.kind} aria-hidden='true' />
<span className='r2-sum-name'>{i.name}</span>
<span className='r2-sum-amt'>
{i.kind === 'addon' ? t.plus : ''}
{money(i.price)}
</span>
</li>
))}
</ul>
{end ? (
<p className='r2-sum-done'>
<CalendarCheck size={16} strokeWidth={2.5} aria-hidden='true' className='r2-inline' />
{fill(t.doneBy, { time: end })}
</p>
) : null}
</>
) : (
<p className='r2-sum-empty'>{t.emptySummary}</p>
)}
{shown.services ? (
<p className='r2-err'>
<AlertCircle size={16} strokeWidth={2.5} aria-hidden='true' className='r2-inline' />
{shown.services}
</p>
) : null}
</div>
{stylists.length ? (
<fieldset className='r2-group'>
<legend className='r2-legend'>{t.stylistTitle}</legend>
<div className='r2-who'>
{people.map((p) => {
const id = `${uid}-who-${p.value}`;
const on = stylist === p.value;
return (
<label key={p.value} htmlFor={id} className='r2-who-opt' data-on={on ? '' : undefined}>
<input
id={id}
type='radio'
name={`${uid}-who`}
className='r2-sr'
checked={on}
disabled={isDisabled}
onChange={() => pickStylist(p.value)}
/>
<span className='r2-face' aria-hidden='true'>
{p.value === ANY ? (
<Users size={24} strokeWidth={2.5} />
) : p.image ? (
<img src={p.image} alt={p.imageAlt ?? ''} width={112} height={112} loading='lazy' />
) : (
<span className='r2-initial'>{p.name.slice(0, 1)}</span>
)}
</span>
<span className='r2-who-name'>{p.name}</span>
{p.detail ? <span className='r2-who-detail'>{p.detail}</span> : null}
</label>
);
})}
</div>
</fieldset>
) : null}
<fieldset className='r2-group' aria-describedby={shown.time ? `${uid}-time-err` : undefined}>
<legend className='r2-legend'>{t.timeTitle}</legend>
{dayList.length > 1 ? (
<div className='r2-days' role='radiogroup' aria-label={t.daysLabel}>
{dayList.map((d) => {
const id = `${uid}-day-${d.value}`;
return (
<label key={d.value} htmlFor={id} className='r2-chip r2-day'>
<input
id={id}
type='radio'
name={`${uid}-day`}
className='r2-sr'
checked={currentDay.value === d.value}
disabled={isDisabled}
onChange={() => pickDay(d.value)}
/>
<span className='r2-chip-face'>{d.label}</span>
</label>
);
})}
</div>
) : null}
<div className='r2-times'>
{currentDay.times.map((s) => {
const ok = canBook(s, stylist);
const id = `${uid}-time-${currentDay.value}-${s.time}`;
return (
<label key={s.time} htmlFor={id} className='r2-chip r2-time' data-off={!ok ? '' : undefined}>
<input
id={id}
type='radio'
name={`${uid}-time`}
className='r2-sr'
checked={ok && time === s.time}
disabled={isDisabled || !ok}
data-focus={ok && s === firstOpenTime ? 'time' : undefined}
onChange={() => setTime(s.time)}
/>
<span className='r2-chip-face'>
{s.time}
{!ok ? (
<span className='r2-sr-text'>
{' '}
{s.full ? t.full : t.busy}
</span>
) : null}
</span>
</label>
);
})}
</div>
{shown.time ? (
<p className='r2-err' id={`${uid}-time-err`} role='alert'>
<AlertCircle size={16} strokeWidth={2.5} aria-hidden='true' className='r2-inline' />
{shown.time}
</p>
) : null}
</fieldset>
<div className='r2-fields'>
{field('name', t.nameLabel, t.namePlaceholder, name, setName)}
{field('phone', t.phoneLabel, t.phonePlaceholder, phone, setPhone)}
</div>
<div className='r2-action'>
{policy ? (
<p className='r2-policy'>
<ShieldCheck size={18} strokeWidth={2.5} aria-hidden='true' className='r2-inline r2-ok' />
{policy}
</p>
) : null}
<button
type='submit'
className='r2-btn'
disabled={isDisabled}
data-force={state === 'hover' || state === 'active' ? state : undefined}
>
{label}
</button>
{isDisabled ? (
<p className='r2-reassure' role='status'>
{disabledNote}
</p>
) : reassurance ? (
<p className='r2-reassure'>
<Lock size={16} strokeWidth={2.5} aria-hidden='true' className='r2-inline' />
{reassurance}
</p>
) : null}
{ps ? (
<p className='r2-ps'>
<strong>{t.psLabel}</strong> {ps}
</p>
) : null}
</div>
</div>
</form>
</section>
);
}
export default Reservation2;
function renderHighlight(text: string, phrase: string) {
const i = phrase ? text.indexOf(phrase) : -1;
if (i < 0) return text;
return (
<>
{text.slice(0, i)}
<span className='r2-mark'>{phrase}</span>
{text.slice(i + phrase.length)}
</>
);
}
function fill(s: string, vars: Record<string, string>) {
return Object.keys(vars).reduce((acc, k) => acc.split('{' + k + '}').join(vars[k]), s);
}
function formatMoney(n: number, currency: string) {
return currency + (Number.isInteger(n) ? String(n) : n.toFixed(2));
}
function formatDuration(m: number, t: Reservation2Copy) {
if (m <= 0) return '0 ' + t.minutes;
const h = Math.floor(m / 60);
const r = m % 60;
if (!h) return `${r} ${t.minutes}`;
if (!r) return `${h} ${t.hours}`;
return `${h} ${t.hours} ${r} ${t.minutes}`;
}
function addMinutes(time: string, add: number): string | null {
const m = time.trim().match(/^([0-9]{1,2}):([0-9]{2}) *([aApP][mM])?$/);
if (!m) return null;
let h = Number(m[1]) % 24;
const suffix = m[3];
if (suffix) h = (h % 12) + (suffix.toLowerCase() === 'pm' ? 12 : 0);
const total = (h * 60 + Number(m[2]) + add) % 1440;
const eh = Math.floor(total / 60);
const em = String(total % 60).padStart(2, '0');
if (suffix) {
const p = eh >= 12 ? 'pm' : 'am';
return `${eh % 12 || 12}:${em} ${suffix === suffix.toLowerCase() ? p : p.toUpperCase()}`;
}
return `${String(eh).padStart(2, '0')}:${em}`;
}
const DEFAULT_CATEGORIES: SalonCategory[] = [
{
title: 'Cut & style',
services: [
{ value: 'cut', name: 'Cut & finish', minutes: 60, price: 80, detail: 'Consult, wash, cut and blow-dry' },
{ value: 'blow-dry', name: 'Wash & blow-dry', minutes: 45, price: 50 },
],
},
{
title: 'Colour',
services: [
{ value: 'roots', name: 'Root colour', minutes: 75, price: 90 },
{ value: 'gloss', name: 'Gloss refresh', minutes: 30, price: 40 },
],
},
];
const DEFAULT_ADDONS: SalonService[] = [{ value: 'treatment', name: 'Conditioning treatment', minutes: 15, price: 20 }];
const DEFAULT_TIMES: SalonTime[] = [
{ time: '10:00 am' },
{ time: '11:30 am' },
{ time: '1:00 pm', full: true },
{ time: '2:30 pm' },
{ time: '4:00 pm' },
];
const DEFAULT_COPY: Reservation2Copy = {
addOnsTitle: 'Add a finishing touch',
stylistTitle: 'Who would you like?',
anyStylist: 'First available',
anyStylistDetail: 'Soonest chair',
daysLabel: 'Choose a day',
timeTitle: 'Pick an open time',
full: 'Fully booked',
busy: 'Booked for this stylist',
nameLabel: 'Your name',
namePlaceholder: 'Jane Smith',
phoneLabel: 'Mobile number',
phonePlaceholder: '(555) 123-4567',
emptySummary: 'Tick a service on the menu to see your time in the chair and your total.',
summaryLabel: 'Time in the chair: {time}',
doneBy: 'You’re done by {time}',
hours: 'h',
minutes: 'min',
plus: '+',
serviceOne: '1 service',
serviceMany: '{n} services',
barEmpty: 'Tick a service to start',
barAction: 'Pick a time',
buttonEmpty: 'Book my visit',
buttonTemplate: 'Book my visit · {price}',
psLabel: 'P.S.',
errorServices: 'Tick at least one service on the menu.',
errorTime: 'Pick an open time.',
errorName: 'Enter your name so we know who’s coming.',
errorPhone: 'Enter a mobile number we can text.',
};
const CSS = `
.cf-reservation-2{
--r2-gutter: clamp(16px, 5vw, 48px);
--r2-line: oklch(from var(--ink, #1b2336) l c h / .14);
--r2-quiet: color-mix(in oklch, var(--ink, #1b2336) 4%, var(--card, #ffffff));
--r2-pick: color-mix(in oklch, var(--accent, #2f5bd0) 10%, var(--card, #ffffff));
--r2-ring: oklch(from var(--field-focus, var(--accent, #2f5bd0)) l c h / .45);
--r2-fill: var(--accent-fill, var(--accent, #2f5bd0));
--r2-shadow: var(--shadow, oklch(.22 .03 256));
--r2-marker: color-mix(in oklch, var(--marker, #fae37c) 85%, transparent);
--r2-b: var(--button-bg, var(--cta, #d33a2c));
position: relative;
background: var(--surface, #ffffff);
color: var(--ink, #1b2336);
font-family: var(--font-body, system-ui, sans-serif);
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8.5vw, 120px);
overflow-x: clip;
}
.cf-reservation-2 *, .cf-reservation-2 *::before, .cf-reservation-2 *::after{ box-sizing: border-box; }
.cf-reservation-2 .r2-head{ max-width: calc(1120px + 2 * var(--r2-gutter)); margin: 0 auto; padding: 0 var(--r2-gutter); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 64px); align-items: start; }
.cf-reservation-2 .r2-title{ margin: 0; font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); letter-spacing: var(--display-tracking, -0.025em); text-transform: var(--display-case, none); font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.06; text-wrap: balance; }
.cf-reservation-2 .r2-mark{ background-image: linear-gradient(transparent 54%, var(--r2-marker) 54%, var(--r2-marker) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; }
.cf-reservation-2 .r2-lead{ margin: 0; padding-top: clamp(0px, .6vw, 8px); font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.4; font-weight: 500; color: var(--muted, #4a5468); text-wrap: pretty; max-width: 46ch; }
.cf-reservation-2 .r2-photo{ margin-top: clamp(32px, 4vw, 56px); }
.cf-reservation-2 .r2-photo img{ display: block; width: 100%; height: clamp(260px, 36vw, 540px); object-fit: cover; object-position: center 45%; }
.cf-reservation-2 .r2-stage{ position: relative; max-width: calc(1120px + 2 * var(--r2-gutter)); margin: clamp(32px, 4vw, 48px) auto 0; padding: 0 var(--r2-gutter); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.cf-reservation-2[data-photo] .r2-stage{ margin-top: calc(-1 * clamp(56px, 11vw, 176px)); }
.cf-reservation-2 .r2-card{ background: var(--card, #ffffff); color: var(--ink, #1b2336); border: 1px solid var(--card-border, oklch(from var(--ink, #1b2336) l c h / .12)); border-radius: var(--card-radius, var(--radius, 14px)); padding: clamp(22px, 3vw, 36px); min-width: 0; animation: r2-rise .45s cubic-bezier(.2,.7,.2,1) both; }
.cf-reservation-2 .r2-menu{ box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--r2-shadow) l c h / .22), 0 12px 24px -8px oklch(from var(--r2-shadow) l c h / .32))); }
.cf-reservation-2 .r2-panel{ box-shadow: var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(from var(--r2-shadow) l c h / .22), 0 4px 10px -2px oklch(from var(--r2-shadow) l c h / .2))); animation-delay: .07s; scroll-margin-top: 16px; }
.cf-reservation-2 .r2-h3{ margin: 0; font-family: var(--font-display, inherit); font-weight: var(--display-weight, 800); letter-spacing: -0.01em; text-transform: var(--display-case, none); font-size: clamp(1.3125rem, 1.8vw, 1.625rem); line-height: 1.15; text-wrap: balance; outline: none; }
.cf-reservation-2 .r2-note{ margin: 8px 0 0; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--muted, #4a5468); text-wrap: pretty; }
.cf-reservation-2 .r2-cat{ border: 0; margin: 28px 0 0; padding: 0; min-width: 0; }
.cf-reservation-2 .r2-cat-title{ display: block; width: 100%; padding: 0; margin: 0 0 8px; }
.cf-reservation-2 .r2-cat-line{ display: flex; align-items: center; gap: 12px; font-family: var(--font-display, inherit); font-size: 14px; font-weight: 800; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #4a5468); }
.cf-reservation-2 .r2-cat-line::after{ content: ''; flex: 1; height: 1px; background: var(--r2-line); }
.cf-reservation-2 .r2-row{ position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start; margin: 0 -14px; padding: 14px; border-radius: 12px; cursor: pointer; transition: background-color .16s ease; }
.cf-reservation-2 .r2-row + .r2-row{ margin-top: 2px; }
.cf-reservation-2 .r2-row:hover{ background: var(--r2-quiet); }
.cf-reservation-2 .r2-row[data-on]{ background: var(--r2-pick); }
.cf-reservation-2 .r2-row:has(.r2-sr:focus-visible){ outline: 3px solid var(--r2-ring); outline-offset: 1px; }
.cf-reservation-2 .r2-sr{ position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.cf-reservation-2 .r2-sr-text{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cf-reservation-2 .r2-tick{ width: 26px; height: 26px; margin-top: 1px; display: grid; place-items: center; border-radius: 8px; border: 2px solid oklch(from var(--ink, #1b2336) l c h / .32); background: var(--field, #ffffff); color: transparent; transition: background-color .16s ease, border-color .16s ease; }
.cf-reservation-2 .r2-row:hover .r2-tick{ border-color: oklch(from var(--ink, #1b2336) l c h / .55); }
.cf-reservation-2 .r2-row[data-on] .r2-tick{ background: var(--r2-fill); border-color: var(--r2-fill); color: var(--accent-fill-ink, var(--card, #ffffff)); animation: r2-pop .3s cubic-bezier(.2,.7,.2,1) both; }
.cf-reservation-2 .r2-row-line{ display: flex; align-items: last baseline; }
.cf-reservation-2 .r2-row-name{ flex: 0 1 auto; min-width: 0; font-family: var(--font-display, inherit); font-weight: 800; font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.25; letter-spacing: -0.01em; text-wrap: pretty; }
.cf-reservation-2 .r2-leader{ flex: 1 1 24px; min-width: 20px; align-self: flex-end; height: 4px; margin: 0 10px .38em; background: radial-gradient(circle, oklch(from var(--ink, #1b2336) l c h / .4) 1.2px, transparent 1.6px) left center / 8px 4px repeat-x; }
.cf-reservation-2 .r2-row-price{ flex: none; font-family: var(--font-display, inherit); font-weight: 800; font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.25; font-variant-numeric: tabular-nums; }
.cf-reservation-2 .r2-row[data-kind='addon'] .r2-row-name, .cf-reservation-2 .r2-row[data-kind='addon'] .r2-row-price{ font-family: var(--font-body, inherit); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.cf-reservation-2 .r2-row-meta{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--muted, #4a5468); }
.cf-reservation-2 .r2-row[data-on] .r2-row-meta{ color: var(--ink, #1b2336); }
.cf-reservation-2 .r2-dur{ display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink, #1b2336); }
.cf-reservation-2 .r2-dur svg{ color: var(--accent, #2f5bd0); flex: none; }
.cf-reservation-2 .r2-flag{ display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: 999px; background: var(--r2-fill); color: var(--accent-fill-ink, #ffffff); font-size: 14px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.cf-reservation-2 .r2-err{ margin: 8px 0 0; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--danger, #b3261e); text-wrap: pretty; }
.cf-reservation-2 .r2-err-box{ margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: var(--danger-soft, #fbe9e7); }
.cf-reservation-2 .r2-inline{ display: inline-block; vertical-align: -0.18em; margin-inline-end: .4em; flex: none; }
.cf-reservation-2 .r2-sum{ margin-top: 16px; padding: 16px 18px; border-radius: 12px; background: var(--r2-quiet); }
.cf-reservation-2 .r2-sum-top{ display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.cf-reservation-2 .r2-sum-time{ display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display, inherit); font-weight: 800; font-size: clamp(1.3125rem, 1.8vw, 1.5rem); line-height: 1.15; font-variant-numeric: tabular-nums; animation: r2-pop .3s cubic-bezier(.2,.7,.2,1) both; }
.cf-reservation-2 .r2-sum-time svg{ color: var(--accent, #2f5bd0); flex: none; }
.cf-reservation-2 .r2-sum-price{ display: inline-block; font-family: var(--font-display, inherit); font-weight: 800; font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; animation: r2-pop .3s cubic-bezier(.2,.7,.2,1) both; }
.cf-reservation-2 .r2-sum-bar{ display: flex; gap: 3px; height: 10px; margin-top: 14px; border-radius: 999px; overflow: hidden; background: oklch(from var(--ink, #1b2336) l c h / .08); }
.cf-reservation-2 .r2-seg{ flex: 0 1 0; min-width: 8px; background: var(--r2-fill); transition: flex-grow .35s cubic-bezier(.2,.7,.2,1); }
.cf-reservation-2 .r2-seg-rest{ flex: 0 1 0; transition: flex-grow .35s cubic-bezier(.2,.7,.2,1); }
.cf-reservation-2 .r2-seg[data-kind='addon'], .cf-reservation-2 .r2-swatch[data-kind='addon']{ background: color-mix(in oklch, var(--r2-fill) 45%, var(--card, #ffffff)); }
.cf-reservation-2 .r2-sum-list{ list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; line-height: 1.4; font-weight: 600; }
.cf-reservation-2 .r2-sum-list li{ display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.cf-reservation-2 .r2-swatch{ width: 10px; height: 10px; border-radius: 999px; background: var(--r2-fill); align-self: center; }
.cf-reservation-2 .r2-sum-amt{ font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.cf-reservation-2 .r2-sum-done{ margin: 12px 0 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
.cf-reservation-2 .r2-sum-done svg{ color: var(--success, #2d7a46); }
.cf-reservation-2 .r2-sum-empty{ margin: 0; font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--muted, #4a5468); text-wrap: pretty; }
.cf-reservation-2 .r2-group{ border: 0; margin: 24px 0 0; padding: 0; min-width: 0; }
.cf-reservation-2 .r2-legend{ padding: 0; margin: 0 0 12px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--label-ink, var(--ink, #1b2336)); }
.cf-reservation-2 .r2-who{ display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.cf-reservation-2 .r2-who-opt{ position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 8px; border-radius: 12px; border: 1px solid transparent; background: var(--r2-quiet); text-align: center; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.cf-reservation-2 .r2-who-opt:hover{ border-color: oklch(from var(--ink, #1b2336) l c h / .28); }
.cf-reservation-2 .r2-who-opt[data-on]{ background: var(--r2-pick); border-color: var(--accent, #2f5bd0); box-shadow: var(--shadow-sm, 0 1px 1px oklch(from var(--r2-shadow) l c h / .18), 0 1px 3px oklch(from var(--r2-shadow) l c h / .14)); }
.cf-reservation-2 .r2-who-opt:has(.r2-sr:focus-visible){ outline: 3px solid var(--r2-ring); outline-offset: 2px; }
.cf-reservation-2 .r2-face{ width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; overflow: hidden; background: var(--secondary, #e8ebf2); color: var(--secondary-ink, #1b2336); }
.cf-reservation-2 .r2-who-opt[data-on] .r2-face{ outline: 3px solid var(--accent, #2f5bd0); outline-offset: 2px; }
.cf-reservation-2 .r2-face img{ display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.cf-reservation-2 .r2-initial{ font-family: var(--font-display, inherit); font-weight: 800; font-size: 22px; line-height: 1; }
.cf-reservation-2 .r2-who-name{ font-size: 15px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.cf-reservation-2 .r2-who-detail{ font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--muted, #4a5468); text-wrap: balance; }
.cf-reservation-2 .r2-who-opt[data-on] .r2-who-detail{ color: var(--ink, #1b2336); }
.cf-reservation-2 .r2-days{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cf-reservation-2 .r2-times{ display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cf-reservation-2 .r2-chip{ position: relative; display: block; cursor: pointer; }
.cf-reservation-2 .r2-chip-face{ display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--r2-line); background: var(--r2-quiet); color: var(--ink, #1b2336); font-size: 15px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color .16s ease, border-color .16s ease; }
.cf-reservation-2 .r2-day .r2-chip-face{ border-radius: 999px; padding: 0 16px; }
.cf-reservation-2 .r2-chip:hover .r2-chip-face{ border-color: oklch(from var(--ink, #1b2336) l c h / .3); }
.cf-reservation-2 .r2-chip .r2-sr:checked + .r2-chip-face{ background: var(--r2-pick); border-color: var(--accent, #2f5bd0); box-shadow: inset 0 0 0 1px var(--accent, #2f5bd0); }
.cf-reservation-2 .r2-chip .r2-sr:focus-visible + .r2-chip-face{ outline: 3px solid var(--r2-ring); outline-offset: 2px; }
.cf-reservation-2 .r2-chip[data-off]{ cursor: not-allowed; }
.cf-reservation-2 .r2-chip[data-off] .r2-chip-face{ background: transparent; color: var(--muted, #4a5468); border-color: oklch(from var(--ink, #1b2336) l c h / .08); text-decoration: line-through; text-decoration-color: oklch(from var(--muted, #4a5468) l c h / .7); }
.cf-reservation-2[data-disabled] .r2-row, .cf-reservation-2[data-disabled] .r2-chip, .cf-reservation-2[data-disabled] .r2-who-opt{ cursor: not-allowed; }
.cf-reservation-2[data-disabled] .r2-row:hover, .cf-reservation-2[data-disabled] .r2-who-opt:hover{ background: var(--r2-quiet); border-color: transparent; }
.cf-reservation-2[data-disabled] .r2-row:not([data-on]):hover{ background: transparent; }
.cf-reservation-2 .r2-fields{ display: grid; gap: 16px; margin-top: 24px; }
.cf-reservation-2 .r2-label{ display: block; margin-bottom: 8px; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--label-ink, var(--ink, #1b2336)); }
.cf-reservation-2 .r2-input{ display: block; width: 100%; min-height: 56px; padding: 0 16px; font-family: var(--font-body, inherit); font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--field-ink, #1b2336); background: var(--field, #ffffff); border: 1px solid var(--field-border, color-mix(in oklch, var(--ink, #1b2336) 22%, transparent)); border-radius: var(--field-radius, var(--radius, 12px)); transition: border-color .16s ease, box-shadow .16s ease; }
.cf-reservation-2 .r2-input::placeholder{ color: color-mix(in oklch, var(--field-ink, #1b2336) 65%, var(--field, #ffffff)); opacity: 1; }
.cf-reservation-2 .r2-input:hover:not(:disabled){ border-color: color-mix(in oklch, var(--ink, #1b2336) 38%, transparent); }
.cf-reservation-2 .r2-input:focus{ outline: none; border-color: var(--field-focus, var(--accent, #2f5bd0)); box-shadow: 0 0 0 3px oklch(from var(--field-focus, var(--accent, #2f5bd0)) l c h / .35); }
.cf-reservation-2 .r2-input[aria-invalid='true']{ border-color: var(--danger, #b3261e); }
.cf-reservation-2 .r2-input[aria-invalid='true']:focus{ box-shadow: 0 0 0 3px oklch(from var(--danger, #b3261e) l c h / .3); }
.cf-reservation-2 .r2-input:disabled{ cursor: not-allowed; background: color-mix(in oklch, var(--field-ink, #1b2336) 5%, var(--field, #ffffff)); }
.cf-reservation-2 .r2-action{ margin-top: 24px; }
.cf-reservation-2 .r2-policy{ margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: var(--r2-quiet); font-size: 15px; font-weight: 700; line-height: 1.4; text-wrap: pretty; }
.cf-reservation-2 .r2-ok{ color: var(--success, #2d7a46); }
.cf-reservation-2 .r2-btn{ appearance: none; border: 0; width: 100%; min-height: 64px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--button-radius, var(--radius, 12px)); font-family: var(--button-font, var(--font-display, inherit)); font-weight: var(--button-weight, 800); text-transform: var(--button-case, none); font-size: clamp(1.125rem, 1.55vw, 1.25rem); line-height: 1.15; text-align: center; text-wrap: balance; color: var(--button-ink, var(--cta-ink, #ffffff)); text-shadow: var(--button-text-shadow, none); background: linear-gradient(oklch(from var(--r2-b) calc(l + .04) c h), oklch(from var(--button-bg-2, var(--cta-2, #b02a1f)) calc(l - .02) c h)); box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--r2-b) calc(l + .14) c h / .7), inset 0 -3px 0 oklch(from var(--r2-b) calc(l - .16) c h), 0 1px 2px oklch(from var(--r2-shadow) l c h / .3), 0 8px 16px -6px oklch(from var(--r2-shadow) l c h / .4)); cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.cf-reservation-2 .r2-btn:hover:not(:disabled), .cf-reservation-2 .r2-btn[data-force='hover']{ background: linear-gradient(oklch(from var(--r2-b) calc(l - .01) c h), oklch(from var(--button-bg-2, var(--cta-2, #b02a1f)) calc(l - .07) c h)); box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--r2-b) calc(l + .1) c h / .7), inset 0 -3px 0 oklch(from var(--r2-b) calc(l - .2) c h), 0 1px 2px oklch(from var(--r2-shadow) l c h / .34), 0 10px 20px -6px oklch(from var(--r2-shadow) l c h / .48)); }
.cf-reservation-2 .r2-btn:active:not(:disabled), .cf-reservation-2 .r2-btn[data-force='active']{ transform: translateY(1px); box-shadow: inset 0 2px 4px oklch(from var(--r2-b) calc(l - .22) c h / .55), inset 0 -2px 0 oklch(from var(--r2-b) calc(l - .16) c h), 0 1px 2px oklch(from var(--r2-shadow) l c h / .3); }
.cf-reservation-2 .r2-btn:focus-visible{ outline: 3px solid var(--r2-ring); outline-offset: 3px; }
.cf-reservation-2 .r2-btn:disabled{ cursor: not-allowed; background: var(--button-2-bg, var(--secondary, #e8ebf2)); color: var(--button-2-ink, var(--secondary-ink, #1b2336)); text-shadow: none; box-shadow: var(--button-2-shadow, var(--shadow-sm, 0 1px 1px oklch(from var(--r2-shadow) l c h / .18), 0 1px 3px oklch(from var(--r2-shadow) l c h / .14))); }
.cf-reservation-2 .r2-reassure{ margin: 12px 0 0; text-align: center; font-size: 15px; line-height: 1.4; font-weight: 500; color: var(--muted, #4a5468); text-wrap: pretty; }
.cf-reservation-2 .r2-ps{ margin: 20px 0 0; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.cf-reservation-2 .r2-ps strong{ font-family: var(--font-display, inherit); font-weight: 800; }
.cf-reservation-2 .r2-bar{ display: none; }
.cf-reservation-2 .r2-bar-sum{ display: grid; gap: 2px; min-width: 0; }
.cf-reservation-2 .r2-bar-sum strong{ font-family: var(--font-display, inherit); font-size: 17px; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; }
.cf-reservation-2 .r2-bar-sum span{ font-size: 14px; font-weight: 600; line-height: 1.3; }
.cf-reservation-2 .r2-btn.r2-btn-sm{ width: auto; flex: none; min-height: 48px; padding: 0 20px; font-size: 17px; white-space: nowrap; }
@media (max-width: 899px){
.cf-reservation-2 .r2-head, .cf-reservation-2 .r2-stage{ grid-template-columns: minmax(0, 1fr); }
.cf-reservation-2 .r2-stage{ gap: 16px; }
.cf-reservation-2 .r2-bar{ display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; bottom: 12px; z-index: 2; padding: 12px 12px 12px 18px; border-radius: var(--radius, 12px); background: var(--band, #1d2a4a); color: var(--band-ink, #ffffff); box-shadow: var(--shadow-lg, 0 2px 4px oklch(from var(--r2-shadow) l c h / .22), 0 12px 24px -8px oklch(from var(--r2-shadow) l c h / .32)); }
.cf-reservation-2[data-open] .r2-bar{ display: none; }
.cf-reservation-2:not([data-open]) .r2-panel{ display: none; }
}
@keyframes r2-rise{ from{ opacity: .82; transform: translateY(8px); } to{ opacity: 1; transform: none; } }
@keyframes r2-pop{ from{ transform: scale(.9); } to{ transform: scale(1); } }
@media (prefers-reduced-motion: reduce){
.cf-reservation-2 *, .cf-reservation-2 *::before, .cf-reservation-2 *::after{ animation: none !important; transition: none !important; }
.cf-reservation-2 .r2-btn:active:not(:disabled), .cf-reservation-2 .r2-btn[data-force='active']{ transform: none; }
}
`;
pieces/forms/reservation-2/specimen.tsx 107 lines
import __studioImage34bcbc3b from "../assets/5b79c690da46fbec.webp";
import __studioImage10331549 from "../assets/045499df56ee515d.webp";
import __studioImage9f4c0b3f from "../assets/659062b0c0df2f6c.webp";
import * as React from 'react';
import { Reservation2 } from '../reservation-2';
import type { Reservation2Props } from '../reservation-2';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled', 'error'];
export default function Reservation2Specimen({ state = 'default' }: { state?: Reservation2Props['state'] }) {
return (
<Reservation2
state={state}
headline='Build your visit and see the total before you sit down'
highlight='before you sit down'
lead='Tick what you want from the Juniper & Ash menu, choose your stylist and an open time. Your time in the chair and your price add up as you go.'
chairImage={slot('scene', __studioImage34bcbc3b)}
chairAlt='An empty leather styling chair facing a round mirror at Juniper & Ash'
menuTitle='Tick everything you want done'
menuNote='Every service starts with a quick consult at the chair.'
categories={[
{
title: 'Cut & style',
services: [
{ value: 'signature-cut', name: 'Signature cut & finish', minutes: 60, price: 85, detail: 'Consult, wash, cut and blow-dry', flag: 'Most booked' },
{ value: 'restyle', name: 'Big change restyle', minutes: 90, price: 120, detail: 'A new shape, planned with you first' },
{ value: 'blow-dry', name: 'Wash & blow-dry', minutes: 45, price: 55, detail: 'Smooth, bouncy or undone' },
],
},
{
title: 'Colour',
services: [
{ value: 'roots', name: 'Root touch-up', minutes: 75, price: 95, detail: 'Covers up to six weeks of regrowth' },
{ value: 'balayage', name: 'Hand-painted balayage', minutes: 180, price: 245, detail: 'Painted, toned and glossed' },
{ value: 'gloss', name: 'Gloss refresh', minutes: 30, price: 45, detail: 'Brings back shine and tone' },
],
},
]}
addOns={[
{ value: 'bond', name: 'Bond-repair treatment', minutes: 20, price: 30 },
{ value: 'scalp', name: 'Scalp massage', minutes: 15, price: 20 },
{ value: 'fringe', name: 'Fringe trim', minutes: 10, price: 15 },
]}
stylists={[
{
value: 'mara',
name: 'Mara',
detail: 'Colour lead',
image: slot('presenter', __studioImage10331549),
imageAlt: 'Mara, colour lead',
},
{
value: 'theo',
name: 'Theo',
detail: 'Cut specialist',
image: __studioImage9f4c0b3f,
imageAlt: 'Theo, cut specialist',
},
]}
days={[
{
value: 'thu',
label: 'Thu 27',
times: [
{ time: '9:30 am' },
{ time: '10:45 am', booked: ['mara'] },
{ time: '12:00 pm', full: true },
{ time: '1:15 pm' },
{ time: '2:30 pm', booked: ['theo'] },
{ time: '4:00 pm', booked: ['mara', 'theo'] },
],
},
{
value: 'fri',
label: 'Fri 28',
times: [
{ time: '9:00 am', full: true },
{ time: '10:15 am' },
{ time: '11:30 am', booked: ['theo'] },
{ time: '1:00 pm' },
{ time: '3:15 pm' },
{ time: '5:00 pm', booked: ['mara'] },
],
},
{
value: 'sat',
label: 'Sat 29',
times: [
{ time: '9:00 am' },
{ time: '10:30 am', full: true },
{ time: '12:00 pm', full: true },
{ time: '1:30 pm', booked: ['mara'] },
{ time: '3:00 pm' },
],
},
]}
defaultServices={['signature-cut']}
defaultAddOns={['bond']}
defaultTime={state === 'error' ? '' : '9:30 am'}
panelTitle='Lock in your chair'
policy='Change or cancel free up to 24 hours before your visit.'
reassurance='No card needed to hold your chair.'
ps='Not sure which colour is right? Book the Signature cut and Mara will plan your colour with you at the chair.'
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalReservation2 |
string |
|
highlight OptionalReservation2 |
string |
|
lead OptionalReservation2 |
string |
|
chairImage OptionalReservation2 |
string |
|
chairAlt OptionalReservation2 |
string |
|
menuTitle OptionalReservation2 |
string |
|
menuNote OptionalReservation2 |
string |
|
categories OptionalReservation2 |
SalonCategory[] |
|
addOns OptionalReservation2 |
SalonService[] |
|
stylists OptionalReservation2 |
SalonStylist[] |
|
days OptionalReservation2 |
SalonDay[] |
|
times OptionalReservation2 |
SalonTime[] |
|
currency OptionalReservation2 |
string |
|
defaultServices OptionalReservation2 |
string[] |
|
defaultAddOns OptionalReservation2 |
string[] |
|
defaultStylist OptionalReservation2 |
string |
|
defaultDay OptionalReservation2 |
string |
|
defaultTime OptionalReservation2 |
string |
|
barScale OptionalReservation2 |
number |
|
panelTitle OptionalReservation2 |
string |
|
policy OptionalReservation2 |
string |
|
ps OptionalReservation2 |
string |
|
reassurance OptionalReservation2 |
string |
|
disabled OptionalReservation2 |
boolean |
|
disabledNote OptionalReservation2 |
string |
|
copy OptionalReservation2 |
Partial<Reservation2Copy> |
|
state OptionalReservation2 |
'default' | 'hover' | 'active' | 'disabled' | 'error' |
|
onSubmit OptionalReservation2 |
(values: Reservation2Values) => void |
|
className OptionalReservation2 |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink--field-radius- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter- A photo of the host, coach or founder.
scene- A wide atmosphere photo behind or beside the copy.
-
045499df56ee515d.webp
image/webp · 101 KB
-
5b79c690da46fbec.webp
image/webp · 94.1 KB
-
659062b0c0df2f6c.webp
image/webp · 156 KB