/* Container queries follow the available widget width, including narrow desktop columns. */
:host { display: block; min-width: 0; max-width: 100%; container-type: inline-size; }
.booking-shell { box-sizing: border-box; min-width: 0; }
@container (max-width: 680px) {
  .booking-shell { width: 100%; max-width: 100%; padding: 16px 12px; }
  .price-row, .price-hint, .checkout-summary { overflow-wrap: anywhere; }
  .schedule-row { display: flex; flex-direction: column; gap: 6px; }
  .day-meta { position: static; inset: auto; box-sizing: border-box; flex: none; width: 100%; min-width: 0; padding: 8px 0 0; }
  .slots { box-sizing: border-box; flex: none; width: 100%; min-width: 0; min-height: 0; margin: 0; padding: 4px 0 12px; display: flex; flex-wrap: wrap; gap: 4px; }
  .slot-button, .slot-button.is-discounted { box-sizing: border-box; flex: 0 0 auto; width: 64px; min-width: 0; min-height: 52px; height: auto; padding: 2px; }
  .slot-time, .slot-button.is-discounted .slot-time { box-sizing: border-box; width: 100%; min-height: 40px; height: auto; padding: 10px 4px; }
  .booking-form, .mk-fields, .dialog-summary, .field-grid, .checkout-code-fields, .consent-row { min-width: 0; }
  .booking-form { padding-inline: 12px; }
  .mk-fields, .field-grid, .dialog-actions, .checkout-code-fields { grid-template-columns: minmax(0, 1fr); }
  .field-control input, .select-wrap select, .comment-textarea { min-width: 0; max-width: 100%; font-size: 16px; }
  .dialog-summary { gap: 8px; }
  .summary-card { max-width: 100%; }
  .booking-dialog { box-sizing: border-box; max-width: 100%; }
}
@media (max-width: 900px) {
  .booking-dialog[open]:not(.perf-booking .booking-dialog) { max-width: calc(100vw - 24px); left: 50vw; }
}

/* Center Shadow DOM Schedule Shell and Grid */
:host {
  display: block !important;
  min-width: 0 !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  container-type: inline-size;
}

.booking-shell {
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
}

.schedule-block {
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
}

.schedule-grid, #pw-schedule-grid {
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
}

.schedule-row {
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto 10px auto !important;
}

.schedule-more, #pw-schedule-more {
  text-align: center !important;
  margin: 16px auto !important;
}

.toggle-days, #pw-toggle-days {
  margin: 0 auto !important;
  display: inline-block !important;
}
