/* Salon Cerchio — booking behaviour shared by all templates (loaded after each style.css).
   Each template sets --bk-bar-bg / --bk-bar-line / --bk-check on :root. */

/* Taps register instantly on phones (no double-tap zoom delay, no grey flash). */
.bk button,
.bk label,
.bk a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.bk-menu-item { cursor: pointer; user-select: none; -webkit-user-select: none; }

/* Running total + next button pinned to the bottom of the screen while the
   menu list or date/time grid scrolls past. */
.bk-bar {
  position: sticky;
  bottom: 0;
  z-index: 6;
  margin-top: 24px;
  margin-inline: -4px;
  padding: 12px 4px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--bk-bar-bg, #fff);
  border-top: 1px solid var(--bk-bar-line, rgba(0, 0, 0, .12));
  box-shadow: 0 -14px 24px -20px rgba(0, 0, 0, .35);
}
.bk-bar .bk-summary { margin: 0 0 10px; padding: 0; border: 0; background: none; border-radius: 0; }
.bk-bar .bk-actions { margin-top: 0; }
.bk-bar .bk-error { margin: 0 0 8px; }
.bk-bar .bk-btn-primary { flex: 1 1 auto; justify-content: center; text-align: center; }

.bk-pick { font-size: .9rem; opacity: .7; }
.bk-pick.is-set { opacity: 1; font-weight: 500; }

/* Unmistakable selected state: a check mark after the item name. */
.bk-menu-item.is-selected .bk-menu-name::after {
  content: "  ✓";
  color: var(--bk-check, currentColor);
  font-weight: 700;
}

/* iOS zooms into inputs under 16px on focus; keep them at 16px on phones. */
@media (max-width: 767px) {
  .bk-input { font-size: 16px; }
}

/* First-visit notice + checkbox (お客様情報 step) */
.bk-first {
  margin: 4px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--bk-bar-line, rgba(0, 0, 0, .12));
  border-radius: 14px;
  background: color-mix(in srgb, var(--bk-check, #6E4B6B) 6%, transparent);
}
.bk-first.has-error { border-color: #B3261E; }
.bk-first-note { margin: 0 0 12px; font-size: .88rem; line-height: 1.8; }
.bk-first-note strong { display: block; font-weight: 600; margin-bottom: 2px; color: var(--bk-check, currentColor); }
.bk-first-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.bk-first-check {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  accent-color: var(--bk-check, #6E4B6B);
  cursor: pointer;
}
.bk-first-warn { margin: 10px 0 0; font-size: .85rem; line-height: 1.7; }
.bk-first-back { margin-top: 8px; display: inline-flex; }
