/**
 * Bricks popup + WS Form post-submit layout fix.
 *
 * After success, WS Form may hide the form (form_hide) and insert [data-wsf-message]
 * before it. Popup inner shells that use align-self:flex-start then shrink to the
 * short message width and expose the popup content background (e.g. navy) beside a
 * cramped grey box. Scope: Bricks popups only — page forms unchanged.
 */

.brx-popup .brx-popup-content > .brxe-div:has(.wsf-form),
.brx-popup .brx-popup-content > .brxe-div:has([data-wsf-message]),
.brx-popup .brx-popup-content > .brxe-div:has(.wsf-alert) {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	align-self: stretch !important;
}

.brx-popup .brxe-ws-form-form,
.brx-popup .brxe-ws-form {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	align-self: stretch !important;
}

.brx-popup [data-wsf-message],
.brx-popup .wsf-alert {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
