/**
 * Z2W Seller Suite - Public Styles (Checkout & Donations)
 *
 * @version 1.16.0
 */

/* ==========================================================================
   Checkout 2-Column Layout
   ========================================================================== */

.z2w-checkout-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	max-width: 90%;
	margin: 0 auto;
}

.z2w-checkout-col-left {
	flex: 1 1 60%;
	min-width: 300px;
}

.z2w-checkout-col-right {
	flex: 1 1 32%;
	min-width: 280px;
}

/* Sticky order summary sidebar (desktop) */
.z2w-sticky-sidebar,
.z2w-checkout-col-right {
	position: sticky;
	top: 32px;
	align-self: flex-start;
}

/* Section wrappers */
.z2w-checkout-section {
	margin-bottom: 24px;
}

.z2w-checkout-section h3 {
	font-size: 1.1em;
	margin: 0 0 12px;
}

/* ==========================================================================
   Login Section
   ========================================================================== */

.z2w-login-section .woocommerce-info {
	margin: 0 0 16px;
}

/* ==========================================================================
   Coupon Section
   ========================================================================== */

.z2w-coupon-section {
	padding: 16px;
	background: #f8f9fa;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.z2w-coupon-field {
	display: flex;
	gap: 8px;
	align-items: center;
}

.z2w-coupon-field .z2w-coupon-input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	font-size: 14px;
}

.z2w-coupon-field .z2w-apply-coupon {
	white-space: nowrap;
}

/* ==========================================================================
   Donation Section
   ========================================================================== */

.z2w-donation-section {
	margin: 20px 0;
}

.z2w-donation-field {
	padding: 20px;
	background: #f8f9fa;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.z2w-donation-field h3 {
	font-size: 1.1em;
	margin: 0 0 14px;
	color: #1d2327;
}

.z2w-donation-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.z2w-donation-preset-btn {
	display: inline-block;
	padding: 10px 20px;
	border: 2px solid #2271b1;
	border-radius: 6px;
	background: #fff;
	color: #2271b1;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.15s ease;
	min-width: 64px;
	text-align: center;
}

.z2w-donation-preset-btn:hover,
.z2w-donation-preset-btn:focus,
.z2w-donation-preset-btn.active {
	background: #2271b1;
	color: #fff;
	outline: none;
}

.z2w-donation-preset-custom {
	border-style: dashed;
}

.z2w-donation-preset-custom.active {
	border-style: solid;
}

.z2w-donation-amount-wrap {
	margin-top: 4px;
}

.z2w-donation-amount-wrap label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
}

.z2w-donation-input-row {
	display: flex;
	align-items: center;
	gap: 4px;
}

.z2w-donation-currency {
	font-weight: 600;
	font-size: 1.1em;
	color: #78716c;
}

.z2w-donation-field input[type="number"] {
	width: 130px;
	padding: 8px 12px;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	font-size: 15px;
}

/* ==========================================================================
   Cover Fees Checkbox
   ========================================================================== */

.z2w-cover-fees {
	margin: 12px 0 0;
	padding: 14px 16px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 6px;
}

.z2w-cover-fees label {
	cursor: pointer;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.4;
}

.z2w-cover-fees input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
}

.z2w-cover-fees-label {
	color: #1d2327;
}

.z2w-cover-fees-amount {
	font-weight: 600;
	color: #065f46;
}

/* ==========================================================================
   Name Your Price — Product Page Field
   ========================================================================== */

.z2w-nyp-field {
	margin: 16px 0;
	padding: 16px;
	background: #fefce8;
	border: 1px solid #fde68a;
	border-radius: 6px;
}

.z2w-nyp-input-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.z2w-nyp-field .z2w-nyp-amount-input {
	min-width: 200px;
	max-width: 100%;
	padding: 8px 12px;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	font-size: 16px;
}

.z2w-nyp-minimum {
	display: block;
	margin-top: 6px;
	color: #a16207;
	font-size: 0.85em;
}

/* ==========================================================================
   Name Your Price — Preset Buttons
   ========================================================================== */

.z2w-donation-presets-wrap {
	margin: 20px 0;
}

.z2w-nyp-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0;
}

.z2w-nyp-preset-btn {
	display: inline-block;
	padding: 12px 24px;
	border: 2px solid #2271b1;
	border-radius: 6px;
	background: #fff;
	color: #2271b1;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	text-align: center;
	min-width: 80px;
}

.z2w-nyp-preset-btn:hover,
.z2w-nyp-preset-btn:focus,
.z2w-nyp-preset-btn.active {
	background: #2271b1;
	color: #fff;
	text-decoration: none;
}

/* Custom amount row */
.z2w-nyp-custom {
	margin-top: 16px;
}

.z2w-nyp-custom-field {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.z2w-nyp-custom-field .z2w-preset-custom-amount-input {
	min-width: 200px;
	max-width: 100%;
	flex: 1 1 200px;
	padding: 8px 12px;
	border: 1px solid #cbd5e0;
	border-radius: 4px;
	font-size: 15px;
}

.z2w-nyp-custom-field .z2w-nyp-custom-donate {
	white-space: nowrap;
}

/* ==========================================================================
   Checkout Button Wrap
   ========================================================================== */

.z2w-checkout-button-wrap {
	margin-top: 16px;
}

.z2w-checkout-button-wrap .button.alt,
.z2w-checkout-wrap .button.alt#place_order {
	width: 100%;
	text-align: center;
	font-size: 1.1em;
	padding: 14px 24px;
	min-height: 48px;
	border-radius: 6px;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: background-color 0.2s, box-shadow 0.2s;
}

/* ==========================================================================
   Template System — CSS Custom Properties
   Edit these :root values to retheme all Z2W templates at once.
   ========================================================================== */

:root {
	--z2w-accent:         #2563eb;  /* Links, focus rings, active payment method */
	--z2w-accent-hover:   #1d4ed8;
	--z2w-surface:        #ffffff;  /* Card backgrounds */
	--z2w-page-bg:        #f8fafc;  /* Page / light sections */
	--z2w-border:         #e2e8f0;  /* All section borders */
	--z2w-heading:        #1e293b;  /* Section headings */
	--z2w-body:           #334155;  /* Body text */
	--z2w-muted:          #64748b;  /* Muted / helper text */
	--z2w-cta:            #16a34a;  /* Place Order button */
	--z2w-cta-hover:      #15803d;
	--z2w-cta-text:       #ffffff;
	--z2w-radius:         10px;     /* Card corner rounding */
	--z2w-max-width:      1140px;   /* Checkout container max-width */
	--z2w-pad-h:          28px;     /* Horizontal padding on desktop */
}

/* ==========================================================================
   Template Base — active on any z2w-template-* body class
   ========================================================================== */

.z2w-template-standard .z2w-checkout-wrap,
.z2w-template-digital .z2w-checkout-wrap,
.z2w-template-nonprofit .z2w-checkout-wrap,
.z2w-template-highconv .z2w-checkout-wrap,
.z2w-template-fourstep .z2w-checkout-wrap {
	max-width: var(--z2w-max-width) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--z2w-pad-h);
	padding-right: var(--z2w-pad-h);
	box-sizing: border-box;
}

/* Section cards */
.z2w-template-standard .z2w-checkout-section,
.z2w-template-digital .z2w-checkout-section,
.z2w-template-nonprofit .z2w-checkout-section,
.z2w-template-highconv .z2w-checkout-section,
.z2w-template-fourstep .z2w-checkout-section {
	background: var(--z2w-surface);
	border: 1px solid var(--z2w-border);
	border-radius: var(--z2w-radius);
	padding: 22px 26px;
	margin-bottom: 18px;
}

.z2w-template-standard .z2w-checkout-section h3,
.z2w-template-digital .z2w-checkout-section h3,
.z2w-template-nonprofit .z2w-checkout-section h3,
.z2w-template-highconv .z2w-checkout-section h3,
.z2w-template-fourstep .z2w-checkout-section h3 {
	color: var(--z2w-heading);
	font-size: 1.1em;
	font-weight: 700;
	margin: 0 0 14px;
}

/* --- Form inputs --- */
.z2w-template-standard .z2w-checkout-wrap input.input-text,
.z2w-template-standard .z2w-checkout-wrap select,
.z2w-template-standard .z2w-checkout-wrap textarea,
.z2w-template-digital .z2w-checkout-wrap input.input-text,
.z2w-template-digital .z2w-checkout-wrap select,
.z2w-template-digital .z2w-checkout-wrap textarea,
.z2w-template-nonprofit .z2w-checkout-wrap input.input-text,
.z2w-template-nonprofit .z2w-checkout-wrap select,
.z2w-template-nonprofit .z2w-checkout-wrap textarea,
.z2w-template-highconv .z2w-checkout-wrap input.input-text,
.z2w-template-highconv .z2w-checkout-wrap select,
.z2w-template-highconv .z2w-checkout-wrap textarea,
.z2w-template-fourstep .z2w-checkout-wrap input.input-text,
.z2w-template-fourstep .z2w-checkout-wrap select,
.z2w-template-fourstep .z2w-checkout-wrap textarea {
	width: 100%;
	padding: 10px 13px;
	border: 1px solid var(--z2w-border);
	border-radius: calc(var(--z2w-radius) - 2px);
	font-size: 15px;
	color: var(--z2w-body);
	background: var(--z2w-surface);
	transition: border-color 0.18s, box-shadow 0.18s;
	box-sizing: border-box;
}

.z2w-template-standard .z2w-checkout-wrap input.input-text:focus,
.z2w-template-standard .z2w-checkout-wrap select:focus,
.z2w-template-standard .z2w-checkout-wrap textarea:focus,
.z2w-template-digital .z2w-checkout-wrap input.input-text:focus,
.z2w-template-digital .z2w-checkout-wrap select:focus,
.z2w-template-digital .z2w-checkout-wrap textarea:focus,
.z2w-template-nonprofit .z2w-checkout-wrap input.input-text:focus,
.z2w-template-nonprofit .z2w-checkout-wrap select:focus,
.z2w-template-nonprofit .z2w-checkout-wrap textarea:focus,
.z2w-template-highconv .z2w-checkout-wrap input.input-text:focus,
.z2w-template-highconv .z2w-checkout-wrap select:focus,
.z2w-template-highconv .z2w-checkout-wrap textarea:focus,
.z2w-template-fourstep .z2w-checkout-wrap input.input-text:focus,
.z2w-template-fourstep .z2w-checkout-wrap select:focus,
.z2w-template-fourstep .z2w-checkout-wrap textarea:focus {
	border-color: var(--z2w-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
	outline: none;
}

/* --- Order review table --- */
.z2w-template-standard .woocommerce-checkout-review-order,
.z2w-template-digital .woocommerce-checkout-review-order,
.z2w-template-nonprofit .woocommerce-checkout-review-order,
.z2w-template-highconv .woocommerce-checkout-review-order,
.z2w-template-fourstep .woocommerce-checkout-review-order {
	background: var(--z2w-surface);
	border: 1px solid var(--z2w-border);
	border-radius: var(--z2w-radius);
	padding: 22px 26px;
	margin-bottom: 18px;
}

.z2w-template-standard .woocommerce-checkout-review-order-table,
.z2w-template-digital .woocommerce-checkout-review-order-table,
.z2w-template-nonprofit .woocommerce-checkout-review-order-table,
.z2w-template-highconv .woocommerce-checkout-review-order-table,
.z2w-template-fourstep .woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
}

.z2w-template-standard .woocommerce-checkout-review-order-table th,
.z2w-template-standard .woocommerce-checkout-review-order-table td,
.z2w-template-digital .woocommerce-checkout-review-order-table th,
.z2w-template-digital .woocommerce-checkout-review-order-table td,
.z2w-template-nonprofit .woocommerce-checkout-review-order-table th,
.z2w-template-nonprofit .woocommerce-checkout-review-order-table td,
.z2w-template-highconv .woocommerce-checkout-review-order-table th,
.z2w-template-highconv .woocommerce-checkout-review-order-table td,
.z2w-template-fourstep .woocommerce-checkout-review-order-table th,
.z2w-template-fourstep .woocommerce-checkout-review-order-table td {
	padding: 10px 6px;
	border-bottom: 1px solid var(--z2w-border);
	color: var(--z2w-body);
	font-size: 14px;
	vertical-align: top;
}

.z2w-template-standard .woocommerce-checkout-review-order-table thead th,
.z2w-template-digital .woocommerce-checkout-review-order-table thead th,
.z2w-template-nonprofit .woocommerce-checkout-review-order-table thead th,
.z2w-template-highconv .woocommerce-checkout-review-order-table thead th,
.z2w-template-fourstep .woocommerce-checkout-review-order-table thead th {
	font-weight: 700;
	color: var(--z2w-heading);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.z2w-template-standard .woocommerce-checkout-review-order-table .order-total th,
.z2w-template-standard .woocommerce-checkout-review-order-table .order-total td,
.z2w-template-digital .woocommerce-checkout-review-order-table .order-total th,
.z2w-template-digital .woocommerce-checkout-review-order-table .order-total td,
.z2w-template-nonprofit .woocommerce-checkout-review-order-table .order-total th,
.z2w-template-nonprofit .woocommerce-checkout-review-order-table .order-total td,
.z2w-template-highconv .woocommerce-checkout-review-order-table .order-total th,
.z2w-template-highconv .woocommerce-checkout-review-order-table .order-total td,
.z2w-template-fourstep .woocommerce-checkout-review-order-table .order-total th,
.z2w-template-fourstep .woocommerce-checkout-review-order-table .order-total td {
	font-weight: 700;
	font-size: 16px;
	color: var(--z2w-heading);
	border-bottom: none;
	padding-top: 14px;
}

/* --- Payment methods --- */
.z2w-template-standard #payment ul.payment_methods,
.z2w-template-digital #payment ul.payment_methods,
.z2w-template-nonprofit #payment ul.payment_methods,
.z2w-template-highconv #payment ul.payment_methods,
.z2w-template-fourstep #payment ul.payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}

.z2w-template-standard #payment ul.payment_methods li,
.z2w-template-digital #payment ul.payment_methods li,
.z2w-template-nonprofit #payment ul.payment_methods li,
.z2w-template-highconv #payment ul.payment_methods li,
.z2w-template-fourstep #payment ul.payment_methods li {
	padding: 13px 15px;
	margin-bottom: 8px;
	border: 1px solid var(--z2w-border);
	border-radius: var(--z2w-radius);
	background: var(--z2w-surface);
	transition: border-color 0.15s;
}

.z2w-template-standard #payment ul.payment_methods li:has(input:checked),
.z2w-template-digital #payment ul.payment_methods li:has(input:checked),
.z2w-template-nonprofit #payment ul.payment_methods li:has(input:checked),
.z2w-template-highconv #payment ul.payment_methods li:has(input:checked),
.z2w-template-fourstep #payment ul.payment_methods li:has(input:checked) {
	border-color: var(--z2w-accent);
	background: #eff6ff;
}

.z2w-template-standard #payment ul.payment_methods li label,
.z2w-template-digital #payment ul.payment_methods li label,
.z2w-template-nonprofit #payment ul.payment_methods li label,
.z2w-template-highconv #payment ul.payment_methods li label,
.z2w-template-fourstep #payment ul.payment_methods li label {
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

.z2w-template-standard #payment .payment_box,
.z2w-template-digital #payment .payment_box,
.z2w-template-nonprofit #payment .payment_box,
.z2w-template-highconv #payment .payment_box,
.z2w-template-fourstep #payment .payment_box {
	padding: 14px 0 4px;
	background: transparent !important;
	color: var(--z2w-muted);
	font-size: 13px;
}

.z2w-template-standard #payment .payment_box::before,
.z2w-template-digital #payment .payment_box::before,
.z2w-template-nonprofit #payment .payment_box::before,
.z2w-template-highconv #payment .payment_box::before,
.z2w-template-fourstep #payment .payment_box::before {
	display: none !important;
}

/* --- Place Order button (CTA) --- */
.z2w-template-standard .z2w-checkout-wrap #place_order,
.z2w-template-standard .z2w-checkout-wrap .button.alt#place_order,
.z2w-template-digital .z2w-checkout-wrap #place_order,
.z2w-template-digital .z2w-checkout-wrap .button.alt#place_order,
.z2w-template-nonprofit .z2w-checkout-wrap #place_order,
.z2w-template-nonprofit .z2w-checkout-wrap .button.alt#place_order,
.z2w-template-highconv .z2w-checkout-wrap #place_order,
.z2w-template-highconv .z2w-checkout-wrap .button.alt#place_order,
.z2w-template-fourstep .z2w-checkout-wrap #place_order,
.z2w-template-fourstep .z2w-checkout-wrap .button.alt#place_order {
	display: block;
	width: 100%;
	padding: 16px 24px;
	min-height: 52px;
	font-size: 1.1em;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-align: center;
	color: var(--z2w-cta-text);
	background-color: var(--z2w-cta);
	border-color: var(--z2w-cta);
	border-radius: var(--z2w-radius);
	cursor: pointer;
	transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
	box-shadow: 0 2px 8px rgba(22, 163, 74, 0.22);
}

.z2w-template-standard .z2w-checkout-wrap #place_order:hover,
.z2w-template-standard .z2w-checkout-wrap .button.alt#place_order:hover,
.z2w-template-digital .z2w-checkout-wrap #place_order:hover,
.z2w-template-digital .z2w-checkout-wrap .button.alt#place_order:hover,
.z2w-template-nonprofit .z2w-checkout-wrap #place_order:hover,
.z2w-template-nonprofit .z2w-checkout-wrap .button.alt#place_order:hover,
.z2w-template-highconv .z2w-checkout-wrap #place_order:hover,
.z2w-template-highconv .z2w-checkout-wrap .button.alt#place_order:hover,
.z2w-template-fourstep .z2w-checkout-wrap #place_order:hover,
.z2w-template-fourstep .z2w-checkout-wrap .button.alt#place_order:hover {
	background-color: var(--z2w-cta-hover);
	border-color: var(--z2w-cta-hover);
	box-shadow: 0 4px 14px rgba(22, 163, 74, 0.32);
	transform: translateY(-1px);
}

.z2w-template-standard .z2w-checkout-wrap #place_order:active,
.z2w-template-digital .z2w-checkout-wrap #place_order:active,
.z2w-template-nonprofit .z2w-checkout-wrap #place_order:active,
.z2w-template-highconv .z2w-checkout-wrap #place_order:active,
.z2w-template-fourstep .z2w-checkout-wrap #place_order:active {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(22, 163, 74, 0.18);
}

.z2w-template-standard .z2w-checkout-wrap #place_order:focus-visible,
.z2w-template-digital .z2w-checkout-wrap #place_order:focus-visible,
.z2w-template-nonprofit .z2w-checkout-wrap #place_order:focus-visible,
.z2w-template-highconv .z2w-checkout-wrap #place_order:focus-visible,
.z2w-template-fourstep .z2w-checkout-wrap #place_order:focus-visible {
	outline: 3px solid var(--z2w-accent);
	outline-offset: 3px;
}

/* --- Global focus ring --- */
.z2w-template-standard .z2w-checkout-wrap a:focus-visible,
.z2w-template-standard .z2w-checkout-wrap button:focus-visible,
.z2w-template-digital .z2w-checkout-wrap a:focus-visible,
.z2w-template-digital .z2w-checkout-wrap button:focus-visible,
.z2w-template-nonprofit .z2w-checkout-wrap a:focus-visible,
.z2w-template-nonprofit .z2w-checkout-wrap button:focus-visible,
.z2w-template-highconv .z2w-checkout-wrap a:focus-visible,
.z2w-template-highconv .z2w-checkout-wrap button:focus-visible,
.z2w-template-fourstep .z2w-checkout-wrap a:focus-visible,
.z2w-template-fourstep .z2w-checkout-wrap button:focus-visible {
	outline: 2px solid var(--z2w-accent);
	outline-offset: 2px;
}

/* ==========================================================================
   Template — Standard eCommerce
   ========================================================================== */

.z2w-template-standard .z2w-reassurance-band {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.z2w-template-standard .z2w-trust-signals {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.z2w-template-standard .z2w-trust-item {
	color: #166534;
}

/* ==========================================================================
   Template — Digital Product / Course
   ========================================================================== */

.z2w-template-digital .z2w-commitment-header {
	background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
	border-color: #bfdbfe;
}

.z2w-template-digital .z2w-commitment-text {
	color: #1e40af;
	font-size: 1.15em;
}

.z2w-template-digital .z2w-reassurance-band {
	background: #fffbeb;
	border-color: #fde68a;
}

.z2w-template-digital .z2w-reassurance-item {
	color: #92400e;
}

.z2w-template-digital .z2w-trust-signals {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.z2w-template-digital .z2w-trust-item {
	color: #1e40af;
}

/* ==========================================================================
   Template — Nonprofit / Donation
   ========================================================================== */

.z2w-template-nonprofit .z2w-commitment-header {
	background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
	border-color: #6ee7b7;
}

.z2w-template-nonprofit .z2w-commitment-text {
	color: #065f46;
	font-size: 1.1em;
}

.z2w-template-nonprofit .z2w-reassurance-band {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.z2w-template-nonprofit .z2w-reassurance-item {
	color: #166534;
}

.z2w-template-nonprofit .z2w-trust-signals {
	background: #f0fdf4;
	border-color: #6ee7b7;
}

.z2w-template-nonprofit .z2w-trust-item {
	color: #065f46;
}

.z2w-template-nonprofit .z2w-donation-field {
	background: #f0fdf4;
	border-color: #6ee7b7;
}

/* ==========================================================================
   Template — High-Conversion
   ========================================================================== */

.z2w-template-highconv .z2w-commitment-header {
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	border-color: #475569;
}

.z2w-template-highconv .z2w-commitment-text {
	color: #f8fafc;
	font-size: 1.2em;
}

.z2w-template-highconv .z2w-reassurance-band {
	background: #1e293b;
	border-color: #334155;
}

.z2w-template-highconv .z2w-reassurance-item {
	color: #e2e8f0;
}

.z2w-template-highconv .z2w-reassurance-icon {
	color: #82C92B;
}

.z2w-template-highconv .z2w-trust-signals {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.z2w-template-highconv .z2w-trust-item {
	color: var(--z2w-heading);
	font-weight: 600;
}

/* ==========================================================================
   Template — 4-Step Checkout
   ========================================================================== */

.z2w-template-fourstep .z2w-step-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.1em;
	font-weight: 700;
	color: var(--z2w-heading);
	padding: 14px 20px;
	margin-bottom: 6px;
	margin-top: 6px;
	background: var(--z2w-page-bg);
	border-left: 4px solid var(--z2w-accent);
	border-radius: 0 var(--z2w-radius) var(--z2w-radius) 0;
}

.z2w-template-fourstep .z2w-step-heading::before {
	content: attr(data-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--z2w-accent);
	color: #fff;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

/* "4. Payment" injected via CSS inside #order_review */
.z2w-template-fourstep .woocommerce-checkout-payment::before {
	content: "4. Payment";
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.1em;
	font-weight: 700;
	color: var(--z2w-heading);
	padding: 14px 20px;
	margin: 16px -26px 12px;
	background: var(--z2w-page-bg);
	border-left: 4px solid var(--z2w-accent);
	border-top: 1px solid var(--z2w-border);
}

.z2w-template-fourstep .z2w-reassurance-band {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.z2w-template-fourstep .z2w-trust-signals {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.z2w-template-fourstep .z2w-trust-item {
	color: #1e40af;
}

/* ==========================================================================
   Template — Responsive overrides
   ========================================================================== */

@media (max-width: 768px) {
	.z2w-template-standard .z2w-checkout-wrap,
	.z2w-template-digital .z2w-checkout-wrap,
	.z2w-template-nonprofit .z2w-checkout-wrap,
	.z2w-template-highconv .z2w-checkout-wrap,
	.z2w-template-fourstep .z2w-checkout-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}

	.z2w-template-standard .z2w-checkout-section,
	.z2w-template-digital .z2w-checkout-section,
	.z2w-template-nonprofit .z2w-checkout-section,
	.z2w-template-highconv .z2w-checkout-section,
	.z2w-template-fourstep .z2w-checkout-section {
		padding: 18px 16px;
	}

	.z2w-template-standard .woocommerce-checkout-review-order,
	.z2w-template-digital .woocommerce-checkout-review-order,
	.z2w-template-nonprofit .woocommerce-checkout-review-order,
	.z2w-template-highconv .woocommerce-checkout-review-order,
	.z2w-template-fourstep .woocommerce-checkout-review-order {
		padding: 18px 16px;
	}

	.z2w-template-standard .z2w-checkout-wrap #place_order,
	.z2w-template-digital .z2w-checkout-wrap #place_order,
	.z2w-template-nonprofit .z2w-checkout-wrap #place_order,
	.z2w-template-highconv .z2w-checkout-wrap #place_order,
	.z2w-template-fourstep .z2w-checkout-wrap #place_order {
		min-height: 56px;
		font-size: 1.1em;
		padding: 18px 24px;
	}

	.z2w-template-fourstep .z2w-step-heading {
		padding: 12px 16px;
		font-size: 1em;
	}

	.z2w-template-fourstep .woocommerce-checkout-payment::before {
		margin: 14px -16px 10px;
		padding: 12px 16px;
	}
}

@media (max-width: 480px) {
	.z2w-template-standard .z2w-checkout-wrap,
	.z2w-template-digital .z2w-checkout-wrap,
	.z2w-template-nonprofit .z2w-checkout-wrap,
	.z2w-template-highconv .z2w-checkout-wrap,
	.z2w-template-fourstep .z2w-checkout-wrap {
		padding-left: 12px;
		padding-right: 12px;
	}

	.z2w-template-standard .z2w-checkout-section,
	.z2w-template-digital .z2w-checkout-section,
	.z2w-template-nonprofit .z2w-checkout-section,
	.z2w-template-highconv .z2w-checkout-section,
	.z2w-template-fourstep .z2w-checkout-section {
		padding: 14px 12px;
		border-radius: 8px;
	}
}

/* ==========================================================================
   Reassurance Band
   ========================================================================== */

.z2w-reassurance-band {
	padding: 14px 18px;
	background: #f8fafb;
	border: 1px solid #e8ecf0;
	border-radius: 8px;
	margin-bottom: 20px;
}

.z2w-reassurance-items {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

.z2w-reassurance-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #4a5568;
	white-space: nowrap;
}

.z2w-reassurance-icon {
	font-size: 15px;
	line-height: 1;
}

.z2w-reassurance-full .z2w-reassurance-items {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.z2w-reassurance-full .z2w-reassurance-item {
	font-size: 14px;
}

/* ==========================================================================
   Trust Signals
   ========================================================================== */

.z2w-trust-signals {
	padding: 14px 18px;
	background: #fafbfc;
	border: 1px solid #e8ecf0;
	border-radius: 8px;
	margin-bottom: 16px;
}

.z2w-trust-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.z2w-trust-vertical .z2w-trust-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.z2w-trust-horizontal .z2w-trust-list {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

.z2w-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #4a5568;
}

.z2w-trust-icon {
	font-size: 15px;
	line-height: 1;
}

/* ==========================================================================
   Commitment Header
   ========================================================================== */

.z2w-commitment-header {
	text-align: center;
	padding: 16px 20px;
	background: linear-gradient(135deg, #f0fdf4 0%, #fafbfc 100%);
	border: 1px solid #d1e7dd;
	border-radius: 8px;
	margin-bottom: 24px;
}

.z2w-commitment-text {
	font-size: 1.15em;
	font-weight: 600;
	color: #1a2e05;
	margin: 0;
	line-height: 1.4;
}

/* ==========================================================================
   Impact Message
   ========================================================================== */

.z2w-impact-message {
	margin-bottom: 16px;
}

.z2w-impact-text {
	font-size: 13px;
	font-style: italic;
	color: #5a6c7d;
	margin: 0;
	line-height: 1.5;
}

.z2w-impact-icon {
	margin-right: 4px;
}

/* ==========================================================================
   Donation Impact (inline in donation field)
   ========================================================================== */

.z2w-donation-impact {
	margin: 10px 0 0;
	font-size: 13px;
	font-style: italic;
	color: #5a6c7d;
	line-height: 1.4;
}

.z2w-donation-impact-icon {
	margin-right: 4px;
}

/* ==========================================================================
   Remove Donation Link
   ========================================================================== */

.z2w-remove-donation {
	font-size: 12px;
	color: #a0aec0;
	text-decoration: underline;
	margin-left: 12px;
	white-space: nowrap;
}

.z2w-remove-donation:hover {
	color: #e53e3e;
}

/* ==========================================================================
   Hide Cart Links (when z2w_hide_cart_links = yes)
   ========================================================================== */

.z2w-hide-cart-links .woocommerce a.wc-backward,
.z2w-hide-cart-links .woocommerce-checkout a.wc-backward,
.z2w-hide-cart-links .return-to-shop {
	display: none !important;
}

/* ==========================================================================
   Hide Coupon Field (when z2w_hide_coupon_field = yes)
   URL-applied coupons still function; only the UI input is hidden.
   ========================================================================== */

.z2w-hide-coupon-field .z2w-coupon-section,
.z2w-hide-coupon-field .woocommerce-form-coupon-toggle,
.z2w-hide-coupon-field .checkout_coupon {
	display: none !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
	.z2w-checkout-wrap {
		flex-direction: column;
		max-width: 100%;
	}

	.z2w-checkout-col-left,
	.z2w-checkout-col-right {
		flex: 1 1 100%;
		position: static;
	}

	/* On mobile, show order summary before the form */
	.z2w-checkout-col-right {
		order: -1;
	}

	.z2w-nyp-presets {
		justify-content: center;
	}

	.z2w-coupon-field {
		flex-direction: column;
		align-items: stretch;
	}

	.z2w-nyp-custom-field {
		flex-wrap: wrap;
	}

	.z2w-donation-presets {
		justify-content: center;
	}

	.z2w-donation-preset-btn {
		flex: 1 1 auto;
		min-width: 60px;
	}

	/* Large touch-friendly buttons on mobile */
	.z2w-checkout-button-wrap .button.alt,
	.z2w-checkout-wrap .button.alt#place_order {
		min-height: 52px;
		font-size: 1.15em;
		padding: 16px 24px;
	}

	.z2w-reassurance-items {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.z2w-trust-horizontal .z2w-trust-list {
		flex-direction: column;
	}

	.z2w-commitment-header {
		padding: 12px 16px;
	}

	.z2w-commitment-text {
		font-size: 1.05em;
	}
}

/* ==========================================================================
   Template — Minimal Checkout (WPLaunchify-style)
   "Your Info" left, "Your Order" + "Your Payment" right.
   Section headings injected via CSS so #order_review stays intact for AJAX.
   ========================================================================== */

/* Container — slightly narrower for a focused feel */
.z2w-template-minimal .z2w-checkout-wrap {
	max-width: 980px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--z2w-pad-h);
	padding-right: var(--z2w-pad-h);
	box-sizing: border-box;
}

/* Left column carries a "Your Info" heading via pseudo-element on the billing section */
.z2w-template-minimal .z2w-billing-section::before {
	content: "Your Info";
	display: block;
	font-size: 1.15em;
	font-weight: 700;
	color: var(--z2w-heading);
	padding-bottom: 14px;
	margin-bottom: 16px;
	border-bottom: 2px solid var(--z2w-border);
}

/* Right column: "Your Order" heading above the review table */
.z2w-template-minimal .woocommerce-checkout-review-order::before {
	content: "Your Order";
	display: block;
	font-size: 1.15em;
	font-weight: 700;
	color: var(--z2w-heading);
	padding-bottom: 14px;
	margin-bottom: 16px;
	border-bottom: 2px solid var(--z2w-border);
}

/* "Your Payment" heading injected above the payment methods section */
.z2w-template-minimal .woocommerce-checkout-payment::before {
	content: "Your Payment";
	display: block;
	font-size: 1.1em;
	font-weight: 700;
	color: var(--z2w-heading);
	padding: 18px 0 12px;
	margin-top: 8px;
	border-top: 2px solid var(--z2w-border);
}

/* Section cards */
.z2w-template-minimal .z2w-checkout-section {
	background: var(--z2w-surface);
	border: 1px solid var(--z2w-border);
	border-radius: var(--z2w-radius);
	padding: 24px 28px;
	margin-bottom: 16px;
}

/* Order review area matches section card style */
.z2w-template-minimal .woocommerce-checkout-review-order {
	background: var(--z2w-surface);
	border: 1px solid var(--z2w-border);
	border-radius: var(--z2w-radius);
	padding: 24px 28px;
	margin-bottom: 16px;
}

/* Inputs */
.z2w-template-minimal .z2w-checkout-wrap input.input-text,
.z2w-template-minimal .z2w-checkout-wrap select,
.z2w-template-minimal .z2w-checkout-wrap textarea {
	width: 100%;
	padding: 10px 13px;
	border: 1px solid var(--z2w-border);
	border-radius: calc(var(--z2w-radius) - 2px);
	font-size: 15px;
	color: var(--z2w-body);
	background: var(--z2w-surface);
	transition: border-color 0.18s, box-shadow 0.18s;
	box-sizing: border-box;
}

.z2w-template-minimal .z2w-checkout-wrap input.input-text:focus,
.z2w-template-minimal .z2w-checkout-wrap select:focus,
.z2w-template-minimal .z2w-checkout-wrap textarea:focus {
	border-color: var(--z2w-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
	outline: none;
}

/* Order table */
.z2w-template-minimal .woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
}

.z2w-template-minimal .woocommerce-checkout-review-order-table th,
.z2w-template-minimal .woocommerce-checkout-review-order-table td {
	padding: 10px 6px;
	border-bottom: 1px solid var(--z2w-border);
	color: var(--z2w-body);
	font-size: 14px;
	vertical-align: top;
}

.z2w-template-minimal .woocommerce-checkout-review-order-table thead th {
	font-weight: 700;
	color: var(--z2w-heading);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.z2w-template-minimal .woocommerce-checkout-review-order-table .order-total th,
.z2w-template-minimal .woocommerce-checkout-review-order-table .order-total td {
	font-weight: 700;
	font-size: 16px;
	color: var(--z2w-heading);
	border-bottom: none;
	padding-top: 14px;
}

/* Payment methods */
.z2w-template-minimal #payment ul.payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
}

.z2w-template-minimal #payment ul.payment_methods li {
	padding: 13px 15px;
	margin-bottom: 8px;
	border: 1px solid var(--z2w-border);
	border-radius: var(--z2w-radius);
	background: var(--z2w-surface);
	transition: border-color 0.15s;
}

.z2w-template-minimal #payment ul.payment_methods li:has(input:checked) {
	border-color: var(--z2w-accent);
	background: #eff6ff;
}

.z2w-template-minimal #payment ul.payment_methods li label {
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

.z2w-template-minimal #payment .payment_box {
	padding: 14px 0 4px;
	background: transparent !important;
	color: var(--z2w-muted);
	font-size: 13px;
}

.z2w-template-minimal #payment .payment_box::before {
	display: none !important;
}

/* Place Order button */
.z2w-template-minimal .z2w-checkout-wrap #place_order,
.z2w-template-minimal .z2w-checkout-wrap .button.alt#place_order {
	display: block;
	width: 100%;
	padding: 16px 24px;
	min-height: 52px;
	font-size: 1.1em;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-align: center;
	color: var(--z2w-cta-text);
	background-color: var(--z2w-cta);
	border-color: var(--z2w-cta);
	border-radius: var(--z2w-radius);
	cursor: pointer;
	transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
	box-shadow: 0 2px 8px rgba(22, 163, 74, 0.22);
}

.z2w-template-minimal .z2w-checkout-wrap #place_order:hover,
.z2w-template-minimal .z2w-checkout-wrap .button.alt#place_order:hover {
	background-color: var(--z2w-cta-hover);
	border-color: var(--z2w-cta-hover);
	box-shadow: 0 4px 14px rgba(22, 163, 74, 0.32);
	transform: translateY(-1px);
}

.z2w-template-minimal .z2w-checkout-wrap #place_order:focus-visible,
.z2w-template-minimal .z2w-checkout-wrap .button.alt#place_order:focus-visible {
	outline: 3px solid var(--z2w-accent);
	outline-offset: 3px;
}

/* Coupon section */
.z2w-template-minimal .z2w-coupon-section {
	background: var(--z2w-page-bg);
	border-color: var(--z2w-border);
	padding: 14px 20px;
	margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
	.z2w-template-minimal .z2w-checkout-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}

	.z2w-template-minimal .z2w-checkout-section,
	.z2w-template-minimal .woocommerce-checkout-review-order {
		padding: 18px 16px;
	}

	.z2w-template-minimal .z2w-checkout-wrap #place_order {
		min-height: 56px;
		font-size: 1.1em;
	}
}

@media (max-width: 480px) {
	.z2w-template-minimal .z2w-checkout-wrap {
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* ==========================================================================
   [z2w-checkout-header] — Logo, tagline, return navigation
   Spans full width above both checkout columns (flex-basis: 100%).
   ========================================================================== */

.z2w-checkout-header-bar {
	flex-basis: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 8px 0 20px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--z2w-border, #e2e8f0);
	gap: 8px;
}

.z2w-checkout-header-logo img {
	max-height: 56px;
	width: auto;
	display: block;
	margin: 0 auto;
}

.z2w-checkout-header-tagline {
	margin: 0;
	font-size: 1em;
	color: var(--z2w-muted, #6b7280);
	font-style: italic;
}

.z2w-checkout-header-nav {
	margin: 0;
	font-size: 0.875em;
	color: var(--z2w-muted, #6b7280);
}

.z2w-checkout-header-nav a {
	color: var(--z2w-accent, #1e73be);
	text-decoration: none;
}

.z2w-checkout-header-nav a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Product thumbnails in order review table
   Some themes (Kadence) remove these via CSS; force-restore them.
   ========================================================================== */

.z2w-checkout-wrap .woocommerce-checkout-review-order-table .product-thumbnail,
.z2w-checkout-wrap .woocommerce-checkout-review-order-table .product-thumbnail img,
.z2w-checkout-wrap .woocommerce-checkout-review-order-table .z2w-order-item-img {
	display: table-cell !important;
}

.z2w-checkout-wrap .woocommerce-checkout-review-order-table .product-thumbnail img,
.z2w-checkout-wrap .woocommerce-checkout-review-order-table .z2w-order-item-img {
	display: block !important;
	width: 54px !important;
	height: 54px !important;
	object-fit: cover;
	border-radius: 6px;
	vertical-align: middle;
}

/* ==========================================================================
   Login-required notice (when WC truly blocks checkout)
   ========================================================================== */

.z2w-checkout-login-required {
	max-width: 480px;
	margin: 40px auto;
	padding: 28px 32px;
	background: var(--z2w-surface, #fff);
	border: 1px solid var(--z2w-border, #e2e8f0);
	border-radius: var(--z2w-radius, 10px);
	text-align: center;
}

.z2w-checkout-login-required p {
	margin: 0 0 16px;
	color: var(--z2w-body, #3a3a5c);
}

.z2w-checkout-login-required .z2w-login-btn {
	display: inline-block;
	padding: 12px 28px;
	background: var(--z2w-accent, #1e73be);
	color: #fff !important;
	border-radius: var(--z2w-radius, 8px);
	text-decoration: none;
	font-weight: 600;
	border: none;
}

/* ==========================================================================
   Currency Switcher (Mode 3)
   ========================================================================== */

.z2w-currency-switcher {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	padding: 8px 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.z2w-currency-switcher select {
	border: none;
	background: transparent;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	cursor: pointer;
	padding: 4px 0;
	outline: none;
}

.z2w-currency-switcher select:focus {
	outline: 2px solid #2271b1;
	border-radius: 3px;
}
