/* Kauthar — public booking page + manage page (on top of ticket_portal.css; mobile-first, RTL + LTR via logical properties) */
.bk { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 10px; }
.bk-wa { background: #25d366 !important; color: #fff !important; }

/* stepper */
.bk-steps { list-style: none; margin: 0; padding: 4px 2px 0; display: flex; position: relative; }
.bk-steps li { flex: 1; position: relative; text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 600; min-width: 0; }
.bk-steps li::before { content: ''; position: absolute; top: 13px; inset-inline-start: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; border-radius: 3px; }
.bk-steps li:first-child::before { display: none; }
.bk-steps li.done::before, .bk-steps li.cur::before { background: var(--brand); }
.bk-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 3px; display: grid; place-items: center;
  background: #fff; border: 2.5px solid var(--line); font-weight: 800; font-size: 12.5px; color: var(--muted); transition: all .2s; }
.bk-steps li.done .bk-dot { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.bk-steps li.cur .bk-dot { border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.bk-steps li.cur { color: var(--ink); font-weight: 800; }
.bk-step-l { display: block; line-height: 1.35; overflow-wrap: anywhere; }

/* summary chips (tap to edit) */
.bk-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-sumchip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); background: #fff; color: var(--brand-dark);
  font: inherit; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; cursor: pointer; max-width: 100%; }
.bk-sumchip:disabled { cursor: default; opacity: .85; }
.bk-sumchip .bk-edit { font-size: 10.5px; opacity: .6; }
.bk-sumchip:not(:disabled):hover { background: var(--brand-soft); }

/* panel */
.bk-panel { padding: 14px; animation: bkIn .22s ease-out; }
@keyframes bkIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bk-ph { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.bk-ph h2 { font-size: 17px; margin: 0; }
.bk-ph p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.bk-back { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 16px; cursor: pointer; display: grid; place-items: center; }
.bk-back:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
.bk-notice { margin-bottom: 12px; }
.bk-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 26px 0; color: var(--muted); font-size: 14px; }
.bk-spin { width: 18px; height: 18px; border: 2.5px solid color-mix(in srgb, var(--brand) 25%, transparent); border-top-color: var(--brand); border-radius: 50%; animation: bkSpin .8s linear infinite; display: inline-block; }
@keyframes bkSpin { to { transform: rotate(360deg); } }
.bk-empty { text-align: center; padding: 18px 8px; color: var(--muted); }
.bk-empty > i { font-size: 34px; color: var(--brand-ink); }
.bk-empty p { margin: 6px 0 12px; line-height: 1.8; }
.bk-empty .tp-btn { display: inline-flex; }

/* services */
.bk-svcs { display: grid; gap: 8px; }
.bk-svc { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding-block: 12px; padding-inline: 14px 12px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s, transform .1s; }
.bk-svc:hover { border-color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 5%, #fff); }
.bk-svc:active { transform: scale(.99); }
.bk-svc.on { border-color: var(--c, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--brand)) 18%, transparent); }
.bk-svc-bar { position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--c, var(--brand)); }
.bk-svc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-inline-start: 4px; }
.bk-svc-n { font-weight: 800; font-size: 15.5px; }
.bk-svc-d { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.bk-svc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: #475569; font-weight: 600; margin-top: 2px; }
.bk-price { color: var(--ok); }
.bk-go { color: var(--muted); }

/* providers */
.bk-provs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
@media (max-width: 420px) { .bk-provs { grid-template-columns: 1fr 1fr; } }
.bk-prov { display: flex; align-items: center; gap: 9px; text-align: start; padding: 10px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; color: var(--ink); cursor: pointer; min-height: 62px; transition: border-color .15s, background .15s; }
.bk-prov:hover, .bk-prov.on { border-color: var(--c, var(--brand)); background: color-mix(in srgb, var(--c, var(--brand)) 6%, #fff); }
.bk-prov b { display: block; font-size: 14px; line-height: 1.4; }
.bk-prov small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.bk-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--c, var(--brand)); font-size: 16px; }
.bk-prov.any { grid-column: 1 / -1; border-style: dashed; border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: var(--brand-soft); }
.bk-prov.any .bk-av { background: var(--brand); color: var(--on-brand); }

/* days (horizontal) */
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 10px; margin: -6px -14px 0; padding-inline: 14px; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.bk-day { position: relative; flex: none; scroll-snap-align: start; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 12px 6px 9px;
  border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer; transition: all .15s; }
.bk-day:hover { border-color: var(--brand-ink); }
.bk-day.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.bk-day-w { font-weight: 800; font-size: 14px; }
.bk-day-d { font-size: 12.5px; color: inherit; opacity: .85; white-space: nowrap; }
.bk-day-n { font-size: 11px; margin-top: 3px; color: var(--ok); font-weight: 700; }
.bk-day.on .bk-day-n { color: inherit; opacity: .9; }
.bk-day-tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; background: #f59e0b; color: #fff; padding: 0 8px; border-radius: 10px; white-space: nowrap; }
.bk-more { justify-content: center; color: var(--brand-ink); border-style: dashed; font-weight: 700; font-size: 13px; }
.bk-more i { font-size: 18px; }

/* time slots */
.bk-sgroup + .bk-sgroup { margin-top: 14px; }
.bk-sgt { font-size: 13px; font-weight: 800; color: #475569; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.bk-sgt i { color: var(--brand-ink); }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 7px; }
.bk-slot { padding: 10px 4px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--brand) 35%, transparent); background: #fff; color: var(--brand-dark);
  font: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer; transition: all .12s; }
.bk-slot:hover { background: var(--brand-soft); }
.bk-slot.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.bk-slot:active { transform: scale(.96); }

/* form + review */
.bk-form .tp-field { margin-bottom: 12px; }
.bk-form .tp-field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 5px; }
.bk-form .tp-field label small { color: var(--muted); font-weight: 500; }
.bk-review { margin: 0 0 12px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bk-review > div { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); align-items: baseline; }
.bk-review > div:last-child { border-bottom: 0; }
.bk-review dt { flex: none; width: 92px; font-size: 13px; color: var(--muted); font-weight: 600; }
.bk-review dt i { color: var(--brand-ink); }
.bk-review dd { margin: 0; flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.bk-review dd small { color: var(--muted); font-weight: 500; }
.bk-err { color: var(--bad); font-size: 13.5px; font-weight: 700; margin-bottom: 8px; min-height: 0; }
.bk-err:empty { display: none; }

/* manage */
.bk-card .tp-ticket-top { margin-bottom: 12px; }
.bk-badge { font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 20px; background: #e2e8f0; color: #334155; white-space: nowrap; }
.bk-badge.s-pending { background: #fef3c7; color: #92400e; }
.bk-badge.s-confirmed { background: #dbeafe; color: #1e40af; }
.bk-badge.s-completed { background: #d1fae5; color: #065f46; }
.bk-badge.s-cancelled, .bk-badge.s-no_show { background: #fee2e2; color: #991b1b; }
.bk-when { display: flex; align-items: center; gap: 12px; background: var(--brand-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.bk-when-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-size: 22px; }
.bk-when-d { font-weight: 800; font-size: 17px; }
.bk-when-t { font-weight: 800; font-size: 20px; color: var(--brand-dark); }
.bk-mactions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 380px) { .bk-mactions { grid-template-columns: 1fr; } }
.bk-danger { color: var(--bad) !important; border-color: color-mix(in srgb, var(--bad) 40%, transparent) !important; }
.bk-danger:hover { background: #fef2f2 !important; }
.bk-btn-danger { background: var(--bad); color: #fff; box-shadow: 0 4px 12px rgba(220, 38, 38, .25); }
.bk-btn-danger:hover { background: #b91c1c; }
.bk-cancel { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.bk-cancel .tp-field { margin-bottom: 10px; }
.bk-cancel label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 5px; }
.bk-info { font-size: 14px; color: #334155; line-height: 1.8; }
.bk-info > i { color: var(--brand-ink); }
.bk-moved { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--brand-dark); font-weight: 700; }
.bk-moved:hover { background: var(--brand-soft); }
.bk-share { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bk-share .tp-btn { flex: 1; }
.bk-done-when { font-size: 17px; font-weight: 800; color: var(--ink) !important; }
.bk-done-when i { color: var(--brand-ink); }
.bk-done-when small { font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* time labels: «11:30 ص» keeps the RTL order on Arabic pages, «11:30 AM» / «11:30» read LTR on en/fr pages (never ltr-num) */
.bk-tm { direction: inherit; unicode-bidi: isolate; display: inline-block; white-space: nowrap; }
html[dir=rtl] .bk-tm { direction: rtl; }
html[dir=ltr] .bk-tm { direction: ltr; }
/* amounts «450 ر.س» / «SAR 450» stay on one line */
.bk-money { unicode-bidi: isolate; white-space: nowrap; }
/* direction-aware arrows/chevrons written for RTL: mirror them on LTR pages */
html[dir=ltr] .bk-flip { display: inline-block; transform: scaleX(-1); }
.bk-moved > span { flex: 1; min-width: 0; }
.bk-moved-go { flex: none; }
.bk-info .tp-link { white-space: nowrap; }

/* shared phone field (kphone.js) inside the booking form */
.bk-form .kphone .kphone-num { width: auto; }
