:root {
	--ndk-green: #14963a;
	--ndk-green-dark: #0f7f30;
	--ndk-text: #2a2f35;
	--ndk-muted: #6b7280;
	--ndk-border: #d8dee7;
	--ndk-soft: #f7f8fb;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
	max-width: 960px;
	margin: 20px auto 34px;
	padding: 0 10px;
}

.ndk-checkout-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 48px;
	margin: 8px auto 24px;
}

.ndk-checkout-steps .ndk-step {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #8b95a5;
	font-size: 15px;
	font-weight: 600;
	position: relative;
}

.ndk-checkout-steps .ndk-step::before,
.ndk-checkout-steps .ndk-step::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 44px;
	height: 1px;
	background: #d7dce5;
	transform: translateY(-50%);
}

.ndk-checkout-steps .ndk-step::before {
	right: calc(100% + 12px);
}

.ndk-checkout-steps .ndk-step::after {
	left: calc(100% + 12px);
}

.ndk-checkout-steps .ndk-step:first-child::before,
.ndk-checkout-steps .ndk-step:last-child::after {
	display: none;
}

.ndk-checkout-steps .ndk-dot {
	width: 14px;
	height: 14px;
	border: 2px solid #9ea8b7;
	border-radius: 50%;
	background: #fff;
}

.ndk-checkout-steps .ndk-step.is-active {
	color: #4a5568;
}

.ndk-checkout-steps .ndk-step.is-active .ndk-dot {
	border-color: #667085;
	box-shadow: inset 0 0 0 2px #ffffff;
	background: #667085;
}

.woocommerce-checkout form.checkout {
	background: #fff;
	border: 1px solid var(--ndk-border);
	border-radius: 14px;
	padding: 26px 28px 28px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.woocommerce-checkout form.checkout .col2-set,
.woocommerce-checkout form.checkout #customer_details {
	width: 100%;
	float: none;
	margin: 0;
}

.woocommerce-checkout form.checkout .col2-set .col-1,
.woocommerce-checkout form.checkout .col2-set .col-2 {
	width: 100%;
	float: none;
}

.woocommerce-checkout form.checkout .form-row {
	margin-bottom: 14px;
}

.woocommerce-checkout form.checkout .input-text,
.woocommerce-checkout form.checkout select,
.woocommerce-checkout form.checkout textarea {
	border: 1px solid var(--ndk-border);
	border-radius: 6px;
	background: #fff;
	min-height: 46px;
	font-size: 15px;
	color: var(--ndk-text);
}

.woocommerce-checkout form.checkout .input-text:focus,
.woocommerce-checkout form.checkout select:focus,
.woocommerce-checkout form.checkout textarea:focus {
	border-color: #9db8d9;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
	outline: none;
}

.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout #order_review_heading {
	margin: 2px 0 16px;
	color: #2f3743;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.1;
}

.woocommerce-checkout #order_review_heading {
	font-size: 23px;
	margin-top: 18px;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table {
	border: 0;
	margin: 0;
	border-collapse: collapse;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table,
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tr,
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td {
	border: none !important;
	box-shadow: none !important;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td {
	padding: 14px 0;
	font-size: 15px;
	color: #3d4755;
	vertical-align: middle;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table thead th {
	padding-top: 10px;
	padding-bottom: 10px;
	font-size: 16px;
}

.woocommerce-checkout .ndk-product-cell {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	width: 100%;
}

.woocommerce-checkout .ndk-product-meta {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
}

.woocommerce-checkout .ndk-thumb-wrap {
	flex: 0 0 auto;
	display: inline-flex;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid #e3e8ef;
	background: #fff;
}

.woocommerce-checkout .ndk-thumb-wrap img.ndk-thumb-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.woocommerce-checkout .ndk-product-name {
	display: inline-block;
	color: #556070;
	font-size: 15px;
	flex: 1 1 auto;
	min-width: 0;
}

.woocommerce-checkout .ndk-remove-item {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #e3e8ef;
	background: #fff;
	color: #d61f3b;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.woocommerce-checkout .ndk-remove-item:hover,
.woocommerce-checkout .ndk-remove-item:focus {
	background: #d61f3b;
	border-color: #d61f3b;
	color: #fff;
	outline: none;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr:first-child th,
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr:first-child td {
	border-top: none !important;
}

.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
	font-size: 20px;
	font-weight: 700;
	color: #2f3743;
}

.woocommerce-checkout #payment {
	margin-top: 16px;
	background: #f9fbfd;
	border: 1px solid #e5eaf1;
	border-radius: 8px;
	padding: 12px;
}

.woocommerce-checkout #payment div.payment_box {
	background: #fff;
	border: 1px solid #e4e9f0;
	border-radius: 6px;
}

.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

.woocommerce-checkout #payment #place_order,
.woocommerce-checkout .place-order .button.alt {
	width: 100%;
	min-height: 54px;
	border: 0 !important;
	border-radius: 5px !important;
	background: var(--ndk-green) !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 10px 20px rgba(20, 150, 58, 0.22);
}

.woocommerce-checkout #payment #place_order:hover,
.woocommerce-checkout .place-order .button.alt:hover {
	background: var(--ndk-green-dark) !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .place-order > p {
	font-size: 13px;
	color: #7b8797;
}

@media (max-width: 991px) {
	.woocommerce-checkout form.checkout {
		padding: 18px 14px 16px;
	}

	.woocommerce-checkout .woocommerce-billing-fields > h3,
	.woocommerce-checkout #order_review_heading {
		font-size: 23px;
	}

	.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
	.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
		font-size: 20px;
	}

	.woocommerce-checkout #payment #place_order,
	.woocommerce-checkout .place-order .button.alt {
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	.ndk-checkout-steps {
		gap: 14px;
		margin-bottom: 14px;
	}

	.ndk-checkout-steps .ndk-step {
		font-size: 12px;
		gap: 6px;
	}

	.ndk-checkout-steps .ndk-step::before,
	.ndk-checkout-steps .ndk-step::after {
		width: 12px;
	}

	.ndk-checkout-steps .ndk-dot {
		width: 12px;
		height: 12px;
	}

	.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table th,
	.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td {
		font-size: 14px;
	}

	.woocommerce-checkout .ndk-thumb-wrap {
		width: 44px;
		height: 44px;
	}
}

/* Fallback styling for WooCommerce Checkout Block */
.woocommerce-checkout .wp-block-woocommerce-checkout {
	max-width: 960px;
	margin: 14px auto 34px;
	padding: 0 10px;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout {
	display: block !important;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__main,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
	background: #fff;
	border: 1px solid var(--ndk-border);
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
	padding: 24px;
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
	margin-top: 18px;
	position: static !important;
	top: auto !important;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step {
	margin-bottom: 20px;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-title {
	color: #2f3743;
	font-size: 23px;
	font-weight: 700;
	line-height: 1.15;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-text-input input,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-blocks-components-select select,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form textarea,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-textarea {
	border: 1px solid var(--ndk-border) !important;
	border-radius: 6px !important;
	min-height: 46px;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--ndk-text);
	font-size: 15px;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-blocks-components-select select:focus,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form textarea:focus,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-textarea:focus {
	border-color: #9db8d9 !important;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1) !important;
	outline: none !important;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input label,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-blocks-components-select__label,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-address-form__address_2-toggle {
	font-size: 15px;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-panel {
	border: 1px solid #e5eaf1;
	border-radius: 8px;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-panel__content {
	background: #fff;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary {
	border: 0;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-totals-item,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-totals-footer-item {
	font-size: 15px;
	border: none !important;
	box-shadow: none !important;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-product-name {
	font-size: 16px;
	font-weight: 600;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-totals-item {
	padding-top: 12px;
	padding-bottom: 12px;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item {
	font-size: 20px;
	font-weight: 700;
	color: #2f3743;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:visited {
	width: 100%;
	min-height: 54px;
	border: 0 !important;
	border-radius: 5px !important;
	background: var(--ndk-green) !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 10px 20px rgba(20, 150, 58, 0.22);
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:focus {
	background: var(--ndk-green-dark) !important;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__actions,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__terms {
	margin-bottom: 0;
}

.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-validation-error,
.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 6px;
}

@media (max-width: 991px) {
	.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__main,
	.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
		padding: 16px 14px;
	}

	.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title,
	.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-title {
		font-size: 23px;
	}

	.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item {
		font-size: 20px;
	}

	.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button,
	.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:visited {
		font-size: 16px;
	}
}
