/* Screen-based layout — keep tables, forms, and account pages inside the viewport */

.row > [class*="col-"] {
	min-width: 0;
}

.site-content img,
.site-content video,
.site-content iframe {
	max-width: 100%;
	height: auto;
}

.consent-notice {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.lb-table-wrap {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.lb-table-wrap table {
	overflow: visible;
	max-width: none;
}

.lb-stack-table .button,
.lb-stack-table .button.button-outline {
	display: inline-block !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: 100%;
	padding: 0.4rem 0.75rem !important;
	margin: 0 !important;
	font-size: 0.78rem !important;
	line-height: 1.25 !important;
	white-space: normal;
	text-transform: none !important;
	border-radius: 4px !important;
}

@media (max-width: 767px) {
	.site-section .container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.content-filters {
		margin-bottom: 1.5rem;
	}

	.content-filters select,
	.content-filters input[type="date"] {
		max-width: 100%;
	}

	.funding-checkout-row {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}

	.lb-stack-table,
	.lb-stack-table thead,
	.lb-stack-table tbody,
	.lb-stack-table tr,
	.lb-stack-table th,
	.lb-stack-table td {
		display: block;
		width: 100%;
		max-width: 100%;
	}

	.lb-stack-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.lb-stack-table tr {
		margin: 0 0 1rem;
		padding: 0.85rem 1rem;
		border: 1px solid #ddd6c6;
		border-radius: 6px;
		background: #fff;
	}

	.lb-stack-table td,
	.lb-stack-table td:first-of-type,
	.lb-stack-table td:last-of-type {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		padding: 0.55rem 0 !important;
		text-align: right;
		border: 0;
	}

	.lb-stack-table td:before {
		content: attr(data-label);
		position: static;
		flex: 0 0 38%;
		height: auto;
		background: none;
		color: #5b5346;
		font-weight: 600;
		text-align: left;
	}

	.lb-stack-table tr:last-of-type td:before {
		content: attr(data-label);
	}

	.lb-stack-table td:last-child {
		align-items: flex-start;
	}
}
