/*
 * PRICE-2: plan comparison.
 * The plans side by side in one table: what you get down the side, a column
 * for each plan, the fee in the first row and larger than the rest. Values
 * are centred under the name of their plan. The table itself is drawn in
 * base.css, "Tables in sections".
 */

/* Also the names of the plans: the table's own rule sets a heading cell to the start. */
.wprk-price-2 .wprk-price-2__table :is(th, td):not(:first-child):not([class*="has-text-align"]) {
	text-align: center;
}

/* The names of the plans head the table, in the heading font. */
.wprk-price-2 .wprk-price-2__table thead th:not(:first-child) {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: var(--wp--custom--heading--weight);
	letter-spacing: var(--wp--custom--heading--tracking);
}

.wprk-price-2 .wprk-price-2__table thead th:first-child {
	color: var(--wprk-muted);
}

.wprk-price-2 .wprk-price-2__table tbody th {
	font-weight: 500;
}

/* The first row is the fee. */
.wprk-price-2 .wprk-price-2__table tbody tr:first-child td {
	color: var(--wprk-heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: var(--wp--custom--heading--weight);
	letter-spacing: var(--wp--custom--heading--tracking);
	line-height: 1.2;
}

.wprk-price-2 .wprk-price-2__table tbody tr:first-child > * {
	padding-block: 1.1rem;
	vertical-align: middle;
}

/* The small print and the button stand under the middle of the table. */
.wprk-price-2 .wprk-section__foot {
	text-align: center;
}

.wprk-price-2 .wprk-section__foot > * {
	margin-inline: auto;
}

.wprk-price-2 .wprk-section__foot .wp-block-buttons {
	justify-content: center;
}

@media (min-width: 782px) {
	.wprk-price-2 .wprk-price-2__table thead th:first-child {
		width: 28%;
	}
}
