/* Shared layout: .builder-table in .text_container (all variants) */

.site-theme .text_container .builder-table:not([data-builder-table-expandable]),
.megapari .text_container .builder-table:not([data-builder-table-expandable]) {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-inline: auto !important;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.site-theme .text_container .builder-table:not([data-builder-table-expandable]) .builder-table__table,
.megapari .text_container .builder-table:not([data-builder-table-expandable]) .builder-table__table {
	display: table;
	width: 100% !important;
	max-width: 100%;
	margin-inline: auto;
	table-layout: auto;
}

.site-theme .text_container .builder-table[data-builder-table-expandable],
.megapari .text_container .builder-table[data-builder-table-expandable] {
	display: block;
	width: 100% !important;
	max-width: 100%;
	margin-inline: auto;
	text-align: center;
}

.site-theme .text_container .builder-table[data-builder-table-expandable] .builder-table__table,
.megapari .text_container .builder-table[data-builder-table-expandable] .builder-table__table {
	width: 100% !important;
	margin-inline: auto;
}

/* Tablet/mobile — shrink-wrap + horizontal scroll */
@media (max-width: 1024px) {
	.site-theme .text_container .builder-table:not([data-builder-table-expandable]),
	.megapari .text_container .builder-table:not([data-builder-table-expandable]) {
		width: fit-content !important;
		max-width: 100% !important;
		margin-inline: auto !important;
	}

	.site-theme .text_container .builder-table:not([data-builder-table-expandable]) .builder-table__table,
	.megapari .text_container .builder-table:not([data-builder-table-expandable]) .builder-table__table {
		width: auto !important;
		max-width: none !important;
		min-width: 560px !important;
	}
}
