/* Bunkier SPA — rezerwacje online: uzupełnienie styli serwisu (style.css) o godziny, kalendarz z dostępnością i „moją rezerwację”. */

/* ---------- kreator ---------- */
.wizard { scroll-margin-top: calc(var(--nav-h, 76px) + 12px); }
.bk-loading { padding: 24px 0; }
.bk-note { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.bk-note a, .bk-help a, .bk-card a { color: var(--neon-2); }
.bk-card { padding: clamp(20px, 3.2vw, 44px); }
.bk-help { padding: 0 0 clamp(60px, 8vw, 110px); color: var(--muted); text-align: center; }
.bk-help p { margin: 0; }
.pitem__hint { color: var(--amber) !important; font-size: 12.5px !important; margin-top: 2px; }
.pitem__m small { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }

/* najbliższy wolny termin */
.bk-nextfree { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(214,139,255,.5); background: rgba(182,92,255,.14); font-weight: 700; font-size: 14.5px; transition: background-color .3s, border-color .3s; }
.bk-nextfree:hover { background: rgba(182,92,255,.28); border-color: var(--neon-2); }
.bk-nextfree svg { width: 18px; height: 18px; color: var(--neon-2); }

/* kalendarz z dostępnością */
.cal__day.has-free { background: rgba(182,92,255,.14); color: #fff; }
.cal__day.has-free:hover { background: rgba(182,92,255,.34); }
.cal__day.is-sel.has-free { background: var(--grad); }
.cal__day:disabled { cursor: not-allowed; }
.cal[aria-busy="true"] .cal__months { opacity: .45; pointer-events: none; transition: opacity .2s; }
.cal__legend { text-align: left; }
.cal__legend i { display: inline-block; width: 11px; height: 11px; border-radius: 4px; background: rgba(182,92,255,.4); margin-right: 6px; vertical-align: -1px; }

/* godziny */
.bk-slots { margin: 4px 0 6px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { display: grid; gap: 2px; justify-items: center; padding: 11px 6px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--concrete); font-variant-numeric: tabular-nums; transition: background-color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.slot b { font: 700 16px/1.1 var(--display); letter-spacing: -.02em; }
.slot small { font-size: 11.5px; color: var(--muted); }
.slot:hover { border-color: var(--neon-2); transform: translateY(-1px); }
.slot[aria-pressed="true"] { background: var(--grad); border-color: transparent; box-shadow: 0 8px 26px -10px rgba(182,92,255,.95); }
.slot[aria-pressed="true"] small { color: rgba(255,255,255,.85); }
.slots__empty { grid-column: 1 / -1; margin: 0; padding: 14px 0; color: var(--muted); }

/* koszyk: kolejność zabiegów */
.citem__mv { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: none; line-height: 1; font-size: 13px; }
.citem__mv:disabled { opacity: .3; cursor: default; }
.citem__mv:hover:not(:disabled) { background: var(--neon); border-color: var(--neon); color: #fff; }
.citem__t { display: block; color: var(--neon-2); font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.citem__ctl .sp { flex: 1; }
.cart__order { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }

/* podsumowanie wizyty w kroku 3 i po rezerwacji */
.bk-recap { margin: 0 0 22px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(182,92,255,.35); background: linear-gradient(160deg, rgba(182,92,255,.14), rgba(255,79,179,.05) 60%, var(--concrete)); }
.bk-recap h3 { margin: 0 0 4px; font: 700 17px/1.3 var(--display); letter-spacing: -.02em; }
.bk-recap p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.bk-recap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bk-recap li { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; font-size: 14.5px; }
.bk-recap li time { color: var(--neon-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-recap li b { font-weight: 700; white-space: nowrap; }
.bk-recap--done { text-align: left; max-width: 520px; margin: 22px auto; }
.bk-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px !important; }
.done .bk-actions .btn { text-decoration: none; }
.done a:not(.btn) { color: var(--neon-2); }

/* telefon/tablet: pusty koszyk nie zajmuje miejsca nad listą zabiegów */
@media (max-width: 1020px) { .cart.is-empty { display: none; } }

@media (max-width: 680px) {
  .slots { grid-template-columns: repeat(3, 1fr); }
  .bk-recap li { grid-template-columns: 1fr auto; }
  .bk-recap li time { grid-column: 1 / -1; }
  .cal__legend { text-align: center; }
}

/* po rezerwacji: bez koszyka, wyśrodkowane potwierdzenie */
.book__grid.is-done { grid-template-columns: minmax(0, 760px); justify-content: center; }
.book__grid.is-done .cart { display: none; }

/* ---------- „moja rezerwacja” ---------- */
.mg { max-width: 760px; margin-inline: auto; }
.mg__status { display: inline-block; margin: 0 0 6px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; background: rgba(95,215,255,.12); color: var(--cyan); border: 1px solid rgba(95,215,255,.4); }
.mg__status--cancelled, .mg__status--noshow { background: rgba(255,92,157,.12); color: #ff7ab8; border-color: rgba(255,92,157,.4); }
.mg__status--done { background: rgba(182,92,255,.14); color: var(--neon-2); border-color: rgba(182,92,255,.45); }
.mg__meta { margin: 10px 0 18px; }
.mg__meta > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mg__meta dt { color: var(--muted); flex: none; }
.mg__meta dd { margin: 0; text-align: right; font-weight: 700; }
.mg__meta small { display: block; color: var(--muted); font-weight: 500; }
.mg__items { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; gap: 8px; }
.mg__item { display: grid; grid-template-columns: 124px 1fr auto; gap: 12px; align-items: baseline; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--concrete); }
.mg__time { color: var(--neon-2); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mg__name small { display: block; color: var(--muted); }
.mg__price { font: 700 15px/1 var(--display); white-space: nowrap; }
.mg__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.mg__total b { font: 700 28px/1 var(--display); letter-spacing: -.03em; color: #fff; }
.mg__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin: 6px 0 4px; }
.mg__actions .btn { text-decoration: none; }
.mg__cancel { flex: 1 1 100%; }
.mg__cancel summary { list-style: none; cursor: pointer; width: max-content; }
.mg__cancel summary::-webkit-details-marker { display: none; }
.mg__cancel[open] summary { display: none; }
.mg__cancel form { margin-top: 4px; padding: 18px; border-radius: 16px; border: 1px solid rgba(255,92,157,.4); background: rgba(255,92,157,.07); }
.mg__cancel p { margin: 0 0 14px; color: var(--text); }
.bk-flash { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: rgba(95,215,255,.1); border: 1px solid rgba(95,215,255,.4); font-weight: 600; }
@media (max-width: 680px) {
  .mg__item { grid-template-columns: 1fr auto; }
  .mg__time { grid-column: 1 / -1; }
  .mg__meta > div { flex-direction: column; gap: 2px; }
  .mg__meta dd { text-align: left; }
}

/* ---------- vouchery (bony upominkowe) ---------- */
.vch-mode { margin: 0 0 22px; }
.vch-presets { margin: 0 0 18px; }
.vch-presets .slot b { font-size: 17px; }
.vch-h3 { margin: 22px 0 8px; font: 700 17px/1.3 var(--display); letter-spacing: -.02em; }
.vch-pay { white-space: pre-line; text-align: left; max-width: 520px; margin: 0 auto 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--concrete); color: var(--text) !important; font-size: 15px; line-height: 1.55; }
.mg .vch-pay { margin-left: 0; max-width: none; }
.vch-page .vch-h3:first-of-type { margin-top: 26px; }

/* karta vouchera na stronie kupującego */
.vch-card { position: relative; margin: 8px 0 24px; padding: clamp(22px, 4vw, 36px); border-radius: calc(var(--r) + 4px); overflow: hidden; border: 1px solid rgba(214,139,255,.5);
  background: linear-gradient(150deg, rgba(182,92,255,.30), rgba(255,79,179,.10) 55%, var(--concrete)); box-shadow: 0 30px 80px -40px rgba(182,92,255,.85); }
.vch-card::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255,79,179,.34), transparent 66%); pointer-events: none; }
.vch-card__brand { margin: 0; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--neon-2); font-weight: 800; }
.vch-card__amount { margin: 12px 0 2px; font: 700 clamp(40px, 8vw, 66px)/1 var(--display); letter-spacing: -.045em; }
.vch-card__purpose { margin: 0 0 20px; font-size: 16.5px; line-height: 1.45; color: var(--text); }
.vch-card__code { margin: 0 0 18px; display: grid; gap: 8px; justify-items: start; }
.vch-card__code span { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.vch-card__code b { display: inline-block; padding: 11px 18px; border-radius: 12px; background: rgba(7,6,10,.55); border: 1px dashed rgba(214,139,255,.65); font: 700 clamp(18px, 4.4vw, 27px)/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; user-select: all; }
.vch-card__meta { margin: 0; }
.vch-card__meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.vch-card__meta dt { color: var(--muted); }
.vch-card__meta dd { margin: 0; font-weight: 700; text-align: right; }
.vch-card__msg { margin: 18px 0 0; padding: 14px 16px; border-left: 3px solid var(--neon); border-radius: 0 12px 12px 0; background: rgba(7,6,10,.35); font-style: italic; line-height: 1.55; }
.vch-how { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; color: var(--muted); line-height: 1.55; }
.vch-how a { color: var(--neon-2); }
.vch-how li::marker { color: var(--neon-2); font-weight: 700; }

/* statusy vouchera (obok statusów rezerwacji) */
.mg__status--pending { background: rgba(255,173,90,.12); color: var(--amber); border-color: rgba(255,173,90,.45); }
.mg__status--active { background: rgba(95,215,255,.12); color: var(--cyan); border-color: rgba(95,215,255,.4); }
.mg__status--used, .mg__status--expired { background: rgba(255,92,157,.10); color: #ff7ab8; border-color: rgba(255,92,157,.4); }

/* „moja rezerwacja”: rozbicie kwoty, gdy część opłacono voucherem */
.mg__sum { margin: 14px 0 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.mg__sumrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 6px; color: var(--muted); }
.mg__sumrow b { color: var(--text); font-variant-numeric: tabular-nums; }
.mg__sum .mg__total { margin: 10px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-2); }
