/**
 * Cart / checkout — Teamwork #144
 *
 * Enqueued from `theme/theme-filters.php`, only on `is_cart() || is_checkout()`.
 * Companion JS (whole payment-method row clickable) also lives in that file.
 */

/* -----------------------------------------------------------------------
 * "Your order" review table
 * The composite-products plugin only hides child rows' inner content, so
 * each empty <tr> was still adding row-height of blank space between the
 * visible parents (Baseline Screening, Driver Screening Package, etc.).
 * Collapse the child <tr>s entirely.
 * -------------------------------------------------------------------- */
.woocommerce-checkout-review-order-table tr.cart_item.component_table_item {
	display: none;
}

.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th,
.woocommerce-cart-form__contents td,
.woocommerce-cart-form__contents th {
	padding-top: 0.35rem;
	padding-bottom: 0.35rem;
}

.composite_component:last-child {
	margin-bottom: 10px;
}

/* -----------------------------------------------------------------------
 * Checkbox / radio inline layout + brand accent
 *
 * The plugin's blanket
 *   `.woocommerce-checkout form.checkout input { width:100%; padding:15px;
 *    margin-bottom:20px; border:1px }`
 * hits checkboxes and radios too, blowing them to 100% width and stacking
 * them above their labels. Type-scoped override at matching specificity.
 * -------------------------------------------------------------------- */
.woocommerce-checkout form.checkout input[type="checkbox"],
.woocommerce-checkout form.checkout input[type="radio"],
.woocommerce-cart form.checkout input[type="checkbox"],
.woocommerce-cart form.checkout input[type="radio"],
.woocommerce-form__input-checkbox,
.wc_payment_method .input-radio {
	width: 1.15rem !important;
	height: 1.15rem !important;
	padding: 0 !important;
	border: 0 !important;
	margin: 0 0.5rem 0 0 !important;
	accent-color: var(--wp--preset--color--primary, #0057ff);
	display: inline-block !important;
	vertical-align: middle;
	cursor: pointer;
}

.form-row.terms,
.form-row.create-account,
.wc_payment_method {
	text-align: left !important;
}

/* Whole payment-method row is a click target (paired with JS). */
.wc_payment_method {
	cursor: pointer;
}
