/* Chana Lewis booking widget. Tokens come from the site (--navy, --olive ...) with the same values as fallback,
   so the widget also looks right on its own in demo.html. */
.bk {
  --_navy: var(--navy, #0E2442);
  --_blue: var(--blue, #1B4279);
  --_olive: var(--olive, #B5B04A);
  --_olive-text: var(--olive-text, #615E1C);
  --_butter: var(--butter, #FBF1C7);
  --_butter-line: #E5D48A;
  --_cream: var(--cream, #F7F3E8);
  --_paper: var(--paper, #FFFDF8);
  --_line: var(--line, rgba(14, 36, 66, .14));
  --_soft: #4F5C72;
  --_field-line: rgba(14, 36, 66, .42);
  --_error: #A3261D;
  --_serif: "Cormorant Garamond", Georgia, serif;
  --_sans: "Figtree", system-ui, sans-serif;

  position: relative;
  max-width: 940px;
  margin: 0 auto;
  text-align: start;
  background: var(--_paper);
  color: var(--_navy);
  font: 400 17px/1.55 var(--_sans);
  border-radius: 14px;
  box-shadow: 0 40px 70px -50px rgba(14, 36, 66, .7);
  overflow: hidden;
  padding: 32px 36px 36px;
  -webkit-font-smoothing: antialiased;
}
.bk[data-lang="he"] { --_serif: "Assistant", system-ui, sans-serif; --_sans: "Assistant", system-ui, sans-serif; font-size: 18px; }
.bk *, .bk *::before, .bk *::after { box-sizing: border-box; }
.bk [hidden] { display: none !important; }
:where(.bk) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.bk) :where(p, h3, h4, h5, ul, fieldset, legend) { margin: 0; padding: 0; }
.bk-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bk :focus-visible { outline: 2px solid var(--_blue); outline-offset: 2px; }
.bk [tabindex="-1"]:focus { outline: none; }
.bk-icon { width: 18px; height: 18px; flex: none; }
.bk-h { margin: 0 0 14px; font: 500 28px/1.2 var(--_serif); color: var(--_blue); letter-spacing: .01em; }
.bk[data-lang="he"] .bk-h { font-weight: 600; font-size: 24px; letter-spacing: 0; }

/* ---------- services ---------- */
.bk-services { margin-bottom: 26px; }
.bk-svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bk-svc { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--_line); border-radius: 999px; background: var(--_paper); cursor: pointer; transition: background-color .2s, border-color .2s, box-shadow .2s; justify-content: center; min-height: 72px; text-align: center; }
.bk-svc:hover { border-color: var(--_butter-line); background: var(--_butter); }
.bk-svc input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk-svc-name { font-weight: 600; line-height: 1.25; }
.bk-svc-meta { font-size: 14px; letter-spacing: .04em; color: var(--_olive-text); font-weight: 600; }
.bk[data-lang="he"] .bk-svc-meta { font-size: 15px; letter-spacing: 0; }
.bk-svc.is-on { background: var(--_olive); border-color: var(--_olive); color: var(--_navy); box-shadow: 0 10px 22px -14px rgba(142, 138, 46, .9); }
.bk-svc.is-on .bk-svc-meta { color: var(--_navy); }
.bk-svc:has(input:focus-visible) { outline: 2px solid var(--_blue); outline-offset: 3px; }

/* ---------- pick ---------- */
.bk-pick { display: grid; grid-template-columns: 1fr; column-gap: 36px; }
.bk-cal { min-width: 0; }
.bk-monthbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bk-month-title { font: 600 17px/1.3 var(--_sans); }
.bk-month-nav { display: flex; gap: 8px; }
.bk-round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--_butter-line); display: grid; place-items: center; background: var(--_butter); color: var(--_navy); cursor: pointer; transition: background-color .2s, opacity .2s; }
.bk-round:hover:not(:disabled) { background: var(--_olive); border-color: var(--_olive); }
.bk-round:disabled { background: transparent; border-color: transparent; opacity: .4; cursor: default; }

.bk-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bk-grid th { padding: 6px 0 8px; font-size: 13px; font-weight: 600; color: var(--_olive-text); text-transform: uppercase; letter-spacing: .08em; text-align: center; }
.bk[data-lang="he"] .bk-grid th { font-size: 15px; letter-spacing: 0; }
.bk-grid td { padding: 2px 0; text-align: center; height: 50px; }
.bk-day { position: relative; width: 44px; max-width: 100%; aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; color: var(--_soft); font-size: 16px; font-variant-numeric: tabular-nums; cursor: default; transition: background-color .2s, color .2s; }
.bk-day.is-open { background: var(--_butter); color: var(--_navy); font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px var(--_butter-line); }
.bk-day.is-open:hover { background: #F4E39D; }
.bk-day[aria-pressed="true"] { background: var(--_olive); color: var(--_navy); box-shadow: none; }
.bk-day.is-today::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.bk.is-loading .bk-day { color: transparent; background: transparent; box-shadow: none; }
.bk.is-loading .bk-grid tbody { background-image: radial-gradient(circle, rgba(14, 36, 66, .13) 0 7px, transparent 7.5px); background-size: calc(100% / 7) 52px; background-position: center 1px; animation: bk-pulse 1.3s ease-in-out infinite; }
@keyframes bk-pulse { 50% { opacity: .35; } }

.bk-empty { margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: var(--_cream); font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.bk-link { border: 0; background: none; padding: 0; color: var(--_blue); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.bk-link .bk-icon { width: 16px; height: 16px; }
.bk a { color: var(--_blue); text-underline-offset: 3px; }

.bk-zone { grid-column: 1 / -1; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--_line); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; }
.bk-zone label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--_soft); }
.bk-zone select { flex: 1 1 260px; max-width: 100%; min-height: 40px; padding: 6px 36px 6px 12px; border: 1px solid var(--_field-line); border-radius: 999px; background: var(--_paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2442' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 18px; appearance: none; -webkit-appearance: none; font-size: 14px; cursor: pointer; text-overflow: ellipsis; }
.bk[dir="rtl"] .bk-zone select { padding: 6px 12px 6px 36px; background-position: left 10px center; }

/* times */
.bk-times-heading { font-size: 22px; }
.bk[data-lang="he"] .bk-times-heading { font-size: 19px; }
.bk-timelist { list-style: none; display: grid; gap: 8px; }
.bk-slot { display: flex; gap: 8px; }
.bk-time { flex: 1 1 100%; min-height: 48px; border: 1px solid var(--_butter-line); border-radius: 999px; background: var(--_butter); color: var(--_navy); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; cursor: pointer; transition: flex-basis .22s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s; }
.bk-time:hover { background: #F4E39D; }
.bk-slot.is-chosen .bk-time { flex-basis: 50%; background: var(--_navy); border-color: var(--_navy); color: var(--_cream); }
.bk-go { flex: 1 1 50%; min-height: 48px; animation: bk-in .22s cubic-bezier(.2, .8, .2, 1) both; }
.bk-back { margin-bottom: 8px; display: none; }
.bk-notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #FBEAE7; color: var(--_error); font-size: 16px; font-weight: 600; }
.bk-muted { color: var(--_soft); }

/* primary button: olive pill, navy text */
.bk-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--_olive); color: var(--_navy); font-weight: 600; font-size: 17px; cursor: pointer; transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .3s, box-shadow .35s; }
.bk-cta:hover { background: #C3BE5C; transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(142, 138, 46, .8); }
.bk-cta[aria-disabled="true"] { opacity: .7; cursor: progress; }

/* ---------- form ---------- */
.bk-form { max-width: 560px; margin: 0 auto; }
.bk-form-summary { display: grid; gap: 6px; margin-bottom: 20px; padding: 16px 20px; border-radius: 14px; background: var(--_cream); }
.bk-form-summary p, .bk-chosen p { display: flex; align-items: flex-start; gap: 8px; }
.bk-form-summary .bk-icon { margin-top: 4px; color: var(--_olive-text); }
.bk-form-summary .bk-link { justify-self: start; }
.bk-field { margin-bottom: 16px; }
.bk-field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.bk-opt { color: var(--_soft); font-weight: 400; }
.bk-field input, .bk-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--_field-line); border-radius: 12px; background: #fff; font-size: 17px; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--_blue); box-shadow: 0 0 0 3px rgba(27, 66, 121, .18); }
.bk-field input[aria-invalid="true"] { border-color: var(--_error); }
.bk-err { margin-top: 6px; color: var(--_error); font-size: 14px; font-weight: 600; }
.bk-mode { border: 0; margin: 0 0 18px; min-width: 0; }
.bk-mode legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.bk-radio { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: 22px; min-height: 40px; cursor: pointer; }
.bk-radio input { width: 20px; height: 20px; accent-color: var(--_blue); margin: 0; }
.bk-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bk-form-error { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: #FBEAE7; color: var(--_error); font-weight: 600; font-size: 16px; }
.bk-form-error a { color: var(--_error); }
.bk-submit { width: 100%; margin-top: 4px; }

/* ---------- done ---------- */
.bk-done { max-width: 560px; margin: 0 auto; text-align: center; }
.bk-done p { margin-bottom: 12px; }
.bk-check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--_olive); color: var(--_navy); margin: 0 auto 16px; }
.bk-check-icon { width: 32px; height: 32px; stroke-width: 2.2; }
.bk-done .bk-h { font-size: 44px; margin-bottom: 14px; }
.bk[data-lang="he"] .bk-done .bk-h { font-size: 36px; }
.bk-done-when { font-size: 19px; padding: 16px 20px; border-radius: 14px; background: var(--_cream); }

/* ---------- wide: calendar and times side by side ---------- */
.bk[data-layout="w"].has-day .bk-pick { grid-template-columns: 1fr 250px; }
.bk[data-layout="w"] .bk-times { animation: bk-in .25s cubic-bezier(.2, .8, .2, 1) both; }
.bk[data-layout="w"] .bk-times-heading { margin-top: 33px; }
.bk[data-layout="w"] .bk-timelist { max-height: 372px; overflow-y: auto; padding: 2px 4px 2px 2px; margin: -2px -4px -2px -2px; scrollbar-width: thin; }

/* ---------- small: one column, the times replace the calendar ---------- */
.bk[data-layout="s"] { padding: 22px 16px 26px; }
.bk[data-layout="s"] .bk-svc-list { grid-template-columns: 1fr; gap: 8px; }
.bk[data-layout="s"] .bk-svc { flex-direction: row; justify-content: space-between; align-items: center; text-align: start; min-height: 56px; padding: 10px 20px; gap: 12px; }
.bk[data-layout="s"] .bk-svc-meta { white-space: nowrap; }
.bk[data-layout="s"] .bk-h { font-size: 24px; }
.bk[data-layout="s"][data-lang="he"] .bk-h { font-size: 22px; }
.bk[data-layout="s"][data-view="times"] .bk-cal { display: none; }
.bk[data-layout="s"][data-view="cal"] .bk-times { display: none; }
.bk[data-layout="s"][data-view="times"] .bk-zone { margin-top: 20px; }
.bk[data-layout="s"] .bk-back { display: inline-flex; }
.bk[data-layout="s"] .bk-times-heading { font-size: 20px; }
.bk[data-layout="s"] .bk-done .bk-h { font-size: 36px; }
.bk[data-layout="s"] .bk-grid td { height: 46px; }
.bk[data-layout="s"] .bk-day { width: 40px; }
.bk[data-layout="s"] .bk-radio { display: flex; margin-inline-end: 0; }

@keyframes bk-in { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.bk[dir="rtl"] { --_in: -1; }
.bk[dir="rtl"] .bk-times, .bk[dir="rtl"] .bk-go, .bk[dir="rtl"] .bk-form:not([hidden]), .bk[dir="rtl"] .bk-done:not([hidden]) { animation-name: bk-in-rtl; }
@keyframes bk-in-rtl { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.bk-check-path { stroke-dasharray: 20; stroke-dashoffset: 0; animation: bk-draw .45s .1s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes bk-draw { from { stroke-dashoffset: 20; } }
.bk-form:not([hidden]), .bk-done:not([hidden]) { animation: bk-in .25s cubic-bezier(.2, .8, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .bk *, .bk *::before, .bk *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .bk-day.is-open { border: 1px solid CanvasText; }
  .bk-day[aria-pressed="true"], .bk-svc.is-on { border: 3px solid Highlight; }
}
