/* 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__scroll,
.megapari .text_container .builder-table[data-builder-table-expandable] .builder-table__scroll {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	overflow-y: hidden;
}

.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 {
	display: table;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin-inline: auto;
	table-layout: fixed !important;
}

@media (max-width: 768px) {
	body.site-theme .text_container .builder-table[data-builder-table-expandable] .builder-table__table,
	body.megapari .text_container .builder-table[data-builder-table-expandable] .builder-table__table {
		width: 600px !important;
		min-width: 600px !important;
		max-width: none !important;
	}

	body.site-theme .text_container .builder-table[data-builder-table-expandable]:not(.is-expanded) .builder-table__scroll,
	body.megapari .text_container .builder-table[data-builder-table-expandable]:not(.is-expanded) .builder-table__scroll {
		overflow-x: hidden !important;
	}

	body.site-theme .text_container .builder-table[data-builder-table-expandable].is-expanded .builder-table__scroll,
	body.megapari .text_container .builder-table[data-builder-table-expandable].is-expanded .builder-table__scroll {
		overflow-x: auto !important;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		overscroll-behavior-x: contain;
	}
}

@media (min-width: 769px) {
	.site-theme .text_container .builder-table[data-builder-table-expandable] .builder-table__scroll,
	.megapari .text_container .builder-table[data-builder-table-expandable] .builder-table__scroll {
		overflow-x: hidden;
	}
}

body.site-theme .text_container .builder-table .builder-table__table th,
body.site-theme .text_container .builder-table .builder-table__table td,
.megapari .text_container .builder-table .builder-table__table th,
.megapari .text_container .builder-table .builder-table__table td {
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	font-family: inherit;
	font-size: var(--container-font-size, 16px);
	font-weight: var(--container-font-weight, 400);
	line-height: 1.375;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body.site-theme .text_container .builder-table .builder-table__table thead th,
.megapari .text_container .builder-table .builder-table__table thead th {
	font-weight: var(--container-h-font-weight, 700);
}

body.site-theme .text_container .builder-table .builder-table__table td span,
body.site-theme .text_container .builder-table .builder-table__table th span,
.megapari .text_container .builder-table .builder-table__table td span,
.megapari .text_container .builder-table .builder-table__table th span {
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	font: inherit;
}

/* 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;
	}
}
