/* ==========================================================================
   Cozy - booking flow v3 (booking.php + assets/js/cozy-booking.js).
   Loaded after cozy.css (tokens, .c-btn, .c-tag) and scoped to .bk.
   ========================================================================== */

.bk {
  --ring: #e3e7e1;
  --ring-2: #d3d9d1;
  --paper: #fff;
  --soft: #f3f4f1;
  --ease: cubic-bezier(.2, .7, .2, 1);
  padding: 28px 0 96px;
  color: var(--ink);
  font-family: var(--c-font);
}
.bk *, .bk *::before, .bk *::after { box-sizing: border-box; }
.bk-wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.bk fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.bk button { font-family: inherit; color: inherit; cursor: pointer; }
.bk img { display: block; max-width: 100%; }
.bk [hidden] { display: none !important; }
body.bk-body #booking-float { display: none !important; }

.bk :focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; }

/* ---------- top: title + stepper ---------- */
.bk-top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  align-items: end; gap: 24px 48px; margin-bottom: 36px;
}
.bk-h1 {
  margin: 16px 0 0; font-size: clamp(38px, 4.6vw, 66px); line-height: .98;
  letter-spacing: -.055em; font-weight: 700; outline: none;
}
.bk-h1 em { font-style: normal; color: var(--faint); }
.bk-h1 > span { display: block; animation: bk-rise .55s var(--ease) both; }

.bk-steps ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.bk-steps__b {
  width: 100%; display: grid; gap: 10px; padding: 6px 0; border: 0; background: none;
  text-align: start; color: var(--faint);
}
.bk-steps__b:disabled { cursor: default; }
.bk-steps__bar { display: block; height: 5px; border-radius: 9px; background: var(--ring); overflow: hidden; }
.bk-steps__bar i {
  display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink);
  transition: width .6s var(--ease), background .3s;
}
.bk-steps__l { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.bk-steps__n {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 12px; font-weight: 700; background: var(--soft); color: var(--mute);
  transition: background .3s, color .3s;
}
.bk-steps__b.is-done { color: var(--ink); }
.bk-steps__b.is-done .bk-steps__bar i { width: 100%; }
.bk-steps__b.is-done .bk-steps__n { background: var(--ink); color: var(--lime); }
.bk-steps__b.is-done:hover .bk-steps__l { text-decoration: underline; text-underline-offset: 4px; }
.bk-steps__b.is-on { color: var(--ink); }
.bk-steps__b.is-on .bk-steps__bar i { width: 100%; background: var(--lime-deep); }
.bk-steps__b.is-on .bk-steps__n { background: var(--lime); color: var(--ink); }

/* ---------- layout ---------- */
.bk-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px; align-items: start;
}
.bk-main { min-width: 0; }
.bk-step.is-on { animation: bk-step .5s var(--ease) both; }

.bk-lg {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  width: 100%; padding: 0; margin: 0 0 16px;
  font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
}
.bk-lg small { font-size: 14px; font-weight: 500; color: var(--mute); letter-spacing: 0; }

.bk .bk-block {
  background: var(--paper); border-radius: var(--r-lg); padding: 28px;
  box-shadow: 0 1px 2px #10131108, 0 14px 36px -26px #10131140;
}
.bk-block + .bk-block { margin-top: 14px; }
.bk-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bk-block__head .bk-lg { margin: 0; width: auto; flex: 1; }

/* ---------- 1. treatments ---------- */
.bk-types__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1240px) and (min-width: 1081px) { .bk-types__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bk-type {
  position: relative; display: flex; flex-direction: column; cursor: pointer;
  background: var(--paper); border-radius: var(--r-md); padding: 6px;
  box-shadow: 0 0 0 1px var(--ring);
  transition: box-shadow .25s ease, transform .35s var(--ease);
}
.bk-type:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--ring-2), 0 18px 34px -22px #10131166; }
.bk-type__media {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: calc(var(--r-md) - 6px); background: var(--sand);
}
.bk-type__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bk-type:hover .bk-type__media img { transform: scale(1.06); }
.bk-type__ic, .bk-type__tick {
  position: absolute; top: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
}
.bk-type__ic { inset-inline-start: 10px; background: #ffffffe6; color: var(--ink); backdrop-filter: blur(6px); }
.bk-type__ic .c-i { width: 17px; height: 17px; }
.bk-type__tick {
  inset-inline-end: 10px; background: var(--lime); color: var(--ink);
  transform: scale(.4); opacity: 0; transition: transform .35s var(--ease), opacity .2s;
}
.bk-type__tick .c-i { width: 17px; height: 17px; stroke-width: 2.6; }
.bk-type__body { display: grid; gap: 3px; padding: 12px 10px 8px; }
.bk-type__name { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.bk-type__line { font-size: 14px; color: var(--mute); line-height: 1.4; }
.bk-type__from { margin-top: 6px; font-size: 14px; color: var(--mute); }
.bk-type__from b { color: var(--ink); font-size: 16px; }

.bk-type:has(input:checked) { box-shadow: 0 0 0 2px var(--ink), 0 18px 34px -22px #10131180; }
.bk-type:has(input:checked) .bk-type__tick { transform: scale(1); opacity: 1; }
.bk-type:has(input:focus-visible) { outline: 3px solid var(--lime-deep); outline-offset: 3px; }

/* ---------- 1. durations ---------- */
.bk .bk-durs { margin-top: 72px; transition: opacity .3s; }
.bk-durs:disabled { opacity: .45; }
.bk-durs__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bk-dur {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 2px 10px; padding: 20px 22px; border-radius: var(--r-md); cursor: pointer;
  background: var(--paper); box-shadow: 0 0 0 1px var(--ring);
  transition: background .25s, color .25s, box-shadow .25s, transform .3s var(--ease);
}
.bk-durs:disabled .bk-dur { cursor: not-allowed; }
.bk-durs:not(:disabled) .bk-dur:hover { box-shadow: 0 0 0 1px var(--ink); transform: translateY(-2px); }
.bk-dur__min { font-size: 15px; font-weight: 600; color: var(--mute); }
.bk-dur__min b { font-size: 34px; letter-spacing: -.04em; color: var(--ink); margin-inline-end: 2px; }
.bk-dur__price { grid-row: 1; grid-column: 2; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.bk-dur__label { grid-column: 1; font-size: 14px; color: var(--mute); }
.bk-dur__note { grid-column: 2; font-size: 12.5px; color: var(--mute); text-align: end; }
.bk-dur:not(.is-star) .bk-dur__note { grid-row: 2; }
.bk-dur.is-star .bk-dur__note {
  position: absolute; top: -11px; inset-inline-end: 16px;
  padding: 4px 11px; border-radius: 100px; background: var(--clay); color: #fff; font-weight: 700; white-space: nowrap;
}
.bk-dur.is-off { opacity: .45; cursor: not-allowed; }
.bk-dur:has(input:checked) { background: var(--ink); color: #fff; box-shadow: 0 0 0 1px var(--ink); }
.bk-dur:has(input:checked) .bk-dur__min,
.bk-dur:has(input:checked) .bk-dur__label { color: #ffffffa8; }
.bk-dur:has(input:checked):not(.is-star) .bk-dur__note { color: #ffffffa8; }
.bk-dur:has(input:checked) .bk-dur__min b { color: #fff; }
.bk-dur:has(input:checked) .bk-dur__price { color: var(--lime); }
.bk-dur:has(input:focus-visible) { outline: 3px solid var(--lime-deep); outline-offset: 3px; }

/* ---------- 2. days ---------- */
.bk-arrows { display: flex; gap: 6px; }
.bk-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--soft); transition: background .2s;
}
.bk-arrow:hover { background: var(--ring); }
.bk-arrow .c-i { width: 18px; height: 18px; }

.bk-days {
  display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; overflow-y: clip;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain; overscroll-behavior-y: auto;
  touch-action: pan-x pinch-zoom;
  padding: 4px; margin: -4px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, #000 90%, transparent);
  mask-image: linear-gradient(to left, #000 90%, transparent);
}
.bk-days::-webkit-scrollbar { display: none; }
.bk-day {
  flex: 0 0 74px; height: 96px; border: 0; border-radius: 22px; scroll-snap-align: start;
  display: grid; align-content: center; justify-items: center; gap: 2px;
  background: var(--soft); transition: background .2s, color .2s, transform .3s var(--ease);
}
.bk-day:hover { background: var(--ring); }
.bk-day__w { font-size: 13px; font-weight: 600; color: var(--mute); }
.bk-day__n { font-size: 28px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.bk-day__m { font-size: 12px; color: var(--mute); }
.bk-day.is-sat .bk-day__w { color: var(--clay); }
.bk-day[aria-checked="true"] { background: var(--ink); color: #fff; }
.bk-day[aria-checked="true"] .bk-day__w,
.bk-day[aria-checked="true"] .bk-day__m { color: #ffffffa8; }
.bk-day[aria-checked="true"] .bk-day__n { color: var(--lime); }

/* ---------- 2. times ---------- */
.bk-tg + .bk-tg { margin-top: 20px; }
.bk-tg__h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.bk-tg__h .c-i { width: 18px; height: 18px; color: var(--clay); }
.bk-tg__h small { font-size: 13px; font-weight: 500; color: var(--mute); margin-inline-start: auto; }
.bk-tg.is-empty .bk-tg__h small { color: var(--faint); }
.bk-tg__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.bk-time {
  height: 48px; border: 0; border-radius: 14px; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--ring);
  font-size: 15.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background .2s, color .2s, box-shadow .2s;
}
.bk-time:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bk-time[aria-checked="true"] { background: var(--ink); color: var(--lime); box-shadow: none; }
.bk-time:disabled {
  cursor: not-allowed; color: #bfc5be; background: transparent;
  box-shadow: inset 0 0 0 1px var(--soft); text-decoration: line-through; text-decoration-color: #cfd4ce;
}

.bk-skel { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; }
.bk-skel i {
  height: 48px; border-radius: 14px;
  background: linear-gradient(90deg, var(--soft) 25%, #e9ece6 50%, var(--soft) 75%) 0 0 / 300% 100%;
  animation: bk-shimmer 1.2s linear infinite;
}
.bk-empty {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px; border-radius: var(--r-md); background: var(--soft);
}
.bk-empty > .c-i { width: 26px; height: 26px; color: var(--clay); flex: none; }
.bk-empty div { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.bk-empty span { color: var(--mute); font-size: 14px; }

.bk-note { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 14px; color: var(--mute); }
.bk-note .c-i { width: 17px; height: 17px; flex: none; }

/* ---------- 3. fields ---------- */
.bk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bk-f { position: relative; }
.bk-f.is-wide { grid-column: 1 / -1; }
.bk-f__in {
  width: 100%; height: 62px; margin: 0;
  padding: 24px 50px 8px 16px; /* physical on purpose: dir="ltr" inputs keep the icon on the right */
  border: 0; border-radius: 16px; background: var(--soft);
  font: 500 16px var(--c-font); color: var(--ink); text-align: right;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.bk-f.is-area .bk-f__in { height: auto; min-height: 118px; padding-top: 30px; resize: vertical; line-height: 1.5; }
.bk-f__in:hover { background: #eceee9; }
.bk-f__in:focus { outline: none; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px var(--lime-soft); }
.bk-f__l {
  position: absolute; right: 50px; top: 31px; transform: translateY(-50%);
  font-size: 16px; color: var(--mute); pointer-events: none;
  transition: top .2s var(--ease), font-size .2s var(--ease), color .2s;
}
.bk-f__l i { font-style: normal; color: var(--faint); }
.bk-f.is-area .bk-f__l { top: 22px; }
.bk-f__in:focus + .bk-f__l,
.bk-f__in:not(:placeholder-shown) + .bk-f__l { top: 18px; font-size: 12.5px; font-weight: 600; }
.bk-f.is-area .bk-f__in:focus + .bk-f__l,
.bk-f.is-area .bk-f__in:not(:placeholder-shown) + .bk-f__l { top: 15px; }
.bk-f__ic {
  position: absolute; right: 17px; top: 31px; transform: translateY(-50%);
  color: var(--faint); pointer-events: none; transition: color .2s;
}
.bk-f.is-area .bk-f__ic { top: 30px; }
.bk-f__ic .c-i { width: 19px; height: 19px; }
.bk-f__in:focus ~ .bk-f__ic { color: var(--ink); }
.bk-f.is-good .bk-f__ic { color: var(--lime-ink); }
.bk-f__err { display: block; font-size: 13px; color: var(--clay); font-weight: 600; padding: 6px 4px 0; }
.bk-f__err:empty { display: none; }
.bk-f.is-bad .bk-f__in { background: var(--clay-soft); }
.bk-f.is-bad .bk-f__in:focus { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--clay), 0 0 0 4px var(--clay-soft); }
.bk-f.is-bad .bk-f__ic { color: var(--clay); }
.bk-f__hint { display: block; font-size: 13px; color: var(--mute); padding: 6px 4px 0; }

.bk-list {
  position: absolute; z-index: 30; top: 66px; inset-inline: 0; margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border-radius: 18px;
  box-shadow: 0 0 0 1px var(--ring), 0 22px 44px -18px #10131140;
  animation: bk-pop .2s var(--ease) both;
}
.bk-list li {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px;
  font-size: 15.5px; font-weight: 500; cursor: pointer;
}
.bk-list li .c-i { width: 16px; height: 16px; color: var(--faint); }
.bk-list li:hover, .bk-list li[aria-selected="true"] { background: var(--soft); }

.bk-seg-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px; }
.bk-seg-l { font-size: 15px; font-weight: 600; }
.bk-seg {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px;
  border-radius: 100px; background: var(--soft);
}
.bk-seg label { cursor: pointer; }
.bk-seg label > span {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 100px;
  font-size: 15px; font-weight: 600; color: var(--mute); transition: background .2s, color .2s;
}
.bk-seg label:hover > span { color: var(--ink); }
.bk-seg label:has(input:checked) > span { background: var(--ink); color: #fff; }
.bk-seg label:has(input:focus-visible) > span { outline: 3px solid var(--lime-deep); outline-offset: 2px; }
.bk-seg label.is-off { cursor: not-allowed; }
.bk-seg label.is-off > span { color: var(--faint); }
.bk-seg small { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 100px; background: #fff; color: var(--faint); }
.bk-seg-wrap .bk-f__err { width: 100%; padding-top: 0; }
.bk-seg-wrap.is-bad .bk-seg { box-shadow: 0 0 0 1.5px var(--clay); }
.bk-hint { width: 100%; font-size: 13px; color: var(--mute); }
.bk-block .bk-f.is-area { margin-top: 22px; }
.bk-block > .bk-lg + .bk-seg-wrap { margin-top: 0; }
.bk-block > .bk-fields + .bk-seg-wrap { margin-top: 22px; }

/* ---------- 4. review ---------- */
.bk-rv { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 1px 2px #10131108, 0 14px 36px -26px #10131140; }
.bk-rv__hero {
  display: flex; align-items: center; gap: 16px; padding: 12px;
  background: var(--ink); color: #fff;
}
.bk-rv__hero img { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; flex: none; }
.bk-rv__hero div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.bk-rv__hero small { font-size: 13px; color: #ffffff99; }
.bk-rv__hero b { font-size: 24px; letter-spacing: -.03em; }
.bk-rv__hero span { font-size: 14px; color: #c8f3a6; }
.bk-rv__row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 16px 20px; border-top: 1px solid var(--soft);
}
.bk-rv__hero + .bk-rv__row { border-top: 0; }
.bk-rv__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); }
.bk-rv__ic .c-i { width: 19px; height: 19px; }
.bk-rv__txt { display: grid; gap: 1px; min-width: 0; }
.bk-rv__txt small { font-size: 13px; color: var(--mute); }
.bk-rv__txt b { font-size: 16.5px; font-weight: 600; overflow-wrap: anywhere; }
.bk-rv__txt em { font-style: normal; font-size: 14px; color: var(--mute); overflow-wrap: anywhere; }
.bk-rv__edit {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 100px;
  background: var(--soft); font-size: 13.5px; font-weight: 600; transition: background .2s;
}
.bk-rv__edit .c-i { width: 14px; height: 14px; }
.bk-rv__edit:hover { background: var(--ring); }
.bk .bk-rv__edit.is-light { background: #ffffff1f; color: #fff; }
.bk .bk-rv__edit.is-light:hover { background: #ffffff33; }
.bk-rv__total {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: var(--lime-soft);
}
.bk-rv__total span { display: grid; font-weight: 700; font-size: 17px; }
.bk-rv__total small { font-weight: 500; font-size: 13px; color: var(--lime-ink); }
.bk-rv__total strong { font-size: 36px; letter-spacing: -.04em; }

.bk-next-up { margin-top: 30px; }
.bk-next-up ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bk-next-up li { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: var(--r-md); background: var(--sand); }
.bk-next-up li > b {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--clay);
}
.bk-next-up li > b .c-i { width: 18px; height: 18px; }
.bk-next-up li > span { display: grid; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.bk-next-up strong { font-size: 15.5px; color: var(--ink); }

.bk-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 26px; font-size: 15px; line-height: 1.55; cursor: pointer; }
.bk-check a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bk-check__box {
  width: 26px; height: 26px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ring-2); color: transparent;
  transition: background .2s, box-shadow .2s, color .2s;
}
.bk-check__box .c-i { width: 16px; height: 16px; stroke-width: 2.8; }
.bk-check:hover .bk-check__box { box-shadow: inset 0 0 0 1.5px var(--ink); }
.bk-check input:checked + .bk-check__box { background: var(--ink); color: var(--lime); box-shadow: none; }
.bk-check input:focus-visible + .bk-check__box { outline: 3px solid var(--lime-deep); outline-offset: 2px; }

/* ---------- nav bar ---------- */
.bk-nav {
  position: sticky; bottom: 16px; z-index: 20; margin-top: 28px;
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border-radius: 100px; background: #ffffffe6;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--ring), 0 18px 40px -18px #1013114d;
}
.bk[data-step="5"] .bk-nav { display: none; }
.bk-nav__back {
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px; border: 0;
  border-radius: 100px; background: var(--soft); font-size: 15px; font-weight: 600; transition: background .2s;
}
.bk-nav__back:hover { background: var(--ring); }
.bk-nav__back .c-i { width: 18px; height: 18px; }
.bk-nav__sum {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 12px;
  border: 0; background: none; text-align: start; cursor: default;
}
.bk-nav__line { flex: 1; min-width: 0; font-size: 15px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-nav__price { font-size: 22px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.bk .bk-nav__next { margin-inline-start: auto; font-size: 16.5px; }
.bk .bk-nav__next.is-blocked { background: #d7efc6; }
.bk .bk-nav__next.is-blocked:hover { transform: none; background: #cdebb8; }
.bk .bk-nav__next.is-blocked .c-btn__ic { background: #101311a6; }
.bk .bk-nav__next.is-shake { animation: bk-shake .45s ease; }
.bk-nav__next .c-btn__ic { position: relative; }
.bk-spin {
  position: absolute; inset: 11px; border-radius: 50%; display: none;
  border: 2.5px solid #9fe87055; border-top-color: var(--lime); animation: bk-spin .8s linear infinite;
}
.bk.is-sending .bk-spin { display: block; }
.bk.is-sending .bk-nav__next .c-i { opacity: 0; }
.bk.is-sending .bk-nav__next { pointer-events: none; }

.bk-alert {
  position: absolute; bottom: calc(100% + 10px); inset-inline-end: 8px; margin: 0;
  display: flex; align-items: center; gap: 10px; max-width: min(440px, calc(100% - 16px));
  padding: 12px 18px 12px 14px; border-radius: 16px;
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 16px 32px -14px #10131180;
}
.bk-alert .c-i { width: 18px; height: 18px; color: var(--lime); flex: none; }
.bk-alert.is-in { animation: bk-pop .3s var(--ease) both; }

/* ---------- summary card ---------- */
.bk-side { position: sticky; top: 104px; }
.bk-card { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--ring), 0 30px 60px -40px #10131159; }
.bk-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--sand); }
.bk-card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.bk-card__media img.is-swap { opacity: 0; }
.bk-card__chip {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1;
  padding: 7px 14px; border-radius: 100px; background: #fff; font-size: 13px; font-weight: 700;
}
.bk-card__x {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; display: none;
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; place-items: center;
}
.bk-card__x .c-i { width: 18px; height: 18px; }
.bk-card__body { padding: 20px 22px 22px; }
.bk-card__h { margin: 0 0 10px; font-size: 26px; letter-spacing: -.035em; line-height: 1.1; }
.bk-card__rows { margin: 0; }
.bk-card__rows > div {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--soft); font-size: 15px;
}
.bk-card__rows dt { display: flex; align-items: center; gap: 8px; color: var(--mute); flex: none; }
.bk-card__rows dt .c-i { width: 16px; height: 16px; }
.bk-card__rows dd { margin: 0; font-weight: 600; text-align: end; overflow-wrap: anywhere; }
.bk-card__total {
  display: flex; align-items: center; justify-content: space-between; margin-top: 10px;
  padding: 16px 18px; border-radius: 20px; background: var(--ink); color: #fff;
}
.bk-card__total span { display: grid; font-weight: 700; }
.bk-card__total small { font-size: 12.5px; font-weight: 500; color: #ffffff8c; }
.bk-card__total strong { font-size: 30px; letter-spacing: -.04em; color: var(--lime); }
.bk-trust { list-style: none; margin: 16px 0 0; padding: 0 6px; display: grid; gap: 10px; }
.bk-trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); }
.bk-trust .c-i { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--lime-soft); color: var(--lime-ink); flex: none; }
.bk-scrim { display: none; }

/* ---------- done ---------- */
.bk[data-step="5"] .bk-top,
.bk[data-step="5"] .bk-side { display: none; }
.bk[data-step="5"] .bk-grid { grid-template-columns: minmax(0, 1fr); }
.bk-done { max-width: 680px; margin: 0 auto; padding: 20px 0 10px; text-align: center; outline: none; }
.bk-done__tick { width: 104px; height: 104px; margin: 0 auto 22px; }
.bk-done__tick svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bk-done__tick circle { fill: var(--lime); stroke: var(--lime); stroke-width: 2; transform-origin: center; animation: bk-bloom .6s var(--ease) both; }
.bk-done__tick path { stroke: var(--ink); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: bk-draw .5s .35s ease forwards; }
.bk-done .c-tag b { font-weight: 700; letter-spacing: .02em; }
.bk-done__h { margin: 18px 0 0; font-size: clamp(44px, 6vw, 80px); line-height: .95; letter-spacing: -.06em; }
.bk-done__h em { font-style: normal; color: var(--faint); }
.bk-done__p { margin: 18px auto 0; max-width: 480px; font-size: 18px; line-height: 1.6; color: var(--mute); }
.bk-done__card {
  display: flex; align-items: stretch; gap: 16px; margin: 30px 0 0; padding: 10px; text-align: start;
  background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--ring);
}
.bk-done__card img { width: 150px; border-radius: 22px; object-fit: cover; flex: none; }
.bk-done__rows { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 12px 8px; }
.bk-done__rows div { display: grid; gap: 2px; min-width: 0; }
.bk-done__rows small { font-size: 13px; color: var(--mute); }
.bk-done__rows b { font-size: 15.5px; overflow-wrap: anywhere; }
.bk-done__acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bk-done__q { margin: 24px 0 0; font-size: 15px; color: var(--mute); }
.bk-done__q .c-link { font-size: 15px; }

/* ---------- motion ---------- */
@keyframes bk-step { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bk-rise { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: none; } }
@keyframes bk-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes bk-fade { from { opacity: 0; } }
@keyframes bk-shimmer { to { background-position: -150% 0; } }
@keyframes bk-spin { to { transform: rotate(360deg); } }
@keyframes bk-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes bk-bloom { from { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } to { transform: scale(1); } }
@keyframes bk-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .bk *, .bk *::before, .bk *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .bk-done__tick path { stroke-dashoffset: 0; }
}

/* ---------- tablet / mobile ---------- */
@media (max-width: 1080px) {
  .bk-top { grid-template-columns: 1fr; align-items: start; }
  .bk-grid { grid-template-columns: minmax(0, 1fr); }
  .bk { padding-bottom: 130px; }

  /* the summary becomes a bottom sheet, opened from the nav bar */
  .bk-side {
    position: fixed; z-index: 70; inset: auto 0 0; top: auto; max-height: 88vh; overflow-y: auto;
    padding: 10px 10px calc(16px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--bg);
    transform: translateY(105%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s .45s;
  }
  .bk.is-sheet .bk-side { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .bk-card__x { display: grid; }
  .bk-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: #10131166; animation: bk-fade .3s ease both; }

  .bk-nav {
    position: fixed; bottom: calc(10px + env(safe-area-inset-bottom)); inset-inline: 10px; z-index: 60;
    margin: 0; border-radius: 24px; padding: 8px;
  }

  /* הסרגל צף מעל התוכן כל עוד מקומו הטבעי מתחת למסך, וכשמגיעים לסוף השלב הוא
     מתיישב שם - מתחת ל"כמה זמן?" - במקום להישאר תלוי ולהיעלם בהמשך הגלילה.
     זה בדיוק position:sticky, אבל overflow-x:hidden על ה-body הופך אותו
     לקונטיינר גלילה ומשתק את ה-sticky; overflow-x:clip חותך בלי לעשות זאת.
     דפדפן בלי תמיכה ב-clip (Safari 15 ומטה) נשאר עם ההתנהגות הקודמת. */
  @supports (overflow: clip) {
    body.bk-body { overflow-x: clip; }
    .bk { padding-bottom: 28px; }
    .bk-nav {
      position: sticky; inset-inline: auto; margin: 20px 0 0;
    }
  }
  .bk-nav__sum { cursor: pointer; flex-direction: column; align-items: flex-start; gap: 0; padding: 0 6px; }
  .bk-nav__line { font-size: 13px; width: 100%; }
  .bk-nav__price { font-size: 19px; display: flex; align-items: center; gap: 6px; }
  .bk-nav__price::after {
    content: ""; width: 7px; height: 7px; margin-top: 3px; border: solid var(--mute); border-width: 2px 0 0 2px;
    transform: rotate(45deg); opacity: .7;
  }
  .bk-alert { inset-inline: 0; max-width: none; }
}

@media (max-width: 760px) {
  .bk { padding-top: 18px; }
  .bk-wrap { width: calc(100% - 32px); }
  .bk-top { gap: 20px; margin-bottom: 24px; }
  .bk-h1 { font-size: clamp(34px, 10vw, 46px); }
  .bk-steps ol { gap: 6px; }
  .bk-steps__l { font-size: 12.5px; gap: 6px; white-space: normal; line-height: 1.2; }
  .bk-steps__n { display: none; }

  .bk-types__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bk-type { padding: 5px; border-radius: 22px; }
  .bk-type__media { border-radius: 17px; aspect-ratio: 1 / 1; }
  .bk-type__body { padding: 10px 6px 6px; }
  .bk-type__name { font-size: 16px; }
  .bk-type__line { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .bk-type__from { margin-top: 2px; font-size: 13px; }
  .bk-type__ic { display: none; }

  .bk .bk-durs { margin-top: 52px; }
  .bk-durs__row { gap: 8px; }
  .bk-dur { grid-template-columns: 1fr; padding: 18px 8px 14px; text-align: center; justify-items: center; gap: 2px; border-radius: 20px; }
  .bk-dur__price, .bk-dur__label, .bk-dur__note { grid-column: 1; grid-row: auto; text-align: center; }
  .bk-dur__min b { font-size: 28px; }
  .bk-dur__label { order: 2; font-size: 13px; }
  .bk-dur__price { order: 3; font-size: 17px; }
  .bk-dur:not(.is-star) .bk-dur__note { display: none; }
  .bk-dur.is-star .bk-dur__note { inset-inline: 0; margin-inline: auto; width: max-content; font-size: 11.5px; }

  .bk .bk-block { padding: 22px 18px; border-radius: 26px; }
  .bk-day { flex-basis: 64px; height: 86px; border-radius: 18px; }
  .bk-day__n { font-size: 24px; }
  .bk-arrows { display: none; }
  .bk-tg__row, .bk-skel { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .bk-time { height: 46px; font-size: 15px; border-radius: 12px; }

  .bk-fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bk-seg-wrap { gap: 8px; }
  .bk-seg-l { width: 100%; }
  .bk-seg label > span { padding: 10px 16px; font-size: 14.5px; }

  .bk-rv__hero img { width: 76px; height: 76px; border-radius: 16px; }
  .bk-rv__hero b { font-size: 20px; }
  .bk-rv__row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .bk-rv__ic { width: 38px; height: 38px; }
  .bk-rv__edit span { display: none; }
  .bk-rv__edit { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .bk-rv__total { padding: 18px 16px; }
  .bk-rv__total strong { font-size: 30px; }
  .bk-next-up ol { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bk-next-up li { grid-template-columns: 40px 1fr; align-items: start; gap: 12px; padding: 14px; }

  .bk-nav__back { width: 52px; height: 52px; padding: 0; justify-content: center; flex: none; }
  .bk-nav__back span { display: none; }
  .bk .bk-nav__next { font-size: 15px; gap: 10px; padding-inline-start: 18px; }
  .bk .bk-nav__next .c-btn__ic { width: 40px; height: 40px; }
  .bk-spin { inset: 10px; }

  .bk-done__card { flex-direction: column; }
  .bk-done__card img { width: 100%; height: 150px; }
  .bk-done__rows { grid-template-columns: minmax(0, 1fr); padding: 6px 8px 10px; }
  .bk-done__acts .c-btn { width: 100%; justify-content: space-between; }
}
