.bp-form {
  display: grid;
  min-width: 0;
  gap: 18px;
  color: var(--text, #17191b);
}
.bp-form [hidden] { display: none !important; }
.bp-form :is(h3, h4, p, dl, ol, fieldset, legend) { margin: 0; }
.bp-form fieldset { min-width: 0; padding: 0; border: 0; }
.bp-field, .bp-custom { display: grid; min-width: 0; gap: 7px; }
.bp-field > span, .bp-field > legend, .bp-custom > span, .bp-note h4 {
  color: var(--text, #17191b);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 580;
}
.bp-field > legend { padding: 0 0 7px; }
.bp-caption { display:inline-flex; align-items:center; gap:6px; }
.bp-caption svg { color:var(--muted,#59616c); }
.bp-form[data-panel="booking"] { gap:14px; }
.bp-form .field {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--control-border);
  border-radius: 9px;
  background: var(--surface);
  padding: 9px 12px;
  color: var(--text, #17191b);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.bp-form input::placeholder, .bp-form textarea::placeholder { color: #66707b; opacity: 1; }
.bp-form input:is([type=date],[type=time]) { min-width: 0; max-width: 100%; appearance: none; }
.bp-form textarea { resize: vertical; }
.bp-form .bp-short { width: min(100%, 11rem); }
.bp-form :is(button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.bp-form .field:focus-visible { outline-offset: -2px; border-color: var(--focus-ring); }
.bp-party-row { display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px }
.bp-party-row > span { font-size:14px;font-weight:580 }
.bp-party-tools {
  display:grid;
  grid-template-columns:44px 3.5rem 44px;
  align-items:center;
  gap:4px;
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
.bp-party-count {
  text-align:center;
  color:var(--text);
  font-size:20px;
  font-weight:640;
  font-variant-numeric:tabular-nums;
  line-height:1.15;
  overflow-wrap:anywhere;
}
.bp-party-step {
  display:grid;
  place-items:center;
  position:relative;
  isolation:isolate;
  width:44px;
  height:44px;
  color:var(--on-primary);
  border-radius:50%;
}
.bp-party-step::before {
  content:"";position:absolute;inset:4px;z-index:-1;border-radius:50%;background:var(--primary);
}
@media (hover:hover) { .bp-party-step:hover:not(:disabled)::before { background:var(--primary-hover) } }
.bp-party-step:active:not(:disabled)::before { background:var(--primary-pressed) }
.bp-party-step:disabled { color:var(--on-primary-disabled);opacity:1 }
.bp-party-step:disabled::before { background:var(--primary-disabled) }
.bp-services {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
.bp-service-hint { margin-inline-start: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.bp-services label { position: relative; min-width: 0; cursor: pointer; }
.bp-services input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  clip-path: none;
  opacity: 0;
  cursor: pointer;
}
.bp-service-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 550;
}
.bp-service-choice > svg { color: var(--muted); }
.bp-service-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  margin-inline-start: auto;
  border: 1px solid var(--control-border);
  border-radius: 5px;
  background: var(--surface);
}
.bp-service-check svg { width: 12px; height: 12px; opacity: 0; }
.bp-services input:checked + .bp-service-choice { background: var(--selection-bg); color: var(--selection-fg); font-weight: 650; }
.bp-services input:checked + .bp-service-choice > svg { color: currentColor; }
.bp-services input:checked + .bp-service-choice .bp-service-check { background: var(--selection-fg); border-color: var(--selection-fg); color: var(--selection-bg); }
.bp-services input:checked + .bp-service-choice .bp-service-check svg { opacity: 1; }
.bp-services input:focus-visible + .bp-service-choice { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media (prefers-reduced-motion:no-preference) {
  .bp-service-choice { transition: background-color var(--motion-fast) ease; }
  .bp-service-check svg { transition: opacity var(--motion-fast) ease; }
}
.bp-custom { max-width: 11rem; margin-top: 8px; }
.bp-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.bp-fold { min-width: 0; }
.bp-fold + .bp-fold { margin-top: -18px; }
.bp-fold > summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text, #17191b);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}
.bp-fold > summary::-webkit-details-marker { display: none; }
.bp-fold > summary > small[data-slot-summary] {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  text-align: end;
}
.bp-fold > summary > .zd-icon {
  color: var(--muted);
  flex: 0 0 auto;
}
.bp-fold[open] > summary > .zd-icon { transform: rotate(180deg); }
.bp-fold-content { display: grid; gap: 14px; padding: 2px 0 13px; }
.bp-footer, .bp-buttons, .bp-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bp-footer { position: sticky; bottom: 0; z-index: 1; justify-content: flex-end; background: var(--surface); padding-block: 8px max(5px,env(safe-area-inset-bottom)); }
.bp-footer > .btn:only-child { width: 100%; }
.bp-form .btn { min-height: 46px; }
.bp-form .btn-secondary:disabled { cursor: default; opacity: .52; }
.bp-summary h3 {
  font-size: clamp(23px, 4vw, 27px);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.bp-summary p, .bp-guests, .bp-facts dt, .bp-history small {
  color: var(--muted, #565f69);
  font-size: 13px;
  line-height: 1.45;
}
.bp-summary p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 5px; }
.bp-guests { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 9px; }
.bp-stepper { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 8px; max-width: 18rem; }
.bp-stepper .field { appearance: textfield; text-align: center; font-weight: 630; font-variant-numeric: tabular-nums; }
.bp-stepper input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.bp-stepper .bp-party-step { touch-action: manipulation; }
.bp-link { min-height: 44px; color: var(--link); border: 0; border-radius: 6px; background: none; padding: 7px 6px; font: inherit; font-size: 14px; font-weight: 550; }
.bp-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bp-guest-group-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:28px; }
.bp-guest-group-heading > span { font-size:14px; line-height:1.35; font-weight:580; }
.bp-guest-group-heading .bp-link { min-height:28px; padding:3px 4px; font-size:13px; }
.bp-guest-group-options { grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.5fr); }
.bp-guest-group-options label { -webkit-tap-highlight-color:transparent; }
.bp-guest-group-options .bp-service-choice { justify-content:center; gap:6px; padding-inline:4px; text-align:center; }
.bp-guest-group-options .bp-service-choice > svg { flex:none; }
.bp-availability:not([hidden]) { display:grid; gap:8px; }
.bp-availability .btn { justify-self:start; }
.bp-planned-table { display:grid; min-width:0; gap:6px; }
.bp-planned-table-choice {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px;
  min-width:0; padding:9px 10px; border-radius:10px; background:var(--surface-subtle);
}
.bp-planned-table-label { display:flex; flex:1 1 95px; align-items:center; gap:8px; min-width:0; }
.bp-planned-table-label>svg { color:var(--muted); }
.bp-planned-table-label>div { display:grid; gap:1px; min-width:0; overflow-wrap:anywhere; }
.bp-planned-table-label span { color:var(--muted); font-size:12px; }
.bp-planned-table-label strong { font-size:14px; font-weight:650; }
.bp-planned-table-choice .btn { min-height:44px; padding-inline:9px; white-space:normal; line-height:1.25; }
.bp-planned-table .bp-link { justify-self:start; }
.bp-facts { display: grid; gap: 10px; }
.bp-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: baseline; gap: 12px; }
.bp-facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.bp-note p { margin-top: 4px; }
.bp-note p, .bp-history p { white-space: pre-wrap; overflow-wrap: anywhere; }
.bp-explanation, .bp-note p, .bp-history p { font-size: 14px; line-height: 1.5; }
.bp-history { display: grid; gap: 14px; list-style: none; padding: 5px 0; }
.bp-history li { display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 7px; overflow-wrap: anywhere; }
.bp-history li > svg { margin-top: 2px; color: var(--status-ink); }
.bp-history li > div { display: grid; gap: 3px; }
.bp-history strong { font-size: 14px; font-weight: 520; }
.guest-history-list { list-style: none; padding: 0; }
.guest-preference { display:grid; gap:7px; }
.guest-preference > button { justify-self:start; }
.guest-preference .basic-form { gap:8px; }
.guest-history-list li + li { border-top: 1px solid var(--divider); }
.guest-history-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; text-align: start; width: 100%; padding: 12px 4px; }
.guest-history-record:hover { background: var(--surface-subtle); }
.guest-history-main { display: grid; gap: 3px; overflow-wrap: anywhere; }
.guest-history-main strong { font-size: 14px; font-weight: 560; }
.guest-history-main small { color: var(--muted); font-size: 12px; }
.guest-history-meta { display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; grid-column: 1 / -1; }
.bp-release { display: flex; min-height: 44px; align-items: center; gap: 8px; }
.bp-release { font-size: 14px; cursor: pointer; }
.bp-release input { flex: none; margin: 0; width: 18px; height: 18px; accent-color: var(--primary); }
.bp-danger { color: var(--status-danger); }
@media (max-width: 350px) {
  .bp-two { grid-template-columns: minmax(0,1fr); }
  .bp-form { gap: 15px; }
  .bp-fold + .bp-fold { margin-top: -15px; }
}
@media (forced-colors: active) {
  .bp-party-step::before { outline:1px solid ButtonText }
  .bp-services input:checked + .bp-service-choice { forced-color-adjust: none; }
  .bp-service-check { border-color: ButtonText; }
}
