/**
 * AUSBIA — WooCommerce 结账页 & Instantio 侧边结账样式
 */

:root {
	--ausbia-ck-surface: #fff8f3;
	--ausbia-ck-surface-2: #fff1e8;
	--ausbia-ck-border: rgba(207, 16, 32, 0.14);
	--ausbia-ck-border-soft: rgba(96, 18, 10, 0.12);
	--ausbia-ck-text: #3d342f;
	--ausbia-ck-muted: #6b5f58;
	--ausbia-ck-heading: #2a211d;
	--ausbia-ck-accent: #cf1020;
	--ausbia-ck-gold: #d8a10a;
	--ausbia-ck-radius: 14px;
	--ausbia-ck-shadow: 0 14px 40px rgba(18, 8, 7, 0.18);
}

/* ========== 通用结账表单（Instantio + WooCommerce 全页） ========== */

.ins-checkout-popup .woocommerce-billing-fields,
.ins-checkout-popup .woocommerce-shipping-fields,
.ins-checkout-popup .woocommerce-additional-fields,
.ins-checkout-modern .woocommerce-billing-fields,
.ins-checkout-modern .woocommerce-shipping-fields,
.ins-checkout-modern .woocommerce-additional-fields,
.ins-content .woocommerce-billing-fields,
.ins-content .woocommerce-shipping-fields,
.ins-content .woocommerce-additional-fields,
.ins_single_layout_checkout_area .woocommerce-billing-fields,
.ins_single_layout_checkout_area .woocommerce-shipping-fields,
.ins_single_layout_checkout_area .woocommerce-additional-fields,
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
form.checkout .woocommerce-billing-fields,
form.checkout .woocommerce-shipping-fields,
form.checkout .woocommerce-additional-fields {
	background: var(--ausbia-ck-surface) !important;
	border: 1px solid var(--ausbia-ck-border) !important;
	border-radius: var(--ausbia-ck-radius) !important;
	box-shadow: var(--ausbia-ck-shadow) !important;
	padding: clamp(1rem, 2.5vw, 1.25rem) !important;
	color: var(--ausbia-ck-text) !important;
	margin: 10px;
}

.ins-checkout-popup .woocommerce-billing-fields h3,
.ins-checkout-popup .woocommerce-shipping-fields h3,
.ins-checkout-modern .woocommerce-billing-fields h3,
.ins-checkout-modern .woocommerce-shipping-fields h3,
.ins_single_layout_checkout_area .woocommerce-billing-fields h3,
.ins_single_layout_checkout_area .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
form.checkout .woocommerce-billing-fields h3,
form.checkout .woocommerce-shipping-fields h3 {
	color: var(--ausbia-ck-heading) !important;
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	margin: 0 0 1rem !important;
	padding-bottom: 0.75rem !important;
	border-bottom: 2px solid rgba(216, 161, 10, 0.35) !important;
}

.ins-checkout-popup .woocommerce-billing-fields label,
.ins-checkout-popup .woocommerce-shipping-fields label,
.ins-checkout-popup #ship-to-different-address label,
.ins-checkout-modern .woocommerce-billing-fields label,
.ins-checkout-modern .woocommerce-shipping-fields label,
.ins-checkout-modern #ship-to-different-address label,
.ins-content .woocommerce-billing-fields label,
.ins-content .woocommerce-shipping-fields label,
.ins-content #ship-to-different-address label,
.ins_single_layout_checkout_area .woocommerce-billing-fields label,
.ins_single_layout_checkout_area .woocommerce-shipping-fields label,
body.woocommerce-checkout .woocommerce-billing-fields label,
body.woocommerce-checkout .woocommerce-shipping-fields label,
body.woocommerce-checkout #ship-to-different-address label,
form.checkout .woocommerce-billing-fields label,
form.checkout .woocommerce-shipping-fields label,
form.checkout #ship-to-different-address label {
	color: var(--ausbia-ck-text) !important;
	-webkit-text-fill-color: var(--ausbia-ck-text) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
}

.ins-checkout-popup .woocommerce-billing-fields input.input-text,
.ins-checkout-popup .woocommerce-billing-fields select,
.ins-checkout-popup .woocommerce-billing-fields textarea,
.ins-checkout-popup .woocommerce-shipping-fields input.input-text,
.ins-checkout-popup .woocommerce-shipping-fields select,
.ins-checkout-popup #order_comments,
.ins-checkout-modern .woocommerce-billing-fields input.input-text,
.ins-checkout-modern .woocommerce-billing-fields select,
.ins-checkout-modern .woocommerce-billing-fields textarea,
.ins-checkout-modern .woocommerce-shipping-fields input.input-text,
.ins-checkout-modern .woocommerce-shipping-fields select,
.ins-checkout-modern #order_comments,
.ins-content .woocommerce-billing-fields input.input-text,
.ins-content .woocommerce-billing-fields select,
.ins-content .woocommerce-billing-fields textarea,
.ins-content .woocommerce-shipping-fields input.input-text,
.ins-content .woocommerce-shipping-fields select,
.ins-content #order_comments,
.ins_single_layout_checkout_area .woocommerce-billing-fields input.input-text,
.ins_single_layout_checkout_area .woocommerce-billing-fields select,
.ins_single_layout_checkout_area .woocommerce-billing-fields textarea,
.ins_single_layout_checkout_area .woocommerce-shipping-fields input.input-text,
.ins_single_layout_checkout_area .woocommerce-shipping-fields select,
.ins_single_layout_checkout_area #order_comments,
body.woocommerce-checkout .woocommerce-billing-fields input.input-text,
body.woocommerce-checkout .woocommerce-billing-fields select,
body.woocommerce-checkout .woocommerce-billing-fields textarea,
body.woocommerce-checkout .woocommerce-shipping-fields input.input-text,
body.woocommerce-checkout .woocommerce-shipping-fields select,
body.woocommerce-checkout #order_comments,
form.checkout .woocommerce-billing-fields input.input-text,
form.checkout .woocommerce-billing-fields select,
form.checkout .woocommerce-billing-fields textarea,
form.checkout .woocommerce-shipping-fields input.input-text,
form.checkout .woocommerce-shipping-fields select,
form.checkout #order_comments {
	background: #fff !important;
	color: var(--ausbia-ck-text) !important;
	border: 1px solid var(--ausbia-ck-border-soft) !important;
	border-radius: 10px !important;
	min-height: 42px;
	box-shadow: none !important;
}

.ins-checkout-popup .select2-container--default .select2-selection--single,
.ins-checkout-modern .select2-container--default .select2-selection--single,
.ins_single_layout_checkout_area .select2-container--default .select2-selection--single,
body.woocommerce-checkout .select2-container--default .select2-selection--single,
form.checkout .select2-container--default .select2-selection--single {
	background: #fff !important;
	border: 1px solid var(--ausbia-ck-border-soft) !important;
	border-radius: 10px !important;
	min-height: 42px;
}

.ins-checkout-popup .select2-container--default .select2-selection--single .select2-selection__rendered,
.ins-checkout-modern .select2-container--default .select2-selection--single .select2-selection__rendered,
.ins_single_layout_checkout_area .select2-container--default .select2-selection--single .select2-selection__rendered,
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered,
form.checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--ausbia-ck-text) !important;
	line-height: 40px !important;
	padding-left: 10px !important;
}

/* 覆盖 Instantio 暗色模式对白字/透明底的强制设置 */
.ins-checkout-popup.ins-layout-dark .woocommerce-billing-fields input.input-text,
.ins-checkout-popup.ins-layout-dark .woocommerce-billing-fields select,
.ins-checkout-modern.ins-layout-dark .woocommerce-billing-fields input.input-text,
.ins-checkout-modern.ins-layout-dark .woocommerce-billing-fields select,
.ins-checkout-popup.ins-layout-dark .ins-cart-inner.shipping .woocommerce-billing-fields input.input-text,
.ins-checkout-popup.ins-layout-dark .ins-cart-inner.shipping .woocommerce-billing-fields select,
.ins-checkout-modern.ins-layout-dark .ins-cart-inner.shipping .woocommerce-billing-fields input.input-text,
.ins-checkout-modern.ins-layout-dark .ins-cart-inner.shipping .woocommerce-billing-fields select,
.ins-checkout-popup .ins-layout-dark .ins_single_layout_checkout_area .woocommerce-billing-fields input.input-text,
.ins-checkout-popup .ins-layout-dark .ins_single_layout_checkout_area .woocommerce-billing-fields select,
.ins-checkout-modern .ins-layout-dark .ins_single_layout_checkout_area .woocommerce-billing-fields input.input-text,
.ins-checkout-modern .ins-layout-dark .ins_single_layout_checkout_area .woocommerce-billing-fields select {
	background: #fff !important;
	color: var(--ausbia-ck-text) !important;
	border: 1px solid var(--ausbia-ck-border-soft) !important;
}

.ins-checkout-popup.ins-layout-dark .woocommerce-billing-fields label,
.ins-checkout-modern.ins-layout-dark .woocommerce-billing-fields label,
.ins-checkout-popup.ins-layout-dark .ins-cart-inner.shipping .woocommerce-billing-fields label,
.ins-checkout-modern.ins-layout-dark .ins-cart-inner.shipping .woocommerce-billing-fields label,
.ins-checkout-popup .ins-layout-dark .ins_single_layout_checkout_area .woocommerce-billing-fields label,
.ins-checkout-modern .ins-layout-dark .ins_single_layout_checkout_area .woocommerce-billing-fields label {
	color: var(--ausbia-ck-text) !important;
	-webkit-text-fill-color: var(--ausbia-ck-text) !important;
}

/* ========== 全页结账 ========== */

body.ausbia-checkout-modern.woocommerce-checkout .site-content,
body.ausbia-checkout-modern.woocommerce-order-pay .site-content {
	padding-top: clamp(1.5rem, 4vw, 3rem);
	padding-bottom: clamp(2rem, 5vw, 4rem);
}

body.ausbia-checkout-modern.woocommerce-checkout .entry-header,
body.ausbia-checkout-modern.woocommerce-order-pay .entry-header {
	text-align: center;
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

body.ausbia-checkout-modern.woocommerce-checkout .entry-title,
body.ausbia-checkout-modern.woocommerce-order-pay .entry-title {
	color: #fff7f2 !important;
	font-size: clamp(1.5rem, 3vw, 2rem) !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
}

body.ausbia-checkout-modern form.checkout,
body.ausbia-checkout-modern form#order_review {
	max-width: 1120px;
	margin: 0 auto;
}

body.ausbia-checkout-modern form.checkout,
body.woocommerce-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	column-gap: clamp(1rem, 2.5vw, 1.75rem);
	row-gap: 0;
	align-items: start;
}

body.ausbia-checkout-modern #customer_details,
body.ausbia-checkout-modern #order_review {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

body.ausbia-checkout-modern #customer_details,
body.woocommerce-checkout #customer_details {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* 右侧订单栏：标题 + 摘要自然纵向排列 */
body.ausbia-checkout-modern .ausbia-checkout-order-summary,
body.woocommerce-checkout .ausbia-checkout-order-summary {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 0;
	position: sticky;
	align-self: start;
	background: var(--ausbia-ck-surface);
	border: 1px solid var(--ausbia-ck-border);
	border-radius: var(--ausbia-ck-radius);
	box-shadow: var(--ausbia-ck-shadow);
	overflow: visible;
}

body.ausbia-checkout-modern .ausbia-checkout-order-summary #order_review_heading,
body.woocommerce-checkout .ausbia-checkout-order-summary #order_review_heading {
	flex: 0 0 auto;
	position: static !important;
	z-index: auto !important;
	margin: 0 !important;
	padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1rem, 2.5vw, 1.5rem) 0.75rem;
	background: transparent !important;
	border: none !important;
	border-bottom: 2px solid rgba(216, 161, 10, 0.35) !important;
	border-radius: 0 !important;
	color: var(--ausbia-ck-heading) !important;
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	box-shadow: none !important;
	width: 100%;
}

body.ausbia-checkout-modern .ausbia-checkout-order-summary #order_review,
body.woocommerce-checkout .ausbia-checkout-order-summary #order_review {
	flex: 1 1 auto;
	margin: 0 !important;
	padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 2.5vw, 1.5rem);
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	position: static !important;
	top: auto !important;
}

/* 兜底：若包裹容器未输出，仍保证标题在上、摘要在下 */
body.ausbia-checkout-modern form.checkout > #order_review_heading,
body.woocommerce-checkout form.checkout > #order_review_heading {
	grid-column: 2;
	grid-row: 1;
	position: static !important;
	z-index: auto !important;
}

body.ausbia-checkout-modern form.checkout > #order_review,
body.woocommerce-checkout form.checkout > #order_review {
	grid-column: 2;
	grid-row: 2;
	position: static !important;
	top: auto !important;
	margin-top: 0 !important;
	padding-top: clamp(0.75rem, 2vw, 1.25rem) !important;
}

body.ausbia-checkout-modern .col2-set {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100% !important;
}

body.ausbia-checkout-modern .col2-set .col-1,
body.ausbia-checkout-modern .col2-set .col-2 {
	float: none !important;
	width: 100% !important;
}

/* 卡片面板 */
body.ausbia-checkout-modern .woocommerce-billing-fields,
body.ausbia-checkout-modern .woocommerce-shipping-fields,
body.ausbia-checkout-modern .woocommerce-additional-fields {
	background: var(--ausbia-ck-surface);
	border: 1px solid var(--ausbia-ck-border);
	border-radius: var(--ausbia-ck-radius);
	box-shadow: var(--ausbia-ck-shadow);
	padding: clamp(1rem, 2.5vw, 1.5rem);
}

body.ausbia-checkout-modern #order_review,
body.woocommerce-checkout #order_review {
	background: var(--ausbia-ck-surface);
}

body.ausbia-checkout-modern .woocommerce-billing-fields h3,
body.ausbia-checkout-modern .woocommerce-shipping-fields h3 {
	color: var(--ausbia-ck-heading) !important;
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	margin: 0 0 1rem !important;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid rgba(216, 161, 10, 0.35);
}

/* 表单字段 */
body.ausbia-checkout-modern .woocommerce-checkout .form-row label,
body.ausbia-checkout-modern .woocommerce-order-pay .form-row label,
body.ausbia-checkout-modern #ship-to-different-address label,
body.ausbia-checkout-modern .woocommerce-terms-and-conditions-checkbox-text {
	color: var(--ausbia-ck-text) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	margin-bottom: 0.35rem !important;
}

body.ausbia-checkout-modern .woocommerce-checkout .form-row .optional,
body.ausbia-checkout-modern .woocommerce-checkout abbr.required {
	color: var(--ausbia-ck-accent) !important;
	text-decoration: none !important;
}

body.ausbia-checkout-modern .woocommerce-checkout input.input-text,
body.ausbia-checkout-modern .woocommerce-checkout textarea,
body.ausbia-checkout-modern .woocommerce-checkout select,
body.ausbia-checkout-modern .woocommerce-order-pay input.input-text,
body.ausbia-checkout-modern .woocommerce-order-pay textarea,
body.ausbia-checkout-modern .woocommerce-order-pay select,
body.ausbia-checkout-modern #order_comments {
	background: #fff !important;
	color: var(--ausbia-ck-text) !important;
	border: 1px solid var(--ausbia-ck-border-soft) !important;
	border-radius: 10px !important;
	padding: 0.72rem 0.9rem !important;
	min-height: 44px;
	box-shadow: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.ausbia-checkout-modern .woocommerce-checkout input.input-text:focus,
body.ausbia-checkout-modern .woocommerce-checkout textarea:focus,
body.ausbia-checkout-modern .woocommerce-checkout select:focus,
body.ausbia-checkout-modern #order_comments:focus {
	border-color: rgba(207, 16, 32, 0.45) !important;
	box-shadow: 0 0 0 3px rgba(207, 16, 32, 0.12) !important;
	outline: none !important;
}

body.ausbia-checkout-modern .woocommerce-checkout .form-row {
	margin-bottom: 0.85rem !important;
}

body.ausbia-checkout-modern #ship-to-different-address {
	margin: 0.25rem 0 0.75rem;
	padding: 0.65rem 0.85rem;
	background: var(--ausbia-ck-surface-2);
	border-radius: 10px;
	border: 1px dashed var(--ausbia-ck-border-soft);
}

/* 订单摘要表格 */
body.ausbia-checkout-modern .woocommerce-checkout-review-order-table,
body.ausbia-checkout-modern .shop_table.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	color: var(--ausbia-ck-text) !important;
	background: transparent !important;
}

body.ausbia-checkout-modern .woocommerce-checkout-review-order-table th,
body.ausbia-checkout-modern .woocommerce-checkout-review-order-table td {
	padding: 0.65rem 0 !important;
	border: none !important;
	border-bottom: 1px solid var(--ausbia-ck-border-soft) !important;
	background: transparent !important;
	color: var(--ausbia-ck-text) !important;
	vertical-align: top;
}

body.ausbia-checkout-modern .woocommerce-checkout-review-order-table thead th {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ausbia-ck-muted) !important;
}

body.ausbia-checkout-modern .woocommerce-checkout-review-order-table .order-total th,
body.ausbia-checkout-modern .woocommerce-checkout-review-order-table .order-total td {
	border-bottom: none !important;
	font-size: 1.05rem;
	font-weight: 700 !important;
	color: var(--ausbia-ck-heading) !important;
	padding-top: 0.85rem !important;
}

body.ausbia-checkout-modern .woocommerce-checkout-review-order-table .product-name {
	font-weight: 600;
}

body.ausbia-checkout-modern .woocommerce-checkout-review-order-table .product-total,
body.ausbia-checkout-modern .woocommerce-Price-amount {
	color: var(--ausbia-ck-heading) !important;
}

/* 运费选项 */
body.ausbia-checkout-modern #shipping_method,
body.ausbia-checkout-modern .woocommerce-shipping-methods {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.ausbia-checkout-modern #shipping_method li,
body.ausbia-checkout-modern .woocommerce-shipping-methods li {
	margin: 0 0 0.55rem !important;
	padding: 0.7rem 0.85rem !important;
	background: #fff;
	border: 1px solid var(--ausbia-ck-border-soft);
	border-radius: 10px;
}

body.ausbia-checkout-modern #shipping_method li label,
body.ausbia-checkout-modern .woocommerce-shipping-methods li label {
	color: var(--ausbia-ck-text) !important;
	font-weight: 500 !important;
	line-height: 1.45 !important;
	cursor: pointer;
}

body.ausbia-checkout-modern #shipping_method li input:checked + label,
body.ausbia-checkout-modern .woocommerce-shipping-methods li input:checked + label {
	color: var(--ausbia-ck-heading) !important;
	font-weight: 600 !important;
}

body.ausbia-checkout-modern #shipping_method li:has(input:checked),
body.ausbia-checkout-modern .woocommerce-shipping-methods li:has(input:checked) {
	border-color: rgba(207, 16, 32, 0.35);
	background: #fff5f5;
}

/* 支付方式 */
body.ausbia-checkout-modern #payment {
	background: transparent !important;
	border-radius: 0 !important;
}

body.ausbia-checkout-modern #payment .payment_methods {
	border: none !important;
	padding: 0 !important;
	margin: 0 0 1rem !important;
}

body.ausbia-checkout-modern #payment .payment_methods li {
	background: #fff !important;
	border: 1px solid var(--ausbia-ck-border-soft) !important;
	border-radius: 10px !important;
	margin-bottom: 0.55rem !important;
	padding: 0 !important;
	/* PayPal CardFields iframe 会被 overflow:hidden 裁掉，导致只剩描述文字 */
	overflow: visible;
}

body.ausbia-checkout-modern #payment .payment_methods li > label {
	color: var(--ausbia-ck-heading) !important;
	font-weight: 600 !important;
	padding: 0.85rem 1rem !important;
	display: block;
	cursor: pointer;
}

body.ausbia-checkout-modern #payment .payment_methods li .payment_box {
	background: var(--ausbia-ck-surface-2) !important;
	color: var(--ausbia-ck-text) !important;
	border-top: 1px solid var(--ausbia-ck-border-soft) !important;
	padding: 0.85rem 1rem 1rem !important;
	margin: 0 !important;
	overflow: visible !important;
	position: relative !important;
	z-index: 2 !important;
	pointer-events: auto !important;
}

/*
 * PayPal 会把 input 的 computed style 复制到替换后的 span 上（含 padding），
 * 导致内部 iframe 变小且点不到。这里重置宿主，让 iframe 铺满可点。
 */
body.ausbia-checkout-modern #payment .wc-credit-card-form,
body.woocommerce-checkout #payment .wc-credit-card-form,
body.woocommerce-order-pay #payment .wc-credit-card-form {
	position: relative !important;
	z-index: 3 !important;
	pointer-events: auto !important;
	overflow: visible !important;
}
body.ausbia-checkout-modern #payment .wc-credit-card-form .form-row,
body.woocommerce-checkout #payment .wc-credit-card-form .form-row,
body.woocommerce-order-pay #payment .wc-credit-card-form .form-row {
	position: relative !important;
	z-index: 3 !important;
	pointer-events: auto !important;
	overflow: visible !important;
	float: none !important;
	width: 100% !important;
}
body.ausbia-checkout-modern #payment .wc-credit-card-form .form-row-first,
body.ausbia-checkout-modern #payment .wc-credit-card-form .form-row-last,
body.woocommerce-checkout #payment .wc-credit-card-form .form-row-first,
body.woocommerce-checkout #payment .wc-credit-card-form .form-row-last,
body.woocommerce-order-pay #payment .wc-credit-card-form .form-row-first,
body.woocommerce-order-pay #payment .wc-credit-card-form .form-row-last {
	display: inline-block !important;
	width: calc(50% - 6px) !important;
	vertical-align: top;
	float: none !important;
}
body.ausbia-checkout-modern #payment .wc-credit-card-form .form-row-first,
body.woocommerce-checkout #payment .wc-credit-card-form .form-row-first,
body.woocommerce-order-pay #payment .wc-credit-card-form .form-row-first {
	margin-right: 12px !important;
}

body.ausbia-checkout-modern #payment [id^="ppcp-credit-card-gateway-card-"],
body.woocommerce-checkout #payment [id^="ppcp-credit-card-gateway-card-"],
body.woocommerce-order-pay #payment [id^="ppcp-credit-card-gateway-card-"] {
	display: block !important;
	position: relative !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 48px !important;
	height: 48px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid var(--ausbia-ck-border-soft, #e5e7eb) !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
	pointer-events: auto !important;
	z-index: 5 !important;
	line-height: normal !important;
	font-size: 16px !important;
}

body.ausbia-checkout-modern #payment .wc-credit-card-form iframe,
body.woocommerce-checkout #payment .wc-credit-card-form iframe,
body.woocommerce-order-pay #payment .wc-credit-card-form iframe,
body.ausbia-checkout-modern #payment [id^="ppcp-credit-card-gateway-card-"] iframe,
body.woocommerce-checkout #payment [id^="ppcp-credit-card-gateway-card-"] iframe,
body.woocommerce-order-pay #payment [id^="ppcp-credit-card-gateway-card-"] iframe {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 100% !important;
	max-width: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	pointer-events: auto !important;
	z-index: 6 !important;
}

/* 有 iframe 时隐藏残留原生 input，避免挡点击 */
body.ausbia-checkout-modern #payment .wc-credit-card-form .form-row:has(iframe) > input.input-text,
body.woocommerce-checkout #payment .wc-credit-card-form .form-row:has(iframe) > input.input-text,
body.woocommerce-order-pay #payment .wc-credit-card-form .form-row:has(iframe) > input.input-text {
	display: none !important;
	pointer-events: none !important;
}

body.ausbia-checkout-modern #payment .payment_methods li.wc_payment_method > input[type="radio"]:first-child {
	position: relative !important;
	z-index: 1 !important;
	margin: 1rem 0 0 1rem !important;
}

body.ausbia-checkout-modern #payment .payment_methods li .payment_box p,
body.ausbia-checkout-modern #payment .payment_methods li .payment_box label {
	color: var(--ausbia-ck-text) !important;
}

body.ausbia-checkout-modern #payment .place-order {
	padding: 0 !important;
	margin: 0 !important;
}

body.ausbia-checkout-modern #place_order,
body.ausbia-checkout-modern #payment #place_order,
body.ausbia-checkout-modern .woocommerce-order-pay #place_order {
	width: 100% !important;
	background: linear-gradient(135deg, #cf1020 0%, #a00c18 100%) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 12px !important;
	padding: 0.95rem 1.25rem !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	box-shadow: 0 10px 24px rgba(207, 16, 32, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.ausbia-checkout-modern #place_order:hover,
body.ausbia-checkout-modern #payment #place_order:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(207, 16, 32, 0.34);
}

body.ausbia-checkout-modern .woocommerce-privacy-policy-text,
body.ausbia-checkout-modern .woocommerce-terms-and-conditions-wrapper {
	color: var(--ausbia-ck-muted) !important;
	font-size: 0.82rem !important;
	line-height: 1.5 !important;
}

body.ausbia-checkout-modern .woocommerce-privacy-policy-text a,
body.ausbia-checkout-modern .woocommerce-terms-and-conditions-checkbox-text a {
	color: var(--ausbia-ck-accent) !important;
}

body.ausbia-checkout-modern .woocommerce-error,
body.ausbia-checkout-modern .woocommerce-info,
body.ausbia-checkout-modern .woocommerce-message {
	border-radius: 10px;
	margin-bottom: 1rem;
}

/* ========== Instantio 侧边结账 ========== */

.ins-checkout-popup .ins-checkout-layout,
.ins-checkout-modern .ins-checkout-layout {
	background: var(--ausbia-ck-surface) !important;
	color: var(--ausbia-ck-text) !important;
}

.ins-checkout-popup .ins-checkout-header,
.ins-checkout-modern .ins-checkout-header {
	background: linear-gradient(135deg, #60120a 0%, #8b1a12 100%) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ins-checkout-popup .ins-checkout-header-title,
.ins-checkout-modern .ins-checkout-header-title,
.ins-checkout-popup .ins-checkout-header path,
.ins-checkout-modern .ins-checkout-header path {
	color: #fff7f2 !important;
	fill: #fff7f2 !important;
}

.ins-checkout-popup .ins-content,
.ins-checkout-modern .ins-content {
	color: var(--ausbia-ck-text) !important;
}

/* 账单 / 配送步骤 */
.ins-checkout-popup .ins-cart-inner.shipping .woocommerce-billing-fields,
.ins-checkout-popup .ins-cart-inner.shipping .woocommerce-shipping-fields,
.ins-checkout-popup .ins-cart-inner.shipping .woocommerce-additional-fields,
.ins-checkout-popup .ins-cart-inner.payment .ins-order-summery-head,
.ins-checkout-popup .ins-cart-inner.payment .ins-order-summery-content,
.ins-checkout-popup .ins-cart-inner.payment .ins-payment-wrap,
.ins-checkout-popup .ins-cart-inner.payment #order_review,
.ins-checkout-modern .ins-cart-inner.shipping .woocommerce-billing-fields,
.ins-checkout-modern .ins-cart-inner.shipping .woocommerce-shipping-fields,
.ins-checkout-modern .ins-cart-inner.shipping .woocommerce-additional-fields,
.ins-checkout-modern .ins-cart-inner.payment .ins-order-summery-head,
.ins-checkout-modern .ins-cart-inner.payment .ins-order-summery-content,
.ins-checkout-modern .ins-cart-inner.payment .ins-payment-wrap,
.ins-checkout-modern .ins-cart-inner.payment #order_review {
	background: #fff !important;
	border: 1px solid var(--ausbia-ck-border-soft) !important;
	border-radius: 12px !important;
	padding: 1rem !important;
	margin-bottom: 0.85rem !important;
	color: var(--ausbia-ck-text) !important;
}

.ins-checkout-popup .woocommerce-billing-fields h3,
.ins-checkout-popup .ins-cart-inner.shipping h3,
.ins-checkout-popup .ins-order-summery-head h3,
.ins-checkout-popup .ins-payment h3,
.ins-checkout-popup #order_review_heading,
.ins-checkout-modern .woocommerce-billing-fields h3,
.ins-checkout-modern .ins-cart-inner.shipping h3,
.ins-checkout-modern .ins-order-summery-head h3,
.ins-checkout-modern .ins-payment h3,
.ins-checkout-modern #order_review_heading {
	color: var(--ausbia-ck-heading) !important;
	font-weight: 700 !important;
	border-bottom: 2px solid rgba(216, 161, 10, 0.35);
	padding-bottom: 0.65rem !important;
	margin-bottom: 0.85rem !important;
}

.ins-checkout-popup .ins-cart-inner.shipping .woocommerce-billing-fields label,
.ins-checkout-popup .ins-cart-inner.shipping .woocommerce-shipping-fields label,
.ins-checkout-popup .ins-cart-inner.shipping #ship-to-different-address label,
.ins-checkout-popup .ins-cart-inner.payment label,
.ins-checkout-popup .ins-order-summery-content span,
.ins-checkout-popup .ins-delivery-wrap label,
.ins-checkout-popup .ins-delivery-wrap p,
.ins-checkout-popup .ins-delivery-wrap span,
.ins-checkout-modern .ins-cart-inner.shipping .woocommerce-billing-fields label,
.ins-checkout-modern .ins-cart-inner.shipping .woocommerce-shipping-fields label,
.ins-checkout-modern .ins-cart-inner.shipping #ship-to-different-address label,
.ins-checkout-modern .ins-cart-inner.payment label,
.ins-checkout-modern .ins-order-summery-content span,
.ins-checkout-modern .ins-delivery-wrap label,
.ins-checkout-modern .ins-delivery-wrap p,
.ins-checkout-modern .ins-delivery-wrap span {
	color: var(--ausbia-ck-text) !important;
	-webkit-text-fill-color: var(--ausbia-ck-text) !important;
}

.ins-checkout-popup .ins-cart-inner.shipping .woocommerce-billing-fields input,
.ins-checkout-popup .ins-cart-inner.shipping .woocommerce-billing-fields select,
.ins-checkout-popup .ins-cart-inner.shipping .woocommerce-billing-fields textarea,
.ins-checkout-popup .ins-cart-inner.shipping .woocommerce-shipping-fields input,
.ins-checkout-popup .ins-cart-inner.shipping .woocommerce-shipping-fields select,
.ins-checkout-popup .ins-cart-inner.shipping #order_comments,
.ins-checkout-modern .ins-cart-inner.shipping .woocommerce-billing-fields input,
.ins-checkout-modern .ins-cart-inner.shipping .woocommerce-billing-fields select,
.ins-checkout-modern .ins-cart-inner.shipping .woocommerce-billing-fields textarea,
.ins-checkout-modern .ins-cart-inner.shipping .woocommerce-shipping-fields input,
.ins-checkout-modern .ins-cart-inner.shipping .woocommerce-shipping-fields select,
.ins-checkout-modern .ins-cart-inner.shipping #order_comments {
	background: var(--ausbia-ck-surface-2) !important;
	color: var(--ausbia-ck-text) !important;
	border: 1px solid var(--ausbia-ck-border-soft) !important;
	border-radius: 10px !important;
	min-height: 42px;
}

.ins-checkout-popup .ins-cart-inner.shipping .woocommerce-billing-fields input:focus,
.ins-checkout-popup .ins-cart-inner.shipping .woocommerce-billing-fields select:focus,
.ins-checkout-popup .ins-cart-inner.shipping .woocommerce-shipping-fields input:focus,
.ins-checkout-popup .ins-cart-inner.shipping #order_comments:focus,
.ins-checkout-modern .ins-cart-inner.shipping .woocommerce-billing-fields input:focus,
.ins-checkout-modern .ins-cart-inner.shipping .woocommerce-billing-fields select:focus,
.ins-checkout-modern .ins-cart-inner.shipping .woocommerce-shipping-fields input:focus,
.ins-checkout-modern .ins-cart-inner.shipping #order_comments:focus {
	border-color: rgba(207, 16, 32, 0.45) !important;
	box-shadow: 0 0 0 3px rgba(207, 16, 32, 0.1) !important;
}

/* 侧边购物车总计（与结账订单区统一） */
.ins-checkout-popup .ins-cart-footer-content,
.ins-checkout-popup .ins-cart-collaterals .cart_totals,
.ins-checkout-popup .ins-cart-inner.ins-cart-step .ins-cart-footer-content,
.ins-checkout-modern .ins-cart-footer-content,
.ins-checkout-modern .ins-cart-collaterals .cart_totals,
.ins-checkout-modern .ins-cart-inner.ins-cart-step .ins-cart-footer-content {
	background-color: #fff !important;
	color: var(--ausbia-ck-text) !important;
	border-radius: 12px !important;
}

.ins-checkout-popup .ins-cart-footer-content *,
.ins-checkout-popup .ins-cart-collaterals .cart_totals,
.ins-checkout-popup .ins-cart-collaterals .cart_totals *,
.ins-checkout-popup .ins-cart-inner.ins-cart-step .cart_totals h2,
.ins-checkout-popup .ins-cart-inner.ins-cart-step .cart_totals th,
.ins-checkout-popup .ins-cart-inner.ins-cart-step .cart_totals td,
.ins-checkout-popup .ins-cart-inner.ins-cart-step .cart_totals label,
.ins-checkout-popup .ins-cart-inner.ins-cart-step .cart_totals span,
.ins-checkout-modern .ins-cart-footer-content *,
.ins-checkout-modern .ins-cart-collaterals .cart_totals,
.ins-checkout-modern .ins-cart-collaterals .cart_totals *,
.ins-checkout-modern .ins-cart-inner.ins-cart-step .cart_totals h2,
.ins-checkout-modern .ins-cart-inner.ins-cart-step .cart_totals th,
.ins-checkout-modern .ins-cart-inner.ins-cart-step .cart_totals td,
.ins-checkout-modern .ins-cart-inner.ins-cart-step .cart_totals label,
.ins-checkout-modern .ins-cart-inner.ins-cart-step .cart_totals span {
	color: var(--ausbia-ck-text) !important;
	-webkit-text-fill-color: var(--ausbia-ck-text) !important;
	background-color: transparent !important;
}

/* 侧边结账：订单表 & 支付 */
.ins-checkout-popup .shop_table,
.ins-checkout-popup .woocommerce-checkout-review-order-table,
.ins-checkout-modern .shop_table,
.ins-checkout-modern .woocommerce-checkout-review-order-table {
	color: var(--ausbia-ck-text) !important;
}

.ins-checkout-popup .shop_table th,
.ins-checkout-popup .shop_table td,
.ins-checkout-modern .shop_table th,
.ins-checkout-modern .shop_table td {
	color: var(--ausbia-ck-text) !important;
	background: transparent !important;
	border-color: var(--ausbia-ck-border-soft) !important;
}

.ins-checkout-popup #payment,
.ins-checkout-modern #payment {
	background: transparent !important;
}

.ins-checkout-popup #payment .payment_methods li,
.ins-checkout-modern #payment .payment_methods li {
	background: var(--ausbia-ck-surface-2) !important;
	border: 1px solid var(--ausbia-ck-border-soft) !important;
	border-radius: 10px !important;
	margin-bottom: 0.5rem !important;
}

.ins-checkout-popup #payment .payment_methods li > label,
.ins-checkout-modern #payment .payment_methods li > label {
	color: var(--ausbia-ck-heading) !important;
}

.ins-checkout-popup #payment .payment_box,
.ins-checkout-modern #payment .payment_box {
	background: #fff !important;
	color: var(--ausbia-ck-text) !important;
}

.ins-checkout-popup #payment .payment_box *,
.ins-checkout-modern #payment .payment_box * {
	color: var(--ausbia-ck-text) !important;
}

.ins-checkout-popup .ins-cart-btns a,
.ins-checkout-popup .ins-cart-btns button,
.ins-checkout-modern .ins-cart-btns a,
.ins-checkout-modern .ins-cart-btns button,
.ins-checkout-popup .ins-btns-step-next,
.ins-checkout-modern .ins-btns-step-next {
	background: linear-gradient(135deg, #cf1020 0%, #a00c18 100%) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px !important;
	font-weight: 700 !important;
}

.ins-checkout-popup .ins-cart-btns a.checkout,
.ins-checkout-popup .ins-cart-btns a.active,
.ins-checkout-modern .ins-cart-btns a.checkout,
.ins-checkout-modern .ins-cart-btns a.active {
	background: linear-gradient(135deg, #cf1020 0%, #a00c18 100%) !important;
	color: #fff !important;
}

.ins-checkout-popup .ins-cart-btns a.view-cart,
.ins-checkout-modern .ins-cart-btns a.view-cart {
	background: #fff !important;
	color: var(--ausbia-ck-heading) !important;
	border: 1px solid var(--ausbia-ck-border-soft) !important;
}

.ins-checkout-popup .woocommerce-privacy-policy-text p,
.ins-checkout-modern .woocommerce-privacy-policy-text p {
	color: var(--ausbia-ck-muted) !important;
	font-size: 0.82rem !important;
}

/* 覆盖 Instantio 暗色模式在浅色面板上的白字 */
.ins-checkout-popup.ins-layout-light .ins-cart-inner.shipping .woocommerce-billing-fields input,
.ins-checkout-popup.ins-layout-light .ins-cart-inner.shipping .woocommerce-billing-fields select,
.ins-checkout-modern.ins-layout-light .ins-cart-inner.shipping .woocommerce-billing-fields input,
.ins-checkout-modern.ins-layout-light .ins-cart-inner.shipping .woocommerce-billing-fields select {
	color: var(--ausbia-ck-text) !important;
}

.ins-checkout-popup .ins-layout-dark .ins-cart-footer-content,
.ins-checkout-popup .ins-layout-dark .ins-cart-collaterals .cart_totals,
.ins-checkout-modern .ins-layout-dark .ins-cart-footer-content,
.ins-checkout-modern .ins-layout-dark .ins-cart-collaterals .cart_totals {
	background-color: #fff !important;
	color: var(--ausbia-ck-text) !important;
}

.ins-checkout-popup .ins-layout-dark .ins-cart-collaterals .cart_totals *,
.ins-checkout-modern .ins-layout-dark .ins-cart-collaterals .cart_totals * {
	color: var(--ausbia-ck-text) !important;
	-webkit-text-fill-color: var(--ausbia-ck-text) !important;
}

/* ========== 响应式 ========== */

@media (max-width: 960px) {
	body.ausbia-checkout-modern form.checkout,
	body.woocommerce-checkout form.checkout {
		grid-template-columns: 1fr;
		row-gap: 1rem;
	}

	body.ausbia-checkout-modern #customer_details,
	body.woocommerce-checkout #customer_details,
	body.ausbia-checkout-modern .ausbia-checkout-order-summary,
	body.woocommerce-checkout .ausbia-checkout-order-summary {
		grid-column: 1;
		grid-row: auto;
		position: static;
	}
}

@media (max-width: 640px) {
	body.ausbia-checkout-modern .woocommerce-billing-fields,
	body.ausbia-checkout-modern .woocommerce-shipping-fields,
	body.ausbia-checkout-modern .woocommerce-additional-fields,
	body.ausbia-checkout-modern .ausbia-checkout-order-summary,
	body.woocommerce-checkout .ausbia-checkout-order-summary {
		border-radius: 12px;
	}

	body.ausbia-checkout-modern .ausbia-checkout-order-summary #order_review,
	body.woocommerce-checkout .ausbia-checkout-order-summary #order_review {
		padding: 0.9rem;
	}
}
