/* ==========================================================================
   Nowa rejestracja — karty Maciej / Anna z terminami (projekt P1.5, v2, 15.11.2026)
   v2: przełącznik pierwsze/kolejne wewnątrz karty Macieja; szata v1 bez zmian.
   Wygląd na bazie kart P1.4 v2.1 (zdjęcia, typografia, fiolet, lawenda,
   zaokrąglenia, przyciski terminów). Kandydat do motywu wamka-2026.
   Układ reaguje na szerokość samego modułu (container queries) — tak samo
   na stronie /rezerwuj-wizyte/ i w oknie rezerwacji.
   ========================================================================== */

/* zmienne wspólne dla kart i pełnego kalendarza (kalendarz żyje w oknie, poza .wk-reg) */
.wk-reg, .wk-regcal {
  --wk-reg-line: #dcd2ec;
  --wk-reg-soft: #f7f4fd;
  --wk-reg-hover: #f1eafb;
  --i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236859a3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --i-price: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236859a3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8L3 12Z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E");
  --i-place: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236859a3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
  --i-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236859a3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4m8-4v4'/%3E%3C/svg%3E");
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23352e57' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20L12 3Z'/%3E%3Cpath d='M12 10v4m0 3v.01'/%3E%3C/svg%3E");
  --i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236859a3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5m0-8v.01'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-retry: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.7M20 4v5h-5'/%3E%3C/svg%3E");
  --i-loop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236859a3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 2l4 4-4 4'/%3E%3Cpath d='M3 11v-1a4 4 0 0 1 4-4h14M7 22l-4-4 4-4'/%3E%3Cpath d='M21 13v1a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E");
}
.wk-reg {
  container: wkreg / inline-size;
  position: relative;
  padding: 8px 0 76px;
  background: #fff;
  color: var(--wk-ink);
}
.wk-reg > .wk-row { width: calc(100% - 66px); max-width: 1270px; margin-inline: auto; }
.wk-reg p, .wk-reg ul { margin: 0; }
.wk-reg *, .wk-reg *::before, .wk-reg *::after { box-sizing: border-box; }
.wk-reg .vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- przełącznik Pierwsze / Kolejne (v2: tylko w karcie Macieja) ---------- */
.wk-reg__modebox { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.wk-reg__modehint { margin: 0 !important; font-size: 13px; line-height: 1.5; color: var(--wk-muted); }
.wk-reg__modehint:empty { display: none; }
.wk-reg__mode { margin: 0; padding: 0; border: 0; min-width: 0; }
.wk-reg__mode legend { display: block; padding: 0; margin: 0 0 8px; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--wk-muted); }
.wk-reg__modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wk-reg__modeopt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; margin: 0; padding: 9px 14px; border: 1.5px solid var(--wk-line); border-radius: 18px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.wk-reg__modeopt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.wk-reg__modeopt::before { content: ""; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #807596; background: #fff; box-sizing: border-box; }
.wk-reg__modeopt:hover { border-color: var(--wk-purple); }
.wk-reg__modeopt:has(input:checked) { border: 2px solid var(--wk-ink); padding: 8.5px 13.5px; background: var(--wk-lavender); }
.wk-reg__modeopt:has(input:checked)::before { border: 6px solid var(--wk-ink); }
.wk-reg__modeopt:has(input:focus-visible) { outline: 3px solid var(--wk-purple); outline-offset: 2px; }
.wk-reg__modetxt { display: flex; flex-direction: column; min-width: 0; }
.wk-reg__modetxt strong { font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--wk-ink); }
.wk-reg__modetxt small { font-size: 13px; line-height: 1.4; color: var(--wk-muted); }
.wk-reg__modeopt:has(input:checked) small { color: #4f4766; } /* kontrast na lawendzie ≥ 4,5:1 */
/* bez JS — krótkie wyjaśnienie trybów w karcie Macieja */
.wk-reg__modestatic { margin: 0 !important; padding: 10px 14px; border-radius: 14px; background: var(--wk-reg-soft); font-size: 14px; line-height: 1.5; }

/* ---------- karty ---------- */
.wk-reg__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.wk-reg__cards.is-single { grid-template-columns: minmax(0, 1fr); }
.wk-reg__card {
  display: flex; flex-direction: column; gap: 22px;
  min-width: 0; padding: 28px 30px 30px;
  background: #fff; border: 1px solid var(--wk-reg-line); border-radius: var(--wk-radius, 28px);
}
/* Bez wyrównania wierszy (subgrid): listy usług mają różną długość (2–5), więc puste miejsce zostaje na dole krótszej karty, a nie w środku. */

/* osoba */
.wk-reg__who { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.wk-reg__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin: 0; }
.wk-reg__name { margin: 0 0 2px !important; font-size: 22px !important; line-height: 1.2 !important; letter-spacing: -0.02em !important; }
.wk-reg__role { margin: 0 0 2px !important; font-size: 14px; line-height: 1.45; color: var(--wk-muted); }
.wk-reg__bio { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; font-weight: 700; color: var(--wk-purple); text-decoration: none; }
.wk-reg__bio::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--wk-i-arrow) center / contain no-repeat; mask: var(--wk-i-arrow) center / contain no-repeat; transition: transform .18s; }
.wk-reg__bio:hover { color: var(--wk-ink); }
.wk-reg__bio:hover::after { transform: translateX(3px); }
.wk-reg a:focus-visible, .wk-reg button:focus-visible { outline: 3px solid var(--wk-purple); outline-offset: 2px; border-radius: 6px; }

/* rodzaj spotkania — lista usług */
.wk-reg__type { margin: 0; padding: 0; border: 0; min-width: 0; }
.wk-reg__type legend, .wk-reg .wk-reg__label { display: block; padding: 0; margin: 0 0 8px; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--wk-muted); }
.wk-reg__opts { display: flex; flex-direction: column; gap: 8px; }
.wk-reg__opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; margin: 0; padding: 9px 14px; border: 1.5px solid var(--wk-line); border-radius: 18px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.wk-reg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.wk-reg__opt::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #807596; background: #fff; box-sizing: border-box; }
.wk-reg__opt:hover { border-color: var(--wk-purple); }
.wk-reg__opt:has(input:checked) { border: 2px solid var(--wk-ink); padding: 8.5px 13.5px; background: var(--wk-reg-soft); }
.wk-reg__opt:has(input:checked)::before { border: 5px solid var(--wk-ink); }
.wk-reg__opt:has(input:focus-visible) { outline: 3px solid var(--wk-purple); outline-offset: 2px; }
.wk-reg__opt-txt { display: flex; flex-direction: column; min-width: 0; }
.wk-reg__opt-name { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--wk-ink); overflow-wrap: normal; word-break: normal; hyphens: none; -webkit-hyphens: none; }
.wk-reg__opt-sub { font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--wk-muted); }
.wk-reg__opt-price { font-size: 14px; font-weight: 800; color: var(--wk-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* czas, cena, forma */
.wk-reg__info { display: flex; flex-direction: column; gap: 10px; }
.wk-reg__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.wk-reg__meta li { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--wk-ink); }
.wk-reg__meta li::before { content: ""; width: 18px; height: 18px; flex: 0 0 auto; background: var(--icon) center / contain no-repeat; }
.wk-reg__meta .is-time { --icon: var(--i-clock); }
.wk-reg__meta .is-price { --icon: var(--i-price); }
.wk-reg__meta .is-place { --icon: var(--i-place); }
.wk-reg__hint { margin: 0 !important; font-size: 13px; line-height: 1.5; color: var(--wk-muted); }
.wk-reg__note { display: flex; align-items: flex-start; gap: 10px; margin: 0 !important; padding: 10px 14px; border-radius: 14px; background: #fff3d6; font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--wk-ink); }
.wk-reg__note::before { content: ""; width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; background: var(--wk-i-family) center / contain no-repeat; }
.wk-reg__note--therapy { background: #ece5fd; }
.wk-reg__note--therapy::before { background-image: var(--wk-i-heart); }
.wk-reg__note--cont { background: #e3f6f8; }
.wk-reg__note--cont::before { background-image: var(--i-loop); }

/* terminy */
.wk-reg__slots { min-width: 0; }
.wk-reg__slots-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin: 0 0 10px !important; }
.wk-reg__slots-head strong { font-size: 15px; font-weight: 800; color: var(--wk-ink); }
.wk-reg__slots-head span { font-size: 13px; color: var(--wk-muted); }
.wk-reg__body { min-height: 226px; } /* 3 terminy + „Zobacz wszystkie terminy” — miejsce zarezerwowane, bez skoku */
.wk-reg__morerow { margin-top: 8px !important; }
.wk-reg__more { padding-left: 4px; }
.wk-reg__list { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.wk-reg__list li { margin: 0; }
.wk-reg__slot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  width: 100%; min-height: 54px; margin: 0; padding: 8px 8px 8px 18px;
  border: 1.5px solid var(--wk-line); border-radius: 40px; background: #fff;
  font: 700 15px/1.3 var(--wk-font); color: var(--wk-ink); text-align: left; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.wk-reg__day { min-width: 0; }
.wk-reg__wd { text-transform: capitalize; }
.wk-reg__wd--short { display: none; }
.wk-reg__time { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wk-reg__go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 86px; min-height: 36px; padding: 6px 14px; border-radius: 30px; background: var(--wk-reg-hover); font-size: 13px; font-weight: 800; color: var(--wk-ink); }
.wk-reg__slot:hover, .wk-reg__slot:focus-visible { border-color: var(--wk-purple); background: var(--wk-reg-hover); }
.wk-reg__slot:hover .wk-reg__go { background: var(--wk-purple); color: #fff; }
.wk-reg__slot:focus-visible { outline: 3px solid var(--wk-purple); outline-offset: 2px; border-radius: 40px; }
.wk-reg__slot[aria-pressed="true"] { background: var(--wk-ink); border-color: var(--wk-ink); color: #fff; }
.wk-reg__slot[aria-pressed="true"] .wk-reg__go { background: #fff; color: var(--wk-ink); }
.wk-reg__slot[aria-pressed="true"] .wk-reg__go::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.wk-reg__slot[aria-busy="true"] { cursor: progress; }
.wk-reg__slot[aria-busy="true"] .wk-reg__go::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: wk-reg-spin .8s linear infinite; }
@keyframes wk-reg-spin { to { transform: rotate(360deg); } }

/* ładowanie */
.wk-reg__skel { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.wk-reg__skel li { height: 54px; margin: 0; border-radius: 40px; background: linear-gradient(90deg, #f3f0f8 0%, #ebe6f4 40%, #f3f0f8 80%) 0 0 / 300% 100%; animation: wk-reg-shimmer 1.6s ease-in-out infinite; }
.wk-reg__skel-more { display: flex; align-items: center; height: 40px; margin-top: 8px; }
.wk-reg__skel-more::before { content: ""; width: 210px; height: 14px; border-radius: 8px; background: #efebf6; }
@keyframes wk-reg-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* komunikaty: brak terminów / błąd / termin zajęty */
.wk-reg__msg { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; margin: 0 0 10px; padding: 16px 18px; border-radius: 18px; background: var(--wk-reg-soft); font-size: 15px; line-height: 1.5; color: var(--wk-ink); }
.wk-reg__msg:focus { outline: none; }
.wk-reg__msg:focus-visible { outline: 3px solid var(--wk-purple); outline-offset: 2px; }
.wk-reg__body > .wk-reg__msg:only-child { min-height: 226px; margin: 0; align-content: center; }
.wk-reg__msg::before { content: ""; grid-row: span 3; width: 22px; height: 22px; margin-top: 1px; background: var(--icon) center / contain no-repeat; }
.wk-reg__msg p { margin: 0 !important; }
.wk-reg__msg-text { font-weight: 700; }
.wk-reg__msg-sub { font-size: 13px; color: var(--wk-muted); }
.wk-reg__msg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 6px !important; }
.wk-reg__msg--empty, .wk-reg__msg--choose { --icon: var(--i-cal); }
.wk-reg__msg--taken { --icon: var(--i-info); }
.wk-reg__msg--error { --icon: var(--i-alert); background: #fff; border: 1.5px dashed #b5abc8; }
.wk-reg__textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 15px; font-weight: 800; color: var(--wk-purple); text-decoration: none; }
.wk-reg__textlink::after { content: ""; width: 18px; height: 18px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--wk-i-arrow) center / contain no-repeat; mask: var(--wk-i-arrow) center / contain no-repeat; transition: transform .18s; }
.wk-reg__textlink:hover { color: var(--wk-ink); }
.wk-reg__textlink:hover::after { transform: translateX(3px); }
.wk-reg__retry { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; padding: 8px 18px; border: 1.5px solid #b5abc8; border-radius: 40px; background: #fff; font: 800 15px/1.2 var(--wk-font); color: var(--wk-ink); cursor: pointer; }
.wk-reg__retry::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--i-retry) center / contain no-repeat; mask: var(--i-retry) center / contain no-repeat; }
.wk-reg__retry:hover { background: var(--wk-lavender); border-color: var(--wk-purple); }

/* dół karty: wybrany termin */
.wk-reg__foot { display: flex; flex-direction: column; gap: 12px; align-self: stretch; }
.wk-reg__foot:empty { display: none; }
.wk-reg__picked { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--wk-lavender); font-size: 14px; line-height: 1.45; color: var(--wk-ink); }
.wk-reg__picked small { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #4b3f87; }
.wk-reg__picked strong { font-size: 16px; }
.wk-reg__picked .wk-button { align-self: flex-start; margin-top: 10px; min-height: 46px; padding: 10px 20px; font-size: 15px; }

/* pod kartami */
.wk-reg__after { display: flex; align-items: flex-start; gap: 10px; max-width: 820px; margin-top: 24px; font-size: 15px; line-height: 1.55; color: var(--wk-ink); }
.wk-reg__after::before { content: ""; width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; background: var(--i-info) center / contain no-repeat; }
.wk-reg__after p { margin: 0 !important; }

/* wersja bez JavaScriptu */
.wk-reg__static { display: flex; flex-direction: column; gap: 10px; }
.wk-reg__static .wk-button { width: 100%; }
.wk-reg__svc { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 0 0 10px !important; padding: 0; }
.wk-reg__svc li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; margin: 0; padding: 9px 14px; border-radius: 14px; background: var(--wk-reg-soft); font-size: 14px; line-height: 1.4; }
.wk-reg__svc li > span:first-child { font-weight: 700; color: var(--wk-ink); overflow-wrap: normal; word-break: normal; hyphens: none; -webkit-hyphens: none; }
.wk-reg__svc li > span:nth-child(2) { font-weight: 800; white-space: nowrap; }
.wk-reg__svc small { grid-column: 1 / -1; font-size: 12.5px; color: var(--wk-muted); }

/* ======================= pełny kalendarz ======================= */
.wk-regcal { display: flex; flex-direction: column; gap: 16px; color: var(--wk-ink); }
.wk-regcal-wrap { container: wkreg / inline-size; }
.wk-regcal p { margin: 0; }
.wk-regcal__sum { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: #ece5fd; font-size: 14px; line-height: 1.45; }
.wk-regcal__sum strong { font-size: 16px; font-weight: 800; }
.wk-regcal__sum span { color: #4f4766; }
.wk-regcal__note { margin-top: 4px; font-weight: 700; color: var(--wk-ink) !important; }
.wk-regcal__title { margin: 4px 0 0 !important; font-size: 30px !important; line-height: 1.15 !important; letter-spacing: -0.03em !important; }
.wk-regcal__title:focus { outline: none; }
.wk-regcal__weekbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.wk-regcal__skelbar { width: 100%; height: 44px; border-radius: 22px; background: #f3f0f8; }
.wk-regcal__range { font-size: 15px; font-weight: 800; }
.wk-regcal__range:focus { outline: none; }
.wk-regcal__nav { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--wk-line); border-radius: 50%; background: #fff; color: var(--wk-ink); cursor: pointer; }
.wk-regcal__nav::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--wk-i-arrow) center / contain no-repeat; mask: var(--wk-i-arrow) center / contain no-repeat; transform: scaleX(-1); }
.wk-regcal__nav--next::before { transform: none; }
.wk-regcal__nav:hover:not(:disabled) { border-color: var(--wk-purple); background: var(--wk-reg-hover); }
.wk-regcal__nav:disabled { opacity: .35; cursor: default; }
.wk-regcal__nav:focus-visible, .wk-regcal__day:focus-visible, .wk-regcal__time:focus-visible { outline: 3px solid var(--wk-purple); outline-offset: 2px; }
.wk-regcal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk-regcal__day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; min-height: 58px; padding: 7px 2px; border: 1.5px solid var(--wk-line); border-radius: 14px; background: #fff; font: 700 13px/1.25 var(--wk-font); color: var(--wk-ink); cursor: pointer; }
.wk-regcal__wd { font-size: 12px; color: var(--wk-muted); }
.wk-regcal__dn { font-size: 18px; font-weight: 800; }
.wk-regcal__cnt { position: absolute; top: -7px; right: -5px; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--wk-yellow); font-size: 11px; font-weight: 800; color: var(--wk-ink); }
.wk-regcal__day:hover:not(:disabled) { border-color: var(--wk-purple); }
.wk-regcal__day.is-on { background: var(--wk-ink); border-color: var(--wk-ink); color: #fff; }
.wk-regcal__day.is-on .wk-regcal__wd { color: #e2d9fe; }
.wk-regcal__day:disabled { background: #f6f4f9; border-color: #efecf4; color: #aaa3b8; cursor: default; }
.wk-regcal__day:disabled .wk-regcal__wd { color: #aaa3b8; }
.wk-regcal__list { min-height: 200px; }
.wk-regcal__dayhead { margin: 0 0 10px !important; font-size: 15px; font-weight: 800; }
.wk-regcal__none { padding: 14px 16px; border-radius: 14px; background: var(--wk-reg-soft); font-size: 14px; }
.wk-regcal__times { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.wk-regcal__times li { margin: 0; }
.wk-regcal__time { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 7px 8px 7px 18px; border: 1.5px solid var(--wk-line); border-radius: 40px; background: #fff; font: 800 16px/1.3 var(--wk-font); color: var(--wk-ink); font-variant-numeric: tabular-nums; cursor: pointer; text-align: left; }
.wk-regcal__go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 86px; min-height: 36px; padding: 6px 14px; border-radius: 30px; background: var(--wk-ink); font-size: 13px; color: #fff; }
.wk-regcal__time:hover { border-color: var(--wk-purple); background: var(--wk-reg-hover); }
.wk-regcal__time[aria-pressed="true"] { border: 2px solid var(--wk-ink); background: var(--wk-reg-soft); }
.wk-regcal__time[aria-busy="true"] { cursor: progress; }
.wk-regcal__time[aria-busy="true"] .wk-regcal__go::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: wk-reg-spin .8s linear infinite; }
.wk-regcal__foot { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.5; color: var(--wk-muted); }
.wk-regcal .wk-reg__msg { margin-bottom: 10px; }

/* ---------- węższe ekrany ---------- */
@container wkreg (max-width: 860px) {
  .wk-reg__cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .wk-reg__card { gap: 20px; }
}
@container wkreg (max-width: 760px) {
  .wk-reg { padding: 4px 0 56px; }
  .wk-reg > .wk-row { width: calc(100% - 40px); }
  .wk-reg__modeopt { gap: 10px; min-height: 58px; padding: 8px 12px; }
  .wk-reg__modeopt:has(input:checked) { padding: 7.5px 11.5px; }
  .wk-reg__modetxt small { font-size: 12.5px; }
  .wk-reg__card { padding: 22px 18px 22px; border-radius: 24px; }
  .wk-reg__photo { width: 60px; height: 60px; }
  .wk-reg__who { gap: 14px; }
  .wk-reg__name { font-size: 20px !important; }
  .wk-reg__after { font-size: 14px; margin-top: 20px; }
}
@container wkreg (min-width: 861px) and (max-width: 1100px) {
  .wk-reg__wd--long { display: none; }
  .wk-reg__wd--short { display: inline; }
}
@container wkreg (max-width: 560px) {
  .wk-reg__wd--long { display: none; }
  .wk-reg__wd--short { display: inline; }
  .wk-reg__go { min-width: 0; padding: 6px 12px; }
  .wk-regcal__title { font-size: 26px !important; }
  .wk-regcal__days { gap: 4px; }
  .wk-regcal__day { min-height: 54px; border-radius: 12px; }
  .wk-regcal__dn { font-size: 16px; }
}
/* bardzo wąski telefon (320) */
@container wkreg (max-width: 360px) {
  .wk-reg > .wk-row { width: calc(100% - 28px); }
  .wk-reg__modes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wk-reg__modeopt { min-height: 54px; }
  .wk-reg__card { padding: 20px 14px; }
  .wk-reg__opt { gap: 10px; padding: 8px 12px; }
  .wk-reg__opt:has(input:checked) { padding: 7.5px 11.5px; }
  .wk-reg__opt-name { font-size: 14.5px; }
  .wk-reg__body, .wk-reg__body > .wk-reg__msg:only-child { min-height: 240px; }
  .wk-reg__slot { gap: 8px; padding-left: 14px; font-size: 14px; }
  .wk-reg__time { font-size: 16px; }
  .wk-reg__go { width: 36px; padding: 0; }
  .wk-reg__go-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wk-reg__go::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--wk-i-arrow) center / contain no-repeat; mask: var(--wk-i-arrow) center / contain no-repeat; }
  .wk-reg__slot[aria-pressed="true"] .wk-reg__go::after, .wk-reg__slot[aria-busy="true"] .wk-reg__go::after { display: none; }
  .wk-regcal__days { gap: 3px; }
  .wk-regcal__day { min-height: 50px; padding: 6px 0; border-radius: 10px; }
  .wk-regcal__wd { font-size: 11px; }
  .wk-regcal__dn { font-size: 15px; }
  .wk-regcal__cnt { top: -6px; right: -3px; min-width: 17px; height: 17px; font-size: 10px; padding: 0 4px; }
  .wk-regcal__go { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wk-reg__skel li { animation: none; }
  .wk-reg__slot[aria-busy="true"] .wk-reg__go::before, .wk-regcal__time[aria-busy="true"] .wk-regcal__go::before { animation-duration: 2.4s; }
  .wk-reg__bio::after, .wk-reg__textlink::after { transition: none; }
}

/* P1.5B integration: styles confined to cards and their calendar. */
.wk-reg,.wk-regcal { --wk-font: "Nunito Wamka",Nunito,system-ui,sans-serif; --wk-line:#e8e4f0; --wk-muted:#6e687f; font:400 17px/1.6 var(--wk-font); }
.wk-reg h2 { margin:0; font-family:inherit; }
.wk-reg button,.wk-reg input,.wk-regcal button { font-family:inherit; }
.wk-reg a:focus-visible,.wk-reg button:focus-visible,.wk-regcal button:focus-visible { outline:3px solid #6859a3;outline-offset:3px; }
#wk-booking .wk-reg { padding:0; }
#wk-booking .wk-reg > .wk-row { width:100%; }
#wk-booking .wk-reg__card { padding:20px 18px;border-radius:22px; }
#wk-booking .wk-regcal .vh { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0); }
#wk-booking[data-reg-view="cards"] { width:min(1120px,calc(100vw - 24px));max-width:calc(100vw - 16px); }
#wk-booking[data-reg-view="single"],#wk-booking[data-reg-view="calendar"] { width:min(640px,calc(100vw - 24px)); }
.wk-reg__cards { min-width:0; }
@media(max-width:420px) { #wk-booking .wk-booking__body { padding:14px; } #wk-booking .wk-reg__card { padding:18px 14px; } }

.wk-reg,.wk-regcal { --wk-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236859a3' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E"); }

/* P1.5C — inline request for a contact about availability. */
.wk-reg__contact { position:relative;display:flex;flex-direction:column;gap:10px;margin:16px 0 0;padding-top:16px;border-top:1px solid var(--wk-reg-line);text-align:left; }
.wk-reg__contact-title { font-size:14px;font-weight:700;line-height:1.5;margin:0; }
.wk-reg__contact-field { display:flex;flex-direction:column;gap:5px;font-size:14px;font-weight:700; }
.wk-reg__contact-field input { width:100%;min-width:0;min-height:44px;box-sizing:border-box;padding:10px 12px;border:1.5px solid #b5abc8;border-radius:12px;background:#fff;color:var(--wk-ink);font:400 16px/1.4 var(--wk-font); }
.wk-reg__contact-field input:focus-visible { outline:3px solid var(--wk-purple);outline-offset:2px; }
.wk-reg__contact-field input[aria-invalid="true"] { border-color:#a0324c; }
.wk-reg__contact-hint { margin:0;font-size:12.5px;line-height:1.5;color:var(--wk-muted); }
.wk-reg__contact-hint a { color:inherit;text-decoration:underline; }
.wk-reg__contact-status { margin:0;font-size:14px;line-height:1.5;font-weight:700;overflow-wrap:anywhere; }
.wk-reg__contact-status:empty { display:none; }
.wk-reg__contact-hp { position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap; }
.wk-reg__contact .wk-reg__contact-submit { width:100%;min-height:48px;font-size:15px;padding:12px 16px;white-space:normal; }
.wk-reg__contact-submit:disabled { cursor:default;opacity:.65; }

/* P1.5D: keep the mobile bottom sheet full-width in every booking step.
 * P1.5B's narrower ID rules otherwise override booking.css width:100%
 * while retaining its margin:auto 0 0, leaving all spare space on the right. */
@media (max-width:760px) {
  #wk-booking, #wk-booking[data-reg-view] {
    width:100%;
    max-width:100%;
    margin-inline:0;
  }
}

/* P1.5F — the dialog uses a compact person switch and a separate footer row. */
.wk-reg__note[hidden], .wk-regcal__note[hidden] { display: none; }
#wk-booking[open][data-reg-view="compact"] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}
#wk-booking[data-reg-view="compact"] .wk-booking__top { padding-block: 6px; }
#wk-booking[data-reg-view="compact"] .wk-booking__body {
  min-height: 0;
  padding: 12px 16px 16px;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 8px;
}
#wk-booking[data-reg-view="compact"] .wk-booking__title { margin-bottom: 8px; }
#wk-booking[data-reg-view="compact"] [data-reg-change-person][hidden] { display: none; }
#wk-booking[data-reg-view="compact"] .wk-reg__card {
  gap: 12px;
  padding: 10px 0 0;
  border: 0;
}
#wk-booking[data-reg-view="compact"] .wk-reg__card[hidden] { display: none; }
#wk-booking[data-reg-view="compact"] .wk-reg__after:empty { display: none; }

.wk-reg__people {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.wk-reg__people legend {
  margin-bottom: 6px;
  padding: 0;
  color: var(--wk-ink);
  font-size: 14px;
  font-weight: 800;
}
.wk-reg__people-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.wk-reg__person-choice {
  display: flex;
  position: relative;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 9px;
  border: 1.5px solid var(--wk-reg-line);
  border-radius: 14px;
  color: var(--wk-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}
.wk-reg__person-choice:has(input:checked) {
  border-color: var(--wk-ink);
  background: var(--wk-reg-soft);
}
.wk-reg__person-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.wk-reg__person-choice img { flex: 0 0 32px; border-radius: 50%; object-fit: cover; }
.wk-reg__person-choice:has(input:focus-visible),
.wk-reg__type-details summary:focus-visible,
.wk-reg__contact-disclosure summary:focus-visible {
  outline: 3px solid var(--wk-purple);
  outline-offset: 2px;
}
#wk-booking[data-reg-view="compact"] .wk-reg__modebox { gap: 4px; }
#wk-booking[data-reg-view="compact"] .wk-reg__modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#wk-booking[data-reg-view="compact"] .wk-reg__mode legend,
#wk-booking[data-reg-view="compact"] .wk-reg__type legend { margin-bottom: 4px; }
#wk-booking[data-reg-view="compact"] .wk-reg__modeopt { gap: 6px; min-height: 44px; padding: 6px; }
#wk-booking[data-reg-view="compact"] .wk-reg__modeopt::before { width: 15px; height: 15px; }
#wk-booking[data-reg-view="compact"] .wk-reg__modeopt small { display: none; }
#wk-booking[data-reg-view="compact"] .wk-reg__modetxt strong { font-size: 13px; }
#wk-booking[data-reg-view="compact"] .wk-reg__opts { gap: 5px; }
#wk-booking[data-reg-view="compact"] .wk-reg__opt { gap: 8px; min-height: 44px; padding: 6px 8px; border-radius: 12px; }
#wk-booking[data-reg-view="compact"] .wk-reg__opt-name { font-size: 14px; }
.wk-reg__type-details[open] .wk-reg__type { margin-top: 8px; }
.wk-reg__type-summary, .wk-reg__contact-summary {
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--wk-reg-line);
  border-radius: 12px;
  background: #fff;
  color: var(--wk-ink);
  cursor: pointer;
  font-size: 14px;
}
.wk-reg__type-summary span { display: block; color: var(--wk-purple); font-size: 13px; font-weight: 800; }
.wk-reg__type-summary::marker, .wk-reg__contact-summary::marker { color: var(--wk-purple); }
.wk-reg__contact-disclosure { grid-column: 2; min-width: 0; margin-top: 6px; }
.wk-reg__contact-summary { font-weight: 800; }
#wk-booking[data-reg-view="compact"] .wk-reg__info { gap: 6px; }
#wk-booking[data-reg-view="compact"] .wk-reg__meta { gap: 4px 10px; }
#wk-booking[data-reg-view="compact"] .wk-reg__meta li { gap: 4px; font-size: 13px; }
#wk-booking[data-reg-view="compact"] .wk-reg__note { padding: 7px 9px; font-size: 13px; }
#wk-booking[data-reg-view="compact"] .wk-reg__slots-head { margin-bottom: 6px !important; }
#wk-booking[data-reg-view="compact"] .wk-reg__body,
#wk-booking[data-reg-view="compact"] .wk-reg__body > .wk-reg__msg:only-child { min-height: 0; }
#wk-booking[data-reg-view="compact"] .wk-reg__slot { min-height: 46px; }
.wk-reg-quick { display: none; }

@media (max-width: 760px) and (max-height: 700px) {
  #wk-booking[data-reg-view="compact"] .wk-reg-quick:not([hidden]) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-top: 1px solid var(--wk-line, #e8e4f0);
    background: #fff;
    color: var(--wk-ink);
    font-size: 13px;
    line-height: 1.25;
  }
  .wk-reg-quick > div > * { display: block; }
  .wk-reg-quick .wk-button {
    flex: none;
    min-height: 44px;
    padding: 7px 13px;
    font-size: 13px;
  }
}
