/**
 * BC Comparison Table — structural styles.
 * Colors, typography, spacing, radius, shadows are all controlled
 * from the Elementor "Style" tab (see selectors in the widget PHP).
 * This file only handles layout so the table works even before
 * any style control is touched.
 */

.bc-comparison-table-wrap {
	width: 100%;
}

.bc-comparison-table {
	width: 100%;
	border-collapse: collapse;
	border-style: solid;
	border-width: 1px;
	table-layout: auto;
}

.bc-comparison-table thead th {
	text-align: left;
	white-space: nowrap;
}

.bc-comparison-table tbody tr {
	border-bottom-style: solid;
	border-bottom-width: 1px;
}

.bc-comparison-table tbody tr:last-child {
	border-bottom: none;
}

.bc-comparison-table tbody td {
	text-align: left;
	vertical-align: middle;
}

.bc-comparison-table tbody td.bc-col-flooring {
	font-weight: 600;
}

.bc-rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bc-rating__icon {
	display: inline-block;
	line-height: 1;
	font-weight: 700;
}

.bc-comparison-table__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	border-top-style: solid;
	border-top-width: 1px;
}

.bc-comparison-table__footer-text {
	flex: 1 1 260px;
}

.bc-comparison-table__button {
	display: inline-block;
	text-decoration: none;
	border-style: solid;
	border-width: 1px;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Responsive: stack cells on small screens */
@media (max-width: 767px) {
	.bc-comparison-table thead {
		display: none;
	}

	.bc-comparison-table,
	.bc-comparison-table tbody,
	.bc-comparison-table tbody tr,
	.bc-comparison-table tbody td {
		display: block;
		width: 100%;
	}

	.bc-comparison-table tbody tr {
		padding: 8px 0;
	}

	.bc-comparison-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 6px 20px !important;
	}

	.bc-comparison-table tbody td::before {
		content: attr(data-label);
		font-weight: 600;
		margin-right: 12px;
		opacity: 0.7;
	}
}
