/*
 * FOMA цаг захиалга (/booking). Prefix .bk-. Builds on order.css (.ox-card, .ox-input …) and the
 * --shop-* tokens from shop.css.
 */

.bk-hero { text-align: center; max-width: 720px; margin: 0 auto 20px; }
.bk-hero h1 { font-family: var(--font-title); font-size: var(--fs-h2); font-weight: 700; margin: 0 0 8px; }
.bk-hero p { color: var(--shop-muted); margin: 0 0 14px; }
.bk-how { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bk-how li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--shop-surface-alt); font-size: var(--fs-small); font-weight: 700; }
.bk-how span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--shop-brand); font-size: 13px; }

.bk-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--shop-radius); background: var(--shop-brand-soft); font-size: var(--fs-small); }
.bk-mine a { display: inline-flex; align-items: center; gap: 8px; color: var(--shop-ink); font-weight: 700; }

.bk-empty { text-align: center; max-width: 560px; margin: 0 auto; }
.bk-empty__icon { font-size: 44px; }
.bk-empty h2 { font-size: var(--fs-h4); font-weight: 800; }

/* ---------- 1. services ---------- */
.bk-services { display: grid; gap: 10px; }
@media (min-width: 576px) { .bk-services { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.bk-service { position: relative; margin: 0; cursor: pointer; }
.bk-service input { position: absolute; opacity: 0; pointer-events: none; }
.bk-service__body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border: 2px solid var(--shop-line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s, background .15s; }
.bk-service:hover .bk-service__body { border-color: #cfd3d6; }
.bk-service input:checked + .bk-service__body { border-color: var(--shop-ink); background: var(--shop-brand-soft); box-shadow: 0 0 0 1px var(--shop-ink); }
.bk-service input:focus-visible + .bk-service__body { outline: 2px solid var(--shop-brand-hover); outline-offset: 2px; }
.bk-service__name { font-size: var(--fs-h6); font-weight: 800; padding-right: 26px; }
.bk-service__summary { color: var(--shop-muted); font-size: var(--fs-small); line-height: 1.4; }
.bk-service__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 6px; font-size: var(--fs-small); color: var(--shop-muted); }
.bk-service__meta b { color: var(--shop-ink); font-size: var(--fs-h5); }
.bk-service input:checked + .bk-service__body::after { content: "✓"; position: absolute; top: 12px; right: 14px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--shop-ink); color: #fff; font-size: 13px; font-weight: 800; }
.bk-desc { margin-top: 12px; font-size: var(--fs-small); }
.bk-desc summary { cursor: pointer; font-weight: 700; }
.bk-desc .typography { margin-top: 8px; color: var(--shop-ink); }

/* ---------- 2. calendar ---------- */
.bk-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bk-cal__title { font-size: var(--fs-h5); font-weight: 800; }
.bk-cal__nav { width: 40px; height: 40px; border: 1px solid var(--shop-line); border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; padding-bottom: 3px; color: var(--shop-ink); cursor: pointer; }
.bk-cal__nav:hover:not(:disabled) { background: var(--shop-brand); border-color: var(--shop-brand); }
.bk-cal__nav:disabled { opacity: .3; cursor: default; }
.bk-cal__week, .bk-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-cal__week { margin-bottom: 6px; }
.bk-cal__week span { text-align: center; font-size: var(--fs-meta); font-weight: 700; color: var(--shop-muted); }
.bk-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; aspect-ratio: 1 / 1; min-height: 42px; padding: 2px; border: 1.5px solid transparent; border-radius: 10px; background: transparent; color: #b5babe; font-size: var(--fs-small); font-weight: 600; line-height: 1.1; cursor: default; }
.bk-day small { font-size: 10px; font-weight: 700; color: var(--shop-success); white-space: nowrap; }
.bk-day.is-today span { text-decoration: underline; text-underline-offset: 3px; }
.bk-day.is-free { background: var(--shop-success-soft); color: var(--shop-ink); font-weight: 800; cursor: pointer; transition: transform .1s, border-color .15s; }
.bk-day.is-free:hover { border-color: var(--shop-success); }
.bk-day.is-selected { background: var(--shop-ink); border-color: var(--shop-ink); color: #fff; }
.bk-day.is-selected small { color: var(--shop-brand); }
.bk-day:focus-visible { outline: 2px solid var(--shop-brand-hover); outline-offset: 1px; }
.bk-cal__legend { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: var(--fs-meta); color: var(--shop-muted); }
.bk-cal__legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--shop-success-soft); border: 1.5px solid var(--shop-success); }
@media (max-width: 400px) { .bk-day small { display: none; } .bk-cal__week, .bk-cal__grid { gap: 4px; } }

.bk-times { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--shop-line); }
.bk-times h3 { font-size: var(--fs-h6); font-weight: 800; margin: 0 0 10px; }
.bk-times__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.bk-time { display: flex; align-items: baseline; justify-content: center; gap: 4px; min-height: 48px; padding: 10px 8px; border: 1.5px solid var(--shop-line); border-radius: 10px; background: #fff; color: var(--shop-ink); cursor: pointer; transition: border-color .15s, background .15s; }
.bk-time b { font-size: var(--fs-h5); }
.bk-time span { font-size: var(--fs-meta); color: var(--shop-muted); }
.bk-time:hover { border-color: var(--shop-ink); }
.bk-time.is-selected { background: var(--shop-brand); border-color: var(--shop-ink); box-shadow: 0 0 0 1px var(--shop-ink); }
.bk-time.is-selected span { color: var(--shop-ink); }
.bk-none { padding: 16px; border-radius: var(--shop-radius-sm); background: var(--shop-surface-alt); font-size: var(--fs-small); }

/* ---------- 3. contact ---------- */
@media (min-width: 576px) { .bk-row2 { grid-template-columns: 1fr 1fr; } }
.bk .ox-label { display: block; font-weight: 700; font-size: var(--fs-small); margin-bottom: 6px; }
.bk-more summary { color: var(--shop-muted); }
.bk-more summary::before { content: "+ "; }
.bk-more[open] summary::before { content: "− "; }

/* ---------- summary ---------- */
.bk-sum { display: grid; grid-template-columns: 90px 1fr; gap: 8px 10px; margin: 0 0 10px; font-size: var(--fs-small); }
.bk-sum dt { color: var(--shop-muted); font-weight: 400; }
.bk-sum dd { margin: 0; font-weight: 700; }
.bk-sum dd.is-empty { color: #b5babe; font-weight: 400; }
.bk-paynote { margin: 14px 0; padding: 12px 14px; border-radius: var(--shop-radius-sm); background: var(--shop-brand-soft); border: 1px solid #f3e3a1; font-size: var(--fs-small); }
.bk-paynote ul { margin: 6px 0 0; padding-left: 18px; }
.bk-paynote li { margin: 3px 0; }
.bk-agree { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
.bk-agree input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--shop-ink); }
.bk-summary .ox-submit:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- booking page (show / pay) ---------- */
.bk-ticket { display: grid; gap: 4px; margin: 14px auto 0; max-width: 420px; padding: 14px 16px; border-radius: 12px; background: #fff; text-align: left; font-size: var(--fs-small); }
.bk-ticket__when { font-size: var(--fs-h5); font-weight: 800; }
.bk-ticket small { color: var(--shop-muted); }
