/**
 * WooCommerce Cart / Checkout Blocks — Nexus theme alignment
 */
.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-checkout .wp-block-woocommerce-checkout,
.wc-block-cart,
.wc-block-checkout {
	--nexus-wc-block-radius: var(--nexus-radius, 8px);
	--nexus-wc-block-border: var(--nexus-border-light, #e2e8f0);
	font-family: inherit;
	color: var(--nexus-body-text, #334155);
}

.wc-block-cart,
.wc-block-checkout {
	max-width: min(100%, var(--nexus-container-width, 1200px));
	margin-left: auto;
	margin-right: auto;
}

.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--nexus-button-bg, var(--nexus-primary, #0f766e)) !important;
	color: var(--nexus-button-text, #fff) !important;
	border-radius: var(--nexus-wc-block-radius) !important;
	border: 0 !important;
	font-weight: 600;
	transition: background 0.15s ease;
}

.wc-block-components-button:not(.is-link):hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background: var(--nexus-button-hover-bg, var(--nexus-primary-hover, #0d9488)) !important;
	color: var(--nexus-button-hover-text, #fff) !important;
}

.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-block-components-select select,
.wc-block-components-combobox .wc-block-components-combobox-control input {
	border: 1px solid var(--nexus-wc-block-border) !important;
	border-radius: 6px !important;
	background: var(--nexus-body-bg, #fff) !important;
	color: inherit !important;
	box-shadow: none !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus,
.wc-block-components-select select:focus {
	border-color: var(--nexus-primary, #0f766e) !important;
	outline: 2px solid rgba(15, 118, 110, 0.15) !important;
	outline-offset: 0 !important;
}

.wc-block-components-totals-item,
.wc-block-components-order-summary-item,
.wc-block-cart-item {
	border-color: var(--nexus-wc-block-border) !important;
}

.wc-block-components-panel,
.wc-block-components-sidebar-layout .wc-block-components-main,
.wc-block-components-sidebar-layout .wc-block-components-sidebar {
	border-color: var(--nexus-wc-block-border);
}

.wc-block-components-notice-banner.is-info {
	background: #ecfeff;
	border-color: #a5f3fc;
	color: #0e7490;
}

.wc-block-components-notice-banner.is-error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #b91c1c;
}

.wc-block-components-notice-banner.is-success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #047857;
}

.wc-block-components-form .wc-block-components-checkout-step__title,
.wc-block-cart__totals-title {
	color: var(--nexus-body-text, #0f172a);
	font-weight: 600;
}

.wc-block-components-product-name,
.wc-block-components-product-price {
	color: inherit;
}

.wc-block-components-product-metadata,
.wc-block-components-formatted-money-amount {
	color: var(--nexus-body-text-muted, #64748b);
}

a.wc-block-components-product-name:hover {
	color: var(--nexus-link-hover, var(--nexus-primary-hover, #0d9488));
}

@media (max-width: 782px) {
	.wc-block-components-sidebar-layout {
		flex-direction: column;
	}
	.wc-block-components-sidebar {
		width: 100% !important;
	}
}
