.stag-booking-form-wrap {
  max-width: 1160px;
  width: 100%;
  margin-inline: auto;
}

body.stag-booking-public-page #header-wrapper .main-title-section-wrapper,
body.stag-booking-public-page .main-title-section-wrapper.aligncenter {
  display: none !important;
}

.stag-booking-page-title {
  max-width: 1160px;
  width: min(1160px, calc(100vw - 48px));
  margin: 0 auto 28px !important;
  color: inherit;
  text-align: center;
}

/* Booking form v1.9.18: wider container, responsive choices, and cleaner customer portal. */
.stag-booking-form-wrap {
  box-sizing: border-box !important;
  max-width: 1160px !important;
  width: 100% !important;
  margin-inline: auto !important;
}

.wp-block-column > .stag-booking-form-wrap {
  left: 50% !important;
  max-width: min(1160px, calc(100vw - 48px)) !important;
  position: relative !important;
  transform: translateX(-50%) !important;
  width: min(1160px, calc(100vw - 48px)) !important;
}

.wp-block-columns .stag-booking-form-wrap,
.wp-block-column .stag-booking-form-wrap,
.entry-content .stag-booking-form-wrap {
  max-width: 100% !important;
}

.wp-block-columns:has(.stag-booking-form-wrap) {
  display: block !important;
}

.wp-block-columns:has(.stag-booking-form-wrap) > .wp-block-column {
  width: 100% !important;
  max-width: 100% !important;
  flex-basis: 100% !important;
}

.stag-booking-progressive-ui .stag-booking-form {
  width: 100% !important;
}

.stag-booking-progressive-ui .stag-booking-panel {
  width: 100% !important;
}

.stag-booking-progressive-ui .stag-booking-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
}

.stag-booking-progressive-ui .stag-booking-type-options {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  align-items: stretch !important;
}

.stag-booking-progressive-ui .stag-booking-choice span {
  min-height: 58px !important;
  padding: 14px 18px !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  white-space: normal !important;
}

.stag-booking-progressive-ui .stag-seating-preference-field {
  margin: 0 0 24px;
  padding: 0;
  border: 0 !important;
}

.stag-booking-progressive-ui .stag-seating-preference-field legend {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-weight: 700;
}

.stag-booking-progressive-ui .stag-booking-time-field {
  margin-top: 18px;
}

.stag-customer-booking-manager {
  box-sizing: border-box;
  max-width: 960px !important;
  width: 100% !important;
  margin-inline: auto;
}

.stag-customer-booking-summary,
.stag-customer-action-panel {
  border-radius: 8px !important;
  padding: 20px !important;
}

.stag-customer-booking-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 18px;
}

.stag-customer-booking-summary p {
  margin: 0 !important;
}

.stag-customer-action-panel button {
  cursor: pointer;
}

.stag-customer-action-panel button.stag-danger-button,
.stag-customer-action-panel .stag-danger-button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 0 22px !important;
  border: 1px solid #ff4a4a !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #ff4a4a !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 0.95em !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.stag-customer-action-panel button.stag-danger-button:hover,
.stag-customer-action-panel button.stag-danger-button:focus-visible,
.stag-customer-action-panel .stag-danger-button:hover,
.stag-customer-action-panel .stag-danger-button:focus-visible {
  background: rgba(255, 74, 74, 0.08) !important;
  color: #ff4a4a !important;
}

@media (max-width: 640px) {
  .stag-booking-progressive-ui .stag-booking-grid,
  .stag-booking-progressive-ui .stag-booking-type-options {
    grid-template-columns: 1fr !important;
  }

  .stag-booking-progressive-ui .stag-booking-panel-heading {
    gap: 10px;
  }
}

/* v1.9.37: balance live /book spacing after suppressing the theme title banner. */
body.stag-booking-public-page #main {
  padding-top: clamp(28px, 6vw, 58px) !important;
}

body.stag-booking-public-page .stag-booking-page-title {
  margin-top: 0 !important;
  margin-bottom: clamp(34px, 6vw, 52px) !important;
}

@media (max-width: 640px) {
  body.stag-booking-public-page #main {
    padding-top: 36px !important;
  }

  body.stag-booking-public-page .stag-booking-page-title {
    margin-bottom: 40px !important;
  }
}

/* v1.9.38: make the header-line-to-title gap match the title-to-form gap. */
body.stag-booking-public-page #header-wrapper {
  margin-bottom: 0 !important;
}

body.stag-booking-public-page #main {
  padding-top: 40px !important;
}

body.stag-booking-public-page .stag-booking-page-title {
  margin-bottom: 40px !important;
}

.wp-block-column > .stag-booking-form-wrap {
  left: 50% !important;
  max-width: min(1160px, calc(100vw - 48px)) !important;
  position: relative !important;
  transform: translateX(-50%) !important;
  width: min(1160px, calc(100vw - 48px)) !important;
}

.wp-block-column .stag-booking-form-wrap,
.wp-block-columns .stag-booking-form-wrap,
.entry-content .stag-booking-form-wrap {
  max-width: 100%;
}

.stag-booking-form {
  display: block;
  width: 100%;
}

.stag-booking-form [hidden],
.stag-booking-panel[hidden],
.stag-booking-note[hidden],
.stag-deposit-acknowledgement[hidden],
.stag-booking-details-fields[hidden],
.stag-phone-only-final-message[hidden] {
  display: none !important;
}

.stag-booking-panel {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.stag-booking-panel.stag-step-leaving,
.stag-booking-panel.stag-step-entering {
  opacity: 0;
  transform: translateY(8px);
}

.stag-booking-progressive-ui .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.stag-booking-panel-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}

.stag-booking-panel-heading h3 {
  margin: 0;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
}

.stag-booking-panel-heading p {
  margin: 3px 0 0;
  font: inherit;
  line-height: 1.35;
}

.stag-booking-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 700;
}

.stag-booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stag-booking-field,
.stag-booking-checkbox,
.stag-booking-submit,
.stag-booking-nav {
  margin: 0 0 16px;
}

.stag-booking-progressive-ui .stag-booking-field,
.stag-booking-progressive-ui fieldset.stag-booking-field,
.stag-booking-progressive-ui .stag-booking-type-options {
  background: transparent !important;
  box-shadow: none !important;
}

.stag-booking-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.stag-booking-field input,
.stag-booking-field select,
.stag-booking-field textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.stag-booking-checkbox label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.stag-booking-checkbox input {
  margin-top: 0.25em;
}

.stag-booking-note {
  display: block;
  margin-top: 8px;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.95em;
  line-height: 1.4;
}

.stag-booking-message {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
}

.stag-phone-only-final-message {
  max-width: 760px;
  margin: 0 0 20px;
  line-height: 1.4;
}

.stag-booking-form .stag-field-error,
.stag-booking-form .stag-field-error input[type='checkbox'] {
  border: 1px solid #c62828 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.stag-booking-form .stag-deposit-acknowledgement.stag-field-error {
  border: 1px solid #c62828 !important;
  padding: 8px;
}

.stag-booking-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.stag-booking-nav button {
  cursor: pointer;
}

.stag-booking-final-nav {
  margin-bottom: 0;
}

.flatpickr-calendar,
.flatpickr-calendar.open {
  z-index: 999999999 !important;
}

.flatpickr-calendar .flatpickr-months,
.flatpickr-calendar .flatpickr-month,
.flatpickr-calendar .flatpickr-current-month,
.flatpickr-calendar .flatpickr-current-month .cur-month,
.flatpickr-calendar .flatpickr-current-month input.cur-year {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
}

.flatpickr-calendar .flatpickr-current-month {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35em !important;
}

.flatpickr-calendar .flatpickr-current-month .cur-month {
  position: static !important;
}

.flatpickr-calendar .flatpickr-current-month input.cur-year {
  position: static !important;
  width: 4.5em !important;
  height: auto !important;
  line-height: normal !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
}

.flatpickr-calendar select,
.flatpickr-calendar input,
.flatpickr-calendar button {
  font-family: inherit !important;
}

@media (max-width: 640px) {
  .stag-booking-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stag-booking-panel-heading {
    align-items: center;
  }

  .stag-booking-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

/* Stronger Flatpickr header isolation for themes that globally restyle inputs/selects. */
.flatpickr-calendar .flatpickr-months {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: 44px !important;
  min-height: 44px !important;
  overflow: visible !important;
  color: #333 !important;
}

.flatpickr-calendar .flatpickr-month {
  position: relative !important;
  flex: 1 1 auto !important;
  height: 44px !important;
  min-height: 44px !important;
  line-height: 44px !important;
  overflow: visible !important;
  color: #333 !important;
}

.flatpickr-calendar .flatpickr-current-month {
  position: absolute !important;
  top: 0 !important;
  right: 44px !important;
  left: 44px !important;
  width: auto !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  transform: none !important;
  line-height: 44px !important;
  color: #333 !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

.flatpickr-calendar .flatpickr-current-month .cur-month,
.flatpickr-calendar .flatpickr-current-month .numInputWrapper,
.flatpickr-calendar .flatpickr-current-month input.cur-year {
  color: #333 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.flatpickr-calendar .flatpickr-current-month .cur-month {
  display: inline-block !important;
  height: 44px !important;
  line-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

.flatpickr-calendar .flatpickr-current-month .numInputWrapper {
  display: inline-flex !important;
  align-items: center !important;
  width: 4.5em !important;
  height: 44px !important;
  line-height: 44px !important;
  position: static !important;
  vertical-align: top !important;
}

.flatpickr-calendar .flatpickr-current-month input.cur-year {
  -webkit-appearance: textfield !important;
  appearance: textfield !important;
  display: inline-block !important;
  position: static !important;
  width: 4.5em !important;
  min-width: 4.5em !important;
  max-width: 4.5em !important;
  height: 44px !important;
  min-height: 0 !important;
  line-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  color: #333 !important;
  font: inherit !important;
}

.flatpickr-calendar .flatpickr-current-month .numInputWrapper span {
  display: none !important;
}

.flatpickr-calendar .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-next-month {
  top: 0 !important;
  height: 44px !important;
  color: #333 !important;
  fill: #333 !important;
}


/* Keep Flatpickr month/year visually centred after theme overrides. */
.flatpickr-calendar .flatpickr-months .flatpickr-current-month {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.flatpickr-calendar .flatpickr-current-month .cur-month,
.flatpickr-calendar .flatpickr-current-month .numInputWrapper,
.flatpickr-calendar .flatpickr-current-month input.cur-year {
  pointer-events: auto !important;
}

.flatpickr-calendar .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-next-month {
  z-index: 2 !important;
}

/* Stable, scoped Flatpickr positioning for the booking form.
   The calendar is appended to document.body and positioned with JS using fixed
   viewport coordinates so it stays aligned in normal pages, scroll containers,
   Elementor sections, and popup contexts. */
.flatpickr-calendar.stag-bookings-flatpickr,
.flatpickr-calendar.stag-bookings-flatpickr.open {
  position: fixed !important;
  z-index: 999999999 !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  will-change: top, left !important;
}

/* Centre the month/year independently from the prev/next controls. */
.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-months {
  position: relative !important;
  display: block !important;
  height: 44px !important;
  min-height: 44px !important;
  overflow: visible !important;
  color: #333 !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-month {
  position: static !important;
  height: 44px !important;
  min-height: 44px !important;
  overflow: visible !important;
  color: #333 !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-prev-month,
.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-next-month {
  position: absolute !important;
  top: 0 !important;
  z-index: 2 !important;
  width: 44px !important;
  height: 44px !important;
  padding: 10px !important;
  color: #333 !important;
  fill: #333 !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-prev-month {
  left: 0 !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-next-month {
  right: 0 !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month {
  position: absolute !important;
  inset: 0 52px auto 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35em !important;
  width: auto !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  text-align: center !important;
  line-height: 44px !important;
  overflow: visible !important;
  pointer-events: none !important;
  color: #333 !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month .cur-month,
.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month .numInputWrapper,
.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month input.cur-year {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  color: #333 !important;
  font: inherit !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month .cur-month {
  height: 44px !important;
  line-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month .numInputWrapper {
  width: auto !important;
  min-width: 4.5em !important;
  height: 44px !important;
  line-height: 44px !important;
  vertical-align: top !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month input.cur-year {
  -webkit-appearance: textfield !important;
  appearance: textfield !important;
  width: 4.5em !important;
  min-width: 4.5em !important;
  max-width: 4.5em !important;
  height: 44px !important;
  min-height: 0 !important;
  line-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month .numInputWrapper span {
  display: none !important;
}

/* Final scoped Flatpickr header layout.
   Use a three-column grid so the month/year group is genuinely centred between
   the preserved arrow columns, instead of being offset by theme styles or by
   hidden/disabled navigation controls. */
.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-months {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  align-items: center !important;
  height: 52px !important;
  min-height: 52px !important;
  width: 100% !important;
  position: relative !important;
  padding: 0 !important;
  overflow: visible !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-prev-month,
.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-next-month {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 2 !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-prev-month {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: center !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-next-month {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: center !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-month {
  grid-column: 2 !important;
  grid-row: 1 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35em !important;
  width: auto !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  line-height: 52px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  text-align: center !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month .cur-month,
.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month .numInputWrapper,
.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month input.cur-year {
  position: static !important;
  float: none !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 52px !important;
  line-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month .numInputWrapper {
  width: auto !important;
  min-width: 4.5em !important;
}

.flatpickr-calendar.stag-bookings-flatpickr .flatpickr-current-month input.cur-year {
  width: 4.5em !important;
  min-width: 4.5em !important;
  max-width: 4.5em !important;
  text-align: left !important;
  color: inherit !important;
  font: inherit !important;
}

/* Front-end booking manager */
.stag-booking-manager {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  color: inherit;
}

.stag-manager-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.stag-manager-header h2,
.stag-manager-panel h3,
.stag-manager-booking-card h3 {
  margin-top: 0;
}

.stag-manager-logout {
  white-space: nowrap;
}

.stag-manager-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stag-manager-summary > div,
.stag-manager-panel,
.stag-manager-booking-card {
  border: 1px solid currentColor;
  border-radius: 18px;
  padding: 18px;
  background: transparent;
}

.stag-manager-summary strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stag-manager-summary span {
  display: block;
  margin-top: 8px;
}

.stag-manager-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.stag-manager-filters,
.stag-manager-settings-form,
.stag-manager-status-form {
  display: grid;
  gap: 14px;
}

.stag-manager-filters {
  grid-template-columns: minmax(120px, 0.7fr) minmax(140px, 0.7fr) minmax(180px, 1fr) auto;
  align-items: end;
  margin-bottom: 20px;
}

.stag-manager-filters label,
.stag-manager-settings-form label,
.stag-manager-status-form label {
  display: grid;
  gap: 6px;
}

.stag-manager-filters input,
.stag-manager-filters select,
.stag-manager-settings-form input,
.stag-manager-settings-form textarea,
.stag-manager-settings-form select,
.stag-manager-status-form select,
.stag-booking-manager-login input:not([type="checkbox"]):not([type="submit"]) {
  box-sizing: border-box;
  width: 100%;
}

.stag-manager-booking-list {
  display: grid;
  gap: 14px;
}

.stag-manager-booking-main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.stag-manager-booking-meta {
  margin: 4px 0 0;
}

.stag-manager-status-pill {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.9em;
}

.stag-manager-booking-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 16px 0;
}

.stag-manager-booking-details div {
  min-width: 0;
}

.stag-manager-booking-details dt {
  font-weight: 700;
  margin-bottom: 2px;
}

.stag-manager-booking-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.stag-manager-booking-message {
  margin: 0 0 16px;
}

.stag-manager-status-form {
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
}

.stag-manager-settings-form details {
  border-top: 1px solid currentColor;
  padding-top: 14px;
}

.stag-manager-settings-form summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 14px;
}

.stag-manager-placeholder-note {
  font-size: 0.9em;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .stag-manager-layout,
  .stag-manager-summary,
  .stag-manager-filters {
    grid-template-columns: 1fr;
  }

  .stag-manager-header,
  .stag-manager-booking-main,
  .stag-manager-status-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .stag-manager-booking-details {
    grid-template-columns: 1fr;
  }
}

/* Booking type choices */
.stag-booking-type-field {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}

.stag-booking-type-field legend {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.stag-booking-type-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stag-booking-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
}

.stag-booking-choice input {
  margin: 0;
}

.stag-booking-type-field.stag-field-error .stag-booking-choice {
  border-color: #ff3030 !important;
}

/* Booking manager tabs and calendar */
.stag-manager-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.stag-manager-tabs a {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 9px 14px;
  text-decoration: none;
}

.stag-manager-tabs a.is-active {
  background: currentColor;
}

.stag-manager-tabs a.is-active {
  color: inherit;
  filter: invert(1);
}

.stag-manager-layout-single {
  display: block;
}

.stag-manager-calendar-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.stag-manager-calendar-header h3 {
  margin: 0;
}

.stag-manager-calendar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stag-manager-calendar-nav a {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
}

.stag-manager-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  border: 1px solid currentColor;
  overflow-x: auto;
}

.stag-manager-calendar-weekday,
.stag-manager-calendar-day {
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  padding: 10px;
  min-height: 130px;
}

.stag-manager-calendar-weekday {
  min-height: auto;
  font-weight: 700;
  opacity: 0.8;
}

.stag-manager-calendar-date {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.stag-manager-calendar-date span {
  font-size: 0.85em;
  opacity: 0.8;
}

.stag-manager-calendar-day.is-empty {
  opacity: 0.25;
}

.stag-manager-calendar-booking {
  border: 1px solid currentColor;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 8px;
  font-size: 0.9em;
}

.stag-manager-calendar-booking header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.stag-manager-calendar-booking p {
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.stag-manager-calendar-message {
  opacity: 0.85;
}

@media (max-width: 900px) {
  .stag-booking-type-options {
    grid-template-columns: 1fr;
  }

  .stag-manager-calendar-header {
    display: grid;
  }

  .stag-manager-calendar-grid {
    grid-template-columns: repeat(7, minmax(170px, 1fr));
  }
}

/* Manager dashboard and readable colour coding */
.stag-manager-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.stag-manager-section-heading,
.stag-manager-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stag-manager-section-heading {
  justify-content: space-between;
  margin-bottom: 16px;
}

.stag-manager-section-heading h3 {
  margin: 0;
}

.stag-manager-count-badge,
.stag-manager-status-pill,
.stag-manager-type-pill,
.stag-manager-deposit-pill,
.stag-manager-alert-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  font-size: 0.85em;
  line-height: 1.2;
  white-space: nowrap;
}

.stag-manager-booking-card {
  border-left-width: 6px;
}

.stag-manager-status-pending {
  border-left-color: #d19a3a;
}

.stag-manager-status-confirmed {
  border-left-color: #3bb273;
}

.stag-manager-status-cancelled,
.stag-manager-status-rejected {
  border-left-color: #dd4b4b;
}

.stag-badge-status-pending {
  border-color: #d19a3a;
  color: #d19a3a;
}

.stag-badge-status-confirmed {
  border-color: #3bb273;
  color: #3bb273;
}

.stag-badge-status-cancelled,
.stag-badge-status-rejected {
  border-color: #dd4b4b;
  color: #dd4b4b;
}

.stag-badge-type-drinks-only {
  border-color: #6ea8fe;
  color: #6ea8fe;
}

.stag-badge-type-dining {
  border-color: #b28cff;
  color: #b28cff;
}

.stag-badge-type-live-sport {
  border-color: #65d6ad;
  color: #65d6ad;
}

.stag-badge-deposit-yes,
.stag-manager-alert-pill {
  border-color: #f0b449;
  color: #f0b449;
}

.stag-badge-deposit-no {
  opacity: 0.75;
}

.stag-manager-has-reschedule {
  box-shadow: inset 0 0 0 1px rgba(240, 180, 73, 0.65);
}

.stag-manager-change-message {
  border-top: 1px solid currentColor;
  padding-top: 12px;
}

.stag-manager-calendar-booking .stag-manager-status-pill,
.stag-manager-calendar-booking .stag-manager-type-pill,
.stag-manager-calendar-booking .stag-manager-deposit-pill,
.stag-manager-calendar-booking .stag-manager-alert-pill {
  font-size: 0.75em;
  padding: 3px 7px;
}

/* Full-width email template editor with internal tabs */
.stag-manager-email-form,
.stag-manager-email-settings,
.stag-email-tabs,
.stag-email-tab-panel,
.stag-manager-full-width {
  width: 100%;
}

.stag-manager-email-form {
  display: block;
}

.stag-manager-email-form .stag-manager-full-width {
  display: block;
  margin-bottom: 16px;
}

.stag-manager-email-form input[type="text"],
.stag-manager-email-form input[type="email"],
.stag-manager-email-form textarea {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.stag-email-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.stag-email-tab-button {
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 8px 12px;
  cursor: pointer;
}

.stag-email-tab-button.is-active {
  background: currentColor;
  color: #fff;
}

.stag-email-tab-panel {
  display: none;
}

.stag-email-tab-panel.is-active {
  display: block;
}

.stag-email-tab-panel textarea {
  min-height: 360px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.5;
}

/* Customer booking-management page */
.stag-customer-booking-manager {
  max-width: 900px;
  width: 100%;
}

.stag-customer-booking-summary,
.stag-customer-action-panel {
  border: 1px solid currentColor;
  border-radius: 18px;
  padding: 18px;
  margin: 0 0 18px;
}

.stag-customer-booking-summary p {
  margin: 0 0 8px;
}

.stag-customer-action-panel h3 {
  margin-top: 0;
}

.stag-danger-button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 0 22px !important;
  border: 1px solid #ff4a4a !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #ff4a4a !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 0.95em !important;
  line-height: 1 !important;
}

.stag-danger-button:hover,
.stag-danger-button:focus-visible {
  background: rgba(255, 74, 74, 0.08) !important;
  color: #ff4a4a !important;
}

@media (max-width: 980px) {
  .stag-manager-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Manager visual dashboard: time/booking overview */
.stag-manager-dashboard-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stag-manager-summary-card {
  border-left: 6px solid currentColor;
}

.stag-summary-confirmed {
  border-left-color: #3bb273 !important;
}

.stag-summary-action,
.stag-summary-large {
  border-left-color: #f0b449 !important;
}

.stag-summary-sport {
  border-left-color: #65d6ad !important;
}

.stag-manager-dashboard-grid-main {
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
}

.stag-manager-section-heading p {
  margin: 4px 0 0;
  opacity: 0.75;
}

.stag-manager-timeline {
  display: grid;
  gap: 10px;
}

.stag-manager-timeline-scale {
  display: grid;
  grid-template-columns: repeat(12, minmax(44px, 1fr));
  gap: 0;
  font-size: 0.78em;
  opacity: 0.75;
}

.stag-manager-timeline-scale span {
  border-left: 1px solid currentColor;
  padding-left: 6px;
}

.stag-manager-timeline-track {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 12px 0 0;
  background-image: linear-gradient(to right, currentColor 1px, transparent 1px);
  background-size: calc(100% / 11) 100%;
  background-position: left top;
}

.stag-manager-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(12px, calc(var(--stag-time-offset) * 1%)) minmax(220px, 1fr);
  align-items: start;
}

.stag-manager-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: currentColor;
  justify-self: end;
  margin: 18px -7px 0 0;
  z-index: 1;
}

.stag-manager-timeline-card {
  border: 1px solid currentColor;
  border-left-width: 6px;
  border-radius: 14px;
  padding: 12px;
  background: var(--stag-manager-card-bg, transparent);
}

.stag-manager-timeline-card > strong,
.stag-manager-timeline-card > span {
  display: block;
}

.stag-manager-timeline-card > span {
  margin-top: 3px;
}

.stag-manager-detail-drawer {
  margin-top: 10px;
  border-top: 1px solid currentColor;
  padding-top: 10px;
}

.stag-manager-detail-drawer summary,
.stag-manager-calendar-day-details summary {
  cursor: pointer;
  font-weight: 700;
}

.stag-badge-status-bg-pending,
.stag-manager-status-pending .stag-manager-timeline-card {
  border-color: #d19a3a;
}

.stag-badge-status-bg-confirmed,
.stag-manager-status-confirmed .stag-manager-timeline-card {
  border-color: #3bb273;
}

.stag-badge-status-bg-cancelled,
.stag-badge-status-bg-rejected,
.stag-manager-status-cancelled .stag-manager-timeline-card,
.stag-manager-status-rejected .stag-manager-timeline-card {
  border-color: #dd4b4b;
}

.stag-badge-type-bg-drinks-only .stag-manager-timeline-card {
  box-shadow: inset 0 0 0 1px rgba(110, 168, 254, 0.28);
}

.stag-badge-type-bg-dining .stag-manager-timeline-card {
  box-shadow: inset 0 0 0 1px rgba(178, 140, 255, 0.28);
}

.stag-badge-type-bg-live-sport .stag-manager-timeline-card {
  box-shadow: inset 0 0 0 1px rgba(101, 214, 173, 0.32);
}

.stag-manager-calendar-day.has-bookings {
  background: rgba(255, 255, 255, 0.02);
}

.stag-manager-calendar-metrics {
  display: grid;
  gap: 5px;
  margin: 8px 0;
}

.stag-calendar-metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.75em;
  line-height: 1.15;
}

.stag-calendar-confirmed {
  color: #3bb273;
}

.stag-calendar-pending {
  color: #d19a3a;
}

.stag-calendar-cancelled {
  color: #dd4b4b;
}

.stag-calendar-large {
  color: #f0b449;
}

.stag-calendar-sport {
  color: #65d6ad;
}

.stag-manager-calendar-bars {
  display: flex;
  gap: 3px;
  margin: 10px 0;
}

.stag-calendar-status-bar {
  display: block;
  height: 6px;
  flex: 1 1 0;
  min-width: 6px;
  border-radius: 999px;
  background: currentColor;
}

.stag-badge-status-bg-pending {
  color: #d19a3a;
  background: #d19a3a;
}

.stag-badge-status-bg-confirmed {
  color: #3bb273;
  background: #3bb273;
}

.stag-badge-status-bg-cancelled,
.stag-badge-status-bg-rejected {
  color: #dd4b4b;
  background: #dd4b4b;
}

.stag-manager-calendar-day-details {
  margin-top: 10px;
}

.stag-manager-calendar-day-details .stag-manager-calendar-booking {
  margin-top: 8px;
}

@media (max-width: 1120px) {
  .stag-manager-dashboard-summary,
  .stag-manager-dashboard-grid-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .stag-manager-dashboard-summary,
  .stag-manager-dashboard-grid-main {
    grid-template-columns: 1fr;
  }

  .stag-manager-timeline-scale {
    grid-template-columns: repeat(4, minmax(54px, 1fr));
  }

  .stag-manager-timeline-track {
    background-image: none;
  }

  .stag-manager-timeline-item {
    grid-template-columns: 18px minmax(0, 1fr);
  }
}

/* Step navigation and booking-type choices refined for the Stag theme. */
.stag-booking-top-nav {
  margin: 0 0 18px;
}

.stag-booking-back-link {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  cursor: pointer;
  font: inherit;
}

.stag-booking-back-link::before {
  content: '←';
  line-height: 1;
}

.stag-booking-bottom-nav {
  margin-top: 24px;
}

.stag-booking-type-field {
  margin: 0 0 24px;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.stag-booking-type-field legend {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-weight: 700;
}

.stag-booking-type-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  background: transparent !important;
}

.stag-booking-choice {
  display: block;
  margin: 0;
  cursor: pointer;
}

.stag-booking-choice input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stag-booking-choice span {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid currentColor;
  border-radius: 22px;
  background: transparent;
  color: inherit;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.stag-booking-choice input[type='radio']:checked + span,
.stag-booking-choice input[type='radio']:focus-visible + span {
  border-color: #c9973a;
  box-shadow: 0 0 0 1px #c9973a;
}

.stag-booking-type-field.stag-field-error .stag-booking-choice span {
  border-color: #c62828 !important;
  box-shadow: none !important;
}

.stag-booking-type-field.stag-field-error .stag-booking-choice input[type='radio']:checked + span {
  border-color: #c9973a !important;
  box-shadow: 0 0 0 1px #c9973a !important;
}

/* Error state should be applied only when JS/server validation marks a field,
   not by browser :invalid styles or wrapper fieldsets. */
.stag-booking-form input.stag-field-error:not([type='checkbox']),
.stag-booking-form select.stag-field-error,
.stag-booking-form textarea.stag-field-error {
  border: 1px solid #c62828 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.stag-booking-form fieldset.stag-field-error {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .stag-booking-type-options {
    grid-template-columns: 1fr;
  }
}

/* Manager UI reliability pass: instant tabs, readable controls, stable 2-hour timeline. */
.stag-manager-tab-panel {
  display: none;
}

.stag-manager-tab-panel.is-active {
  display: block;
}

.stag-manager-tabs a.is-active,
.stag-manager-tabs a.stag-manager-tab-button.is-active,
.stag-email-tab-button.is-active {
  background: #c9973a !important;
  border-color: #c9973a !important;
  color: #fff !important;
  filter: none !important;
}

.stag-booking-manager input,
.stag-booking-manager select,
.stag-booking-manager textarea {
  color: inherit !important;
  background: transparent !important;
  border: 1px solid currentColor;
  box-shadow: none !important;
}

.stag-booking-manager input::placeholder,
.stag-booking-manager textarea::placeholder {
  color: currentColor;
  opacity: 0.55;
}

.stag-booking-manager button,
.stag-booking-manager .stag-manager-calendar-open-day,
.stag-booking-manager .stag-manager-calendar-nav a,
.stag-booking-manager .stag-manager-tabs a {
  font: inherit;
}

.stag-manager-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.stag-manager-inline-action-form {
  margin: 0;
}

.stag-manager-quick-actions button {
  border-radius: 999px;
  border: 1px solid currentColor;
  padding: 10px 18px;
  cursor: pointer;
}

.stag-manager-action-confirm {
  border-color: #3bb273 !important;
  color: #3bb273 !important;
  background: transparent !important;
}

.stag-manager-action-decline {
  border-color: #dd4b4b !important;
  color: #dd4b4b !important;
  background: transparent !important;
}

.stag-manager-timeline,
.stag-manager-timeline-scale,
.stag-manager-timeline-track,
.stag-manager-timeline-item,
.stag-manager-timeline-card,
.stag-manager-timeline-dot {
  display: none !important;
}

.stag-manager-timeline-day {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  grid-template-rows: repeat(48, 18px);
  gap: 0 14px;
  min-height: 864px;
  overflow-x: auto;
  padding: 4px 0 0;
}

.stag-manager-timeline-hour {
  grid-column: 1 / 3;
  grid-row: var(--stag-hour-row) / span 4;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  min-width: 680px;
  pointer-events: none;
}

.stag-manager-timeline-hour span {
  grid-column: 1;
  padding-top: 4px;
  font-size: 0.85em;
  opacity: 0.72;
}

.stag-manager-timeline-event {
  grid-column: 2;
  grid-row: var(--stag-start-row) / span var(--stag-duration-rows);
  min-width: 560px;
  z-index: 1;
  padding: 3px 0;
}

.stag-manager-timeline-event-inner {
  height: 100%;
  box-sizing: border-box;
  border: 1px solid currentColor;
  border-left-width: 6px;
  border-radius: 14px;
  padding: 12px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.08);
}

.stag-manager-timeline-event-inner header {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}

.stag-manager-status-pending .stag-manager-timeline-event-inner {
  border-color: #d19a3a;
}

.stag-manager-status-confirmed .stag-manager-timeline-event-inner {
  border-color: #3bb273;
}

.stag-manager-status-cancelled .stag-manager-timeline-event-inner,
.stag-manager-status-rejected .stag-manager-timeline-event-inner {
  border-color: #dd4b4b;
}

.stag-manager-calendar-day {
  display: grid;
  align-content: start;
  gap: 8px;
}

.stag-manager-calendar-open-day {
  display: inline-flex;
  width: fit-content;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 10px;
  text-decoration: none;
  font-size: 0.8em;
  line-height: 1.2;
  color: inherit !important;
  background: transparent !important;
}

.stag-manager-calendar-day-details,
.stag-manager-calendar-booking {
  display: none !important;
}

.stag-manager-calendar-grid {
  min-width: 860px;
}

.stag-manager-dashboard-grid-main {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
}

.stag-manager-booking-card,
.stag-manager-panel,
.stag-manager-summary > div {
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.stag-manager-new-panel .stag-manager-booking-card {
  margin-right: 0;
}

@media (max-width: 760px) {
  .stag-manager-timeline-day {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .stag-manager-timeline-hour {
    grid-template-columns: 64px minmax(0, 1fr);
    min-width: 520px;
  }

  .stag-manager-timeline-event {
    min-width: 420px;
  }
}

/* Compact manager cards: keep operational information visible, hide contact/detail metadata until requested. */
.stag-booking-manager .stag-manager-booking-card-compact {
  padding: clamp(14px, 2vw, 18px);
}

.stag-booking-manager .stag-manager-booking-card-compact h3 {
  margin-bottom: 4px;
}

.stag-booking-manager .stag-manager-booking-card-compact .stag-manager-booking-main {
  margin-bottom: 8px;
}

.stag-booking-manager .stag-manager-card-details,
.stag-booking-manager .stag-manager-card-actions {
  margin-top: 10px;
  padding-top: 10px;
}

.stag-booking-manager .stag-manager-card-details:not([open]),
.stag-booking-manager .stag-manager-card-actions:not([open]) {
  border-top-color: transparent;
  padding-top: 0;
}

.stag-booking-manager .stag-manager-card-details summary,
.stag-booking-manager .stag-manager-card-actions summary,
.stag-booking-manager .stag-manager-detail-drawer summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  line-height: 1;
}

.stag-booking-manager .stag-manager-card-details .stag-manager-booking-details {
  margin-top: 12px;
}

.stag-booking-manager .stag-manager-quick-actions {
  margin-top: 12px;
}

.stag-booking-manager .stag-manager-timeline-event-inner header span {
  opacity: 0.86;
}

.stag-booking-manager .stag-manager-booking-list {
  gap: 10px;
}

@media (max-width: 720px) {
  .stag-booking-manager .stag-manager-booking-card-compact .stag-manager-booking-details {
    grid-template-columns: 1fr;
  }
}

/* Manager/UI refinement pass: compact dashboard, horizontal timeline, clean booking-type buttons. */
.stag-booking-choice {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.stag-booking-choice::before,
.stag-booking-choice::after,
.stag-booking-choice span::before,
.stag-booking-choice span::after {
  content: none !important;
  display: none !important;
}

.stag-booking-choice input[type='radio']:checked + span,
.stag-booking-choice input[type='radio']:focus-visible + span {
  border-color: #c9973a !important;
  box-shadow: 0 0 0 1px #c9973a !important;
}

.stag-booking-type-options {
  background: transparent !important;
}

.stag-booking-manager .stag-manager-global-summary {
  display: none !important;
}

.stag-booking-manager .stag-manager-summary-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.stag-booking-manager .stag-manager-summary-compact .stag-manager-summary-card {
  min-height: auto !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
}

.stag-booking-manager .stag-manager-summary-compact strong {
  display: block;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem) !important;
  line-height: 1;
  margin: 0 0 2px;
}

.stag-booking-manager .stag-manager-summary-compact span {
  font-size: 0.9rem !important;
  line-height: 1.2;
}

.stag-manager-dashboard-grid-main {
  display: block !important;
}

.stag-manager-needs-action-panel {
  margin-bottom: 18px;
}

.stag-manager-needs-action-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 8px;
}

.stag-manager-needs-action-strip::-webkit-scrollbar {
  display: none;
}

.stag-manager-need-card {
  flex: 0 0 min(420px, 86vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid currentColor;
  border-left-width: 6px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.08);
}

.stag-manager-need-summary {
  color: inherit !important;
  text-decoration: none !important;
  min-width: 0;
}

.stag-manager-need-summary strong,
.stag-manager-need-summary span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stag-manager-need-summary span {
  opacity: 0.82;
  font-size: 0.92em;
  margin-top: 2px;
}

.stag-manager-need-actions .stag-manager-quick-actions {
  margin: 0;
  flex-wrap: nowrap;
  gap: 8px;
}

.stag-manager-need-actions .stag-manager-quick-actions button {
  padding: 8px 13px;
  min-height: 0;
  white-space: nowrap;
}

.stag-manager-timeline-panel-full {
  width: 100%;
  overflow: hidden;
}

.stag-manager-timeline-day,
.stag-manager-timeline-hour,
.stag-manager-timeline-event {
  display: none !important;
}

.stag-manager-horizontal-timeline {
  width: 100%;
  overflow: hidden;
  padding: 2px 0 0;
}

.stag-manager-horizontal-hours {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 8px;
  font-size: 0.82em;
  opacity: 0.78;
}

.stag-manager-horizontal-hours span {
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0 0 4px 8px;
}

.stag-manager-horizontal-track {
  position: relative;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.42) 0,
    rgba(255, 255, 255, 0.42) 1px,
    transparent 1px,
    transparent calc(100% / 12)
  );
}

.stag-manager-horizontal-event {
  position: absolute;
  left: var(--stag-left);
  top: calc(18px + ((var(--stag-row) - 1) * 74px));
  width: max(var(--stag-width), 150px);
  max-width: calc(100% - var(--stag-left) - 10px);
  z-index: 2;
}

.stag-manager-horizontal-event-inner {
  box-sizing: border-box;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid currentColor;
  border-left-width: 6px;
  border-radius: 14px;
  overflow: hidden;
  background: #0e332d;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.stag-manager-horizontal-event-inner[open],
.stag-manager-horizontal-event-inner:has(details[open]) {
  overflow: visible;
}

.stag-manager-event-basic {
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
}

.stag-manager-event-basic strong,
.stag-manager-event-basic span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stag-manager-event-basic span {
  opacity: 0.84;
  font-size: 0.92em;
}

.stag-manager-horizontal-event .stag-manager-badges {
  gap: 6px;
  margin-bottom: 4px;
}

.stag-manager-horizontal-event .stag-manager-badges span {
  font-size: 0.76em;
  padding: 3px 8px;
}

.stag-manager-horizontal-event details[open] {
  position: relative;
  z-index: 5;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 12px;
  background: #0e332d;
}

.stag-manager-horizontal-track,
.stag-manager-panel,
.stag-manager-booking-card,
.stag-manager-need-card {
  scrollbar-width: none;
}

.stag-manager-horizontal-track::-webkit-scrollbar,
.stag-manager-panel::-webkit-scrollbar,
.stag-manager-booking-card::-webkit-scrollbar,
.stag-manager-need-card::-webkit-scrollbar {
  display: none;
}

.stag-manager-calendar-day {
  position: relative;
  cursor: pointer;
}

.stag-manager-calendar-day-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0 !important;
  background: transparent !important;
  text-indent: -9999px;
  overflow: hidden;
}

.stag-manager-calendar-open-day {
  display: none !important;
}

.stag-manager-calendar-day.has-bookings:hover,
.stag-manager-calendar-day:focus-within {
  background: rgba(255, 255, 255, 0.04);
}

.stag-manager-calendar-metrics,
.stag-manager-calendar-bars,
.stag-manager-calendar-date {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .stag-booking-manager .stag-manager-summary-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stag-manager-horizontal-track {
    min-height: 320px;
    overflow-x: auto;
  }

  .stag-manager-horizontal-hours,
  .stag-manager-horizontal-track {
    min-width: 760px;
  }

  .stag-manager-need-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stag-booking-manager .stag-manager-summary-compact {
    grid-template-columns: 1fr;
  }

  .stag-booking-type-options {
    grid-template-columns: 1fr;
  }
}

/* Timeline detail expansion fix: no internal scrolling inside booking cards. */
.stag-manager-horizontal-timeline,
.stag-manager-timeline-panel-full,
.stag-manager-panel {
  overflow: visible !important;
}

.stag-manager-horizontal-track {
  overflow: visible !important;
  min-height: 360px;
  background-color: rgba(0, 0, 0, 0.03);
}

.stag-manager-horizontal-event {
  z-index: 3;
}

.stag-manager-horizontal-event:has(details[open]) {
  z-index: 20;
}

.stag-manager-horizontal-event-inner {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

.stag-manager-horizontal-event details,
.stag-manager-horizontal-event details[open],
.stag-manager-horizontal-event .stag-manager-detail-drawer,
.stag-manager-horizontal-event .stag-manager-booking-details,
.stag-manager-horizontal-event .stag-manager-card-actions {
  overflow: visible !important;
  max-height: none !important;
}

.stag-manager-horizontal-event details[open] {
  position: relative;
  z-index: 30;
}

.stag-manager-horizontal-event .stag-manager-booking-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.stag-manager-horizontal-event .stag-manager-booking-message {
  margin-bottom: 0;
}

.stag-manager-horizontal-event .stag-manager-status-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.stag-manager-horizontal-track::-webkit-scrollbar,
.stag-manager-horizontal-event-inner::-webkit-scrollbar,
.stag-manager-horizontal-event details::-webkit-scrollbar {
  display: none !important;
}

.stag-manager-horizontal-track,
.stag-manager-horizontal-event-inner,
.stag-manager-horizontal-event details {
  scrollbar-width: none !important;
}

@media (max-width: 760px) {
  .stag-manager-horizontal-track {
    min-height: 440px;
  }

  .stag-manager-horizontal-event .stag-manager-booking-details,
  .stag-manager-horizontal-event .stag-manager-status-form {
    grid-template-columns: 1fr;
  }
}

/* Manager request tab refinements */
.stag-manager-requests-tab .stag-manager-request-list {
  display: grid;
  gap: 0.75rem;
}

.stag-manager-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid currentColor;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.025);
}

.stag-manager-request-main {
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.stag-manager-request-main strong,
.stag-manager-request-main span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stag-manager-request-row .stag-manager-quick-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
}

.stag-manager-request-row .stag-manager-quick-actions button {
  white-space: nowrap;
}

.stag-manager-request-filters label,
.stag-manager-filters label:has(input[type="search"]) {
  min-width: min(100%, 22rem);
}

.stag-manager-request-filters input[type="search"],
.stag-manager-filters input[type="search"] {
  width: 100%;
}

@media (max-width: 760px) {
  .stag-manager-request-row {
    grid-template-columns: 1fr;
  }

  .stag-manager-request-row .stag-manager-quick-actions {
    justify-content: flex-start;
  }
}

/* v1.6.9 manager/form UI refinements */
.stag-booking-choice {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.stag-booking-choice input[type='radio'] + span {
  border: 2px solid currentColor !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 28px !important;
}

.stag-booking-choice input[type='radio']:checked + span {
  border-color: #c9973a !important;
  box-shadow: 0 0 0 1px #c9973a !important;
}

.stag-booking-manager .stag-manager-summary-compact {
  grid-template-columns: repeat(2, minmax(0, 220px)) !important;
  justify-content: start;
}

.stag-booking-manager .stag-manager-summary-compact .stag-manager-summary-card {
  padding: 10px 14px !important;
  border-radius: 16px !important;
}

.stag-booking-manager .stag-manager-summary-compact strong {
  font-size: clamp(1.25rem, 1.8vw, 1.75rem) !important;
}

.stag-manager-timeline-panel-full {
  margin-top: 14px;
}

.stag-manager-horizontal-track {
  min-height: 180px !important;
  overflow: hidden !important;
  background-color: rgba(0, 0, 0, 0.02) !important;
}

.stag-manager-horizontal-event {
  top: calc(14px + ((var(--stag-row) - 1) * 54px)) !important;
  min-width: 130px;
}

.stag-manager-horizontal-event-inner,
.stag-manager-horizontal-event-inner:visited {
  display: block !important;
  min-height: 46px !important;
  padding: 8px 10px !important;
  border: 1px solid currentColor !important;
  border-left-width: 6px !important;
  border-radius: 14px !important;
  background: #0e332d !important;
  color: inherit !important;
  text-decoration: none !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
}

.stag-manager-horizontal-event-inner:hover,
.stag-manager-horizontal-event-inner:focus-visible {
  border-color: #c9973a !important;
  outline: 0 !important;
}

.stag-manager-event-time,
.stag-manager-event-name,
.stag-manager-event-meta {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.12 !important;
}

.stag-manager-event-time {
  font-weight: 700 !important;
  font-size: 0.92em !important;
}

.stag-manager-event-name {
  font-size: 0.95em !important;
  margin-top: 1px !important;
}

.stag-manager-event-meta {
  font-size: 0.78em !important;
  opacity: 0.78 !important;
  margin-top: 3px !important;
}

.stag-manager-single-booking-panel {
  width: 100% !important;
  max-width: none !important;
}

.stag-manager-full-booking-card {
  border: 1px solid currentColor;
  border-left: 8px solid #c9973a;
  border-radius: 22px;
  padding: clamp(18px, 3vw, 32px);
  background: rgba(0, 0, 0, 0.08);
}

.stag-manager-full-booking-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.stag-manager-full-booking-head h4 {
  margin: 0 0 4px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.stag-manager-full-booking-head p {
  margin: 0;
  opacity: 0.85;
}

.stag-manager-full-booking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0 0 22px;
}

.stag-manager-full-booking-grid dt {
  font-weight: 700;
  margin-bottom: 2px;
}

.stag-manager-full-booking-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.stag-manager-single-actions {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.stag-manager-single-actions .stag-manager-quick-actions,
.stag-manager-single-actions .stag-manager-status-form {
  max-width: 720px;
}

@media (max-width: 760px) {
  .stag-booking-manager .stag-manager-summary-compact,
  .stag-manager-full-booking-grid,
  .stag-manager-full-booking-head {
    grid-template-columns: 1fr !important;
  }

  .stag-manager-full-booking-head {
    display: grid;
  }
}

/* Manager inline booking detail view: keep timeline compact, open details instantly in-page. */
button.stag-manager-horizontal-event-inner {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  color: inherit !important;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.stag-manager-horizontal-event-inner:hover,
button.stag-manager-horizontal-event-inner:focus-visible {
  filter: brightness(1.08);
}

.stag-manager-timeline-panel-full.has-open-booking-detail .stag-manager-horizontal-timeline {
  display: none;
}

.stag-manager-inline-detail-panels {
  margin-top: 18px;
}

.stag-manager-inline-detail-panel[hidden] {
  display: none !important;
}

.stag-manager-inline-detail-panel.is-active {
  display: block;
  width: 100%;
}

.stag-manager-detail-close {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin: 0 0 14px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  font: inherit;
  cursor: pointer;
}

.stag-manager-detail-close::before {
  content: '×';
  line-height: 1;
}

.stag-manager-inline-detail-panel .stag-manager-full-booking-card {
  width: 100%;
  max-width: none;
}

.stag-manager-inline-detail-panel .stag-manager-single-actions {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(280px, 1fr);
  gap: 18px;
  align-items: end;
}

@media (max-width: 760px) {
  .stag-manager-inline-detail-panel .stag-manager-single-actions {
    grid-template-columns: 1fr;
  }
}

/* v1.7.1 manager compact workflow refinements */
.stag-booking-manager .stag-manager-tabs {
  gap: 10px !important;
  margin-bottom: 18px !important;
}

.stag-booking-manager .stag-manager-tab-button {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 0 !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem) !important;
  line-height: 1.1 !important;
}

.stag-manager-tab-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55em;
  height: 1.55em;
  padding: 0 0.35em;
  border-radius: 999px;
  background: #c9973a;
  color: #0b302a;
  font-size: 0.78em;
  line-height: 1;
}

.stag-manager-panel.stag-manager-requests-tab,
.stag-manager-panel.stag-manager-today-panel {
  padding: clamp(16px, 2.4vw, 26px) !important;
}

.stag-manager-requests-tab .stag-manager-section-heading {
  margin-bottom: 12px !important;
}

.stag-manager-requests-tab .stag-manager-section-heading h3,
.stag-manager-today-panel .stag-manager-section-heading h3 {
  font-size: clamp(1.55rem, 3vw, 2.4rem) !important;
  line-height: 1.05 !important;
}

.stag-manager-requests-tab .stag-manager-section-heading p,
.stag-manager-today-panel .stag-manager-section-heading p {
  margin-top: 4px !important;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem) !important;
  line-height: 1.35 !important;
}

.stag-manager-request-filters,
.stag-manager-filters.stag-manager-request-filters {
  display: grid !important;
  grid-template-columns: minmax(220px, 360px) auto !important;
  align-items: end !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
}

.stag-manager-request-filters label {
  min-width: 0 !important;
}

.stag-manager-request-filters input[type="search"] {
  min-height: 44px !important;
  padding: 9px 14px !important;
  font-size: 0.96rem !important;
  border-radius: 14px !important;
}

.stag-manager-request-filters button {
  min-height: 44px !important;
  padding: 9px 18px !important;
  border-radius: 999px !important;
  font-size: 0.96rem !important;
  line-height: 1 !important;
}

.stag-manager-request-list {
  display: grid !important;
  gap: 10px !important;
}

.stag-manager-request-row {
  grid-template-columns: minmax(0, 1fr) auto !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  gap: 12px !important;
}

.stag-manager-request-main {
  gap: 4px !important;
}

.stag-manager-request-main strong {
  font-size: 1.05rem !important;
  line-height: 1.12 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stag-manager-request-main > span:not(.stag-manager-badges) {
  font-size: 0.92rem !important;
  line-height: 1.25 !important;
  opacity: 0.84;
}

.stag-manager-request-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.stag-manager-open-day-button,
.stag-manager-request-actions button,
.stag-manager-focused-actions button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
  white-space: nowrap;
  text-decoration: none !important;
}

.stag-manager-open-day-button {
  border: 1px solid currentColor !important;
  color: inherit !important;
  background: transparent !important;
}

.stag-manager-focused-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid currentColor;
  border-left: 6px solid #c9973a;
  border-radius: 18px;
  background: rgba(201, 151, 58, 0.08);
}

.stag-manager-focused-request-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.stag-manager-focused-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.74;
}

.stag-manager-focused-request-main strong {
  font-size: 1.15rem;
  line-height: 1.1;
}

.stag-manager-focused-request-main > span:not(.stag-manager-focused-label) {
  font-size: 0.92rem;
  opacity: 0.86;
}

.stag-manager-focused-note {
  color: #c9973a;
}

.stag-manager-focused-actions .stag-manager-quick-actions,
.stag-manager-request-actions .stag-manager-quick-actions {
  margin: 0 !important;
  display: inline-flex !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.stag-manager-horizontal-track {
  min-height: 170px !important;
  overflow: hidden !important;
}

.stag-manager-horizontal-event-inner {
  min-height: 50px !important;
  padding: 7px 9px !important;
}

.stag-manager-event-time,
.stag-manager-event-name,
.stag-manager-event-meta {
  max-width: 100%;
}

.stag-manager-inline-detail-panel.is-active {
  margin-top: 0 !important;
}

@media (max-width: 820px) {
  .stag-manager-request-filters,
  .stag-manager-filters.stag-manager-request-filters,
  .stag-manager-request-row,
  .stag-manager-focused-request {
    grid-template-columns: 1fr !important;
  }

  .stag-manager-request-actions,
  .stag-manager-focused-actions .stag-manager-quick-actions {
    justify-content: flex-start;
    flex-wrap: wrap !important;
  }
}

/* Manager compact controls, contact/deposit modals, and denser booking rows. */
.stag-booking-manager .stag-manager-panel {
  padding: clamp(14px, 2vw, 22px) !important;
}

.stag-booking-manager .stag-manager-section-heading {
  margin-bottom: 12px !important;
}

.stag-booking-manager .stag-manager-section-heading h3,
.stag-booking-manager .stag-manager-panel h3 {
  margin-bottom: 4px !important;
}

.stag-booking-manager .stag-manager-section-heading p,
.stag-booking-manager .stag-manager-panel > p {
  margin-top: 0 !important;
}

.stag-manager-request-filters,
.stag-manager-filters {
  align-items: end !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.stag-manager-request-filters label,
.stag-manager-filters label {
  max-width: 360px;
}

.stag-manager-request-filters input,
.stag-manager-filters input,
.stag-manager-filters select {
  min-height: 44px !important;
  padding: 10px 14px !important;
}

.stag-manager-request-filters button,
.stag-manager-filters button,
.stag-manager-settings-form button,
.stag-manager-status-form button,
.stag-manager-contact-button,
.stag-manager-deposit-request-button,
.stag-manager-open-day-button {
  min-height: 44px !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  white-space: nowrap;
}

.stag-manager-booking-row,
.stag-manager-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid currentColor;
  border-left-width: 6px;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.06);
  overflow: visible;
}

.stag-manager-booking-row-main,
.stag-manager-request-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.stag-manager-booking-row-main strong,
.stag-manager-request-main strong,
.stag-manager-booking-row-main span,
.stag-manager-request-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stag-manager-booking-row-actions,
.stag-manager-request-actions,
.stag-manager-focused-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.stag-manager-booking-row-actions .stag-manager-status-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

.stag-manager-booking-row-actions .stag-manager-status-form label,
.stag-manager-booking-row-actions .stag-manager-status-form select {
  margin: 0 !important;
}

.stag-manager-booking-row-actions .stag-manager-status-form select {
  width: 150px !important;
  min-height: 44px !important;
  padding: 8px 12px !important;
}

.stag-manager-contact-button,
.stag-manager-deposit-request-button {
  border: 1px solid currentColor !important;
  background: transparent !important;
  color: inherit !important;
}

.stag-manager-deposit-request-button {
  border-color: #f0b449 !important;
  color: #f0b449 !important;
}

.stag-manager-modal[hidden] {
  display: none !important;
}

.stag-manager-modal {
  position: fixed;
  inset: 0;
  z-index: 999999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
}

.stag-manager-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  border: 1px solid currentColor;
  border-radius: 22px;
  padding: 22px;
  background: #0e332d;
  color: inherit;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.stag-manager-modal-card h3 {
  margin-top: 0 !important;
}

.stag-manager-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid currentColor !important;
  background: transparent !important;
  color: inherit !important;
  line-height: 1 !important;
}

.stag-manager-deposit-request-form {
  display: grid;
  gap: 14px;
}

.stag-manager-deposit-request-form input {
  width: 100%;
}

.stag-manager-email-sender-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stag-manager-inline-detail-panel .stag-manager-full-booking-card {
  width: 100%;
}

.stag-manager-horizontal-event-inner {
  cursor: pointer;
}

.stag-manager-event-time,
.stag-manager-event-name,
.stag-manager-event-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}

.stag-manager-event-name {
  margin-top: 2px;
}

.stag-manager-event-meta {
  margin-top: 4px;
  opacity: 0.82;
  font-size: 0.86em;
}

@media (max-width: 900px) {
  .stag-manager-booking-row,
  .stag-manager-request-row {
    grid-template-columns: 1fr;
  }

  .stag-manager-booking-row-actions,
  .stag-manager-request-actions,
  .stag-manager-focused-actions {
    justify-content: flex-start;
  }

  .stag-manager-email-sender-grid {
    grid-template-columns: 1fr;
  }
}

/* v1.7.3 manager refinements */
.stag-manager-deposit-status-button {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.45em 0.8em;
  background: transparent;
  color: inherit;
  line-height: 1;
  white-space: nowrap;
}
.stag-manager-deposit-status-button.is-paid,
.stag-badge-deposit-paid {
  color: #2ecc71 !important;
  border-color: #2ecc71 !important;
}
.stag-manager-deposit-status-button.is-unpaid,
.stag-badge-deposit-unpaid {
  color: #d49b38 !important;
  border-color: #d49b38 !important;
}
.stag-manager-deposit-mailto {
  display: grid;
  gap: 0.8rem;
}
.stag-manager-deposit-mailto label {
  display: grid;
  gap: 0.35rem;
}
.stag-manager-mailto-deposit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.65em 1.1em;
  background: #c99a3d;
  color: #fff !important;
  text-decoration: none !important;
}
.stag-manager-small-note {
  font-size: 0.88em;
  opacity: 0.78;
  margin: 0;
}
.stag-manager-calendar-day.has-category-blocks {
  outline: 2px solid #d49b38;
  outline-offset: -4px;
}
.stag-manager-calendar-blocked-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
  position: relative;
  z-index: 2;
}
.stag-manager-calendar-blocked-cats span {
  border: 1px solid #d49b38;
  color: #d49b38;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.72em;
  line-height: 1.2;
}
.stag-manager-calendar-block-button {
  position: relative;
  z-index: 3;
  margin-top: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78em;
  line-height: 1;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.stag-manager-calendar-day-link {
  z-index: 1;
}
.stag-manager-checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0;
}
.stag-manager-checkbox-row input {
  width: auto !important;
}
.stag-manager-tab-button.has-indicator .stag-manager-tab-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35em;
  height: 1.35em;
  margin-left: 0.4em;
  border-radius: 999px;
  background: #d49b38;
  color: #0d332d;
  font-size: 0.78em;
}
.stag-manager-request-actions .stag-manager-open-day-button,
.stag-manager-request-actions button,
.stag-manager-request-actions .stag-manager-deposit-status-button {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* v1.7.4 calendar close controls and category-style popup buttons */
.stag-manager-calendar-day {
  padding-bottom: 44px;
}

.stag-manager-calendar-block-button {
  position: absolute !important;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0.32rem 0.72rem !important;
  border: 1px solid currentColor !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: inherit !important;
  font-size: 0.76em !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.stag-manager-calendar-block-button:hover,
.stag-manager-calendar-block-button:focus-visible {
  border-color: #c9973a !important;
  color: #c9973a !important;
  background: transparent !important;
}

.stag-manager-block-category-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.stag-manager-block-category-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stag-manager-block-choice {
  display: block !important;
  margin: 0 !important;
  cursor: pointer;
}

.stag-manager-block-choice input[type='checkbox'] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}

.stag-manager-block-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid currentColor;
  border-radius: 22px;
  background: transparent;
  color: inherit;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.stag-manager-block-choice input[type='checkbox']:checked + span,
.stag-manager-block-choice input[type='checkbox']:focus-visible + span {
  border-color: #c9973a;
  box-shadow: 0 0 0 1px #c9973a;
}

.stag-manager-block-category-form button[type='submit'] {
  justify-self: start;
  border-radius: 999px !important;
  border: 1px solid currentColor !important;
  padding: 10px 18px !important;
  background: transparent !important;
  color: inherit !important;
}

@media (max-width: 760px) {
  .stag-manager-block-category-options {
    grid-template-columns: 1fr;
  }
}

/* v1.7.5 closed-category enforcement */
.stag-manager-calendar-day.has-category-blocks {
  outline: 2px solid #f28c28 !important;
  outline-offset: -4px !important;
}
.stag-manager-calendar-blocked-cats span {
  border-color: #f28c28 !important;
  color: #f28c28 !important;
}
.stag-manager-block-save-status {
  margin: 0;
  font-size: 0.88em;
  opacity: 0.8;
}
.stag-booking-error,
.stag-category-blocked-message:not([hidden]) {
  display: block;
  margin-top: 0.75rem;
  border: 1px solid #c9973a;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: inherit;
  background: rgba(201, 151, 58, 0.08);
}
.stag-booking-type-field.stag-field-error .stag-category-blocked-message:not([hidden]) {
  border-color: #c9973a;
}

/* v1.7.6 admin-settings migration and instant-close refinements */
.stag-manager-admin-settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid currentColor;
  padding: 0.7rem 1.1rem;
  text-decoration: none !important;
}

.stag-manager-deposit-pill-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.stag-category-blocked-message {
  display: block;
  margin-top: 0.65rem;
  font-weight: 700;
}


/* v1.7.7: only the closed category should show the red error outline. */
.stag-booking-type-field .stag-booking-choice.stag-category-is-blocked span,
.stag-booking-type-field .stag-booking-choice.stag-category-is-blocked input[type='radio']:checked + span {
  border-color: #c62828 !important;
  box-shadow: none !important;
}
.stag-booking-type-field:not(.stag-field-error) .stag-booking-choice:not(.stag-category-is-blocked) span {
  border-color: currentColor;
}
.stag-booking-type-field:not(.stag-field-error) .stag-booking-choice:not(.stag-category-is-blocked) input[type='radio']:checked + span {
  border-color: #c9973a;
  box-shadow: 0 0 0 1px #c9973a;
}

/* v1.8.2: deposit status is a compact badge, not a large action button. */
.stag-booking-manager .stag-manager-badges .stag-manager-deposit-status-button,
.stag-booking-manager .stag-manager-deposit-pill-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 4px 10px !important;
  border: 1px solid currentColor !important;
  border-radius: 999px !important;
  background: transparent !important;
  font: inherit !important;
  font-size: 0.85em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.stag-booking-manager .stag-manager-badges .stag-manager-deposit-status-button.is-unpaid,
.stag-booking-manager .stag-manager-deposit-pill-button.stag-badge-deposit-unpaid {
  color: #d49b38 !important;
  border-color: #d49b38 !important;
}
.stag-booking-manager .stag-manager-badges .stag-manager-deposit-status-button.is-paid,
.stag-booking-manager .stag-manager-deposit-pill-button.stag-badge-deposit-paid {
  color: #2ecc71 !important;
  border-color: #2ecc71 !important;
}
.stag-booking-manager .stag-manager-badges .stag-manager-deposit-status-button:hover,
.stag-booking-manager .stag-manager-deposit-pill-button:hover {
  background: transparent !important;
  opacity: 0.85;
}

/* v1.8.4: always-visible compact deposit control in manager badge rows. */
.stag-booking-manager .stag-manager-badges > .stag-manager-deposit-status-button {
  flex: 0 0 auto !important;
}


/* v1.8.5 popup, badge, and action-button corrections */
.stag-booking-manager .stag-manager-badges {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.stag-booking-manager .stag-manager-status-pill,
.stag-booking-manager .stag-manager-deposit-status-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  padding: 5px 13px !important;
  line-height: 1.1 !important;
  vertical-align: middle !important;
}

.stag-booking-manager .stag-manager-request-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.stag-booking-manager .stag-manager-request-actions .stag-manager-open-day-button,
.stag-booking-manager .stag-manager-request-actions .stag-manager-contact-button,
.stag-booking-manager .stag-manager-request-actions button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  font: inherit !important;
  font-size: 0.95em !important;
  line-height: 1 !important;
}

.stag-manager-deposit-choice-form {
  display: grid !important;
  gap: 14px !important;
  align-items: start !important;
}

.stag-manager-deposit-choice-label {
  font-weight: 700 !important;
}

.stag-manager-deposit-choice-buttons {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.stag-manager-deposit-choice-button {
  border: 1px solid currentColor !important;
  border-radius: 999px !important;
  background: transparent !important;
  padding: 12px 18px !important;
  min-height: 48px !important;
  width: auto !important;
  color: inherit !important;
  box-shadow: none !important;
}

.stag-manager-deposit-choice-button.is-unpaid {
  color: #d49b38 !important;
  border-color: #d49b38 !important;
}

.stag-manager-deposit-choice-button.is-paid {
  color: #2ecc71 !important;
  border-color: #2ecc71 !important;
}

.stag-manager-deposit-choice-button.is-active {
  box-shadow: 0 0 0 1px currentColor !important;
}

.stag-manager-deposit-choice-button:hover,
.stag-manager-deposit-choice-button:focus-visible {
  background: transparent !important;
  opacity: 0.86;
}

.stag-booking-manager .stag-manager-modal-close {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.stag-manager-small-note,
.stag-manager-placeholder-note,
.stag-booking-manager .description {
  display: none !important;
}

/* v1.9.5: keep desktop calendar cells readable while scrolling inside the panel. */
.stag-booking-manager .stag-manager-calendar-panel {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch !important;
}

.stag-booking-manager .stag-manager-calendar-grid {
  min-width: 980px !important;
  width: 100% !important;
  grid-template-columns: repeat(7, minmax(140px, 1fr)) !important;
  overflow: visible !important;
}

/* v1.8.6: no-refresh deposit changes, consistent manager buttons, calendar category shortcuts, and quieter refs. */
.stag-booking-manager .stag-manager-booking-reference {
  font-size: 0.82em !important;
  opacity: 0.62 !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}

.stag-booking-manager .stag-manager-badges {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.stag-booking-manager .stag-manager-status-pill,
.stag-booking-manager .stag-manager-deposit-status-button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 14px !important;
  line-height: 1 !important;
  margin: 0 !important;
  vertical-align: top !important;
}

.stag-booking-manager .stag-manager-request-actions,
.stag-booking-manager .stag-manager-booking-row-actions,
.stag-booking-manager .stag-manager-quick-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

.stag-booking-manager .stag-manager-quick-actions form,
.stag-booking-manager .stag-manager-inline-action-form,
.stag-booking-manager .stag-manager-status-form {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.stag-booking-manager .stag-manager-request-actions > a,
.stag-booking-manager .stag-manager-request-actions > button,
.stag-booking-manager .stag-manager-request-actions button,
.stag-booking-manager .stag-manager-booking-row-actions > a,
.stag-booking-manager .stag-manager-booking-row-actions > button,
.stag-booking-manager .stag-manager-booking-row-actions button,
.stag-booking-manager .stag-manager-open-day-button,
.stag-booking-manager .stag-manager-contact-button,
.stag-booking-manager .stag-manager-action-confirm,
.stag-booking-manager .stag-manager-action-decline {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  font: inherit !important;
  font-size: 0.95em !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

.stag-booking-manager .stag-manager-open-day-button {
  border: 1px solid currentColor !important;
  background: transparent !important;
  color: inherit !important;
}

.stag-manager-calendar-category-shortcuts {
  display: none;
}

.stag-manager-calendar-day.has-category-blocks .stag-manager-calendar-block-button {
  display: none !important;
}

.stag-manager-calendar-day.has-category-blocks .stag-manager-calendar-category-shortcuts {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.stag-manager-calendar-category-shortcut {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 0.28rem 0.25rem !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  font-size: 0.72em !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.stag-manager-calendar-category-shortcut.is-blocked {
  border-color: #f28c28 !important;
  color: #f28c28 !important;
}

.stag-manager-calendar-category-shortcut:hover,
.stag-manager-calendar-category-shortcut:focus-visible {
  border-color: #f28c28 !important;
  color: #f28c28 !important;
  background: transparent !important;
}

/* v1.8.7 manager calendar/day-view cleanup */
.stag-manager-calendar-blocked-cats {
  display: none !important;
}
.stag-manager-calendar-category-shortcuts {
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  bottom: 12px !important;
  display: none !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  z-index: 4 !important;
}
.stag-manager-calendar-day.has-category-blocks .stag-manager-calendar-category-shortcuts,
.stag-manager-calendar-category-shortcuts.is-visible {
  display: grid !important;
}
.stag-manager-calendar-block-button.is-hidden,
.stag-manager-calendar-day.has-category-blocks > .stag-manager-calendar-block-button {
  display: none !important;
}
.stag-manager-calendar-category-shortcut {
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 0.28rem 0.4rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.8) !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.stag-manager-calendar-category-shortcut.is-blocked {
  border-color: #f28c28 !important;
  color: #f28c28 !important;
  box-shadow: 0 0 0 1px #f28c28 !important;
}
.stag-manager-tab-indicator,
.stag-manager-tab-button.has-indicator .stag-manager-tab-indicator {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.9) !important;
  color: rgba(255,255,255,0.95) !important;
}
.stag-manager-timeline-panel-full.has-open-booking-detail .stag-manager-horizontal-timeline {
  display: block !important;
}
.stag-manager-inline-detail-panels {
  margin-top: 12px !important;
}
.stag-manager-inline-detail-panel.is-active {
  border: 1px solid rgba(255,255,255,0.55) !important;
  border-radius: 18px !important;
  padding: 14px !important;
  background: rgba(255,255,255,0.035) !important;
}
.stag-manager-inline-detail-panel .stag-manager-full-booking-card {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.stag-manager-inline-detail-panel .stag-manager-full-booking-head {
  margin-bottom: 10px !important;
}
.stag-manager-inline-detail-panel .stag-manager-full-booking-head h4 {
  font-size: 1.05rem !important;
  margin: 0 0 0.2rem !important;
}

/* v1.9.6: mobile review layout - near-full width panels with internal horizontal scroll. */
@media (max-width: 820px) {
  .stag-booking-manager {
    width: calc(100vw - 18px) !important;
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
  }

  .stag-booking-manager .stag-manager-panel {
    border-radius: 14px !important;
    padding: 14px !important;
  }

  .stag-booking-manager .stag-manager-calendar-panel,
  .stag-booking-manager .stag-manager-timeline-panel-full {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .stag-booking-manager .stag-manager-calendar-grid {
    min-width: 960px !important;
    width: 960px !important;
    grid-template-columns: repeat(7, minmax(136px, 1fr)) !important;
  }

  .stag-booking-manager .stag-manager-horizontal-timeline,
  .stag-booking-manager .stag-manager-horizontal-track {
    min-width: 920px !important;
    width: 920px !important;
    overflow: visible !important;
  }
}
.stag-manager-inline-detail-panel .stag-manager-full-booking-head p {
  font-size: 0.92rem !important;
  margin: 0 !important;
}
.stag-manager-inline-detail-panel .stag-manager-full-booking-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
}
.stag-manager-inline-detail-panel .stag-manager-full-booking-grid dt {
  font-size: 0.72rem !important;
  opacity: 0.72 !important;
}
.stag-manager-inline-detail-panel .stag-manager-full-booking-grid dd {
  font-size: 0.88rem !important;
}
.stag-manager-inline-detail-panel .stag-manager-booking-message {
  margin: 8px 0 !important;
  padding: 8px 10px !important;
  font-size: 0.88rem !important;
}
.stag-manager-inline-detail-panel .stag-manager-single-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
}
.stag-manager-inline-detail-panel .stag-manager-status-form {
  margin: 0 !important;
}
.stag-manager-inline-detail-panel .stag-manager-status-actions,
.stag-manager-inline-detail-panel .stag-manager-quick-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
@media (max-width: 760px) {
  .stag-manager-inline-detail-panel .stag-manager-full-booking-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v1.8.9 selected-day and compact day-view fixes */
.stag-booking-manager .stag-manager-calendar-category-shortcut {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 0.35rem !important;
  font-size: 0.72rem !important;
}
.stag-booking-manager .stag-manager-calendar-block-button {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 0.72rem !important;
}
.stag-booking-manager .stag-manager-action-cancel {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  border: 1px solid #ff4a4a !important;
  background: transparent !important;
  color: #ff4a4a !important;
  font: inherit !important;
  font-size: 0.95em !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  margin: 0 !important;
}
.stag-booking-manager .stag-manager-cancel-action-form {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}
.stag-booking-manager .stag-manager-inline-detail-panel .stag-manager-single-actions {
  margin-top: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
.stag-booking-manager .stag-manager-inline-detail-panel .stag-manager-full-booking-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

/* v1.9.7: mobile calendar-app layout. */
@media (max-width: 820px) {
  .stag-booking-manager {
    width: 100% !important;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
  }

  .entry-content:has(.stag-booking-manager),
  .container:has(.stag-booking-manager),
  #main:has(.stag-booking-manager) {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .stag-booking-manager .stag-manager-header {
    display: grid !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding: 0 2px !important;
  }

  .stag-booking-manager .stag-manager-header h2 {
    font-size: clamp(2rem, 10vw, 3rem) !important;
    line-height: 1.05 !important;
    margin: 0 !important;
  }

  .stag-booking-manager .stag-manager-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 0 2px !important;
    overflow: visible !important;
  }

  .stag-booking-manager .stag-manager-calendar-panel {
    overflow: visible !important;
    padding: 12px 8px !important;
  }

  .stag-booking-manager .stag-manager-calendar-header {
    display: grid !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .stag-booking-manager .stag-manager-calendar-header h3 {
    font-size: clamp(1.8rem, 8vw, 2.45rem) !important;
    line-height: 1 !important;
  }

  .stag-booking-manager .stag-manager-calendar-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .stag-booking-manager .stag-manager-calendar-nav a {
    min-width: 0 !important;
    padding: 8px 6px !important;
    text-align: center !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .stag-booking-manager .stag-manager-calendar-grid {
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }

  .stag-booking-manager .stag-manager-calendar-weekday {
    min-height: 34px !important;
    padding: 8px 2px !important;
    text-align: center !important;
    font-size: clamp(0.68rem, 2.8vw, 0.86rem) !important;
    line-height: 1 !important;
  }

  .stag-booking-manager .stag-manager-calendar-day {
    min-width: 0 !important;
    min-height: clamp(76px, 17vw, 108px) !important;
    padding: 5px 3px 8px !important;
    gap: 3px !important;
    overflow: hidden !important;
  }

  .stag-booking-manager .stag-manager-calendar-date {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px !important;
  }

  .stag-booking-manager .stag-manager-calendar-date strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 1.55em !important;
    height: 1.55em !important;
    font-size: clamp(0.72rem, 3.2vw, 1rem) !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .stag-booking-manager .stag-manager-calendar-date span {
    display: none !important;
  }

  .stag-booking-manager .stag-manager-calendar-metrics {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
    margin: 3px 0 0 !important;
  }

  .stag-booking-manager .stag-calendar-metric {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 999px !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }

  .stag-booking-manager .stag-calendar-metric strong {
    font-size: 0.62rem !important;
    line-height: 1 !important;
  }

  .stag-booking-manager .stag-manager-calendar-bars {
    margin: 4px 0 0 !important;
    gap: 2px !important;
  }

  .stag-booking-manager .stag-calendar-status-bar {
    height: 4px !important;
    min-width: 4px !important;
  }

  .stag-booking-manager .stag-manager-calendar-category-shortcuts {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
    margin-top: auto !important;
  }

  .stag-booking-manager .stag-manager-calendar-category-shortcut {
    display: none !important;
    height: 21px !important;
    min-height: 21px !important;
    max-height: 21px !important;
    width: auto !important;
    min-width: 28px !important;
    padding: 0 !important;
    font-size: clamp(0.5rem, 2.2vw, 0.64rem) !important;
    letter-spacing: 0 !important;
  }

  .stag-booking-manager .stag-manager-calendar-category-shortcut.is-blocked {
    display: inline-flex !important;
  }
}

/* v1.9.9: tighter mobile calendar cells and bottom-aligned closures. */
@media (max-width: 820px) {
  .stag-booking-manager .stag-manager-calendar-panel {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 6px 0 !important;
  }

  .stag-booking-manager .stag-manager-calendar-grid {
    border-width: 1px 0 0 1px !important;
  }

  .stag-booking-manager .stag-manager-calendar-day {
    display: grid !important;
    grid-template-rows: auto auto 1fr auto !important;
    align-content: stretch !important;
    min-height: clamp(74px, 16vw, 102px) !important;
    padding: 4px 3px 5px !important;
  }

  .stag-booking-manager .stag-manager-calendar-date {
    margin: 0 !important;
  }

  .stag-booking-manager .stag-manager-calendar-date strong {
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: clamp(0.66rem, 2.8vw, 0.86rem) !important;
    font-weight: 700 !important;
  }

  .stag-booking-manager .stag-manager-calendar-metrics {
    justify-content: center !important;
    align-items: center !important;
    min-width: 0 !important;
    margin: 5px 0 0 !important;
  }

  .stag-booking-manager .stag-calendar-metric {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .stag-booking-manager .stag-calendar-metric strong {
    display: block !important;
    width: 100% !important;
    font-size: 0.54rem !important;
    line-height: 14px !important;
    text-align: center !important;
  }

  .stag-booking-manager .stag-manager-calendar-bars {
    align-self: start !important;
    margin: 4px 0 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .stag-booking-manager .stag-manager-calendar-category-shortcuts {
    align-self: end !important;
    min-width: 0 !important;
    margin: 3px 0 0 !important;
    padding: 0 !important;
  }

  .stag-booking-manager .stag-manager-calendar-category-shortcut {
    min-width: 24px !important;
    max-width: 32px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    font-size: clamp(0.44rem, 1.9vw, 0.56rem) !important;
    box-shadow: none !important;
  }
}

/* v1.9.11: keep mobile calendar indicators inside their cells. */
@media (max-width: 820px) {
  .stag-booking-manager .stag-manager-calendar-day {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: clamp(76px, 16vw, 104px) !important;
    padding: 4px 6px 29px !important;
    overflow: hidden !important;
  }

  .stag-booking-manager .stag-manager-calendar-day.has-category-blocks {
    outline: 0 !important;
    box-shadow: inset 0 0 0 2px #f28c28 !important;
  }

  .stag-booking-manager .stag-manager-calendar-day.is-selected,
  .stag-booking-manager .stag-manager-calendar-day:focus-within {
    outline: 0 !important;
  }

  .stag-booking-manager .stag-manager-calendar-date {
    flex: 0 0 auto !important;
  }

  .stag-booking-manager .stag-manager-calendar-date strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: clamp(0.62rem, 2.6vw, 0.82rem) !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  .stag-booking-manager .stag-manager-calendar-metrics {
    display: flex !important;
    flex: 0 0 auto !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px !important;
    min-width: 0 !important;
    margin: 5px 0 0 !important;
  }

  .stag-booking-manager .stag-calendar-metric {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 17px !important;
    height: 17px !important;
    min-height: 17px !important;
    padding: 0 3px !important;
    border-radius: 999px !important;
    font-size: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .stag-booking-manager .stag-calendar-metric strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 8px !important;
    height: 100% !important;
    font-size: 0.56rem !important;
    line-height: 1 !important;
    text-align: center !important;
    transform: none !important;
  }

  .stag-booking-manager .stag-manager-calendar-bars {
    flex: 0 0 auto !important;
    margin: 4px 0 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .stag-booking-manager .stag-manager-calendar-category-shortcuts {
    position: absolute !important;
    left: 6px !important;
    right: 6px !important;
    bottom: 6px !important;
    z-index: 2 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }

  .stag-booking-manager .stag-manager-calendar-category-shortcut {
    display: none !important;
    box-sizing: border-box !important;
    flex: 0 1 28px !important;
    min-width: 24px !important;
    max-width: 30px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    padding: 0 3px !important;
    border-width: 1px !important;
    border-radius: 999px !important;
    font-size: 0.52rem !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
  }

  .stag-booking-manager .stag-manager-calendar-category-shortcut.is-blocked {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Final booking-form overrides for v1.9.18. Keep after historical rules. */
.stag-booking-form-wrap {
  box-sizing: border-box !important;
  max-width: 1160px !important;
  width: 100% !important;
  margin-inline: auto !important;
}

body.stag-booking-public-page #header-wrapper .main-title-section-wrapper,
body.stag-booking-public-page .main-title-section-wrapper.aligncenter {
  display: none !important;
}

.stag-booking-page-title {
  max-width: 1160px;
  width: min(1160px, calc(100vw - 48px));
  margin: 0 auto 28px !important;
  color: inherit;
  text-align: center;
}

.wp-block-column > .stag-booking-form-wrap {
  left: 50% !important;
  max-width: min(1160px, calc(100vw - 48px)) !important;
  position: relative !important;
  transform: translateX(-50%) !important;
  width: min(1160px, calc(100vw - 48px)) !important;
}

.wp-block-columns .stag-booking-form-wrap,
.wp-block-column .stag-booking-form-wrap,
.entry-content .stag-booking-form-wrap {
  max-width: 100% !important;
}

.wp-block-columns:has(.stag-booking-form-wrap) {
  display: block !important;
}

.wp-block-columns:has(.stag-booking-form-wrap) > .wp-block-column {
  width: 100% !important;
  max-width: 100% !important;
  flex-basis: 100% !important;
}

.stag-booking-progressive-ui .stag-booking-form,
.stag-booking-progressive-ui .stag-booking-panel {
  width: 100% !important;
}

.stag-booking-progressive-ui .stag-booking-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
}

.stag-booking-progressive-ui .stag-booking-type-options {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  align-items: stretch !important;
}

.stag-booking-progressive-ui .stag-booking-choice input[type='radio'] + span {
  min-height: 58px !important;
  padding: 14px 18px !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  white-space: normal !important;
}

.stag-booking-progressive-ui .stag-seating-preference-field {
  margin: 0 0 24px;
  padding: 0;
  border: 0 !important;
}

.stag-booking-progressive-ui .stag-seating-preference-field legend {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  font-weight: 700;
}

.stag-booking-progressive-ui .stag-booking-time-field {
  margin-top: 18px;
}

.stag-booking-progressive-ui .stag-booking-choice input[type='radio']:disabled + span,
.stag-booking-progressive-ui .stag-booking-choice.is-disabled span {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
}

.stag-customer-booking-manager {
  box-sizing: border-box;
  max-width: 960px !important;
  width: 100% !important;
  margin-inline: auto;
}

.stag-customer-booking-summary,
.stag-customer-action-panel {
  border-radius: 8px !important;
  padding: 20px !important;
}

.stag-customer-booking-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 18px;
}

.stag-customer-booking-summary p {
  margin: 0 !important;
}

.stag-customer-action-panel button {
  cursor: pointer;
}

@media (max-width: 640px) {
  .stag-booking-progressive-ui .stag-booking-grid,
  .stag-booking-progressive-ui .stag-booking-type-options {
    grid-template-columns: 1fr !important;
  }

  .stag-booking-progressive-ui .stag-booking-panel-heading {
    align-items: center !important;
    gap: 10px;
  }
}
