: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;
	}
}

/* =========================================================================
   District / Upazila fields
   ========================================================================= */
.woocommerce-checkout form.checkout .form-row.ndk-geo-field {
	display: inline-block;
	vertical-align: top;
}

.woocommerce-checkout form.checkout .ndk-geo-field select {
	width: 100%;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}

.woocommerce-checkout form.checkout .ndk-geo-field select:disabled {
	background-color: #f3f5f9;
	color: #9aa3b2;
	cursor: not-allowed;
}

@media ( max-width: 600px ) {
	.woocommerce-checkout form.checkout .form-row.ndk-geo-field.form-row-first,
	.woocommerce-checkout form.checkout .form-row.ndk-geo-field.form-row-last {
		width: 100%;
		float: none;
	}
}

/* =========================================================================
   Place-order truck animation overlay
   ========================================================================= */
.ndk-order-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 26px;
	background: rgba(247, 250, 248, 0.92);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ndk-order-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.ndk-order-stage {
	position: relative;
	width: 280px;
	height: 150px;
}

/* The truck */
.ndk-truck {
	position: absolute;
	left: 50%;
	bottom: 28px;
	width: 170px;
	height: 86px;
	transform: translateX(-50%);
	animation: ndk-truck-bob 0.6s ease-in-out infinite;
}

.ndk-truck-box {
	position: absolute;
	left: 0;
	bottom: 18px;
	width: 104px;
	height: 60px;
	background: linear-gradient(160deg, #1aa843, #0f7f30);
	border-radius: 8px;
	box-shadow: inset -8px 0 0 rgba(0, 0, 0, 0.08);
}

.ndk-truck-cab {
	position: absolute;
	left: 104px;
	bottom: 18px;
	width: 52px;
	height: 42px;
	background: linear-gradient(160deg, #2a2f35, #1f2937);
	border-radius: 6px 12px 4px 4px;
}

.ndk-truck-window {
	position: absolute;
	left: 112px;
	bottom: 40px;
	width: 30px;
	height: 16px;
	background: #cfe9ff;
	border-radius: 3px 6px 0 0;
	box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.ndk-wheel {
	position: absolute;
	bottom: 0;
	width: 26px;
	height: 26px;
	background: #2a2f35;
	border-radius: 50%;
	box-shadow: inset 0 0 0 4px #11151a, inset 0 0 0 9px #8b95a5;
	animation: ndk-wheel-spin 0.55s linear infinite;
}

.ndk-wheel-1 { left: 16px; }
.ndk-wheel-2 { left: 66px; }
.ndk-wheel-3 { left: 120px; }

/* The road with moving dashes */
.ndk-road {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	height: 4px;
	background: #c7d0db;
	border-radius: 999px;
	overflow: hidden;
}

.ndk-road span {
	position: absolute;
	top: 0;
	width: 26px;
	height: 4px;
	background: #fff;
	border-radius: 999px;
	animation: ndk-road-move 0.5s linear infinite;
}

.ndk-road span:nth-child(1) { left: 0%; }
.ndk-road span:nth-child(2) { left: 33%; }
.ndk-road span:nth-child(3) { left: 66%; }
.ndk-road span:nth-child(4) { left: 99%; }

.ndk-order-text {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
	letter-spacing: 0.01em;
	animation: ndk-text-pulse 1.4s ease-in-out infinite;
}

@keyframes ndk-truck-bob {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(-3px); }
}

@keyframes ndk-wheel-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes ndk-road-move {
	from { transform: translateX(0); }
	to { transform: translateX(-94px); }
}

@keyframes ndk-text-pulse {
	0%, 100% { opacity: 0.55; }
	50% { opacity: 1; }
}

/* ---------- Success tick (thank-you page) ---------- */
.ndk-order-overlay--success .ndk-success {
	width: 130px;
	height: 130px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ndk-check {
	width: 130px;
	height: 130px;
}

.ndk-check-circle {
	fill: none;
	stroke: var(--ndk-green);
	stroke-width: 5;
	stroke-linecap: round;
	stroke-dasharray: 226;
	stroke-dashoffset: 226;
	animation: ndk-circle-draw 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.ndk-check-mark {
	fill: none;
	stroke: var(--ndk-green);
	stroke-width: 6;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 70;
	stroke-dashoffset: 70;
	animation: ndk-mark-draw 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.55s forwards;
}

.ndk-order-overlay--success .ndk-success {
	animation: ndk-success-pop 0.5s ease 0.5s both;
}

.ndk-order-text--success {
	color: var(--ndk-green-dark);
	animation: ndk-success-fade 0.4s ease 0.8s both;
}

@keyframes ndk-circle-draw {
	to { stroke-dashoffset: 0; }
}

@keyframes ndk-mark-draw {
	to { stroke-dashoffset: 0; }
}

@keyframes ndk-success-pop {
	0% { transform: scale(0.8); }
	60% { transform: scale(1.08); }
	100% { transform: scale(1); }
}

@keyframes ndk-success-fade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@media ( prefers-reduced-motion: reduce ) {
	.ndk-truck,
	.ndk-wheel,
	.ndk-road span,
	.ndk-order-text {
		animation: none !important;
	}

	.ndk-check-circle,
	.ndk-check-mark {
		stroke-dashoffset: 0 !important;
		animation: none !important;
	}

	.ndk-order-overlay--success .ndk-success,
	.ndk-order-text--success {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}


/* =========================================================================
   Thank-you page WhatsApp help note
   ========================================================================= */
.mm-thankyou-note {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #eafaf0;
	border: 1px solid #bfe8cd;
	border-left: 5px solid #25D366;
	border-radius: 12px;
	padding: 16px 18px;
	margin: 0 auto 22px;
	max-width: 960px;
}

.mm-thankyou-note__icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	box-shadow: 0 6px 14px rgba(37, 211, 102, 0.3);
}

.mm-thankyou-note__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #1f3a29;
	font-weight: 600;
}

.mm-thankyou-note__btn {
	display: inline-block;
	margin-left: 8px;
	margin-top: 6px;
	background: #25D366;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	padding: 6px 14px;
	border-radius: 999px;
	white-space: nowrap;
	transition: background 0.18s ease, transform 0.18s ease;
}

.mm-thankyou-note__btn:hover {
	background: #1da851;
	transform: translateY(-1px);
}

@media ( max-width: 600px ) {
	.mm-thankyou-note { flex-direction: column; }
	.mm-thankyou-note__btn { margin-left: 0; }
}
