/* BookMyCalendar public booking page (builds on app.css tokens and components). */
body.bk { background: var(--surface); }
.bk-top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bk-top-in { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 12px; min-height: 64px; }
.bk-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.bk-crumbs b { color: var(--ink); }
.bk-crumbs .sep { color: var(--line-2); }
.bk-wrap { max-width: 1120px; margin: 0 auto; padding: 28px 24px 120px; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.step-title { font-size: 28px; margin-bottom: 20px; }
h2.step-title { font-size: 22px; margin-bottom: 16px; }
.bk-meta { overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: 14px; }
.bk-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bk-meta svg { width: 16px; height: 16px; color: var(--muted); }
.open-now { color: var(--good); font-weight: 600; }
.closed-now { color: var(--bad); font-weight: 600; }

.bk-pills { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; margin-bottom: 8px; position: sticky; top: 64px; background: var(--surface); z-index: 5; scrollbar-width: none; }
.bk-pills::-webkit-scrollbar { display: none; }
.bk-pills button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; height: 38px; padding: 0 16px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.bk-pills button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.bk-cat { margin-bottom: 32px; scroll-margin-top: 130px; }
.bk-cat h2 { font-size: 17px; margin-bottom: 12px; }

.opt { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; cursor: pointer; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s; font: inherit; color: inherit; }
.opt:hover { border-color: #b9b9c4; }
.opt.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.opt .grow { flex: 1; min-width: 0; }
.opt .name { font-weight: 600; font-size: 15px; }
.opt .dur { color: var(--muted); font-size: 13px; margin-top: 2px; }
.opt .desc { color: var(--muted); font-size: 13px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opt .price { font-weight: 600; white-space: nowrap; }
.opt .tick { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; color: var(--ink); }
.opt.selected .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt .tick svg { width: 16px; height: 16px; }

.pros { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pro { border: 1px solid var(--line-2); border-radius: 12px; padding: 20px 14px; text-align: center; cursor: pointer; background: var(--surface); font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.pro:hover { border-color: #b9b9c4; }
.pro.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pro .avatar { width: 64px; height: 64px; font-size: 22px; margin-bottom: 10px; }
.pro .any { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: inline-grid; place-items: center; margin-bottom: 10px; }
.pro .any svg { width: 28px; height: 28px; }
.pro b { display: block; }

.days-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.days-head h3 { flex: 1; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 20px; }
.day { border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 4px; text-align: center; cursor: pointer; background: var(--surface); font: inherit; color: inherit; }
.day span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.day b { display: block; font-size: 20px; margin-top: 2px; }
.day i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--good); margin: 4px auto 0; }
.day:disabled { opacity: .4; cursor: default; }
.day:disabled i { visibility: hidden; }
.day.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.day.selected span { color: rgba(255, 255, 255, .8); }
.day.selected i { background: #fff; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.times button { height: 46px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.times button:hover { border-color: var(--ink); }
.times button.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.part { font-size: 13px; font-weight: 700; color: var(--muted); margin: 18px 0 8px; }
.part:first-child { margin-top: 0; }

.summary { position: sticky; top: 88px; padding: 20px; }
.summary .biz { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.summary .biz .logo, .bk-logo { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.bk-logo { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.summary .line { display: flex; gap: 12px; justify-content: space-between; margin-bottom: 10px; }
.summary .total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; padding-top: 14px; border-top: 1px solid var(--line); margin: 14px 0 16px; }
.summary .empty-sum { color: var(--muted); padding: 10px 0; }
.bk-bar { display: none; }

.policy { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--ink-2); }
.policy b { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { max-width: 560px; margin: 24px auto; text-align: center; }
.done .check { width: 72px; height: 72px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: inline-grid; place-items: center; margin-bottom: 16px; }
.done .check svg { width: 36px; height: 36px; }
.done .card { text-align: left; margin: 24px 0; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table td { padding: 6px 0; }
.hours-table td:last-child { text-align: right; }
.hours-table tr.today td { font-weight: 700; }

@media (max-width: 900px) {
	.bk-grid { grid-template-columns: minmax(0, 1fr); }
	.summary { display: none; }
	.bk-wrap { padding: 20px 16px 120px; }
	.bk-top-in { padding: 10px 16px; }
	.step-title { font-size: 24px; }
	h2.step-title { font-size: 20px; }
	.bk-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 40; }
	.bk-bar .grow { flex: 1; min-width: 0; font-size: 13px; }
	.bk-bar b { font-size: 16px; }
	.days { gap: 4px; }
	.day { padding: 8px 0; border-radius: 10px; }
	.day b { font-size: 17px; }
	.bk-pills { top: 56px; }
}

/* Banner: cover image, then logo + name aligned with the content below */
.bk-banner { margin-bottom: 36px; }
.bk-cover { aspect-ratio: 16 / 5; max-height: 360px; border-radius: 16px; overflow: hidden; background: var(--surface-2); margin-bottom: 24px; }
.bk-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-id { display: flex; align-items: center; gap: 16px; }
.bk-id-text { min-width: 0; }
.bk-id h1 { font-size: 32px; margin: 0 0 6px; }
.bk-logo-lg { width: 72px; height: 72px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700; flex: none; overflow: hidden; }
.has-img { background: var(--surface) !important; border: 1px solid var(--line); }
.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.bk-top-in [data-back] { margin-left: -10px; }
@media (max-width: 900px) {
	.bk-banner { margin-bottom: 28px; }
	.bk-cover { aspect-ratio: 16 / 7; border-radius: 12px; margin-bottom: 16px; }
	.bk-id { align-items: flex-start; gap: 12px; }
	.bk-id h1 { font-size: 24px; margin-bottom: 4px; }
	.bk-logo-lg { width: 56px; height: 56px; border-radius: 14px; font-size: 18px; }
	.opt { padding: 14px; gap: 12px; }
}

/* Add-on extras under a selected service */
.extras { border: 1px solid var(--accent); border-top: 0; border-radius: 0 0 12px 12px; margin: -12px 0 10px; padding: 16px 18px 10px; background: var(--accent-soft); }
.extras-title { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.extra { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.extra:hover { border-color: #b9b9c4; }
.extra input { position: absolute; opacity: 0; pointer-events: none; }
.extra .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: transparent; background: var(--surface); }
.extra .box svg { width: 14px; height: 14px; }
.extra input:checked + .box { background: var(--accent); border-color: var(--accent); color: #fff; }
.extra input:focus-visible + .box { box-shadow: 0 0 0 3px var(--accent-soft); }
.extra .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.extra .grow .muted { font-size: 12px; }
.opt.selected:has(+ .extras:not(.hide)) { border-radius: 12px 12px 0 0; margin-bottom: 12px; }

/* Payment step (demo Payfast checkout) */
.pay-wrap { max-width: 480px; margin: 8px auto 0; }
.pf-demo { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 12px 14px; font-size: 13px; margin-bottom: 16px; }
.pf-demo svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.pf-card { overflow: hidden; }
.pf-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.pf-logo { font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: #e6452d; }
.pf-body { padding: 22px 20px; }
.pf-amount { font-size: 36px; font-weight: 700; letter-spacing: -.02em; }
.pf-methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.pf-methods span { border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 12px; color: var(--ink-2); }
.pf-pay { height: 48px; font-size: 15px; }
.pf-dev { margin-top: 20px; font-size: 13px; }
.pf-dev summary { cursor: pointer; color: var(--muted); }
.pf-dev .table td { padding: 6px 8px; font-size: 12px; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; }
.pay-note svg { color: var(--accent); flex: none; margin-top: 2px; }
.pay-note small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.choice b { display: block; }
.choice small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Professional photos */
.pro .avatar.has-photo { background: var(--surface-2); overflow: hidden; padding: 0; }
.pro .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Manage booking (client's private link) */
.mg-wrap { max-width: 560px; }
.mg-card { margin-bottom: 18px; }
.mg-appt { display: flex; gap: 16px; align-items: flex-start; }
.mg-tile { width: 60px; flex: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: center; background: var(--surface); }
.mg-tile span { display: block; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 3px 0; }
.mg-tile b { display: block; font-size: 22px; line-height: 1; padding-top: 6px; }
.mg-tile i { display: block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); padding: 3px 0 6px; }
.mg-info { min-width: 0; }
.mg-svc { font-size: 17px; font-weight: 700; }
.mg-when { font-weight: 600; margin: 3px 0 2px; }
.mg-appt.struck .mg-svc, .mg-appt.struck .mg-when { text-decoration: line-through; color: var(--muted); }
.mg-appt.struck .mg-tile span { background: #9ca3af; }
.mg-was { margin-top: 12px; font-size: 13px; color: var(--muted); }
.mg-lines { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.mg-lines .line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; color: var(--ink-2); }
.mg-lines .line.total { font-weight: 700; color: var(--ink); font-size: 15px; }
.mg-where { margin-top: 14px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.mg-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.mg-arrow { display: grid; place-items: center; color: var(--muted); margin: 10px 0; }
.mg-contact { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.mg-done { text-align: center; margin-bottom: 18px; }
.mg-done .check { width: 64px; height: 64px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: inline-grid; place-items: center; margin-bottom: 12px; }
.mg-done .check svg { width: 32px; height: 32px; }
.mg-done h1 { font-size: 26px; margin-bottom: 6px; }
.btn-lg { height: 50px; font-size: 16px; }

/* Industry under the business name */
.bk-industry { color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 1.3; }
.bk-id h1 + .bk-industry { margin: -2px 0 10px; }
.summary .biz .bk-industry { font-size: 12.5px; margin: 2px 0 3px; color: var(--accent-ink); font-weight: 600; }
@media (max-width: 640px) { .bk-id h1 + .bk-industry { margin: -2px 0 8px; font-size: 13px; } }

/* Powered by BookMyCalendar (hidden on the Business plan) */
.powered { border-top: 1px solid var(--line); padding: 22px 16px; text-align: center; }
.powered a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; text-decoration: none; opacity: .85; transition: opacity .15s; }
.powered a:hover { opacity: 1; }
.powered img { height: 22px; width: auto; display: block; }
@media (max-width: 820px) { .powered { padding-bottom: 96px; } }
.policy-accept { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); cursor: pointer; color: var(--ink); font-size: 14px; }
.policy-accept input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--accent, #4f46e5); }
.policy-accept b { font-weight: 600; color: var(--muted); }

.demo-ribbon { background: var(--ink, #111827); color: #fff; text-align: center; font-size: 13px; padding: 8px 14px; }
.demo-ribbon b { background: #f59e0b; color: #1b1300; border-radius: 999px; padding: 1px 9px; margin-right: 8px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.demo-cta { text-align: center; margin: 16px 0; }
