#barber-demo {
  --bd-surface: #fff;
  --bd-quiet: var(--paper, #f8f7fc);
  --bd-selected: #f1eaff;
  --bd-selected-ink: #552398;
  --bd-accent: #7838e8;
  --bd-amber-surface: #fff0cb;
  --bd-amber-text: #795000;
  --bd-mint-surface: #e0f4eb;
  --bd-mint-text: #146347;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
}
[data-theme="dark"] #barber-demo {
  --bd-surface: #302b3c;
  --bd-quiet: #262330;
  --bd-selected: #402b5f;
  --bd-selected-ink: #e4ccff;
  --bd-amber-surface: #4b3a24;
  --bd-amber-text: #ffd37e;
  --bd-mint-surface: #233e37;
  --bd-mint-text: #86e5b4;
}
.bd-panes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.3vw, 28px);
  align-items: start;
}
.bd-pane {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bd-surface);
  text-align: left;
  box-shadow: 0 8px 32px #21123608;
}
.bd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px clamp(16px, 2.6vw, 32px);
  background: var(--bd-quiet);
  border-bottom: 1px solid var(--line);
}
.bd-header h3, .bd-header p, .bd-body h4, .bd-empty p, .bd-receipt dd, .bd-note {
  margin: 0;
}
.bd-header h3 {
  font-size: 1.075rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.bd-header p, .bd-caption, .bd-note, .bd-empty p, .bd-info > span, .bd-receipt dt {
  color: var(--muted);
}
.bd-header p {
  margin-top: 2px;
  font-size: .875rem;
}
.bd-person-icon, .bd-shop-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: var(--bd-selected);
  color: var(--bd-selected-ink);
  font-size: .875rem;
  font-weight: 900;
}
.bd-shop-icon {
  color: var(--bd-mint-text);
  background: var(--bd-mint-surface);
}
.bd-body { padding: clamp(18px, 2.6vw, 32px); }
.bd-body h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 850;
  line-height: 1.22;
  letter-spacing: -.035em;
  scroll-margin-block-start: calc(var(--site-header-height, 80px) + 12px);
}
.bd-caption { margin: 7px 0 0; font-size: .94rem; }
.bd-weekday::first-letter { text-transform: uppercase; }
.bd-service-list, .bd-field {
  min-inline-size: 0;
  padding: 0;
  margin: 20px 0 0;
  border: 0;
}
.bd-service-list { display: grid; gap: 8px; }
.bd-choice { position: relative; min-width: 0; cursor: pointer; }
.bd-choice input, .bd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}
.bd-choice-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  height: 100%;
  box-sizing: border-box;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bd-surface);
  color: var(--ink);
  font-size: .98rem;
  font-weight: 750;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: background-color .14s, border-color .14s;
}
.bd-choice input:checked + .bd-choice-body {
  color: #fff;
  border-color: var(--bd-accent);
  background: var(--bd-accent);
}
.bd-choice input:focus-visible + .bd-choice-body, .bd-button:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}
.bd-service .bd-choice-body {
  justify-content: start;
  padding: 12px 14px;
  text-align: left;
  border-radius: 13px;
}
.bd-service .bd-choice-body::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  box-sizing: border-box;
}
.bd-service input:checked + .bd-choice-body::before {
  border: 4px solid var(--bd-accent);
  background: var(--bd-surface);
}
.bd-service input:checked + .bd-choice-body {
  border-color: var(--bd-accent);
  color: var(--bd-selected-ink);
  background: var(--bd-selected);
}
.bd-choice-body strong, .bd-choice-body small { display: block; line-height: 1.3; }
.bd-service .bd-choice-body small { margin-top: 2px; color: var(--muted); font-weight: 650; }
.bd-service .bd-choice-body b { margin-left: auto; white-space: nowrap; }
.bd-field legend { font-weight: 800; font-size: .94rem; margin-bottom: 7px; padding: 0; }
.bd-options { display: flex; flex-wrap: wrap; gap: 7px; }
.bd-options .bd-choice { flex: 1 1 65px; }
.bd-day small { text-transform: capitalize; font-weight: 650; }
.bd-day strong { font-size: 1.05rem; }
.bd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.bd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  min-height: 46px;
  color: white;
  background: var(--bd-accent);
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.bd-button.bd-secondary { color: var(--ink); background: var(--bd-quiet); border-color: var(--line); }
.bd-button.bd-confirm { background: #0c7282; }
.bd-button.bd-payment { background: #11713e; }
.bd-empty {
  display: grid;
  align-content: center;
  min-height: 178px;
  padding: clamp(14px, 2vw, 24px);
  margin-top: 18px;
  background: var(--bd-quiet);
  border: 1px dashed color-mix(in srgb, var(--ink) 25%, var(--line));
  border-radius: 14px;
}
.bd-empty strong { font-weight: 850; }
.bd-empty p { margin-top: 4px; max-width: 36ch; }
.bd-appointment {
  display: flex;
  align-items: stretch;
  gap: 15px;
  margin: 17px 0 0;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--bd-quiet);
}
.bd-hour { display: grid; align-content: center; justify-items: center; gap: 1px;
  flex: 0 0 auto; padding: 9px 12px; border-radius: 9px; background: var(--bd-selected); color: var(--bd-selected-ink); }
.bd-hour strong { font-size: 1.275rem; font-weight: 900; line-height: 1.2; }
.bd-hour small, .bd-choice small { font-size: .8125rem; }
.bd-info { display: flex; align-items: start; flex-direction: column; gap: 2px; min-width: 0; }
.bd-info strong { font-weight: 850; }
.bd-info > span { font-size: .9rem; }
.bd-info .bd-state {
  border-radius: 20px; padding: 3px 8px; margin-top: 4px;
  font-size: .8125rem; line-height: 1.3; font-weight: 800;
}
.bd-info .bd-pending { background: var(--bd-amber-surface); color: var(--bd-amber-text); }
.bd-info .bd-confirmed { background: var(--bd-mint-surface); color: var(--bd-mint-text); }
.bd-receipt { margin: 14px 0 0; }
.bd-receipt > div, .bd-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.bd-receipt dd { font-weight: 800; text-align: right; }
.bd-total { margin-top: 12px; }
.bd-total strong, .bd-final strong { font-size: 1.5rem; font-weight: 900; }
.bd-final {
  display: grid; gap: 1px; margin-top: 18px; padding: 17px 20px;
  border-radius: 14px; background: var(--bd-mint-surface); color: var(--bd-mint-text);
}
.bd-final small { font-size: .875rem; }
.bd-note { text-align: center; font-size: .875rem; margin-top: 14px; }
@media (hover: hover) {
  .bd-choice:hover input:not(:checked) + .bd-choice-body { background: var(--bd-quiet); border-color: var(--purple); }
  .bd-button:hover { background: #6229ca; }
  .bd-button.bd-secondary:hover { background: var(--bd-selected); }
  .bd-button.bd-confirm:hover { background: #095f6c; }
  .bd-button.bd-payment:hover { background: #0c5d32; }
}
@media (max-width: 720px) {
  .bd-panes { grid-template-columns: 1fr; }
  .bd-empty { min-height: 0; }
}
@media (max-width: 400px) {
  .bd-body, .bd-header { padding: 16px; }
  .bd-appointment { gap: 8px; padding: 8px; }
  .bd-hour { padding: 5px 8px; }
  .bd-actions .bd-button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-choice-body { transition: none; }
}
