/* Staff and service photos, prices and deals, waitlists, customer accounts, and their admin screens. */

/* ----- Booking widget ----- */
.bk-service.has-media { align-items: stretch; padding: 12px; }
.bk-service-img { flex: none; width: 96px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg-muted); }
.bk-service-copy { flex: 1; min-width: 0; display: grid; align-content: center; gap: 2px; }
.bk-service.has-media > svg { align-self: center; }
.bk-service .bk-service-desc { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--text-2); }
.bk-service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bk-deal { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--brand-soft, #f4f4f5); color: var(--primary); font-size: 12px; font-weight: 600; white-space: nowrap; }
.bk-next { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--bg-muted); color: var(--text-2); font-size: 12px; font-weight: 500; }
.bk-price { display: inline-flex; align-items: baseline; gap: 6px; color: var(--text); font-size: 14px; }
.bk-price s { color: var(--text-3); }
.bk-price small { color: var(--text-2); font-size: 12px; }
.bk-summary .bk-price { margin-top: 4px; }

.bk-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--bg-muted); }
.bk-avatar.is-initials { display: inline-grid; place-items: center; color: var(--text-2); font-size: 11px; font-weight: 600; }
.bk-pill-person { display: inline-flex; align-items: center; gap: 6px; padding-left: 4px; }
.bk-pill-person:not(:has(img)) { padding-left: 12px; }

.bk-provider { display: flex; align-items: flex-start; gap: 16px; }
.bk-provider .bk-avatar { width: 72px; height: 72px; font-size: 22px; }
.bk-provider-copy { display: grid; gap: 4px; min-width: 0; }
.bk-provider-copy .bk-h { margin: 0; }
.bk-provider-title { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 500; }
.bk-provider-bio { margin: 4px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.55; white-space: pre-line; }

.bk-detail { display: grid; gap: 12px; }
.bk-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.bk-gallery.is-single { grid-auto-columns: 100%; }
.bk-gallery img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); object-fit: cover; background: var(--bg-muted); scroll-snap-align: start; }
.bk-gallery.is-single img { max-height: 320px; aspect-ratio: auto; }
.bk-desc { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; white-space: pre-line; }
.bk-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bk-people { display: inline-flex; align-items: center; color: var(--text-2); font-size: 13px; }
.bk-people .bk-avatar { width: 26px; height: 26px; margin-right: -6px; border: 2px solid var(--bg); }
.bk-people span { margin-left: 12px; }

.bk-time.is-full { display: grid; align-content: center; height: auto; min-height: 38px; padding: 4px 8px; border-style: dashed; color: var(--text-2); line-height: 1.2; }
.bk-time.is-full small { color: var(--primary); font-size: 11px; font-weight: 600; }
.bk-block.is-full { background: repeating-linear-gradient(135deg, #f4f4f5 0 6px, #e9e9ec 6px 12px); color: var(--text-3); }
.bk-waitlist-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--text-2); font-size: 13px; }

.bk-rewards { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-align: left; text-decoration: none; }
.bk-rewards:hover { background: var(--bg-subtle); }
.bk-rewards > svg:first-child { flex: none; color: var(--primary); }
.bk-rewards span { flex: 1; display: grid; gap: 2px; }
.bk-rewards small { color: var(--text-2); font-size: 12px; }

/* ----- Storefront ----- */
.pf-avatar-img { object-fit: cover; }
.pf-team-copy { display: grid; line-height: 1.25; }
.pf-team-copy small { color: var(--text-2); font-size: 12px; font-weight: 400; }
.pf-offers ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pf-offers li { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--brand-soft, #f4f4f5); font-size: 14px; }
.pf-offers li strong { color: var(--primary); font-size: 15px; }
.pf-offers li small { color: var(--text-2); font-size: 12px; }
.pf-account a { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text); text-decoration: none; }
.pf-account a span:first-child { display: grid; gap: 2px; }
.pf-account strong { font-size: 15px; }
.pf-account small { color: var(--text-2); font-size: 13px; }
.pf-account a > span:last-child { color: var(--text-3); font-size: 22px; }

/* ----- Customer account ----- */
.acct-page { max-width: 640px !important; }
.acct { display: grid; gap: 16px; }
.acct-head { display: grid; gap: 14px; }
.acct-back { color: var(--text-2); font-size: 14px; text-decoration: none; }
.acct-back:hover { color: var(--text); }
.acct-brand { display: flex; align-items: center; gap: 14px; }
.acct-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--bg-muted); }
.acct-logo.is-initials { display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 600; }
.acct-title { margin: 0; font-size: 24px; line-height: 1.2; }
.acct-sub { margin: 2px 0 0; color: var(--text-2); }
.acct-card { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.acct-card-head, .acct-me { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acct-me { display: flex; }
.acct-h2 { margin: 0; font-size: 17px; }
.acct-muted { margin: 0; color: var(--text-2); font-size: 14px; }
.acct-small { font-size: 12px; }
.acct-dev { margin: 0; padding: 8px 12px; border-radius: var(--radius-sm); background: #fefce8; color: #854d0e; font-size: 13px; }
.acct-join { background: var(--brand-soft, var(--bg-subtle)); border-color: transparent; }
.acct-join .bk-btn { justify-self: start; }
.acct-balance { display: grid; gap: 2px; }
.acct-balance strong { font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.acct-rewards { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.acct-rewards li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; }
.acct-rewards li span { display: grid; gap: 2px; }
.acct-rewards li small { color: var(--text-2); font-size: 12px; }
.acct-rewards li i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p, 0); background: var(--primary); }
.acct-rewards li.is-ready { border-color: var(--primary); }
.acct-history summary { cursor: pointer; color: var(--text-2); font-size: 14px; font-weight: 500; }
.acct-history ul, .acct-bookings { display: grid; margin: 0; padding: 0; list-style: none; }
.acct-history li, .acct-booking { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.acct-history li:first-child { margin-top: 8px; }
.acct-bookings li:first-child { border-top: 0; }
.acct-history li span, .acct-booking > div { display: grid; gap: 2px; min-width: 0; }
.acct-history small, .acct-booking small { color: var(--text-2); font-size: 12px; }
.acct-history strong { font-variant-numeric: tabular-nums; }
.acct-history strong.is-plus { color: var(--success); }
.acct-booking.is-muted { opacity: 0.6; }
.acct-status { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.bk-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* ----- Admin ----- */
.ad-pill.is-paid { background: var(--success-bg); color: #15803d; }
.ad-pill.is-unpaid { background: #fff7ed; color: #c2410c; }
.ad-pill.is-partially_paid { background: #fefce8; color: #a16207; }
.ad-pill.is-member { background: #f5f3ff; color: #6d28d9; }
.ad-pill.is-deal { background: #eff6ff; color: #1d4ed8; }
.ad-pay { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.ad-pay-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ad-pay-amounts { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-2); font-size: 13px; }
.ad-pay-amounts strong { color: var(--text); }
.ad-pay-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.ad-pay-form .ad-field { margin: 0; }
.ad-pay-form .input { width: auto; min-width: 110px; }
.ad-pay-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ad-pay-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ad-pay-list li.is-voided { color: var(--text-3); text-decoration: line-through; }
.ad-photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ad-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--bg-muted); }
.ad-photo.is-initials { display: grid; place-items: center; color: var(--text-2); font-weight: 600; }
.ad-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-gallery figure { position: relative; margin: 0; }
.ad-gallery img { display: block; width: 144px; height: 108px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg-muted); }
.ad-gallery figcaption { position: absolute; inset: auto 4px 4px 4px; display: flex; justify-content: space-between; gap: 4px; }
.ad-gallery figcaption button { height: 24px; padding: 0 6px; border-radius: 6px; background: rgba(9, 9, 11, 0.72); color: #fff; font-size: 11px; font-weight: 600; }
.ad-gallery .is-cover { position: absolute; top: 4px; left: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.92); font-size: 10px; font-weight: 600; }
.ad-upload { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 144px; height: 108px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--text-2); font-size: 13px; cursor: pointer; }
.ad-upload:hover { border-color: var(--text-2); color: var(--text); }
.ad-upload input, .ad-photo-row input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ad-loyalty { display: grid; gap: 12px; }
.ad-loyalty-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ad-loyalty-points { font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ad-ledger { display: grid; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ad-ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.ad-ledger .is-plus { color: var(--success); }
.ad-inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.ad-inline-form .ad-field { margin: 0; }
.ad-deal-meter { height: 4px; border-radius: 4px; background: var(--bg-muted); overflow: hidden; }
.ad-deal-meter i { display: block; height: 100%; background: var(--text); }
.ad-waitlist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ad-waitlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.ad-waitlist li:first-child { border-top: 0; }
.ad-waitlist li > div { display: grid; gap: 2px; min-width: 0; }

@media (max-width: 520px) {
  .bk-service-img { width: 72px; height: 56px; }
  .bk-provider .bk-avatar { width: 56px; height: 56px; }
  .acct-balance strong { font-size: 34px; }
}
#setup-loyalty .ad-h3 { margin-top: 12px; }
#setup-loyalty > .ad-inline-form { margin-top: 12px; }
.ad-customer .ad-loyalty { margin: 16px 0; }
