/* Kohal Booking: client booking form. Everything is scoped to .kb-book. */

.kb-book {
	--kb-accent: #111;
	--kb-on-accent: #fff;
	--kb-ink: #111827;
	--kb-text: #374151;
	--kb-muted: #5f6b7a;
	--kb-line: #e5e7eb;
	--kb-field-line: #8a94a3;
	--kb-soft: #f6f7f9;
	--kb-danger: #b42318;
	--kb-danger-soft: #fef3f2;
	--kb-card: #fff;
	--kb-line-strong: #c9ced6;
	--kb-soft-hover: #e3e6ea;
	--kb-radius: 16px;
	--kb-radius-s: 10px;
	--kb-radius-chip: 12px;
	--kb-radius-svc: 14px;
	--kb-radius-pill: 999px;
	--kb-radius-day: 50%;

	max-width: 760px;
	margin: 0 auto;
	font-family: var(--kb-font, inherit);
	font-size: var(--kb-fs, 16px);
	line-height: 1.5;
	color: var(--kb-text);
}
.kb-book *, .kb-book *::before, .kb-book *::after { box-sizing: border-box; }
.kb-book [hidden] { display: none !important; }
.kb-book button, .kb-book input, .kb-book textarea { font-family: inherit; }
.kb-book__loading, .kb-book__error { padding: 32px 0; text-align: center; color: var(--kb-muted); }
.kb-book__error { color: var(--kb-danger); }

/* stepper */
.kb-steps { display: flex; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.kb-steps__item { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; background: var(--kb-soft); border-radius: var(--kb-radius-pill); color: var(--kb-muted); font-size: 14px; font-weight: 600; }
.kb-steps__no { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--kb-radius-day); background: var(--kb-soft-hover); color: var(--kb-ink); font-size: 12px; font-weight: 700; }
.kb-steps__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-steps__item.is-current { background: var(--kb-accent); color: var(--kb-on-accent); }
.kb-steps__item.is-current .kb-steps__no { background: var(--kb-on-accent); color: var(--kb-accent); }
.kb-steps__item.is-done { color: var(--kb-ink); }
.kb-steps__item.is-link { padding: 0; }
.kb-book .kb-steps__btn { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 10px 12px; background: none; color: inherit; border: 0; border-radius: var(--kb-radius-pill); font: inherit; text-align: left; cursor: pointer; }
.kb-book .kb-steps__btn:hover .kb-steps__name { text-decoration: underline; }
.kb-steps__item.is-done .kb-steps__no { background: var(--kb-accent); color: var(--kb-on-accent); }
.kb-ico { display: inline-flex; flex: none; }
.kb-ico svg { display: block; }

/* card */
.kb-book__card { padding: var(--kb-pad, 28px); background: var(--kb-card); border: 1px solid var(--kb-card-line, var(--kb-line)); border-radius: var(--kb-radius); box-shadow: var(--kb-shadow, 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06)); }
.kb-book__title { margin: 0 0 20px; padding: 0; font-size: 22px; line-height: 1.25; font-weight: var(--kb-hw, 700); letter-spacing: -.01em; color: var(--kb-ink); outline: 0; }

/* buttons */
.kb-book .kb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--kb-btn-h, 48px); padding: 0 var(--kb-btn-px, 28px); margin: 0;
	background: var(--kb-btn-bg, var(--kb-accent)); color: var(--kb-btn-ink, var(--kb-on-accent)); border: 1px solid var(--kb-btn-line, var(--kb-accent)); border-radius: var(--kb-radius-s);
	font-size: 16px; font-weight: 600; line-height: 1; cursor: pointer; text-decoration: none;
	transition: opacity .2s ease, transform .1s ease, background-color .2s ease;
}
.kb-book .kb-btn:hover { opacity: .88; }
.kb-book .kb-btn:active { transform: scale(.98); }
.kb-book .kb-btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.kb-book .kb-btn--ghost { background: var(--kb-card); color: var(--kb-ink); border-color: var(--kb-line-strong); }
.kb-book .kb-btn--ghost:hover { background: var(--kb-soft); opacity: 1; }
.kb-book .kb-linkbtn { margin-left: auto; min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--kb-ink); font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.kb-book button:focus-visible, .kb-book input:focus-visible, .kb-book textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--kb-accent) 45%, transparent); outline-offset: 2px; }
.kb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.kb-foot--center { justify-content: center; flex-wrap: wrap; }

/* step 1: services */
.kb-list { display: grid; gap: 12px; }
.kb-svc { display: block; width: 100%; margin: 0; padding: 18px 20px; text-align: left; background: var(--kb-card); color: var(--kb-text); border: 1px solid var(--kb-line); border-radius: var(--kb-radius-svc); cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .1s ease; }
.kb-svc:hover { border-color: var(--kb-accent); box-shadow: 0 4px 14px rgba(17, 24, 39, .08); }
.kb-svc:active { transform: scale(.995); }
.kb-svc__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.kb-svc__name { font-size: 17px; font-weight: 700; color: var(--kb-ink); }
.kb-svc__price { flex: none; font-weight: 700; color: var(--kb-ink); }
.kb-svc__desc { display: block; margin-top: 4px; color: var(--kb-muted); font-size: 14px; }
.kb-svc__meta { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; color: var(--kb-muted); font-size: 14px; }

/* step 2 */
.kb-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 20px; padding: 14px 16px; background: var(--kb-soft); border-radius: var(--kb-radius-chip); }
.kb-chosen__name { font-weight: 700; color: var(--kb-ink); }
.kb-chosen__meta { color: var(--kb-muted); font-size: 14px; }
/* add-ons the client may tick with the service */
.kb-addons { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.kb-addons legend { margin-bottom: 8px; padding: 0; }
.kb-addon { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; background: var(--kb-card); border: 1px solid var(--kb-line-strong); border-radius: var(--kb-radius-chip); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
@media (hover: hover) { .kb-addon:hover { border-color: var(--kb-accent); } }
.kb-addon:has(input:checked) { border-color: var(--kb-accent); background: var(--kb-soft); }
.kb-addon input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--kb-accent); cursor: pointer; }
.kb-addon__name { flex: 1; min-width: 0; font-weight: 600; color: var(--kb-ink); }
.kb-addon__meta { flex: none; color: var(--kb-muted); font-size: 14px; white-space: nowrap; }
.kb-staff { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 20px; }
.kb-staff__label { font-size: 14px; font-weight: 600; color: var(--kb-ink); }
.kb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-pill { min-height: 44px; margin: 0; padding: 0 18px; background: var(--kb-card); color: var(--kb-ink); border: 1px solid var(--kb-line-strong); border-radius: var(--kb-radius-pill); font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.kb-pill:hover { border-color: var(--kb-accent); }
.kb-pill.is-on { background: var(--kb-accent); color: var(--kb-on-accent); border-color: var(--kb-accent); }
.kb-banner { margin: 0 0 16px; padding: 12px 16px; background: var(--kb-danger-soft); color: var(--kb-danger); border-radius: var(--kb-radius-chip); font-weight: 600; font-size: 15px; }

.kb-when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.kb-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kb-cal__title { flex: 1; text-align: center; font-size: 16px; font-weight: 700; color: var(--kb-ink); }
.kb-book .kb-cal__nav { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; background: none; color: var(--kb-ink); border: 0; border-radius: var(--kb-radius-day); cursor: pointer; transition: background-color .2s ease; }
.kb-book .kb-cal__nav:hover:not(:disabled) { background: var(--kb-soft); }
.kb-book .kb-cal__nav:disabled { opacity: .3; cursor: not-allowed; }
.kb-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; }
.kb-cal__dow { display: flex; align-items: center; justify-content: center; height: 28px; font-size: 12px; font-weight: 600; color: var(--kb-muted); }
.kb-book .kb-cal__day { position: relative; display: flex; align-items: center; justify-content: center; width: min(44px, 100%); max-width: 44px; min-width: 0; height: auto; aspect-ratio: 1 / 1; box-sizing: border-box; margin: 0 auto; padding: 0; background: none; color: var(--kb-muted); opacity: .6; border: 0; border-radius: var(--kb-radius-day); font-size: 15px; font-variant-numeric: tabular-nums; cursor: not-allowed; }
.kb-book .kb-cal__day.is-free { background: var(--kb-soft); color: var(--kb-ink); opacity: 1; font-weight: 600; cursor: pointer; transition: background-color .15s ease; }
.kb-book .kb-cal__day.is-free:hover { background: var(--kb-soft-hover); }
.kb-book .kb-cal__day.is-today::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.kb-book .kb-cal__day.is-selected { background: var(--kb-accent); color: var(--kb-on-accent); }
.kb-cal.is-loading .kb-cal__grid { opacity: .45; }
.kb-hint { margin: 12px 0 0; color: var(--kb-muted); font-size: 14px; }
.kb-times__title { margin: 4px 0 14px; font-size: 16px; font-weight: 700; color: var(--kb-ink); }
.kb-times .kb-hint { margin-top: 4px; }
.kb-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.kb-book .kb-chip { min-height: 46px; margin: 0; padding: 0 8px; background: var(--kb-card); color: var(--kb-ink); border: 1px solid var(--kb-line-strong); border-radius: var(--kb-radius-chip); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.kb-book .kb-chip:hover { border-color: var(--kb-accent); }
.kb-book .kb-chip.is-on { background: var(--kb-accent); color: var(--kb-on-accent); border-color: var(--kb-accent); }
/* A time that ends after closing: the client asks, the business confirms (a dot after the time, explained under the list). */
.kb-book .kb-chip--ask { border-style: dashed; }
.kb-book .kb-chip--ask::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; vertical-align: 2px; border-radius: 50%; background: currentColor; opacity: .55; }
.kb-book .kb-late-note { margin-top: 10px; }
.kb-book .kb-sum__late { margin: 10px 0 0; font-size: 14px; color: var(--kb-muted, inherit); }

/* step 3 */
.kb-sum { margin: 0 0 24px; padding: 16px 18px; background: var(--kb-soft); border-radius: var(--kb-radius-chip); }
.kb-sum__service { font-size: 17px; font-weight: 700; color: var(--kb-ink); margin-bottom: 8px; }
.kb-sum__row { display: flex; align-items: center; gap: 10px; padding: 3px 0; color: var(--kb-text); }
.kb-sum__row .kb-ico { color: var(--kb-muted); }
.kb-sum__price { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--kb-line); font-weight: 700; color: var(--kb-ink); }
.kb-form .kb-field { margin: 0 0 16px; }
.kb-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.kb-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--kb-ink); }
.kb-label__opt { font-weight: 400; color: var(--kb-muted); }
.kb-book .kb-field input, .kb-book .kb-field textarea {
	display: block; width: 100%; min-height: 48px; margin: 0; padding: 10px 14px; background: var(--kb-card); color: var(--kb-ink);
	border: 1px solid var(--kb-field-line); border-radius: var(--kb-radius-s); box-shadow: none; font-size: 16px; line-height: 1.4;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.kb-book .kb-field textarea { resize: vertical; min-height: 88px; }
.kb-book .kb-field input:focus, .kb-book .kb-field textarea:focus { border-color: var(--kb-accent); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--kb-accent) 30%, transparent); }
.kb-book .kb-field.has-error input { border-color: var(--kb-danger); background: var(--kb-danger-soft); }
.kb-error { margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--kb-danger); }
.kb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kb-privacy { margin-top: 0; }
.kb-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: 15px; line-height: 1.45; color: var(--kb-ink); cursor: pointer; }
.kb-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--kb-accent); }

/* step 4 */
.kb-book__card--done { text-align: center; }
.kb-book__card--done .kb-sum { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
.kb-done__badge { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: var(--kb-radius-day); background: var(--kb-accent); color: var(--kb-on-accent); }
.kb-done__badge svg { width: 28px; height: 28px; }
.kb-done__lead { margin: -8px 0 24px; color: var(--kb-muted); }

@media (max-width: 680px) {
	.kb-book__card { padding: 20px 16px; }
	.kb-when { grid-template-columns: 1fr; gap: 20px; }
	.kb-two { grid-template-columns: 1fr; }
	.kb-steps__name { display: none; }
	.kb-steps__item { justify-content: center; }
	.kb-steps__item.is-current .kb-steps__name { display: inline; }
	.kb-steps__item.is-current { flex: 2; }
	.kb-foot { flex-direction: column-reverse; align-items: stretch; }
	.kb-foot .kb-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.kb-book * { transition: none !important; }
}

/* =====================================================================
   Gentle motion: short, soft, never in the way.
   ===================================================================== */
@keyframes kb-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes kb-fadein { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes kb-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes kb-nudge { from { transform: scale(.94); } to { transform: scale(1); } }
@keyframes kb-draw { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
@keyframes kb-spin { to { transform: rotate(360deg); } }
@keyframes kb-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kb-accent) 35%, transparent); } 100% { box-shadow: 0 0 0 20px transparent; } }

/* each new step slides up a little */
.kb-book__card.kb-enter { animation: kb-rise .34s cubic-bezier(.2, .8, .2, 1) both; }
.kb-book__card.kb-enter .kb-svc { animation: kb-rise .36s cubic-bezier(.2, .8, .2, 1) both; }
.kb-book__card.kb-enter .kb-svc:nth-child(2) { animation-delay: 50ms; }
.kb-book__card.kb-enter .kb-svc:nth-child(3) { animation-delay: 100ms; }
.kb-book__card.kb-enter .kb-svc:nth-child(n+4) { animation-delay: 150ms; }

/* stepper: colours glide, the finished tick draws itself */
.kb-steps__item { transition: background-color .3s ease, color .3s ease; }
.kb-steps__no { transition: background-color .3s ease, color .3s ease; }
.kb-steps__no.is-new { animation: kb-pop .38s cubic-bezier(.2, .8, .2, 1); }
.kb-ico svg path, .kb-ico svg rect, .kb-ico svg circle { stroke-linecap: round; }
.kb-ico.is-draw svg path { stroke-dasharray: 16; animation: kb-draw .4s .12s ease-out backwards; }

/* calendar and times */
.kb-cal__grid.kb-fade { animation: kb-fadein .24s ease both; }
.kb-book .kb-cal__day.is-selected { animation: kb-nudge .2s cubic-bezier(.2, .8, .2, 1); }
.kb-book .kb-chip.kb-in { animation: kb-rise .26s cubic-bezier(.2, .8, .2, 1) backwards; }
.kb-book .kb-chip.is-on, .kb-book .kb-pill.is-on { animation: kb-nudge .18s ease-out; }
.kb-book .kb-chip:active, .kb-book .kb-pill:active { transform: scale(.96); }
.kb-times__title { animation: kb-fadein .22s ease both; }

/* buttons */
.kb-book .kb-btn { transition: opacity .2s ease, transform .15s ease, box-shadow .2s ease, background-color .2s ease; }
.kb-book .kb-btn:hover:not([disabled]) { opacity: 1; transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--kb-accent) 26%, transparent); }
.kb-book .kb-btn--ghost:hover:not([disabled]) { box-shadow: 0 4px 12px rgba(17, 24, 39, .08); }
.kb-book .kb-btn:active:not([disabled]) { transform: scale(.98); box-shadow: none; }
.kb-book .kb-svc:hover { transform: translateY(-2px); }
.kb-book .kb-btn[aria-busy="true"]::before { content: ""; flex: none; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: kb-spin .7s linear infinite; }

/* messages */
.kb-banner, .kb-error { animation: kb-rise .24s ease-out both; }

/* success */
.kb-done__badge { animation: kb-pop .5s cubic-bezier(.2, .8, .2, 1), kb-ring .9s .25s ease-out; }
.kb-done__badge .kb-ico.is-draw svg path { animation-delay: .22s; animation-duration: .45s; }
.kb-book__card--done .kb-book__title { animation: kb-rise .4s .15s ease-out backwards; }
.kb-book__card--done .kb-done__lead { animation: kb-rise .4s .22s ease-out backwards; }
.kb-book__card--done .kb-sum { animation: kb-rise .4s .3s ease-out backwards; }
.kb-book__card--done .kb-foot { animation: kb-rise .4s .38s ease-out backwards; }

@media (prefers-reduced-motion: reduce) {
	.kb-book *, .kb-book *::before, .kb-book *::after { animation: none !important; transition: none !important; }
	.kb-book .kb-btn:hover:not([disabled]), .kb-book .kb-svc:hover { transform: none; }
}

/* =====================================================================
   Client account page ([kohal_my_bookings])
   ===================================================================== */
.kb-acct .kb-acct__card { max-width: 640px; margin: 0 auto; }
.kb-acct .kb-sum__service { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kb-acct .kb-badge { display: inline-block; padding: 3px 10px; border-radius: var(--kb-radius-pill); background: var(--kb-soft-hover); color: var(--kb-ink); font-size: 12px; font-weight: 700; line-height: 1.5; vertical-align: middle; }
.kb-acct .kb-badge--confirmed { background: #e3f6ea; color: #14633a; }
.kb-acct .kb-badge--pending { background: #fff4d6; color: #7a5200; }
.kb-acct .kb-badge--cancelled, .kb-acct .kb-badge--no_show { background: var(--kb-danger-soft); color: var(--kb-danger); }
.kb-acct .kb-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--kb-radius-chip); font-weight: 600; font-size: 15px; }
.kb-acct .kb-notice--ok, .kb-book .kb-banner--ok { background: #e3f6ea; color: #14633a; }
.kb-acct .kb-acct__msg { margin-top: 16px; }
.kb-acct .kb-acct__ask { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--kb-line); text-align: center; }
.kb-acct .kb-acct__note { margin-top: 20px; text-align: center; }
.kb-acct .kb-acct__panel { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--kb-line); animation: kb-rise .3s cubic-bezier(.2, .8, .2, 1) both; }
.kb-acct .kb-btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.kb-acct .kb-link { color: var(--kb-ink); font-weight: 600; text-decoration: underline; }
.kb-acct__row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--kb-line); }
.kb-acct__row:first-of-type { border-top: 0; }
.kb-acct__when, .kb-acct__what { display: flex; flex-direction: column; min-width: 0; }
.kb-acct__when { flex: none; width: 150px; }
.kb-acct__what { flex: 1; }
.kb-acct__when b, .kb-acct__what b { color: var(--kb-ink); }
.kb-acct__when span, .kb-acct__what span { color: var(--kb-muted); font-size: 14px; }
@media (max-width: 680px) {
	.kb-acct__row { flex-wrap: wrap; gap: 8px 12px; }
	.kb-acct__when { width: auto; flex-direction: row; gap: 8px; align-items: baseline; }
	.kb-acct__what { flex-basis: 100%; order: 3; }
	.kb-acct .kb-foot { flex-direction: column-reverse; }
}

.kb-acct .kb-acct__back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; padding: 0 14px 0 10px; }
.kb-acct__cal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 16px 0 0; font-size: 14px; color: var(--kb-muted); }
/* Standing time on the client's booking page */
.kb-acct__series { margin: 18px 0 0; padding: 14px 16px; background: var(--kb-soft); border: 1px solid var(--kb-line); border-radius: 12px; font-size: 14px; color: var(--kb-text); }
.kb-acct__series-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.kb-acct__series-h .kb-ico { color: var(--kb-muted); }
.kb-acct__series-h span { color: var(--kb-muted); }
.kb-acct__series-sub { margin: 10px 0 2px; color: var(--kb-muted); font-size: 13px; }
.kb-acct__series-list { margin: 0; padding: 0; list-style: none; }
.kb-acct__series-list li { padding: 3px 0; }
.kb-acct__series-end { margin-top: 10px; }
.kb-acct__series-end summary { display: inline-block; cursor: pointer; list-style: none; color: var(--kb-muted); }
.kb-acct__series-end summary::-webkit-details-marker { display: none; }
.kb-acct__series-end form { margin-top: 6px; }
.kb-acct__series-end .kb-btn { margin-top: 10px; }
.kb-acct__series-done p { margin: 0 0 6px; }
.kb-acct__series-done .kb-acct__series-list { margin-top: 4px; }
.kb-acct__cal .kb-ico { color: var(--kb-muted); }
.kb-acct__cal > span { margin-right: -4px; }
.kb-acct__cal a { font-weight: 600; }

/* light / dark switch (My bookings, Staff bookings) */
.kb-acct .kb-acct__card { position: relative; }
.kb-acct .kb-book__title { padding-right: 52px; }
.kb-book .kb-scheme { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0; background: var(--kb-soft); color: var(--kb-ink); border: 0; border-radius: 50%; cursor: pointer; transition: background-color .15s ease, transform .1s ease; }
.kb-book .kb-scheme:hover { background: var(--kb-soft-hover); }
.kb-book .kb-scheme:active { transform: scale(.94); }
.kb-acct__card > .kb-scheme { position: absolute; top: 20px; right: 20px; }
.kb-scheme__sun { display: none; }
.kb-book[data-kb-scheme="dark"] .kb-scheme__sun { display: block; }
.kb-book[data-kb-scheme="dark"] .kb-scheme__moon { display: none; }
.kb-book[data-kb-scheme="dark"] { color-scheme: dark; }
.kb-book[data-kb-scheme="dark"].kb-acct .kb-badge--confirmed, .kb-book[data-kb-scheme="dark"].kb-acct .kb-notice--ok, .kb-book[data-kb-scheme="dark"] .kb-banner--ok { background: #12372a; color: #8ee2b0; }
.kb-book[data-kb-scheme="dark"].kb-acct .kb-badge--pending { background: #3d2f0b; color: #f6d27a; }

/* step headings get focus from the script so screen readers announce the step; they are not controls, so no ring */
.kb-book [tabindex="-1"]:focus { outline: none !important; box-shadow: none !important; }
/* no leftover ring after a mouse click; keyboard focus keeps a clear one */
.kb-book button:focus:not(:focus-visible), .kb-book .kb-btn:focus:not(:focus-visible), .kb-book a:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
.kb-book .kb-scheme:focus-visible, .kb-book .kb-st-iconbtn:focus-visible, .kb-book .kb-sheet__x:focus-visible { outline: 2px solid var(--kb-ink) !important; outline-offset: 2px !important; }

/* light / dark change: the browser cross-fades two snapshots; we replace that with a sweep (scheme.js) */
html.kb-vt::view-transition, html.kb-vt::view-transition-group(*), html.kb-vt::view-transition-image-pair(*), html.kb-vt::view-transition-old(*), html.kb-vt::view-transition-new(*) { pointer-events: none; } /* the page underneath stays clickable while the sweep runs */
html.kb-vt::view-transition-old(root), html.kb-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.kb-vt.kb-vt-rev::view-transition-new(root) { -webkit-mask-image: linear-gradient(255deg, #000 38%, transparent 62%); mask-image: linear-gradient(255deg, #000 38%, transparent 62%); -webkit-mask-position: 0% 0; mask-position: 0% 0; }
html.kb-vt::view-transition-old(root) { z-index: 1; }
html.kb-vt::view-transition-new(root) { z-index: 2; -webkit-mask-image: linear-gradient(105deg, #000 38%, transparent 62%); mask-image: linear-gradient(105deg, #000 38%, transparent 62%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
html.kb-fade .kb-acct, html.kb-fade .kb-acct *, html.kb-fade .kb-staff, html.kb-fade .kb-staff * { transition: background-color .4s ease, color .4s ease, border-color .4s ease !important; }

/* "make an account" hint on the details step */
.kb-nudge { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--kb-line); border-radius: var(--kb-radius-s, 10px); background: color-mix(in srgb, var(--kb-accent) 6%, var(--kb-card)); }
.kb-nudge p { margin: 0; flex: 1 1 240px; font-size: 14px; line-height: 1.45; color: var(--kb-text); }
.kb-nudge__links { display: flex; align-items: center; gap: 12px; }
.kb-nudge__login { font-size: 14px; color: var(--kb-muted); text-decoration: underline; text-underline-offset: 3px; }

/* booking form: steps and the light / dark switch share one row */
.kb-book__top { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; }
.kb-book__top .kb-steps { flex: 1; min-width: 0; margin: 0; }
.kb-book__top .kb-scheme { flex: none; margin-left: auto; }
.kb-book__top .kb-scheme { width: 44px; height: 44px; }

/* language switch */
.kb-langs { display: inline-flex; flex: none; align-self: center; gap: 2px; margin-left: auto; padding: 3px; border: 1px solid var(--kb-line); border-radius: 999px; background: var(--kb-card); }
.kb-langs + .kb-scheme { margin-left: 0; }
.kb-langs__a { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; color: var(--kb-muted); }
.kb-langs__a.is-on { background: var(--kb-accent); color: var(--kb-on-accent); }

.kb-pill__langs { margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; opacity: .65; }
.kb-staff__spoken { margin: 0 0 12px; color: var(--kb-muted); font-size: 14px; }
.kb-done__other { margin: 14px 0 0; text-align: center; font-size: 14px; }
.kb-book .kb-done__other .kb-linkbtn { margin-left: 0; }

/* time-of-day parts */
.kb-parts { display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; background: var(--kb-soft); border-radius: var(--kb-radius-pill); }
.kb-book .kb-part { flex: 1; min-height: 38px; margin: 0; padding: 0 10px; background: transparent; border: 0; border-radius: var(--kb-radius-pill); color: var(--kb-muted); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.kb-book .kb-part.is-on { background: var(--kb-card); color: var(--kb-ink); box-shadow: 0 1px 3px rgba(17, 24, 39, .12); }
.kb-book .kb-more { display: block; margin: 12px auto 0; min-height: 40px; padding: 0 8px; background: none; border: 0; color: var(--kb-ink); font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* service categories */
.kb-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.kb-book .kb-cat { min-height: 40px; margin: 0; padding: 0 16px; background: var(--kb-card); color: var(--kb-ink); border: 1px solid var(--kb-line-strong); border-radius: var(--kb-radius-pill); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.kb-book .kb-cat:hover { border-color: var(--kb-accent); }
.kb-book .kb-cat.is-on { background: var(--kb-accent); color: var(--kb-on-accent); border-color: var(--kb-accent); }

/* hover: a visible tint as well as the border (works in light and dark) */
.kb-book .kb-svc, .kb-book .kb-cat { transition: background-color .18s ease, border-color .18s ease, box-shadow .2s ease, color .18s ease; }
.kb-book .kb-svc:hover, .kb-book .kb-cat:not(.is-on):hover, .kb-book .kb-pill:not(.is-on):hover, .kb-book .kb-chip:not(.is-on):hover, .kb-book .kb-btn--ghost:hover {
	background: var(--kb-soft);
	background: color-mix(in srgb, var(--kb-ink) 9%, var(--kb-card));
}
.kb-book .kb-part:not(.is-on):hover { color: var(--kb-ink); }

/* sliding pill behind the selected part */
.kb-parts { position: relative; }
.kb-parts__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px - (var(--n, 2) - 1) * 4px) / var(--n, 2)); background: var(--kb-card); border-radius: var(--kb-radius-pill); box-shadow: 0 1px 3px rgba(17, 24, 39, .12); transform: translateX(calc(var(--i, 0) * (100% + 4px))); transition: transform .28s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.kb-book .kb-part { position: relative; z-index: 1; }
.kb-book .kb-part.is-on { background: transparent; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .kb-parts__thumb { transition: none; } }

/* time boxes drop in one after another */
@keyframes kb-drop { 0% { opacity: 0; transform: translateY(-16px) scale(.6); } 60% { opacity: 1; transform: translateY(2px) scale(1.06); } 100% { opacity: 1; transform: none; } }
.kb-book .kb-chip.kb-in { animation: kb-drop .62s cubic-bezier(.34, 1.4, .5, 1) backwards; }
@media (prefers-reduced-motion: reduce) { .kb-book .kb-chip.kb-in { animation: none; } }

/* service cards drop in after choosing a category */
@keyframes kb-pop-card { 0% { opacity: 0; transform: translateY(-22px) scale(.94); } 65% { opacity: 1; transform: translateY(3px) scale(1.01); } 100% { opacity: 1; transform: none; } }
.kb-book .kb-svc.kb-in { animation: kb-pop-card .7s cubic-bezier(.34, 1.3, .5, 1) backwards; }
@media (prefers-reduced-motion: reduce) { .kb-book .kb-svc.kb-in { animation: none; } }

/* a generic drop-in for pills and calendar days */
.kb-book .kb-drop { animation: kb-drop .62s cubic-bezier(.34, 1.4, .5, 1) backwards; }
@media (prefers-reduced-motion: reduce) { .kb-book .kb-drop { animation: none; } }

/* bigger blocks (form fields, summary) drop in more gently than small pills */
@keyframes kb-drop-block { 0% { opacity: 0; transform: translateY(-20px) scale(.96); } 65% { opacity: 1; transform: translateY(3px) scale(1.005); } 100% { opacity: 1; transform: none; } }
.kb-book .kb-drop.kb-drop--block { animation: kb-drop-block .62s cubic-bezier(.34, 1.3, .5, 1) backwards; }
@media (prefers-reduced-motion: reduce) { .kb-book .kb-drop.kb-drop--block { animation: none; } }

/* my bookings page motion */
.kb-acct__card > * { animation: kb-drop-block .62s cubic-bezier(.34, 1.3, .5, 1) backwards; }
.kb-acct__card > :nth-child(2) { animation-delay: 70ms; }
.kb-acct__card > :nth-child(3) { animation-delay: 140ms; }
.kb-acct__card > :nth-child(4) { animation-delay: 210ms; }
.kb-acct__card > :nth-child(5) { animation-delay: 280ms; }
.kb-acct__card > :nth-child(6) { animation-delay: 350ms; }
.kb-acct__card > :nth-child(7) { animation-delay: 420ms; }
.kb-acct__card > :nth-child(8) { animation-delay: 490ms; }
.kb-acct__card > :nth-child(9) { animation-delay: 560ms; }
.kb-acct__card > :nth-child(10) { animation-delay: 630ms; }
.kb-acct__card > :nth-child(11) { animation-delay: 700ms; }
.kb-acct__card > :nth-child(12) { animation-delay: 770ms; }
.kb-acct__card > :nth-child(13) { animation-delay: 840ms; }
.kb-acct__card > :nth-child(14) { animation-delay: 910ms; }
.kb-acct__card > :nth-child(15) { animation-delay: 980ms; }
.kb-acct__card > :nth-child(n+16) { animation-delay: 1050ms; }
.kb-acct__card > .kb-scheme { animation: none; }
.kb-acct .kb-acct__panel { animation: kb-drop-block .62s cubic-bezier(.34, 1.3, .5, 1) backwards; }
@keyframes kb-acct-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-10px) scale(.97); } }
.kb-acct .kb-acct__panel.is-closing { animation: kb-acct-out .3s ease both; pointer-events: none; }
.kb-acct [data-kb-actions]:not([hidden]) { animation: kb-drop-block .62s cubic-bezier(.34, 1.3, .5, 1) backwards; }
@media (prefers-reduced-motion: reduce) { .kb-acct__card > *, .kb-acct .kb-acct__panel, .kb-acct [data-kb-actions] { animation: none !important; } }
.kb-acct__row[hidden] { display: none; }

/* link from the booking form to My bookings */
.kb-book .kb-manage { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--kb-line); text-align: center; font-size: 14px; color: var(--kb-muted); }
.kb-book .kb-manage .kb-link { color: var(--kb-ink); font-weight: 600; text-decoration: underline; }
/* "Let me know if a time frees up": a link inside the sentence, still a 44px tap target */
.kb-book .kb-linkbtn--inline { margin-left: 0; padding: 0 2px; font-size: inherit; }
/* the waitlist step: its two choice rows sit inside the form */
.kb-form .kb-staff { margin: 0 0 16px; }

.kb-acct .kb-acct__lead { margin: 0 0 22px; text-align: center; }
.kb-acct .kb-acct__login { margin: 0; gap: 10px; }
.kb-acct .kb-acct__login .kb-btn { min-height: 46px; padding: 0 26px; }
.kb-acct .kb-acct__alt { margin: 22px 0 0; text-align: center; }

/* "please check your details" */
.kb-acct .kb-acct__review { max-width: 640px; margin: 0 auto 20px; }
.kb-acct .kb-acct__review .kb-form { margin-top: 4px; }
.kb-acct .kb-acct__review .kb-field label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 14px; color: var(--kb-ink); }
.kb-acct--review .kb-notice { max-width: 640px; margin: 0 auto 16px; }
.kb-acct .kb-acct__review .kb-acct__lead { text-align: left; margin-bottom: 18px; }
html.kb-vt *, html.kb-vt *::before, html.kb-vt *::after { transition: none !important; } /* colours must not fade underneath the sweep */

/* ---- theme behaviour options (Theme page): hover, press, speed, fields, selected colour ---- */
.kb-book .kb-btn { transition: background-color var(--kb-t, .2s) ease, color var(--kb-t, .2s) ease, border-color var(--kb-t, .2s) ease, transform var(--kb-t, .2s) ease, box-shadow var(--kb-t, .2s) ease, opacity var(--kb-t, .2s) ease; }
.kb-book .kb-btn:hover:not([disabled]):not(.kb-btn--ghost) { opacity: 1; background: var(--kb-btn-hv-bg, var(--kb-btn-bg, var(--kb-accent))); color: var(--kb-btn-hv-ink, var(--kb-btn-ink, var(--kb-on-accent))); transform: translateY(var(--kb-btn-hv-y, -1px)); box-shadow: var(--kb-btn-hv-sh, 0 6px 16px color-mix(in srgb, var(--kb-accent) 26%, transparent)); }
.kb-book .kb-btn:active:not([disabled]) { transform: scale(var(--kb-press, .98)); box-shadow: none; }
.kb-book .kb-chip:active, .kb-book .kb-pill:active { transform: scale(var(--kb-press, .96)); }
.kb-book .kb-svc, .kb-book .kb-cat, .kb-book .kb-chip, .kb-book .kb-pill, .kb-book .kb-cal__day, .kb-book .kb-btn--ghost { transition-duration: var(--kb-t, .18s); }
.kb-book .kb-svc:hover, .kb-book .kb-cat:not(.is-on):hover, .kb-book .kb-pill:not(.is-on):hover, .kb-book .kb-chip:not(.is-on):hover, .kb-book .kb-btn--ghost:hover:not([disabled]) {
	background: var(--kb-hc-bg, color-mix(in srgb, var(--kb-ink) 9%, var(--kb-card)));
	border-color: var(--kb-hc-line, var(--kb-accent));
	transform: translateY(var(--kb-hc-y, 0));
	box-shadow: var(--kb-hc-sh, none);
}
.kb-book .kb-svc:active, .kb-book .kb-cat:active { transform: scale(var(--kb-press, .98)); }
.kb-book .kb-field input, .kb-book .kb-field textarea { background: var(--kb-field-bg, var(--kb-card)); border-width: var(--kb-field-bw, 1px); border-color: var(--kb-field-bc, var(--kb-field-line)); border-radius: var(--kb-field-rad, var(--kb-radius-s)); transition-duration: var(--kb-t, .2s); }
.kb-book .kb-field input:focus, .kb-book .kb-field textarea:focus { border-color: var(--kb-accent); }
.kb-steps__item.is-current { background: var(--kb-sel, var(--kb-accent)); color: var(--kb-on-sel, var(--kb-on-accent)); }
.kb-steps__item.is-current .kb-steps__no { background: var(--kb-on-sel, var(--kb-on-accent)); color: var(--kb-sel, var(--kb-accent)); }
.kb-book .kb-pill.is-on, .kb-book .kb-chip.is-on, .kb-book .kb-cat.is-on { background: var(--kb-sel, var(--kb-accent)); color: var(--kb-on-sel, var(--kb-on-accent)); border-color: var(--kb-sel, var(--kb-accent)); }
.kb-book .kb-cal__day.is-selected { background: var(--kb-sel, var(--kb-accent)); color: var(--kb-on-sel, var(--kb-on-accent)); }
@media (prefers-reduced-motion: reduce) { .kb-book .kb-btn:hover:not([disabled]) { transform: none; } }

/* Dark mode: the light button must not glow on hover, just lift a little with a soft dark shadow */
.kb-book[data-kb-scheme="dark"] .kb-btn:hover:not([disabled]):not(.kb-btn--ghost) { box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }

/* The page behind a star in the thank-you e-mail: five large stars, a comment, the same Google button for everyone. */
.kb-stars { display: flex; gap: 8px; margin: 18px 0 20px; }
.kb-stars__b { flex: 1 1 0; min-width: 0; height: 56px; border: 1px solid var(--kb-line, #e7e7e3); border-radius: 12px; background: transparent; color: var(--kb-muted); font-size: 28px; line-height: 1; cursor: pointer; transition: color .15s, border-color .15s, transform .15s; }
.kb-stars__b.is-on { color: #e0a100; border-color: #e0a100; }
.kb-stars__b:active { transform: scale(.94); }
.kb-stars__b:focus-visible { outline: 2px solid var(--kb-accent); outline-offset: 2px; }
.kb-rate__area { width: 100%; resize: vertical; min-height: 96px; }
.kb-rate__lead { text-align: center; }
.kb-rate__google { margin-top: 12px; }
