/*
 * Paid Memberships Pro checkout refinements.
 * All rules are scoped to paid SEA product levels through a server-side body
 * class so the free email-only toolkit checkout remains unchanged.
 */

.sea-paid-product-checkout #pmpro_form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 21rem);
	gap: 1.25rem 2rem;
	align-items: start;
}

.sea-paid-product-checkout #pmpro_form > * {
	grid-column: 1;
	min-width: 0;
}

.sea-paid-product-checkout #pmpro_pricing_fields {
	grid-column: 2;
	grid-row: 1 / span 30;
	position: sticky;
	top: 2rem;
}

.sea-paid-product-checkout .pmpro_form_fieldset {
	min-width: 0;
}

.sea-paid-product-checkout #pmpro_billing_address_fields .pmpro_form_fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.sea-paid-product-checkout .pmpro_form_field-bfirstname,
.sea-paid-product-checkout .pmpro_form_field-blastname,
.sea-paid-product-checkout .pmpro_form_field-baddress1,
.sea-paid-product-checkout .pmpro_form_field-baddress2,
.sea-paid-product-checkout .pmpro_form_field-bcity,
.sea-paid-product-checkout .pmpro_form_field-bstate,
.sea-paid-product-checkout .pmpro_form_field-bcountry,
.sea-paid-product-checkout .pmpro_form_field-bphone,
.sea-paid-product-checkout .pmpro_form_field-bconfirmemail {
	display: none;
}

.sea-paid-product-checkout .pmpro_form_field-bemail input {
	width: 100%;
}

.sea-paid-product-checkout .pmpro_form_field-bzipcode input {
	max-width: 16rem;
	text-transform: uppercase;
}

.sea-checkout-summary {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #dfe4e8;
}

.sea-checkout-summary p {
	margin: 0 0 0.65rem;
}

.sea-checkout-postcode-note {
	margin: 0.25rem 0 0;
	color: #4d5961;
	font-size: 0.925rem;
	line-height: 1.5;
}

.sea-paid-product-checkout .pmpro_checkout-field-cooling-off-waiver {
	margin: 1rem 0;
	padding: 0.9rem 1rem;
	background: #f4f8f8;
	border-left: 3px solid #248f8f;
	border-radius: 4px;
}

.sea-paid-product-checkout .pmpro_checkout-field-cooling-off-waiver label {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0;
	cursor: pointer;
	font-size: 0.95rem;
	line-height: 1.5;
}

.sea-paid-product-checkout .pmpro_checkout-field-cooling-off-waiver input {
	flex: 0 0 auto;
	width: auto;
	margin-top: 0.25rem;
}

.sea-checkout-assurances {
	margin: 1rem 0;
	color: #4d5961;
	font-size: 0.9rem;
	line-height: 1.5;
}

.sea-checkout-assurances p {
	margin: 0 0 0.6rem;
}

.sea-checkout-assurances nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.55rem;
}

.sea-paid-product-checkout #pmpro_btn-submit,
.sea-paid-product-checkout .pmpro_btn-submit-checkout {
	width: 100%;
	min-height: 3rem;
}

@media (max-width: 900px) {
	.sea-paid-product-checkout #pmpro_form {
		display: block;
	}

	.sea-paid-product-checkout #pmpro_form > * {
		margin-bottom: 1.25rem;
	}

	.sea-paid-product-checkout #pmpro_pricing_fields {
		position: static;
	}
}
