/**
 * CartNexa Free Shipping Progress - Checkout Page Styles
 * High Specificity Overrides for Astra Theme, WooCommerce & Elementor Pro Compatibility
 * Scoped Prefix: .cnexa-checkout-, .elementor-widget-cnexa_checkout_*
 * Target Reference: checkout.png
 */

/* Header & Breadcrumb */
.elementor-widget-cnexa_checkout_header .cnexa-checkout-header,
.cnexa-checkout-header {
	margin-bottom: 24px !important;
}

.elementor-widget-cnexa_checkout_header .cnexa-checkout-header-title,
.cnexa-checkout-header-title {
	font-size: 32px !important;
	font-weight: 700 !important;
	color: #0D2040 !important;
	margin: 0 0 6px 0 !important;
	line-height: 1.2 !important;
}

.elementor-widget-cnexa_checkout_header .cnexa-checkout-breadcrumb,
.cnexa-checkout-breadcrumb {
	font-size: 14px !important;
	color: #64748B !important;
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	margin-bottom: 24px !important;
}

.elementor-widget-cnexa_checkout_header .cnexa-checkout-breadcrumb a,
.cnexa-checkout-breadcrumb a {
	color: #0D2040 !important;
	text-decoration: none !important;
	font-weight: 500 !important;
}

.elementor-widget-cnexa_checkout_header .cnexa-checkout-breadcrumb a:hover,
.cnexa-checkout-breadcrumb a:hover {
	color: #1CB5A6 !important;
}

.elementor-widget-cnexa_checkout_header .cnexa-checkout-breadcrumb-sep,
.cnexa-checkout-breadcrumb-sep {
	color: #94A3B8 !important;
	font-size: 12px !important;
}

.cnexa-checkout-breadcrumb-current {
	color: #64748B !important;
}

/* Standalone Checkout Steps Bar Widget (.cnexa_checkout_steps) */
.elementor-widget-cnexa_checkout_steps,
.cnexa-checkout-steps {
	width: 100% !important;
	margin-bottom: 24px !important;
	box-sizing: border-box !important;
}

.cnexa-checkout-steps-bar {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	max-width: 580px !important;
	margin: 0 auto !important;
	padding: 0 10px !important;
	box-sizing: border-box !important;
}

.cnexa-step-item,
.cnexa-checkout-step {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 6px !important;
	position: relative !important;
	z-index: 2 !important;
}

.cnexa-step-num,
.cnexa-checkout-step__circle {
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	background-color: #FFFFFF !important;
	border: 2px solid #E2E8F0 !important;
	color: #64748B !important;
	box-sizing: border-box !important;
}

.cnexa-step-item.active .cnexa-step-num,
.cnexa-checkout-step.active .cnexa-checkout-step__circle {
	background-color: #1CB5A6 !important;
	border-color: #1CB5A6 !important;
	color: #FFFFFF !important;
}

.cnexa-step-label,
.cnexa-checkout-step__label {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #64748B !important;
	white-space: nowrap !important;
}

.cnexa-step-item.active .cnexa-step-label,
.cnexa-checkout-step.active .cnexa-checkout-step__label {
	color: #1CB5A6 !important;
	font-weight: 600 !important;
}

.cnexa-step-line,
.cnexa-checkout-step__connector {
	flex: 1 !important;
	height: 0 !important;
	border-top: 2px dashed #E2E8F0 !important;
	margin: 0 10px 20px 10px !important;
}

/* Single Coupon Bar */
.elementor-widget-cnexa_checkout_coupon .cnexa-checkout-coupon-card,
.cnexa-checkout-coupon-card {
	background-color: #F0FDFA !important;
	border: 1px solid #CCFBF1 !important;
	border-radius: 12px !important;
	padding: 14px 20px !important;
	margin-bottom: 28px !important;
}

.cnexa-checkout-coupon-notice {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	color: #0F766E !important;
	font-size: 14px !important;
	font-weight: 500 !important;
}

.cnexa-checkout-coupon-icon {
	display: inline-flex !important;
	color: #1CB5A6 !important;
}

.cnexa-checkout-coupon-toggle {
	color: #1CB5A6 !important;
	font-weight: 600 !important;
	text-decoration: none !important;
}

.cnexa-checkout-coupon-toggle:hover {
	text-decoration: underline !important;
}

.cnexa-coupon-form {
	margin-top: 14px !important;
	padding-top: 14px !important;
	border-top: 1px dashed #CCFBF1 !important;
}

.cnexa-coupon-input-group {
	display: flex !important;
	gap: 10px !important;
	margin-top: 10px !important;
}

.cnexa-coupon-input-group input.input-text {
	flex: 1 !important;
	height: 42px !important;
	border: 1px solid #D9E4E4 !important;
	border-radius: 8px !important;
	padding: 0 14px !important;
	font-size: 14px !important;
}

.cnexa-apply-coupon-btn {
	background-color: #1CB5A6 !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 0 20px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	cursor: pointer !important;
}

/* 2-Column Main Layout Grid */
.cnexa-checkout-layout {
	display: flex !important;
	gap: 28px !important;
	align-items: flex-start !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.cnexa-checkout-left {
	flex: 0 0 62% !important;
	max-width: 62% !important;
	box-sizing: border-box !important;
}

.cnexa-checkout-right {
	flex: 0 0 35% !important;
	max-width: 35% !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 24px !important;
	box-sizing: border-box !important;
}

/* ONE Unified Left Checkout Card */
.cnexa-checkout-unified-card {
	background: #FFFFFF !important;
	border: 1px solid #E2ECEF !important;
	border-radius: 12px !important;
	padding: 28px !important;
	box-shadow: 0 4px 16px rgba(13, 32, 64, 0.04) !important;
	box-sizing: border-box !important;
}

.cnexa-checkout-step-block {
	margin-bottom: 30px !important;
	padding-bottom: 24px !important;
	border-bottom: 1px solid #F1F5F9 !important;
}

.cnexa-checkout-step-block:last-child {
	border-bottom: none !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.cnexa-checkout-step-title {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0D2040 !important;
	margin: 0 0 16px 0 !important;
	line-height: 1.3 !important;
}

/* Form Row & Input Styling (Defeats Astra) */
.cnexa-checkout-unified-card .form-row,
.woocommerce-checkout .form-row {
	margin-bottom: 16px !important;
	padding: 0 !important;
}

.cnexa-checkout-unified-card .form-row label,
.woocommerce-checkout .form-row label {
	display: block !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #0D2040 !important;
	margin-bottom: 6px !important;
}

.cnexa-checkout-unified-card .form-row input.input-text,
.cnexa-checkout-unified-card .form-row select,
.cnexa-checkout-unified-card .form-row textarea,
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
	width: 100% !important;
	height: 46px !important;
	border: 1px solid #D9E4E4 !important;
	border-radius: 8px !important;
	padding: 0 14px !important;
	font-size: 14px !important;
	color: #0D2040 !important;
	background-color: #FFFFFF !important;
	box-shadow: none !important;
	outline: none !important;
	box-sizing: border-box !important;
	transition: border-color 0.2s ease !important;
}

.cnexa-checkout-unified-card .form-row input.input-text:focus,
.cnexa-checkout-unified-card .form-row select:focus {
	border-color: #1CB5A6 !important;
}

/* Styled Radio Cards for Shipping Methods */
.cnexa-shipping-methods-container table.shop_table,
.woocommerce-shipping-methods {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 10px !important;
	border: none !important;
	margin: 0 !important;
}

.cnexa-shipping-methods-container li,
.woocommerce-shipping-methods li {
	list-style: none !important;
	background: #FFFFFF !important;
	border: 1px solid #E5EEF0 !important;
	border-radius: 10px !important;
	padding: 14px 18px !important;
	margin-bottom: 10px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.cnexa-shipping-methods-container li *,
.woocommerce-shipping-methods li * {
	cursor: pointer !important;
}

.cnexa-shipping-methods-container li:hover,
.woocommerce-shipping-methods li:hover {
	border-color: #1CB5A6 !important;
}

/* Styled Payment Gateway Cards */
.woocommerce-checkout #payment,
.cnexa-payment-methods-container #payment {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods,
.cnexa-payment-methods-container ul.payment_methods {
	padding: 0 !important;
	margin: 0 0 20px 0 !important;
	border: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li,
.cnexa-payment-methods-container ul.payment_methods li {
	list-style: none !important;
	background: #FFFFFF !important;
	border: 1px solid #E5EEF0 !important;
	border-radius: 10px !important;
	padding: 14px 18px !important;
	margin-bottom: 10px !important;
}

.woocommerce-checkout #payment div.payment_box {
	background-color: #F8FAFC !important;
	border-radius: 6px !important;
	padding: 12px 14px !important;
	margin-top: 10px !important;
	font-size: 13px !important;
	color: #64748B !important;
}

/* Primary Place Order Button at Bottom of Left Card */
.cnexa-checkout-unified-card #place_order,
.woocommerce-checkout #place_order {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	height: 50px !important;
	background-color: #1CB5A6 !important;
	color: #FFFFFF !important;
	border: none !important;
	padding: 0 24px !important;
	border-radius: 8px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	box-shadow: 0 4px 14px rgba(28, 181, 166, 0.25) !important;
	transition: background-color 0.2s ease !important;
	box-sizing: border-box !important;
	margin-top: 20px !important;
}

.cnexa-checkout-unified-card #place_order:hover,
.woocommerce-checkout #place_order:hover {
	background-color: #0F766E !important;
	color: #FFFFFF !important;
}

/* Right Column: Order Summary Card */
.cnexa-checkout-summary-card {
	background: #FFFFFF !important;
	border: 1px solid #E2ECEF !important;
	border-radius: 12px !important;
	padding: 24px !important;
	box-shadow: 0 4px 16px rgba(13, 32, 64, 0.04) !important;
	box-sizing: border-box !important;
}

.cnexa-checkout-summary-header {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-bottom: 16px !important;
	padding-bottom: 12px !important;
	border-bottom: 1px solid #E5EEF0 !important;
}

.cnexa-checkout-summary-title {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0D2040 !important;
	margin: 0 !important;
}

.cnexa-checkout-edit-cart-link {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #1CB5A6 !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
}

.cnexa-checkout-edit-cart-link:hover {
	text-decoration: underline !important;
}

.cnexa-checkout-items-list {
	margin-bottom: 16px !important;
}

.cnexa-checkout-item-row {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	padding: 12px 0 !important;
	border-bottom: 1px solid #F1F5F9 !important;
}

.cnexa-checkout-item-row:last-child {
	border-bottom: none !important;
}

.cnexa-checkout-item-thumb img {
	width: 60px !important;
	height: 60px !important;
	object-fit: contain !important;
	border-radius: 8px !important;
	border: 1px solid #E5EEF0 !important;
	background-color: #FFFFFF !important;
}

.cnexa-checkout-item-details {
	flex: 1 !important;
	min-width: 0 !important;
}

.cnexa-checkout-item-name {
	display: block !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #0D2040 !important;
	line-height: 1.3 !important;
	margin-bottom: 3px !important;
}

.cnexa-checkout-item-meta-row {
	font-size: 12px !important;
	color: #64748B !important;
}

.cnexa-checkout-item-subtotal {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #0D2040 !important;
	text-align: right !important;
}

.cnexa-checkout-totals-table {
	width: 100% !important;
	border-collapse: collapse !important;
	margin-top: 15px !important;
	border-top: 1px solid #E5EEF0 !important;
}

.cnexa-checkout-totals-table th,
.cnexa-checkout-totals-table td {
	padding: 12px 0 !important;
	font-size: 14px !important;
	color: #0D2040 !important;
	border-bottom: 1px solid #F1F5F9 !important;
}

.cnexa-checkout-totals-table th {
	text-align: left !important;
	font-weight: 500 !important;
	color: #64748B !important;
}

.cnexa-checkout-totals-table td {
	text-align: right !important;
}

.cnexa-free-shipping-label {
	color: #10B981 !important;
	font-weight: 600 !important;
}

.cnexa-row-total th,
.cnexa-row-total td {
	font-size: 18px !important;
	font-weight: 700 !important;
	border-bottom: none !important;
	padding-top: 16px !important;
}

/* Right Column: Soft Mint Trust Benefits Card */
.cnexa-checkout-trust-card {
	background-color: #F0FDFA !important;
	border: 1px solid #CCFBF1 !important;
	border-radius: 12px !important;
	padding: 20px 24px !important;
	box-sizing: border-box !important;
}

.cnexa-checkout-trust-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.cnexa-checkout-trust-item {
	display: flex !important;
	align-items: flex-start !important;
	gap: 12px !important;
	padding: 10px 0 !important;
	border-bottom: 1px solid #E6FFFA !important;
}

.cnexa-checkout-trust-item:last-child {
	border-bottom: none !important;
}

.cnexa-checkout-trust-icon {
	display: inline-flex !important;
	flex-shrink: 0 !important;
	margin-top: 2px !important;
}

.cnexa-trust-item-title {
	display: block !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #0D2040 !important;
	line-height: 1.3 !important;
}

.cnexa-trust-item-subtitle {
	display: block !important;
	font-size: 12px !important;
	color: #64748B !important;
	margin-top: 2px !important;
}

/* Right Column: Security Card & Badges */
.cnexa-checkout-security-card {
	background: #FFFFFF !important;
	border: 1px solid #E2ECEF !important;
	border-radius: 12px !important;
	padding: 20px 24px !important;
	box-shadow: 0 4px 16px rgba(13, 32, 64, 0.04) !important;
}

.cnexa-security-accept-title {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #64748B !important;
	margin: 0 0 10px 0 !important;
}

.cnexa-security-payment-badges {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	margin-bottom: 18px !important;
}

.cnexa-badge-card {
	background-color: #F8FAFC !important;
	border: 1px solid #E2E8F0 !important;
	border-radius: 6px !important;
	padding: 4px 12px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #334155 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 48px !important;
	height: 28px !important;
}

.cnexa-security-ssl-block {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding-top: 12px !important;
	border-top: 1px solid #F1F5F9 !important;
}

.cnexa-ssl-title {
	display: block !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #0D2040 !important;
}

.cnexa-ssl-subtext {
	display: block !important;
	font-size: 11px !important;
	color: #64748B !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
	.cnexa-checkout-layout {
		flex-direction: column !important;
	}

	.cnexa-checkout-left,
	.cnexa-checkout-right {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
	}
}

@media (max-width: 767px) {
	.cnexa-checkout-header-title {
		font-size: 26px !important;
	}

	.cnexa-checkout-steps-bar {
		flex-wrap: wrap !important;
		gap: 12px !important;
	}

	.cnexa-step-line {
		display: none !important;
	}
}


/* Premium Order Received / Checkout Result State */
.cnexa-order-received {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 820px !important;
	margin: 0 auto !important;
	padding: 44px 32px !important;
	text-align: center !important;
	background: #FFFFFF !important;
	border: 1px solid #E2ECEF !important;
	border-radius: 16px !important;
	box-shadow: 0 8px 30px rgba(13, 32, 64, 0.06) !important;
}

.cnexa-order-received__icon {
	width: 58px !important;
	height: 58px !important;
	margin: 0 auto 18px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 30px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

.cnexa-order-received--success .cnexa-order-received__icon {
	color: #0F766E !important;
	background: #E8F7F4 !important;
	border: 1px solid #BFEDE5 !important;
}

.cnexa-order-received--error .cnexa-order-received__icon {
	color: #B42318 !important;
	background: #FEF3F2 !important;
	border: 1px solid #FECACA !important;
}

.cnexa-order-received h2 {
	margin: 0 0 10px !important;
	font-size: 30px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	color: #0D2040 !important;
}

.cnexa-order-received p {
	margin: 0 auto !important;
	max-width: 620px !important;
	font-size: 16px !important;
	line-height: 1.7 !important;
	color: #64748B !important;
}

.cnexa-order-received__meta {
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;
	margin-top: 24px !important;
	padding: 11px 16px !important;
	border: 1px solid #E2ECEF !important;
	border-radius: 10px !important;
	background: #F8FAFC !important;
	color: #64748B !important;
	font-size: 13px !important;
}

.cnexa-order-received__meta strong {
	color: #0D2040 !important;
}

.cnexa-order-received__button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 48px !important;
	margin-top: 24px !important;
	padding: 0 24px !important;
	border-radius: 8px !important;
	background: #1CB5A6 !important;
	color: #FFFFFF !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.cnexa-order-received__button:hover {
	background: #0F766E !important;
	color: #FFFFFF !important;
	transform: translateY(-1px) !important;
}

.cnexa-order-received--error .woocommerce-error,
.cnexa-order-received--error .woocommerce-message,
.cnexa-order-received--error .woocommerce-info {
	max-width: 620px !important;
	margin: 22px auto 0 !important;
	text-align: left !important;
}

@media (max-width: 767px) {
	.cnexa-order-received {
		padding: 34px 20px !important;
	}

	.cnexa-order-received h2 {
		font-size: 25px !important;
	}

	.cnexa-order-received__meta {
		flex-direction: column !important;
		gap: 4px !important;
	}
}
