/* 在线预约 — three steps and a confirmation.
   The summary is a sticky column on desktop and a collapsible strip on phone,
   so the running total never scrolls away from the person choosing. */

.bk{width:100%;min-height:100vh;background:var(--ivory);color:var(--ink);
	container-type:inline-size;container-name:bk;
	/* Inline sizes in the generated markup read these, so one breakpoint
	   governs them the same way it governs the classes. */
	--fs-label:13px;
	--fs-chip:14px}
.bwrap{max-width:1180px;margin:0 auto;padding:0 48px}
.blayout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:var(--s-32);align-items:start}
.sumd{display:block}
.summ{display:none}
.bchips{display:flex;flex-wrap:wrap;gap:var(--s-8)}
.bitems{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--s-32)}
.bslots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.bform{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-16)}
.bhead{height:68px;display:flex;align-items:center;justify-content:space-between;gap:var(--s-16)}

@container bk (max-width:1023px){
	.bitems{grid-template-columns:1fr}
	.bslots{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@container bk (max-width:899px){
	.blayout{grid-template-columns:1fr;gap:var(--s-16)}
	.sumd{display:none}
	.summ{display:block}
	.bform{grid-template-columns:1fr}
}
@container bk (max-width:599px){
	.bwrap{padding:0 var(--s-20)}
	.bhide{display:none}
	.bchips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}
	.bslots{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Step bar: a tick replaces the number once a step is behind you. */
.stepb{width:auto;height:44px;padding:0 18px 0 8px;border-radius:var(--r-pill);display:flex;
	align-items:center;gap:10px;font-size:15px;font-weight:500;
	background:var(--white);color:var(--mocha);border:1px solid var(--hairline)}
.stepb__n{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;
	justify-content:center;font-size:15px;background:var(--beige);color:var(--ink)}
.stepb.is-done{color:var(--ink);cursor:pointer}
.stepb.is-done .stepb__n{background:var(--sand)}
.stepb[aria-current="step"]{background:var(--ink);color:var(--white);border-color:var(--ink);cursor:pointer}
.stepb[aria-current="step"] .stepb__n{background:var(--white)}

/* A treatment row is a checkbox and a whole-row tap target. */
.brow{border-bottom:1px solid var(--hairline)}
.brow__btn{padding:var(--s-16) 0;display:flex;gap:14px;align-items:flex-start}
.box{flex:none;width:24px;height:24px;border-radius:7px;margin-top:2px;display:flex;
	align-items:center;justify-content:center;background:var(--white);border:1.5px solid var(--edge)}
.brow__btn[aria-pressed="true"] .box{background:var(--ink);border-color:var(--ink)}
.tier{width:auto;padding:8px 14px;border-radius:16px;display:flex;flex-direction:column;gap:2px;
	background:var(--white);border:1px solid var(--hairline)}
.tier[aria-pressed="true"]{border-width:2px;border-color:var(--ink)}

/* Calendar. Sage and apricot dots only, always beside a word in the key.
   已满 is a faded box with a fine diagonal; 店休 and past days have no box. */
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.cal__dow{font-size:15px;color:var(--mocha);padding:4px 0}
.day{width:100%;min-height:64px;border-radius:16px;display:flex;flex-direction:column;
	align-items:center;justify-content:center;gap:3px;text-align:center;
	background:var(--white);border:1px solid var(--hairline)}
.day__n{font-size:16px;font-weight:500}
.day__dot{width:8px;height:8px;border-radius:50%;background:transparent}
.day.is-on{background:var(--ink);color:var(--white);border-color:var(--ink)}
.day.is-earliest{border-width:2px;border-color:var(--ink)}
.day.is-full{opacity:0.45;cursor:default;
	background-image:linear-gradient(to top right,transparent calc(50% - 0.75px),var(--edge) calc(50% - 0.75px),var(--edge) calc(50% + 0.75px),transparent calc(50% + 0.75px))}
.day.is-off{opacity:0.35;cursor:default;background:transparent;border-color:transparent}
.swatch{width:30px;height:26px;border-radius:8px;display:flex;align-items:center;
	justify-content:center;font-size:15px}

.slot{width:100%;min-height:48px;border-radius:var(--r-pill);display:flex;align-items:center;
	justify-content:center;gap:6px;font-size:16px;font-weight:500;text-align:center;
	background:var(--white);color:var(--ink);border:1px solid var(--hairline)}
.slot.is-on{background:var(--ink);color:var(--white);border-color:var(--ink)}
.slot.is-full{background:var(--beige);color:var(--mocha);border-color:var(--beige);
	text-decoration:line-through;cursor:default}
.slot__tag{font-size:15px;font-weight:500;border-radius:var(--r-pill);padding:0 8px;
	background:var(--ink);color:var(--white)}
.slot.is-on .slot__tag{background:var(--white);color:var(--ink)}

.who-tab{width:auto;height:48px;padding:0 18px;font-size:16px;font-weight:500;
	color:var(--mocha);border-bottom:3px solid transparent;border-radius:0}
.who-tab[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--ink)}
.mode{width:auto;min-height:44px;padding:8px 18px;border-radius:var(--r-panel);font-size:15px;
	font-weight:500;background:var(--white);color:var(--ink);border:1px solid var(--hairline);
	display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.mode[aria-pressed="true"]{background:var(--ink);color:var(--white);border-color:var(--ink)}
.mode span{font-size:15px;font-weight:400;color:var(--mocha)}
.mode[aria-pressed="true"] span{color:var(--sand)}

/* Booking type scale, desktop. Phone sizes live in the breakpoint below. */
.bk-wm{font-size:19px}
.bk-h1{font-size:32px}
.bk-h2{font-size:26px}
.bk-h3{font-size:20px;font-weight:500}
.b-name{font-size:16px;font-weight:500;line-height:1.45}
.b-head{font-size:15px;font-weight:500}
.b-line{font-size:16px;line-height:1.5}
.b-sub{font-size:17px;font-weight:500}

/* Phone: one step down, measured against missamara.com.au at 375.
   Labels hold at 15px and targets at 44–48px — the guidelines' floors. */
@container bk (max-width:599px){
	.bk-h1{font-size:26px}
	.bk-h2{font-size:22px}
	.bk-h3{font-size:18px}
	.b-name{font-size:16px}
	.b-head{font-size:14px}
	.b-line{font-size:16px}
	.b-sub{font-size:16px}
	.stepb{font-size:14px;padding:0 14px 0 6px}
	.slot{font-size:16px}
	.day__n{font-size:16px}
	.who-tab{font-size:15px}
	.mode{font-size:14px}
	.bk-wm{font-size:16px}
	.bk{--fs-label:12px;--fs-chip:14px}
}
