/* Checkout (/membership-checkout/) – order summary next to PMPro's form, in the Plans card style. Loaded on this page only. */
.aip-pmpro--checkout { max-width: 1160px !important; }
.aip-co-kicker { margin: 0 0 8px !important; }
.aip-co { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.aip-co-main, .aip-co-side { min-width: 0; }
.aip-co-side { position: sticky; top: 24px; }

/* Summary card */
.aip-co-sum { background: var(--wp--preset--color--peach); border: 0; padding: 32px 28px; }
.aip-co-sum .aip-lb { margin: 0 0 10px; }
.aip-pmpro .aip-co-plan { margin: 0 0 6px !important; font-size: 26px !important; }
.aip-pmpro .aip-co-price { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 22px; color: #111; margin: 0 0 18px; }
.aip-co-list { list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; line-height: 1.5; }
.aip-co-list li { margin: 0 0 8px; }
.aip-co-box { background: #fff; padding: 18px 20px; margin: 0 0 18px; font-size: 14px; line-height: 1.55; }
.aip-co-box p { margin: 0 0 8px; }
.aip-co-box p:last-child { margin-bottom: 0; }
.aip-co-steps { margin: 0; padding-left: 20px; }
.aip-co-steps li { margin: 0 0 6px; }
.aip-co-small { font-size: 13px; line-height: 1.55; margin: 0 0 10px; color: #111; }
.aip-co-links { margin-top: 16px; }

/* Payment section inside the form */
.aip-co-pay { border: 1px solid var(--wp--preset--color--hairline); background: #fff; padding: 24px; margin: 0 0 24px; font-size: 14px; line-height: 1.6; }
.aip-co-pay .aip-lb { margin: 0 0 6px; }
.aip-co-h { font-family: 'Outfit', sans-serif !important; font-weight: 700 !important; font-size: 20px !important; margin: 0 0 12px !important; color: #111; text-transform: none !important; letter-spacing: 0 !important; }
.aip-co-pay p { margin: 0 0 10px; }
.aip-co-note { font-size: 13px; color: var(--wp--preset--color--body); }

/* Health fields: group text + hints */
.aip-pmpro--checkout .pmpro_form_fieldset-description, .aip-pmpro--checkout .pmpro_checkout-field-description,
.aip-pmpro--checkout .pmpro_form_hint { font-size: 13px; line-height: 1.5; color: var(--wp--preset--color--body); }
.aip-field-error { color: #B3261E; font-size: 13px; margin: 6px 0 0; }
.aip-pmpro [aria-invalid="true"] { border-color: #B3261E !important; }
.aip-pmpro .pmpro_form_field-checkbox label a { white-space: normal; }

@media (max-width: 900px) {
	.aip-co { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.aip-co-side { position: static; order: -1; }
	.aip-co-sum { padding: 24px 20px; }
}
@media (max-width: 600px) {
	.aip-co-pay { padding: 18px 16px; }
	.aip-co-list { margin-bottom: 16px; }
}

/* Room under the submit button for the floating language pill and chat bubble on phones (audit M8) */
@media (max-width: 600px) { .aip-pmpro--checkout { padding-bottom: 88px; } }
.aip-pmpro .pmpro_form_fields-description { grid-column: 1 / -1; }

/* Terms checkbox: the label was a flex row, so each link/word group became its own column on phones. */
.pmpro_form_field-checkbox > label.pmpro_form_label { display: block !important; position: relative; padding-left: 30px; line-height: 1.55; text-transform: none; letter-spacing: 0; font-size: 13px; }
.pmpro_form_field-checkbox > label.pmpro_form_label > input[type="checkbox"] { position: absolute; left: 0; top: 1px; margin: 0; }
