/* 客人預約頁（沿用 admin.css 的元件） */
body.public { padding-bottom: 2rem; }
.container.narrow { max-width: 640px; }
.public .topbar .brand { margin: 0 auto; }
.step {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .85rem; margin-right: .4rem; vertical-align: 1px;
}
.btn-lg { min-height: 52px; font-size: 1.05rem; margin-top: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice summary { cursor: pointer; color: var(--accent); margin-top: .8rem; font-size: .9rem; }
.notice p { white-space: pre-line; font-size: .88rem; color: var(--muted); margin: .4rem 0 0; }
.summary { margin: 0 0 .6rem; }
.big { font-size: 1.25rem; font-weight: 700; margin: .3rem 0; }
.success { background: var(--ok-soft); }
.success h1 { color: var(--ok); }

/* 日期橫向捲動 */
.days { display: flex; gap: .45rem; overflow-x: auto; padding: .2rem .1rem .6rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.day { margin: 0; flex: 0 0 auto; scroll-snap-align: start; position: relative; }
.day input { position: absolute; opacity: 0; pointer-events: none; }
.day span {
  display: flex; flex-direction: column; align-items: center; width: 56px; padding: .35rem 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; line-height: 1.2;
}
.day b { font-size: 1.2rem; }
.day small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.day input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.day input:checked + span small { color: #fff; }
.day.off span { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* 時段 */
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .45rem; }
.time { margin: 0; position: relative; }
.time input { position: absolute; opacity: 0; pointer-events: none; }
.time span { display: block; text-align: center; padding: .6rem 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; }
.time input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.time.shared span { border-style: dashed; }
.time span small { display: block; font-size: .68rem; font-weight: 500; color: var(--warn); }
.time input:checked + span small { color: #fff; }
.overlap-notice { margin-top: .6rem; }
.time input:focus-visible + span, .day input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 月曆（週日開頭，類似 iPhone 行事曆） */
.cal-bar { display: flex; align-items: center; justify-content: space-between; margin: .4rem 0 .6rem; }
.cal-bar strong { font-size: 1.1rem; }
.cal-nav-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.cal-nav-btn:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: .2rem; text-align: center; }
.cal-wd { font-size: .78rem; color: var(--muted); padding-bottom: .3rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.cday { margin: 0; position: relative; display: flex; justify-content: center; }
.cday input { position: absolute; opacity: 0; pointer-events: none; }
.cday span {
  width: 44px; height: 48px; border-radius: 22px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; cursor: pointer; line-height: 1;
}
.cday b { font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cday i { width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; background: transparent; }
.cday.open i { background: var(--accent); }
.cday.off span { cursor: not-allowed; }
.cday.off b { color: #c4bcb4; font-weight: 400; }
.cday.today b { color: var(--err); }
.cday input:checked + span { background: var(--accent); }
.cday input:checked + span b { color: #fff; }
.cday input:checked + span i { background: #fff; }
.cday input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-add { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .3rem; }
.cal-add .btn { margin-bottom: 0; }
.card.cal-add { border: 2px solid var(--accent); margin-top: 0; padding-top: 1rem; }
.card.cal-add h2 { margin-top: 0; }

.more-services { margin-top: .8rem; }
.more-services summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: .4rem 0; }

.who { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem .9rem;
  background: var(--accent-soft); border-radius: 10px; margin: .4rem 0 .6rem; flex-wrap: wrap; }
