/*
 * Fixes for the Schema Reviews pricing and alternatives table blocks (see includes/display/block-fixes.php).
 * "body" raises specificity over schema-reviews/assets/css/styles.css, whatever the load order.
 */

/* Pricing table: never hide columns. Cells wrap; the wrapper scrolls if it still does not fit. */
body .pricing-table-container .spr-pricing-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

body .pricing-table-container .spr-pricing-table th,
body .pricing-table-container .spr-pricing-table td {
	white-space: normal;
	overflow-wrap: normal;
	word-break: normal;
}

body .pricing-table-container .spr-pricing-table td[data-label] > span.text-lg {
	white-space: nowrap;
}

body .pricing-table-container .spr-pricing-table .spr-pricing-table__action,
body .pricing-table-container .spr-pricing-table .spr-pricing-table__action a,
body .pricing-table-container .spr-pricing-table .spr-pricing-table__action span {
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: normal;
}

/* Alternatives table: text ratings are small and muted, and wrap inside their cell. */
body .alternatives-table-container .spr-alternatives-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

body .alternatives-table-container .spr-alternatives-table__rating-cell {
	white-space: normal;
}

body .alternatives-table-container .spr-alternatives-table__rating-cell .spr-alternatives-table__score,
body .alternatives-table-container .spr-alternatives-table__rating-cell .spr-alternatives-table__score-total {
	white-space: nowrap;
}

body .alternatives-table-container .spr-alternatives-table__score.spr-alternatives-table__score--text {
	display: inline-block;
	white-space: normal;
	font-size: 0.8em;
	line-height: 1.3;
	font-weight: 600;
	color: #64748b;
	overflow-wrap: break-word;
}
