/* T12 — checkout (existing site styles, no new design) */

/* Header: logo + "Secure checkout" mark only */
.t12-checkout #ast-desktop-header .main-header-menu,
.t12-checkout #ast-desktop-header .ast-main-header-bar-alignment,
.t12-checkout #ast-desktop-header .ast-site-header-cart,
.t12-checkout #ast-desktop-header .ast-header-woo-cart,
.t12-checkout #ast-mobile-header .ast-site-header-cart,
.t12-checkout #ast-mobile-header .main-header-bar-navigation,
.t12-checkout #ast-mobile-header .ast-button-wrap,
.t12-checkout .ast-header-woo-cart,
.t12-checkout .main-header-bar-navigation { display: none !important; }
.t12-checkout .site-header .site-primary-header-wrap,
.t12-checkout .site-header .ast-builder-grid-row { align-items: center; }
.t12-checkout .site-header .ast-site-identity::after {
	content: "\1F512  " var(--t12-secure);
	display: inline-block;
	margin-left: 18px;
	font-size: 14px;
	color: #bbb;
	vertical-align: middle;
	white-space: nowrap;
}

/* Page title is redundant */
.t12-checkout .entry-header { display: none; }

/* Discreet notices (coupon / returning customer) */
.t12-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.t12-checkout .woocommerce-form-login-toggle .woocommerce-info {
	background: none; border: 0; padding: 0; margin: 0 0 10px; font-size: 14px; box-shadow: none;
}
.t12-checkout .woocommerce-info::before { display: none; }
.t12-checkout .showcoupon { text-decoration: underline; }
.t12-checkout form.checkout_coupon { margin: 0 0 20px; padding: 12px; }

/* Fields */
.t12-checkout #billing_email_field .description,
.t12-checkout #billing_email_field + .t12-newsletter { font-size: 13px; }
.t12-checkout #billing_email_field .description { display: block; margin-top: 4px; color: #666; }
.t12-checkout .t12-newsletter { margin: -6px 0 14px; }
.t12-checkout .t12-newsletter label { font-weight: normal; display: flex; align-items: flex-start; gap: 8px; }
.t12-checkout .woocommerce-billing-fields > h3 { display: none; }
/* PayPal pays with its own account: name fields hidden (country stays pre-filled for VAT) */
.t12-checkout.t12-paypal #billing_first_name_field,
.t12-checkout.t12-paypal #billing_last_name_field { display: none; }
.t12-checkout.t12-paypal #billing_country_field { display: none; }

/* Order summary */
.t12-checkout .product-name .t12-term { font-weight: 600; }
.t12-checkout .product-name .t12-licinfo { display: block; font-size: 12px; font-weight: normal; color: #666; margin-top: 4px; line-height: 1.4; }
.t12-checkout .product-name .product-quantity { display: none; }

/* Legal + trust */
.t12-checkout .t12-legal { font-size: 13px; margin: 14px 0 10px; line-height: 1.45; }
.t12-checkout .t12-trust { font-size: 12.5px; color: #666; text-align: center; margin: 12px 0 0; line-height: 1.45; }
.t12-checkout #place_order { width: 100%; white-space: normal; }

/* Mobile: single column, order summary on top, then fields, then payment */
@media (max-width: 921px) {
	.t12-checkout form.woocommerce-checkout { display: flex; flex-direction: column; }
	.t12-checkout form.woocommerce-checkout #customer_details { order: 2; width: 100%; float: none; }
	.t12-checkout form.woocommerce-checkout #order_review_heading { order: 0; width: 100%; float: none; }
	.t12-checkout form.woocommerce-checkout #order_review { display: contents; }
	.t12-checkout form.woocommerce-checkout .woocommerce-checkout-review-order-table { order: 1; width: 100%; margin-bottom: 20px; }
	.t12-checkout form.woocommerce-checkout #payment { order: 3; width: 100%; }
	.t12-checkout form.woocommerce-checkout .col-1,
	.t12-checkout form.woocommerce-checkout .col-2 { width: 100%; float: none; }
	.t12-checkout form.woocommerce-checkout .form-row-first,
	.t12-checkout form.woocommerce-checkout .form-row-last { width: 100%; float: none; }
}

/* fixes after visual check */
.t12-checkout .t12-newsletter label, .t12-checkout .t12-newsletter span { font-weight: 400; }
.t12-checkout .ast-mobile-menu-buttons, .t12-checkout .menu-toggle, .t12-checkout .ast-mobile-header-content { display: none !important; }
@media (max-width: 921px) {
	.t12-checkout form.woocommerce-checkout #order_review_heading { border: 0 !important; padding: 0 !important; margin: 0 0 8px !important; }
}
