/* 客人端專屬樣式（會員專區 customer/portal.html＋線上預約 customer/booking.html）
   其餘全沿用 css/admin.css / schedule.css / style.css 既有元件；此檔只放客人端獨有的微調。
   由 preview/customer-portal.html、preview/customer-booking.html 的 <style> 搬正式化（去除預覽橫幅/切換器/說明）。 */

/* ══════════ 會員專區（portal） ══════════ */

/* 線上預約主 CTA：從側欄移到內容區頂部，永遠可見 */
.cust-book-cta { display: flex; align-items: center; gap: 14px; text-decoration: none; background: linear-gradient(120deg, var(--primary-purple), #7c6aa8); color: #fff; border-radius: 14px; padding: 15px 20px; margin-bottom: 20px; box-shadow: 0 8px 22px rgba(106,90,138,.22); }
.cust-book-cta .cbc-ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex: none; }
.cust-book-cta .cbc-txt { display: flex; flex-direction: column; line-height: 1.35; }
.cust-book-cta .cbc-txt b { font-size: 1.02rem; }
.cust-book-cta .cbc-txt span { font-size: .8rem; opacity: .9; }
.cust-book-cta .cbc-arrow { margin-left: auto; font-size: .95rem; opacity: .85; }

/* 票券卡「用這張票預約」小鈕 */
.btn-book-ticket { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-gold); color: #fff; border: none; border-radius: 999px; padding: 6px 13px; font-size: .8rem; font-weight: 700; font-family: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-book-ticket:hover { filter: brightness(1.06); }

/* 待確認申請「取消申請」小鈕 */
.btn-cancel-req { background: none; border: 1px solid #e0c4bd; color: #b5695c; border-radius: 999px; padding: 5px 12px; font-size: .78rem; font-family: inherit; cursor: pointer; white-space: nowrap; }
.btn-cancel-req:hover { background: #fbf1ef; }

/* 下一次預約：加入手機行事曆 */
.btn-add-cal { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #cdbfe6; color: var(--dark-purple); border-radius: 999px; padding: 8px 15px; font-size: .82rem; font-weight: 700; font-family: inherit; cursor: pointer; }
.btn-add-cal:hover { background: #f3eefb; }
@media (max-width: 560px) { .btn-add-cal { margin-left: 0; width: 100%; justify-content: center; margin-top: 4px; } }

/* 含小鈕的 mc-foot：手機不擠成一行 */
.mc-foot.has-act { flex-wrap: wrap; gap: 8px; }

.nav-badge { margin-left: auto; background: #f7edd6; color: #9c7522; font-size: .68rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.cust-nav-foot { margin-top: auto; padding: 12px 10px 6px; border-top: 1px solid #f1eadc; display: flex; flex-direction: column; gap: 8px; }
.btn-line-block { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #06c755; color: #fff; border: none; border-radius: 999px; padding: 10px 14px; font-size: .88rem; font-family: inherit; cursor: pointer; text-decoration: none; }
.cust-back-site { text-align: center; font-size: .78rem; color: #9c9483; text-decoration: none; }
.bind-sent-ico { width: 72px; height: 72px; border-radius: 50%; background: #f7edd6; color: #9c7522; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin: 0 auto 16px; }

/* ══════════ 線上預約（booking） ══════════ */

body.cust-booking { background: var(--bg-cream); }

.cb-wrap { max-width: 470px; margin: 0 auto; padding: 0 16px 80px; }
.cb-top { display: flex; align-items: center; gap: 12px; padding: 16px 2px 10px; }
.cb-back { color: #8a8273; font-size: 1.1rem; text-decoration: none; }
.cb-top h1 { font-size: 1.15rem; color: var(--dark-purple); margin: 0; }
.cb-top .h-sub { font-size: .78rem; color: #9c9483; }

.cb-card { background: #fff; border: 1px solid #ece6da; border-radius: 18px; padding: 18px 18px; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(106, 90, 138, .05); }
.cb-step { font-size: .74rem; letter-spacing: 2px; color: var(--accent-gold); font-weight: 700; margin-bottom: 12px; }
.cb-step b { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; background: var(--accent-gold); color: #fff; margin-right: 6px; font-size: .72rem; }

/* 分類頁籤：沿用後台 .segmented，加水平捲動容器 */
.cb-tabs { overflow-x: auto; margin-bottom: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cb-tabs::-webkit-scrollbar { display: none; }
.cb-tabs .segmented { display: inline-flex; white-space: nowrap; }
.cb-tabs .segmented button { font-family: inherit; }
.cb-tabs .segmented button .cnt { font-size: .72rem; opacity: .7; margin-left: 3px; }

/* 使用票券提示 */
.tk-use-note { display: flex; align-items: center; gap: 9px; background: #fdf8ee; border: 1px solid #eeddb7; border-radius: 12px; padding: 10px 13px; font-size: .84rem; color: #8a6d2f; margin-bottom: 12px; line-height: 1.5; }
.tk-use-note i { color: var(--accent-gold); }

/* 服務選擇（單選卡） */
.svc-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid #ece6da; border-radius: 12px; padding: 12px 14px; margin-bottom: 9px; cursor: pointer; transition: .15s; }
.svc-opt.on { border-color: var(--accent-gold); background: #fdf8ee; }
.svc-opt .s-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d9cfc0; flex: none; }
.svc-opt.on .s-radio { border-color: var(--accent-gold); background: var(--accent-gold) content-box; padding: 3px; }
.svc-opt .s-body { flex: 1; }
.svc-opt .s-name { font-weight: 700; color: var(--dark-purple); font-size: .96rem; display: block; }
.svc-opt .s-meta { font-size: .8rem; color: #9c9483; margin-top: 2px; }
.svc-opt .s-price { color: var(--accent-gold); font-weight: 700; white-space: nowrap; }

/* 加購（多選膠囊） */
.addon-row { display: flex; flex-wrap: wrap; gap: 8px; }
.addon-chip { border: 1.5px solid #ece6da; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: .86rem; color: #6f6757; cursor: pointer; font-family: inherit; }
.addon-chip.on { border-color: var(--primary-purple); background: #efe7f7; color: #6a4f95; }

/* 月曆微調（元件本體沿用 schedule.css .calendar/.cal-*） */
.cb-card .calendar { max-width: 100%; }
.cb-card .cal-head { margin-bottom: 10px; }
.cb-card .cal-title { font-size: 1.1rem; }
.cb-card .cal-nav { width: 38px; height: 38px; font-size: .95rem; }
.cal-day { position: relative; flex-direction: column; line-height: 1.1; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--accent-gold); border-radius: 12px; }
.cal-day .cd-rest { font-size: .56rem; font-weight: 400; color: #b9b2a4; font-style: normal; }
.cal-legend { display: flex; gap: 14px; justify-content: center; font-size: .72rem; color: #9c9483; margin-top: 10px; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 4px; margin-right: 4px; vertical-align: -1px; }

/* 該日時段（沿用 schedule.css .time-grid/.time-pill） */
.cb-slots { border-top: 1px dashed #e8e0d0; margin-top: 14px; padding-top: 14px; }
.cb-slots .day-panel-title { font-size: .95rem; }
.cb-slots .time-pill { font-family: inherit; }
.slot-hint { font-size: .76rem; color: #9c9483; margin-top: 10px; }

/* 摘要 + 送出 */
.cb-summary { background: linear-gradient(115deg, #f5f2fb, #ebe5f5); border: 1px solid #ddd3ec; border-radius: 16px; padding: 16px 18px; }
.cb-summary .sm-row { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; color: #5a5344; padding: 5px 0; }
.cb-summary .sm-row .k { color: #8779ac; flex: none; }
.cb-summary .sm-row .v { text-align: right; }
.cb-summary .sm-total { border-top: 1px dashed #cbbfe4; margin-top: 6px; padding-top: 10px; font-weight: 700; color: var(--dark-purple); }
.cb-confirm-note { display: flex; gap: 8px; background: #fff8ec; border: 1px solid #f0e2c4; border-radius: 12px; padding: 11px 13px; font-size: .82rem; color: #7a6a45; line-height: 1.6; margin: 14px 0; }
.cb-confirm-note i { color: #d09a2c; margin-top: 2px; }
.btn-submit { width: 100%; background: var(--accent-gold); color: #fff; border: none; border-radius: 999px; padding: 15px; font-size: 1.05rem; font-family: inherit; font-weight: 700; cursor: pointer; }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }
.field-hint { font-size: .78rem; color: #9c9483; margin-top: 8px; text-align: center; }

/* 送出成功 */
.cb-done { text-align: center; padding: 44px 24px; }
.cb-done .d-ico { width: 76px; height: 76px; border-radius: 50%; background: #e6f3ec; color: #2c7b53; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 18px; }
.cb-done h2 { color: var(--dark-purple); font-size: 1.3rem; margin: 0 0 8px; }
.cb-done p { color: #8a8273; font-size: .92rem; line-height: 1.8; margin: 0 0 20px; }
.cb-done .d-ticket { background: #faf6ee; border: 1px solid #efe6d3; border-radius: 14px; padding: 16px; text-align: left; margin-bottom: 22px; }
.cb-done .d-ticket .t-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: #5a5344; padding: 4px 0; }
.cb-done .d-status { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: #f7edd6; color: #9c7522; }

/* 載入/錯誤狀態（客人端共用） */
.cust-boot { min-height: 60vh; display: flex; align-items: center; justify-content: center; color: #9c9483; font-size: .9rem; }
