/* Public form controls: override the theme/CF7 height rules after all layers.
 * !important is limited to the required minimum against third-party overrides. */
body.bzp-published.bzp-published-type-conversion .wpcf7-form :is(
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="submit"], select, textarea
) {
  box-sizing: border-box;
  min-height: var(--bzp-ds-control-height) !important;
}

/* Component grid display must not override the native hidden filter state. */
body.bzp-published.bzp-published-type-hub :is(.bzp-hub-card, .bzp-hub-empty)[hidden] {
  display: none !important;
}

/* Timeline columns follow the actual number of events; no empty final track.
 * Retain the established single-column layout at 780px and below. */
@media (min-width: 781px) {
  body.bzp-published.bzp-published-type-timely.bzp-template-timely-v1 .bzp-wave14-timeline {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
}

body.bzp-published.bzp-published-type-timely.bzp-template-timely-v1 .bzp-wave14-timeline > div {
  min-width: 0;
}

/* A remaining single item fills its component after review-only notes are removed.
 * Do not change multi-item catalogues or the layout of checkbox groups. */
body.bzp-published.bzp-published-type-timely.bzp-template-timely-v1 .bzp-wave14-archive-label:has(> strong:only-child),
body.bzp-published.bzp-published-type-conversion .wpcf7-checkbox.cf7-checkbox-list:has(> .wpcf7-list-item:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

/* Match the frozen hub adapter's specificity and its !important grid contract. */
body.bzp-published.bzp-published-type-hub.bzp-template-hub-v1.bzp-hub-adapter-v1
  .bzp-hub-card-grid.bzp-hub-adapter-grid:has(> .bzp-hub-card:only-child) {
  grid-template-columns: minmax(0, 1fr) !important;
}

