/**
 * jixaw theme overrides — small, self-contained fixes for theme (Square Candy
 * v2.0.2) layout bugs we don't own. Kept here (not in the theme) because the
 * theme is another team's build-pipeline code; this loads globally and survives
 * theme updates.
 */

/* Productions / event-filter-list cards: the .cta-buttons row is a 2-column flex
 * capped at ~374px, each column ~47%. A long ticket-status label (e.g.
 * "Tickets On Sale Soon") sized to its content and overflowed its ~175px button,
 * spilling under the adjacent "More Details" link. Cap the button at its column
 * width and let a long label wrap; short labels (e.g. "Subscribe Today") are
 * under the cap and render unchanged. */
.cta-buttons .wp-block-event-tickets {
  min-width: 0;
  max-width: 100%;
}
/* Make the button wrapper fill its (~47%) column so the cap below resolves
 * against the column, not the label's natural width. */
.cta-buttons .wp-block-button {
  display: block;
  max-width: 100%;
}
/* inline-block keeps short labels at content width; max-width caps long ones to
 * the column so they wrap instead of overflowing into "More Details". The theme
 * sets min-width:max-content on the link, which would override max-width and force
 * the full single-line width — reset it so the cap can take effect. */
.cta-buttons .wp-block-button__link {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
