/**
 * Dentaluck Modern Cart & Checkout Stylesheet
 * 
 * High-end, medical-grade UI for dental supply store.
 * Fully responsive across desktop, laptop, tablet, and mobile.
 * 
 * @package Dentaluck
 * @version 1.4.0
 */

/* ==========================================================================
   1. General Layout & Background
   ========================================================================== */
.cart-progress-header-wrap {
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	padding: 20px 0;
	margin-bottom: 24px;
	overflow-x: hidden;
}

.cart-main-layout,
.checkout-main-layout {
	background-color: #f8fafc;
	min-height: calc(100vh - 320px);
	padding-bottom: 60px;
	overflow-x: clip;
}

.cart-progress-header-wrap .container,
.cart-main-layout .container,
.checkout-main-layout .container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

.cart-main-layout .woocommerce,
.cart-main-layout .aplus-wc-cart-container {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* ==========================================================================
   2. Checkout Progress Steps Bar
   ========================================================================== */
.checkout-steps-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 680px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

.checkout-steps-bar .step-item {
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
	color: #94a3b8;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}

.step-label-desktop {
	display: inline !important;
}

.step-label-mobile {
	display: none !important;
}

.checkout-steps-bar .step-num {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #e2e8f0;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	transition: all 0.3s ease;
}

.checkout-steps-bar .step-item.active {
	color: #0284c7;
}

.checkout-steps-bar .step-item.active .step-num {
	background: #0284c7;
	color: #ffffff;
	box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.16);
}

.checkout-steps-bar .step-item.done {
	color: #16a34a;
}

.checkout-steps-bar .step-item.done .step-num {
	background: #16a34a;
	color: #ffffff;
}

.checkout-steps-bar .step-connector {
	flex: 1;
	height: 2px;
	background: #e2e8f0;
	margin: 0 12px;
	min-width: 20px;
}

.checkout-steps-bar .step-connector.active {
	background: #16a34a;
}

/* ==========================================================================
   3. Main Cart Layout (2-Column Desktop Grid + Stacked Mobile)
   ========================================================================== */

/* Cart Container Layout - 2 Columns on Desktop */
.cart-main-layout .woocommerce {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 380px !important;
	align-items: start !important;
	width: 100% !important;
	gap: 24px !important;
}

/* Notices and empty-cart blocks full width across top */
.cart-main-layout .woocommerce-notices-wrapper,
.cart-main-layout .woocommerce > *:not(.woocommerce-cart-form):not(.cart-collaterals) {
	grid-column: 1 / -1 !important;
	width: 100% !important;
}

.woocommerce-message,
.woocommerce-info {
	background: #eff6ff !important;
	border: 1px solid #bfdbfe !important;
	border-left: 4px solid #0066cc !important;
	color: #1e3a8a !important;
	padding: 14px 20px !important;
	border-radius: 10px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	margin-bottom: 20px !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
	box-sizing: border-box !important;
	outline: none !important;
}

.woocommerce-error,
ul.woocommerce-error {
	background: #fef2f2 !important;
	border: 1px solid #fecaca !important;
	border-left: 4px solid #ef4444 !important;
	color: #991b1b !important;
	padding: 14px 20px 14px 34px !important;
	border-radius: 10px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	display: block !important;
	margin-bottom: 20px !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
	box-sizing: border-box !important;
	list-style: disc !important;
	outline: none !important;
}

.woocommerce-error li,
ul.woocommerce-error li {
	display: list-item !important;
	margin: 0 0 6px 0 !important;
	padding: 0 !important;
	font-size: 13.5px !important;
	line-height: 1.5 !important;
	color: #991b1b !important;
}

.woocommerce-error li:last-child,
ul.woocommerce-error li:last-child {
	margin-bottom: 0 !important;
}

.woocommerce-message:focus,
.woocommerce-message:focus-visible,
.woocommerce-info:focus,
.woocommerce-info:focus-visible,
.woocommerce-error:focus,
.woocommerce-error:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none !important;
}

.woocommerce-message {
	background: #f0fdf4 !important;
	border-color: #bbf7d0 !important;
	border-left-color: #16a34a !important;
	color: #14532d !important;
}

.woocommerce-message .button,
.woocommerce-message a.button {
	background: #0066cc !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 9px 18px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	box-shadow: 0 2px 6px rgba(0, 102, 204, 0.25) !important;
	transition: all 0.2s ease !important;
	flex-shrink: 0 !important;
}

/* Style Undo / Restore item as an action button */
.woocommerce-message a.restore-item,
.woocommerce-info a.restore-item {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 6px 14px !important;
	background: #0066cc !important;
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	border-radius: 6px !important;
	text-decoration: none !important;
	margin-left: 10px !important;
	box-shadow: 0 2px 6px rgba(0, 102, 204, 0.2) !important;
	transition: all 0.2s ease !important;
	white-space: nowrap !important;
	flex-shrink: 0 !important;
}

.woocommerce-message a.restore-item:hover,
.woocommerce-info a.restore-item:hover {
	background: #0052a3 !important;
	color: #ffffff !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3) !important;
}

/* Hide redundant "Xem giỏ hàng" button inside notices on cart page itself */
.woocommerce-cart .woocommerce-message .button:not(.restore-item),
.woocommerce-cart .woocommerce-message a.button:not(.restore-item) {
	display: none !important;
}

.woocommerce-message .button:hover,
.woocommerce-message a.button:hover {
	background: #0052a3 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 10px rgba(0, 102, 204, 0.35) !important;
	transform: translateY(-1px) !important;
}

/* Product Table Form - Left Column */
.cart-main-layout .woocommerce-cart-form {
	grid-column: 1 !important;
	width: 100% !important;
	min-width: 0 !important;
	background: #ffffff;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
	overflow: hidden;
}

/* Summary Totals Card - Right Sticky Column */
.cart-main-layout .cart-collaterals {
	grid-column: 2 !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-top: 0 !important;
	position: sticky !important;
	top: 24px !important;
}

@media (max-width: 991px) {
	.cart-main-layout .woocommerce {
		grid-template-columns: minmax(0, 1fr) !important;
	}
	.cart-main-layout .woocommerce-cart-form,
	.cart-main-layout .cart-collaterals {
		grid-column: 1 !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		position: static !important;
	}
}

/* ==========================================================================
   4. Cart Table Styling (table.shop_table.cart)
   ========================================================================== */
.woocommerce table.shop_table.cart {
	width: 100% !important;
	table-layout: fixed !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	border: none !important;
	margin: 0 !important;
	text-align: left !important;
	background: #ffffff !important;
}

/* Header Columns Alignment */
.woocommerce table.shop_table.cart thead {
	background: #f8fafc !important;
}

.woocommerce table.shop_table.cart thead th {
	background: #f8fafc !important;
	border-bottom: 1.5px solid #e2e8f0 !important;
	padding: 14px 12px !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	color: #64748b !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	box-sizing: border-box !important;
}

.woocommerce table.shop_table.cart thead th.product-remove {
	width: 48px !important;
	text-align: center !important;
	padding: 14px 4px !important;
}

.woocommerce table.shop_table.cart thead th.product-thumbnail {
	width: 74px !important;
	text-align: center !important;
	padding: 14px 4px !important;
}

.woocommerce table.shop_table.cart thead th.product-name {
	text-align: left !important;
	padding-left: 8px !important;
}

.woocommerce table.shop_table.cart thead th.product-price {
	width: 110px !important;
	text-align: right !important;
	padding-right: 12px !important;
}

.woocommerce table.shop_table.cart thead th.product-quantity {
	width: 105px !important;
	text-align: center !important;
	padding: 14px 6px !important;
}

.woocommerce table.shop_table.cart thead th.product-subtotal {
	width: 115px !important;
	text-align: right !important;
	padding-right: 16px !important;
}

/* Rows */
.woocommerce table.shop_table.cart tbody tr.cart_item {
	border-bottom: 1px solid #f1f5f9 !important;
	transition: background-color 0.2s ease !important;
}

.woocommerce table.shop_table.cart tbody tr.cart_item:hover {
	background-color: #fafbfc !important;
}

.woocommerce table.shop_table.cart tbody td {
	padding: 16px 12px !important;
	vertical-align: middle !important;
	border: none !important;
	box-sizing: border-box !important;
}

/* Product Remove Button */
.woocommerce table.shop_table.cart td.product-remove {
	width: 48px !important;
	text-align: center !important;
	padding: 16px 4px !important;
}

.woocommerce table.shop_table.cart a.remove {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 26px !important;
	height: 26px !important;
	border-radius: 50% !important;
	background: #f1f5f9 !important;
	color: #94a3b8 !important;
	font-size: 16px !important;
	line-height: 1 !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
}

.woocommerce table.shop_table.cart a.remove:hover {
	background: #fee2e2 !important;
	color: #ef4444 !important;
	transform: scale(1.1) !important;
}

/* Thumbnail */
.woocommerce table.shop_table.cart td.product-thumbnail {
	width: 74px !important;
	text-align: center !important;
	padding: 14px 4px !important;
	border: none !important;
	background: transparent !important;
}

.woocommerce table.shop_table.cart td.product-thumbnail a {
	display: inline-block !important;
	border: none !important;
	background: transparent !important;
	padding: 0 !important;
	box-shadow: none !important;
}

.woocommerce table.shop_table.cart td.product-thumbnail img {
	width: 60px !important;
	height: 60px !important;
	object-fit: contain !important;
	border-radius: 6px !important;
	border: none !important;
	background: transparent !important;
	padding: 0 !important;
	box-shadow: none !important;
	display: block !important;
	margin: 0 auto !important;
	transition: transform 0.2s ease !important;
}

.woocommerce table.shop_table.cart td.product-thumbnail a:hover img {
	transform: scale(1.05) !important;
}

/* Product Title & Info */
.woocommerce table.shop_table.cart td.product-name {
	text-align: left !important;
	padding-left: 8px !important;
	padding-right: 20px !important;
	overflow: hidden !important;
}

.woocommerce table.shop_table.cart td.product-name a {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #0f172a !important;
	text-decoration: none !important;
	line-height: 1.45 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	word-break: break-word !important;
	transition: color 0.2s ease !important;
}

.woocommerce table.shop_table.cart td.product-name a:hover {
	color: #0066cc !important;
}

.woocommerce table.shop_table.cart td.product-name dl.variation {
	margin: 6px 0 0 0 !important;
	font-size: 12px !important;
	color: #64748b !important;
}

/* Unit Price */
.woocommerce table.shop_table.cart td.product-price {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #475569 !important;
	white-space: nowrap !important;
	text-align: right !important;
	padding-right: 12px !important;
}

/* Quantity Input & Stepper Buttons */
.woocommerce table.shop_table.cart td.product-quantity {
	text-align: center !important;
}

.woocommerce table.shop_table.cart td.product-quantity .quantity {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #f8fafc !important;
	border: 1.5px solid #cbd5e1 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	transition: border-color 0.2s ease !important;
}

.woocommerce table.shop_table.cart td.product-quantity .quantity:focus-within {
	border-color: #0066cc !important;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12) !important;
}

.woocommerce table.shop_table.cart td.product-quantity input.qty {
	width: 44px !important;
	height: 34px !important;
	border: none !important;
	border-radius: 0 !important;
	text-align: center !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	-moz-appearance: textfield !important;
}

.woocommerce table.shop_table.cart td.product-quantity input.qty::-webkit-outer-spin-button,
.woocommerce table.shop_table.cart td.product-quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

.cart-qty-btn {
	width: 32px !important;
	height: 34px !important;
	background: #f1f5f9 !important;
	border: none !important;
	color: #475569 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	user-select: none !important;
	transition: all 0.15s ease !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
}

.cart-qty-btn:hover {
	background: #e2e8f0 !important;
	color: #0066cc !important;
}

.cart-qty-btn:active {
	background: #cbd5e1 !important;
	transform: scale(0.95) !important;
}

/* Line Subtotal */
.woocommerce table.shop_table.cart td.product-subtotal {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0066cc !important;
	white-space: nowrap !important;
	text-align: right !important;
	padding-right: 16px !important;
}

/* Actions Row: Coupon & Update Cart */
.woocommerce table.shop_table.cart td.actions {
	padding: 16px 20px;
	background: #fafbfc;
	border-top: 1px solid #e2e8f0;
	text-align: right;
}

.woocommerce table.shop_table.cart td.actions .coupon {
	float: left;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.woocommerce table.shop_table.cart td.actions input#coupon_code {
	height: 40px;
	padding: 0 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	font-size: 13.5px;
	width: 170px;
	background: #ffffff;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.woocommerce table.shop_table.cart td.actions input#coupon_code:focus {
	border-color: #0066cc;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.woocommerce table.shop_table.cart td.actions button[name="apply_coupon"] {
	height: 40px;
	padding: 0 16px;
	border-radius: 8px;
	background: #f1f5f9;
	color: #334155;
	font-size: 13.5px;
	font-weight: 600;
	border: 1px solid #cbd5e1;
	cursor: pointer;
	transition: all 0.2s ease;
}

.woocommerce table.shop_table.cart td.actions button[name="apply_coupon"]:hover {
	background: #0066cc;
	color: #ffffff;
	border-color: #0066cc;
}

.woocommerce table.shop_table.cart td.actions button[name="update_cart"],
.woocommerce-cart table.shop_table_responsive tr td.actions button[name="update_cart"],
button[name="update_cart"] {
	display: none !important;
}

/* ==========================================================================
   5. Order Summary Totals Card (.cart_totals)
   ========================================================================== */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals,
.cart-main-layout .cart-collaterals .cart_totals {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	background: #ffffff;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
	padding: 24px;
	box-sizing: border-box;
}

.cart-collaterals .cart_totals h2 {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 16px 0;
	padding-bottom: 14px;
	border-bottom: 1px solid #e2e8f0;
	letter-spacing: -0.2px;
}

.cart-collaterals .cart_totals table.shop_table {
	width: 100% !important;
	border-collapse: collapse !important;
	border: none !important;
	margin: 0 0 16px 0 !important;
	display: table !important;
}

.cart-collaterals .cart_totals table.shop_table tbody {
	display: table-row-group !important;
}

.cart-collaterals .cart_totals table.shop_table tr {
	display: table-row !important;
	border-bottom: 1px dashed #e2e8f0 !important;
}

.cart-collaterals .cart_totals table.shop_table th,
.cart-collaterals .cart_totals table.shop_table tbody th {
	display: table-cell !important;
	width: 110px !important;
	white-space: nowrap !important;
	padding: 12px 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #64748b !important;
	text-align: left !important;
	vertical-align: middle !important;
	border: none !important;
}

.cart-collaterals .cart_totals table.shop_table td,
.cart-collaterals .cart_totals table.shop_table tbody td {
	display: table-cell !important;
	padding: 12px 0 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #0f172a !important;
	text-align: right !important;
	vertical-align: middle !important;
	border: none !important;
}

/* Neutralize WooCommerce smallscreen pseudo labels completely in cart totals */
.cart-collaterals .cart_totals table.shop_table tr td::before,
.cart-collaterals .cart_totals table.shop_table_responsive tr td::before,
.cart-collaterals .cart_totals table.shop_table tr th::before {
	display: none !important;
	content: "" !important;
}

.cart-collaterals .cart_totals table.shop_table tr.order-total {
	border-top: 1.5px solid #cbd5e1 !important;
	border-bottom: none !important;
}

.cart-collaterals .cart_totals table.shop_table tr.order-total th,
.cart-collaterals .cart_totals table.shop_table tr.order-total tbody th {
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	padding-top: 16px !important;
	padding-bottom: 8px !important;
	width: 100px !important;
	white-space: nowrap !important;
}

.cart-collaterals .cart_totals table.shop_table tr.order-total td,
.cart-collaterals .cart_totals table.shop_table tr.order-total tbody td {
	padding-top: 16px !important;
	padding-bottom: 8px !important;
	text-align: right !important;
}

.cart-collaterals .cart_totals table.shop_table tr.order-total td strong {
	font-size: 20px !important;
	font-weight: 800 !important;
	color: #0066cc !important;
	display: inline-block !important;
}

/* Proceed to Checkout Button */
.cart-collaterals .wc-proceed-to-checkout {
	padding: 0;
	margin-top: 18px;
}

.cart-collaterals .wc-proceed-to-checkout a.checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	border-radius: 10px;
	background: #0066cc !important;
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
	transition: all 0.25s ease;
	box-sizing: border-box;
}

.cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover {
	background: #0052a3 !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 102, 204, 0.45);
}

/* Trust features below checkout */
.cart-trust-box {
	margin-top: 20px;
	padding: 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cart-trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	color: #475569;
	font-weight: 500;
}

.cart-trust-item i,
.cart-trust-item svg {
	width: 18px;
	height: 18px;
	color: #0066cc;
	flex-shrink: 0;
}

/* Continue Shopping Link */
.cart-continue-shopping-wrap {
	text-align: center;
	margin-top: 16px;
}

.cart-continue-shopping-wrap a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: #0066cc;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cart-continue-shopping-wrap a:hover {
	color: #0052a3;
	text-decoration: underline;
}

/* ==========================================================================
   6. Modern Dentaluck Empty Cart Styling
   ========================================================================== */
.cart-main-layout .woocommerce:has(.dentaluck-empty-cart-card),
.cart-main-layout .woocommerce:has(.cart-empty) {
	display: block !important;
	width: 100% !important;
}

.dentaluck-empty-cart-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 52px 28px;
	text-align: center;
	max-width: 540px;
	margin: 32px auto 60px auto;
	box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
	width: 100%;
	box-sizing: border-box;
}

.empty-cart-icon-circle {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: #eff6ff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	box-shadow: 0 0 0 8px rgba(0, 102, 204, 0.08);
}

.empty-cart-title {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 10px 0;
	letter-spacing: -0.3px;
}

.empty-cart-desc {
	font-size: 14px;
	color: #64748b;
	line-height: 1.55;
	max-width: 440px;
	margin: 0 auto 26px auto;
}

.btn-empty-cart-shop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	padding: 0 30px;
	border-radius: 10px;
	background: #0066cc;
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 4px 16px rgba(0, 102, 204, 0.35);
	transition: all 0.25s ease;
}

.btn-empty-cart-shop:hover {
	background: #0052a3;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 102, 204, 0.45);
}

/* Fallback for legacy WC empty markup if injected */
.woocommerce p.cart-empty.woocommerce-info {
	display: none !important;
}

.woocommerce p.return-to-shop {
	display: none !important;
}

/* ==========================================================================
   7. Mobile Responsive (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
	/* Steps Bar Mobile */
	.step-label-desktop {
		display: none !important;
	}
	.step-label-mobile {
		display: inline !important;
	}
	.cart-progress-header-wrap {
		padding: 10px 0 !important;
		margin-bottom: 14px !important;
	}
	.checkout-steps-bar {
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 4px !important;
		justify-content: space-between !important;
		box-sizing: border-box !important;
	}
	.checkout-steps-bar .step-item {
		gap: 4px !important;
		font-size: 11.5px !important;
	}
	.checkout-steps-bar .step-num {
		width: 20px !important;
		height: 20px !important;
		min-width: 20px !important;
		font-size: 10.5px !important;
		border-radius: 6px !important;
	}
	.checkout-steps-bar .step-connector {
		margin: 0 3px !important;
		min-width: 6px !important;
		flex: 1 1 6px !important;
	}

	/* Empty Cart Card on Mobile */
	.dentaluck-empty-cart-card {
		padding: 36px 18px !important;
		margin: 20px auto 40px auto !important;
		border-radius: 12px !important;
	}
	.empty-cart-icon-circle {
		width: 72px !important;
		height: 72px !important;
		margin-bottom: 16px !important;
	}
	.empty-cart-icon-circle svg {
		width: 38px !important;
		height: 38px !important;
	}
	.empty-cart-title {
		font-size: 17px !important;
	}
	.empty-cart-desc {
		font-size: 13px !important;
		margin-bottom: 22px !important;
	}
	.btn-empty-cart-shop {
		width: 100% !important;
		height: 44px !important;
		font-size: 14.5px !important;
		padding: 0 16px !important;
		box-sizing: border-box !important;
	}

	/* 1. Neutralize WooCommerce smallscreen pseudo labels */
	.woocommerce table.shop_table_responsive tr td::before,
	.woocommerce-cart table.shop_table_responsive tr td::before,
	.woocommerce table.shop_table.cart tbody td::before,
	table.shop_table.cart td::before {
		display: none !important;
		content: "" !important;
	}

	.woocommerce table.shop_table.cart thead,
	.woocommerce-cart table.shop_table_responsive thead {
		display: none !important;
	}

	.woocommerce table.shop_table.cart,
	.woocommerce-cart table.shop_table_responsive {
		display: block !important;
		width: 100% !important;
		border: none !important;
	}

	.woocommerce table.shop_table.cart tbody,
	.woocommerce-cart table.shop_table_responsive tbody {
		display: block !important;
		width: 100% !important;
	}

	/* 2. Modern 2-row Grid for Cart Items */
	.woocommerce table.shop_table.cart tbody tr.cart_item,
	.woocommerce-cart table.shop_table_responsive tr.cart_item {
		display: grid !important;
		grid-template-columns: 60px 1fr auto !important;
		grid-template-rows: auto auto !important;
		grid-template-areas:
			"thumb name remove"
			"thumb qty  price" !important;
		column-gap: 12px !important;
		row-gap: 8px !important;
		padding: 14px 10px !important;
		align-items: center !important;
		border-bottom: 1px solid #f1f5f9 !important;
		background: #ffffff !important;
		position: relative !important;
		clear: both !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.woocommerce table.shop_table.cart tbody td,
	.woocommerce-cart table.shop_table_responsive tr td {
		padding: 0 !important;
		border: none !important;
		display: block !important;
		background: transparent !important;
	}

	/* Thumbnail on left - Single clean image, no nested frame */
	.woocommerce table.shop_table.cart td.product-thumbnail,
	.woocommerce-cart table.shop_table_responsive tr td.product-thumbnail {
		grid-area: thumb !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 56px !important;
		height: 56px !important;
		align-self: center !important;
		padding: 0 !important;
		border: none !important;
		background: transparent !important;
		box-shadow: none !important;
	}

	.woocommerce table.shop_table.cart td.product-thumbnail a,
	.woocommerce table.shop_table.cart td.product-thumbnail img,
	.woocommerce-cart table.shop_table_responsive tr td.product-thumbnail img {
		display: block !important;
		width: 56px !important;
		height: 56px !important;
		object-fit: contain !important;
		border-radius: 6px !important;
		border: none !important;
		background: transparent !important;
		padding: 0 !important;
		box-shadow: none !important;
	}

	/* Product title in middle-top */
	.woocommerce table.shop_table.cart td.product-name,
	.woocommerce-cart table.shop_table_responsive tr td.product-name {
		grid-area: name !important;
		text-align: left !important;
		align-self: end !important;
		min-width: 0 !important;
		padding: 0 !important;
	}

	.woocommerce table.shop_table.cart td.product-name a {
		font-size: 13.5px !important;
		font-weight: 700 !important;
		color: #0f172a !important;
		line-height: 1.35 !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
		text-decoration: none !important;
	}

	.woocommerce table.shop_table.cart td.product-name dl.variation {
		margin: 3px 0 0 0 !important;
		font-size: 11.5px !important;
		color: #64748b !important;
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 4px !important;
	}
	.woocommerce table.shop_table.cart td.product-name dl.variation dt,
	.woocommerce table.shop_table.cart td.product-name dl.variation dd {
		margin: 0 !important;
		padding: 0 !important;
		display: inline !important;
	}

	/* Remove button on top-right */
	.woocommerce table.shop_table.cart td.product-remove,
	.woocommerce-cart table.shop_table_responsive tr td.product-remove {
		grid-area: remove !important;
		justify-self: end !important;
		align-self: start !important;
		width: auto !important;
		text-align: right !important;
		padding: 0 !important;
	}

	.woocommerce table.shop_table.cart td.product-remove a.remove,
	.woocommerce-cart table.shop_table_responsive tr td.product-remove a.remove {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 24px !important;
		height: 24px !important;
		border-radius: 50% !important;
		background: #f1f5f9 !important;
		color: #94a3b8 !important;
		font-size: 15px !important;
		line-height: 1 !important;
		text-decoration: none !important;
		transition: all 0.2s ease !important;
	}

	.woocommerce table.shop_table.cart td.product-remove a.remove:hover {
		background: #fee2e2 !important;
		color: #ef4444 !important;
	}

	/* Quantity in middle-bottom */
	.woocommerce table.shop_table.cart td.product-quantity,
	.woocommerce-cart table.shop_table_responsive tr td.product-quantity {
		grid-area: qty !important;
		justify-self: start !important;
		align-self: center !important;
		width: auto !important;
		text-align: left !important;
		padding: 0 !important;
	}

	.woocommerce table.shop_table.cart td.product-quantity .quantity,
	.woocommerce-cart table.shop_table_responsive tr td.product-quantity .quantity {
		display: inline-flex !important;
		align-items: center !important;
		background: #f8fafc !important;
		border: 1px solid #cbd5e1 !important;
		border-radius: 6px !important;
		overflow: hidden !important;
	}

	.woocommerce table.shop_table.cart td.product-quantity input.qty,
	.woocommerce-cart table.shop_table_responsive tr td.product-quantity input.qty {
		height: 28px !important;
		width: 34px !important;
		border: none !important;
		text-align: center !important;
		font-size: 13px !important;
		font-weight: 700 !important;
		color: #0f172a !important;
		padding: 0 !important;
		margin: 0 !important;
		background: transparent !important;
		outline: none !important;
		-moz-appearance: textfield !important;
	}

	.woocommerce table.shop_table.cart td.product-quantity .cart-qty-btn,
	.woocommerce-cart table.shop_table_responsive tr td.product-quantity .cart-qty-btn {
		width: 26px !important;
		height: 28px !important;
		font-size: 14px !important;
		line-height: 1 !important;
	}

	/* Subtotal on bottom-right */
	.woocommerce table.shop_table.cart td.product-subtotal,
	.woocommerce-cart table.shop_table_responsive tr td.product-subtotal {
		grid-area: price !important;
		justify-self: end !important;
		align-self: start !important;
		text-align: right !important;
		font-size: 14.5px !important;
		font-weight: 700 !important;
		color: #0066cc !important;
		white-space: nowrap !important;
		padding: 0 !important;
	}

	.woocommerce table.shop_table.cart td.product-price,
	.woocommerce-cart table.shop_table_responsive tr td.product-price {
		display: none !important;
	}

	/* Actions on Mobile */
	.woocommerce table.shop_table.cart td.actions,
	.woocommerce-cart table.shop_table_responsive tr td.actions {
		display: flex !important;
		flex-direction: column !important;
		gap: 12px !important;
		padding: 14px 10px !important;
		text-align: left !important;
		width: 100% !important;
		box-sizing: border-box !important;
		clear: both !important;
	}

	.woocommerce table.shop_table.cart td.actions .coupon,
	.woocommerce-cart table.shop_table_responsive tr td.actions .coupon {
		float: none !important;
		width: 100% !important;
		display: flex !important;
		gap: 8px !important;
	}

	.woocommerce table.shop_table.cart td.actions input#coupon_code,
	.woocommerce-cart table.shop_table_responsive tr td.actions input#coupon_code {
		flex: 1 !important;
		width: auto !important;
		height: 38px !important;
	}

	.woocommerce table.shop_table.cart td.actions .coupon button.button,
	.woocommerce-cart table.shop_table_responsive tr td.actions .coupon button.button {
		height: 38px !important;
		white-space: nowrap !important;
	}

	.woocommerce table.shop_table.cart td.actions button[name="update_cart"],
	.woocommerce-cart table.shop_table_responsive tr td.actions button[name="update_cart"] {
		display: none !important;
	}
}


/* ==========================================================================
   11. Modern Dentaluck Checkout UI
   ========================================================================== */
.checkout-main-layout {
	background-color: #f8fafc;
	min-height: 70vh;
	padding-bottom: 60px;
}

/* WooCommerce Notices in Checkout */
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error {
	background: #eff6ff !important;
	border: 1px solid #bfdbfe !important;
	border-left: 4px solid #0066cc !important;
	color: #1e3a8a !important;
	padding: 14px 20px !important;
	border-radius: 10px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	margin: 0 auto 20px auto !important;
	max-width: 1240px !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
	box-sizing: border-box !important;
	outline: none !important;
}

.woocommerce-checkout .woocommerce-message:focus,
.woocommerce-checkout .woocommerce-message:focus-visible,
.woocommerce-checkout .woocommerce-info:focus,
.woocommerce-checkout .woocommerce-info:focus-visible,
.woocommerce-checkout .woocommerce-error:focus,
.woocommerce-checkout .woocommerce-error:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15), 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

.woocommerce-checkout .woocommerce-message::before,
.woocommerce-checkout .woocommerce-info::before,
.woocommerce-checkout .woocommerce-error::before {
	display: none !important;
}

.woocommerce-checkout .woocommerce-message {
	background: #f0fdf4 !important;
	border-color: #bbf7d0 !important;
	border-left-color: #16a34a !important;
	color: #14532d !important;
}

.woocommerce-checkout .woocommerce-error {
	background: #fef2f2 !important;
	border-color: #fecaca !important;
	border-left-color: #ef4444 !important;
	color: #991b1b !important;
}

.woocommerce-checkout .woocommerce-message .button,
.woocommerce-checkout .woocommerce-message a.button {
	background: #0066cc !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 9px 18px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	box-shadow: 0 2px 6px rgba(0, 102, 204, 0.25) !important;
	transition: all 0.2s ease !important;
	flex-shrink: 0 !important;
}

.woocommerce-checkout .woocommerce-message .button:hover,
.woocommerce-checkout .woocommerce-message a.button:hover {
	background: #0052a3 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 10px rgba(0, 102, 204, 0.35) !important;
	transform: translateY(-1px) !important;
}

.woocommerce-checkout .woocommerce-info a {
	color: #0284c7 !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
}

/* Coupon toggle on checkout */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
	max-width: 1240px;
	margin: 0 auto 20px auto;
}

.woocommerce-checkout form.checkout_coupon {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 24px;
	display: flex;
	gap: 10px;
	align-items: center;
	max-width: 480px;
}

/* Checkout Form Wrapper */
form.woocommerce-checkout {
	width: 100% !important;
	max-width: 1240px;
	margin: 0 auto;
}

/* Two-column Checkout Grid (Supports both Aplus grid & core WC) */
.aplus-checkout-grid,
form.woocommerce-checkout {
	display: grid !important;
	grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.95fr) !important;
	gap: 32px !important;
	align-items: start !important;
	margin: 20px auto 60px auto !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* WooCommerce Customer Details Column Reset */
.woocommerce-checkout .col2-set,
.woocommerce-checkout #customer_details,
#customer_details.col2-set {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 20px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2,
#customer_details .col-1,
#customer_details .col-2 {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

/* Left Column: Customer details */
.aplus-checkout-customer-col,
#customer_details_wrapper {
	display: flex !important;
	flex-direction: column !important;
	gap: 20px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* Outer Card for customer info & shipping notes */
.aplus-checkout-section,
.woocommerce-billing-fields,
.woocommerce-additional-fields {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 26px 28px !important;
	box-shadow: 0 2px 10px -2px rgba(15, 23, 42, 0.04) !important;
	box-sizing: border-box !important;
	margin-bottom: 20px !important;
}

/* Reset duplicate card styles when nested inside .aplus-checkout-section */
.aplus-checkout-section .woocommerce-billing-fields,
.aplus-checkout-section .woocommerce-shipping-fields,
.aplus-checkout-section .woocommerce-additional-fields {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
}

/* Hide duplicate heading inside billing & shipping */
.aplus-checkout-section .woocommerce-billing-fields > h3,
.aplus-checkout-section .woocommerce-additional-fields > h3 {
	display: none !important;
}

/* Section Headings */
.aplus-checkout-section > h3,
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 20px 0 !important;
	padding-bottom: 12px !important;
	border-bottom: 1px solid #f1f5f9 !important;
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
}

.aplus-checkout-section > h3::before,
.woocommerce-billing-fields h3::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 18px;
	background: #0284c7;
	border-radius: 2px;
}

#order_review_heading::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 18px;
	background: #16a34a;
	border-radius: 2px;
}

/* Field wrappers */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.woocommerce-checkout .form-row {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	float: none !important;
	clear: both !important;
}

.woocommerce-checkout .form-row label {
	display: flex;
	align-items: center;
	font-size: 13.5px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
	line-height: 1.4;
}

.woocommerce-checkout .form-row label .required {
	color: #ef4444;
	font-weight: 700;
	margin-left: 4px;
	text-decoration: none;
}

.woocommerce-checkout .form-row label .optional {
	color: #94a3b8;
	font-weight: 400;
	font-size: 12px;
	margin-left: 6px;
}

.woocommerce-checkout .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
	width: 100% !important;
	box-sizing: border-box !important;
	height: 48px;
	padding: 0 16px;
	font-size: 14px;
	font-family: inherit;
	color: #0f172a;
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	border-radius: 8px;
	transition: all 0.2s ease;
	outline: none;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.woocommerce-checkout textarea {
	height: 100px !important;
	padding: 12px 16px !important;
	resize: vertical;
	line-height: 1.5;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
	border-color: #0284c7 !important;
	box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.14) !important;
	background: #ffffff !important;
}

.woocommerce-checkout input.input-text::placeholder,
.woocommerce-checkout textarea::placeholder {
	color: #94a3b8;
	font-size: 13.5px;
}

/* Right Column: Order Review & Payment */
.aplus-checkout-review-col,
.checkout-order-review-col {
	width: 100% !important;
	box-sizing: border-box !important;
}

.aplus-checkout-order-review,
#order_review {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 26px 28px !important;
	box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06) !important;
	position: sticky !important;
	top: 90px !important;
	box-sizing: border-box !important;
	z-index: 10;
}

/* Reset inner duplicate card styles */
.aplus-checkout-order-review #order_review,
.aplus-checkout-order-review .woocommerce-checkout-review-order {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	position: static !important;
	margin: 0 !important;
}

/* Bỏ toàn bộ khung viền của bảng đơn hàng review checkout */
.woocommerce table.shop_table,
.woocommerce-checkout table.shop_table,
table.woocommerce-checkout-review-order-table,
.woocommerce table.woocommerce-checkout-review-order-table {
	width: 100% !important;
	border: none !important;
	border-radius: 0 !important;
	border-collapse: collapse !important;
	box-shadow: none !important;
	background: transparent !important;
	margin: 0 0 20px 0 !important;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td,
table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td {
	border-left: none !important;
	border-right: none !important;
}

table.woocommerce-checkout-review-order-table thead th,
.woocommerce table.shop_table thead th {
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	font-weight: 700;
	padding: 0 0 12px 0 !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	border-bottom: 1.5px solid #e2e8f0 !important;
	text-align: left;
}

table.woocommerce-checkout-review-order-table thead th.product-total,
.woocommerce table.shop_table thead th.product-total {
	text-align: right;
}

table.woocommerce-checkout-review-order-table tbody td,
.woocommerce table.shop_table tbody td {
	padding: 14px 0 !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	border-bottom: 1px solid #f1f5f9 !important;
	font-size: 14px;
	color: #1e293b;
	vertical-align: middle;
}

table.woocommerce-checkout-review-order-table tbody td.product-name {
	line-height: 1.45;
	font-weight: 600;
	padding-right: 12px;
}

table.woocommerce-checkout-review-order-table tbody td.product-name strong.product-quantity {
	color: #0284c7;
	font-weight: 700;
	font-size: 13px;
	margin-left: 4px;
}

table.woocommerce-checkout-review-order-table tbody td.product-total {
	text-align: right;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
}

table.woocommerce-checkout-review-order-table tfoot th,
table.woocommerce-checkout-review-order-table tfoot td,
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td {
	padding: 10px 0 !important;
	border-left: none !important;
	border-right: none !important;
	border-bottom: none !important;
	font-size: 14px;
	color: #475569;
}

table.woocommerce-checkout-review-order-table tfoot td {
	text-align: right;
	font-weight: 600;
	color: #0f172a;
}

table.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th,
table.woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td {
	border-top: 1px solid #e2e8f0 !important;
	padding-top: 14px !important;
}

table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
	border-top: 2px dashed #cbd5e1 !important;
	padding-top: 14px !important;
	padding-bottom: 4px !important;
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
}

table.woocommerce-checkout-review-order-table tfoot tr.order-total td .woocommerce-Price-amount {
	color: #0284c7;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.3px;
}

/* Payment Methods */
#payment {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 10px 0 0 0 !important;
	margin: 16px 0 !important;
}

#payment ul.wc_payment_methods {
	list-style: none;
	padding: 0;
	margin: 0 0 16px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#payment li.wc_payment_method {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 14px;
	transition: all 0.2s ease;
	cursor: pointer;
}

#payment li.wc_payment_method:hover {
	border-color: #0284c7;
}

#payment li.wc_payment_method input[type="radio"] {
	margin-right: 8px;
	accent-color: #0284c7;
	transform: scale(1.15);
	cursor: pointer;
}

#payment li.wc_payment_method label {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	cursor: pointer;
}

#payment .payment_box {
	background: #f1f5f9;
	border-radius: 6px;
	padding: 10px 14px;
	margin-top: 10px;
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
	border-left: 3px solid #0284c7;
}

#payment .payment_box p {
	margin: 0;
}

/* Submit Place Order Button */
#payment button#place_order,
button#place_order {
	width: 100% !important;
	height: 52px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
	color: #ffffff !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	letter-spacing: 0.3px !important;
	border-radius: 8px !important;
	border: none !important;
	cursor: pointer !important;
	box-shadow: 0 4px 16px rgba(2, 132, 199, 0.38) !important;
	transition: all 0.25s ease !important;
	text-transform: uppercase !important;
	margin-top: 12px !important;
}

#payment button#place_order:hover,
button#place_order:hover {
	background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
	box-shadow: 0 6px 20px rgba(2, 132, 199, 0.48) !important;
	transform: translateY(-1px) !important;
}

/* Trust Guarantee in Checkout */
.checkout-trust-guarantee {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px dashed #e2e8f0;
}

.checkout-trust-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: #64748b;
	font-weight: 500;
}

.checkout-trust-item svg {
	color: #16a34a;
	flex-shrink: 0;
}

/* Hide unneeded checkout elements */
.woocommerce-shipping-fields,
#ship-to-different-address,
.woocommerce-additional-fields h3 {
	display: none !important;
}

/* Responsive Checkout */
@media (max-width: 991px) {
	.aplus-checkout-grid,
	form.woocommerce-checkout {
		grid-template-columns: 1fr !important;
		gap: 24px !important;
		margin: 16px auto 40px auto !important;
	}

	.aplus-checkout-customer-col,
	.aplus-checkout-review-col {
		width: 100% !important;
	}

	.aplus-checkout-order-review,
	#order_review {
		position: static !important;
		top: auto !important;
	}

	.aplus-checkout-section,
	.aplus-checkout-order-review,
	.woocommerce-billing-fields,
	.woocommerce-additional-fields,
	#order_review {
		padding: 20px 18px !important;
	}
}

@media (max-width: 640px) {
	.checkout-main-layout {
		padding-bottom: 40px !important;
	}

	.checkout-main-layout .container {
		padding: 0 14px !important;
	}

	.woocommerce-checkout .woocommerce-form-coupon-toggle {
		margin-bottom: 14px !important;
	}

	.aplus-checkout-section,
	.aplus-checkout-order-review,
	.woocommerce-billing-fields,
	.woocommerce-additional-fields,
	#order_review {
		padding: 16px 14px !important;
		border-radius: 10px !important;
		margin-bottom: 16px !important;
	}

	.aplus-checkout-section > h3,
	.woocommerce-billing-fields h3,
	#order_review_heading {
		font-size: 16px !important;
		margin-bottom: 14px !important;
	}

	.woocommerce-checkout input.input-text,
	.woocommerce-checkout select,
	.woocommerce-checkout textarea {
		font-size: 16px !important; /* Prevents auto zoom on iOS Safari */
		height: 46px !important;
		padding: 0 12px !important;
	}

	.woocommerce-checkout textarea {
		height: 90px !important;
		padding: 10px 12px !important;
	}

	table.woocommerce-checkout-review-order-table thead th,
	table.woocommerce-checkout-review-order-table tbody td,
	table.woocommerce-checkout-review-order-table tfoot th,
	table.woocommerce-checkout-review-order-table tfoot td {
		font-size: 13.5px !important;
		padding: 10px 0 !important;
	}

	table.woocommerce-checkout-review-order-table tfoot tr.order-total td .woocommerce-Price-amount {
		font-size: 19px !important;
	}

	#payment {
		padding: 8px 0 !important;
		border: none !important;
		border-radius: 0 !important;
		margin: 14px 0 !important;
		background: transparent !important;
	}

	#payment li.wc_payment_method {
		padding: 10px 12px !important;
	}

	#payment button#place_order,
	button#place_order {
		height: 48px !important;
		font-size: 15px !important;
	}

	.checkout-trust-guarantee {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 8px !important;
	}
}

/* ==========================================================================
   12. Modern Dentaluck Order Received (Thank You) UI
   ========================================================================== */

/* Main Container on Order Received */
.checkout-main-layout .woocommerce-order {
	max-width: 1040px;
	margin: 0 auto 50px auto;
	width: 100%;
	box-sizing: border-box;
}

/* Success Celebration Banner Card */
.woocommerce-order p.woocommerce-thankyou-order-received {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 36px 24px;
	text-align: center;
	margin: 0 0 24px 0;
	box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
	font-size: 19px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.5;
	position: relative;
}

.woocommerce-order p.woocommerce-thankyou-order-received::before {
	content: '';
	display: block;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px auto;
	background: #ecfdf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.74-5.25z' clip-rule='evenodd' /%3E%3C/svg%3E") center / 36px no-repeat;
	border-radius: 50%;
	box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.12);
}

/* Order Overview Stat Cards Grid */
.woocommerce ul.woocommerce-order-overview.order_details,
ul.woocommerce-order-overview.order_details,
.woocommerce ul.order_details {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	gap: 12px !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 24px 0 !important;
	width: 100% !important;
	float: none !important;
	clear: both !important;
	box-sizing: border-box !important;
}

/* Hide WooCommerce pseudo-elements so they do NOT take grid tracks */
.woocommerce ul.woocommerce-order-overview.order_details::before,
.woocommerce ul.woocommerce-order-overview.order_details::after,
ul.woocommerce-order-overview.order_details::before,
ul.woocommerce-order-overview.order_details::after,
.woocommerce ul.order_details::before,
.woocommerce ul.order_details::after {
	display: none !important;
	content: none !important;
	width: 0 !important;
	height: 0 !important;
}

.woocommerce ul.woocommerce-order-overview.order_details li,
ul.woocommerce-order-overview.order_details li,
.woocommerce ul.order_details li {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	padding: 14px 12px !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
	font-size: 10.5px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	color: #64748b !important;
	letter-spacing: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	gap: 6px !important;
	margin: 0 !important;
	float: none !important;
	width: 100% !important;
	min-width: 0 !important;
	border-right: 1px solid #e2e8f0 !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

/* Prevent label break on Payment method card */
ul.woocommerce-order-overview.order_details li.woocommerce-order-overview__payment-method,
ul.woocommerce-order-overview.order_details li.method {
	font-size: 10px !important;
	letter-spacing: -0.2px !important;
	white-space: nowrap !important;
}

ul.woocommerce-order-overview.order_details li strong {
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1.35 !important;
	display: block !important;
}

ul.woocommerce-order-overview.order_details li.email strong {
	font-size: 11.5px !important;
	font-weight: 600 !important;
	letter-spacing: -0.3px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	display: block !important;
}

ul.woocommerce-order-overview.order_details li.woocommerce-order-overview__payment-method strong,
ul.woocommerce-order-overview.order_details li.method strong {
	font-size: 12.5px !important;
	line-height: 1.3 !important;
	white-space: normal !important;
	word-break: break-word !important;
}

ul.woocommerce-order-overview.order_details li.total strong,
ul.woocommerce-order-overview.order_details li.total .woocommerce-Price-amount {
	color: #0066cc !important;
	font-size: 15.5px !important;
	font-weight: 800 !important;
	white-space: nowrap !important;
}

/* Payment Instructions Notice */
.woocommerce-order > p:not(.woocommerce-thankyou-order-received):not(.woocommerce-thankyou-order-failed) {
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-left: 4px solid #0066cc !important;
	border-radius: 10px !important;
	padding: 14px 18px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #0f172a !important;
	margin: 0 0 24px 0 !important;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
}

/* BACS Bank Details (if bank transfer) */
.woocommerce-order .woocommerce-bacs-bank-details {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.woocommerce-order .woocommerce-bacs-bank-details .wc-bacs-bank-details-account-name {
	font-size: 16px;
	font-weight: 700;
	color: #0066cc;
	margin-bottom: 12px;
}

.woocommerce-order .woocommerce-bacs-bank-details .wc-bacs-bank-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.woocommerce-order .woocommerce-bacs-bank-details .wc-bacs-bank-details li {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 12px;
	color: #64748b;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.woocommerce-order .woocommerce-bacs-bank-details .wc-bacs-bank-details li strong {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

/* Order Details Card */
section.woocommerce-order-details {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 24px 28px;
	box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
	margin-bottom: 24px;
}

section.woocommerce-order-details h2.woocommerce-order-details__title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 16px 0;
	padding-bottom: 14px;
	border-bottom: 1px solid #e2e8f0;
	letter-spacing: -0.2px;
}

/* Order Table */
table.woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
	border: none;
	margin: 0;
	background: #ffffff;
}

table.woocommerce-table--order-details thead {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

table.woocommerce-table--order-details thead th {
	padding: 12px 16px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #64748b;
	letter-spacing: 0.5px;
	border: none;
	text-align: left;
}

table.woocommerce-table--order-details thead th.product-total {
	text-align: right;
}

table.woocommerce-table--order-details tbody tr {
	border-bottom: 1px solid #f1f5f9;
	transition: background-color 0.2s ease;
}

table.woocommerce-table--order-details tbody tr:hover {
	background-color: #fafbfc;
}

table.woocommerce-table--order-details tbody td {
	padding: 14px 16px;
	font-size: 14px;
	color: #1e293b;
	border: none;
	vertical-align: middle;
}

table.woocommerce-table--order-details td.product-name a {
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
	line-height: 1.45;
	transition: color 0.2s ease;
}

table.woocommerce-table--order-details td.product-name a:hover {
	color: #0066cc;
}

table.woocommerce-table--order-details td.product-name strong.product-quantity {
	color: #0066cc;
	font-weight: 700;
	background: #eff6ff;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 12.5px;
	margin-left: 8px;
	display: inline-block;
}

table.woocommerce-table--order-details td.product-total {
	text-align: right;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
}

/* Order Totals in Footer */
table.woocommerce-table--order-details tfoot tr {
	border-bottom: 1px dashed #e2e8f0;
}

table.woocommerce-table--order-details tfoot th {
	padding: 12px 16px;
	font-size: 13.5px;
	font-weight: 500;
	color: #64748b;
	text-align: left;
	border: none;
}

table.woocommerce-table--order-details tfoot td {
	padding: 12px 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: #0f172a;
	text-align: right;
	border: none;
}

table.woocommerce-table--order-details tfoot tr:last-child {
	border-top: 1.5px solid #cbd5e1;
	border-bottom: none;
}

table.woocommerce-table--order-details tfoot tr:last-child th {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	padding-top: 16px;
}

table.woocommerce-table--order-details tfoot tr:last-child td {
	padding-top: 16px;
}

table.woocommerce-table--order-details tfoot tr:last-child td strong,
table.woocommerce-table--order-details tfoot tr:last-child td .woocommerce-Price-amount {
	font-size: 20px;
	font-weight: 800;
	color: #0066cc;
}

/* Customer & Address Details Card */
section.woocommerce-customer-details {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 24px 28px;
	box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
	margin-bottom: 24px;
}

section.woocommerce-customer-details h2.woocommerce-column__title,
section.woocommerce-customer-details h2 {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 14px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #f1f5f9;
}

section.woocommerce-customer-details .addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

section.woocommerce-customer-details address {
	font-style: normal;
	font-size: 13.5px;
	line-height: 1.6;
	color: #475569;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px;
}

section.woocommerce-customer-details address p {
	margin: 0 0 6px 0;
}

section.woocommerce-customer-details address p:last-child {
	margin-bottom: 0;
}

/* Order Complete Actions & Support Box */
.order-complete-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 28px 0 20px 0;
	flex-wrap: wrap;
}

.order-complete-actions a.btn-continue-shop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	padding: 0 28px;
	border-radius: 10px;
	background: #0066cc;
	color: #ffffff !important;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
	transition: all 0.25s ease;
}

.order-complete-actions a.btn-continue-shop:hover {
	background: #0052a3;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 102, 204, 0.45);
}

.order-complete-actions button.btn-print-order,
button.btn-print-order,
.btn-print-order {
	display: none !important;
}

.order-complete-support-box {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 12px;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 24px;
}

.order-complete-support-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.order-complete-support-info svg {
	width: 28px;
	height: 28px;
	color: #0066cc;
	flex-shrink: 0;
}

.order-complete-support-info .support-text {
	font-size: 13.5px;
	color: #1e3a8a;
}

.order-complete-support-info .support-text strong {
	font-size: 14.5px;
	color: #0f172a;
}

.order-complete-support-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #0066cc;
	color: #ffffff !important;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.order-complete-support-btn:hover {
	background: #0052a3;
}

/* Mobile Responsiveness for Order Received */
@media (max-width: 768px) {
	.checkout-main-layout {
		overflow-x: hidden !important;
		padding-bottom: 40px !important;
	}

	.checkout-main-layout .container {
		padding: 0 12px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.checkout-main-layout .woocommerce-order {
		width: 100% !important;
		max-width: 100% !important;
		overflow-x: hidden !important;
		box-sizing: border-box !important;
		margin-bottom: 24px !important;
	}

	.woocommerce-order p.woocommerce-thankyou-order-received {
		padding: 22px 14px !important;
		font-size: 15.5px !important;
		line-height: 1.45 !important;
		border-radius: 12px !important;
	}

	.woocommerce-order p.woocommerce-thankyou-order-received::before {
		width: 44px !important;
		height: 44px !important;
		background-size: 26px !important;
		margin-bottom: 10px !important;
	}

	.woocommerce ul.woocommerce-order-overview.order_details,
	ul.woocommerce-order-overview.order_details,
	.woocommerce ul.order_details {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 8px !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.woocommerce ul.woocommerce-order-overview.order_details li,
	ul.woocommerce-order-overview.order_details li,
	.woocommerce ul.order_details li {
		padding: 12px 10px !important;
		border-radius: 10px !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
		overflow: hidden !important;
	}

	.woocommerce ul.woocommerce-order-overview.order_details li strong,
	ul.woocommerce-order-overview.order_details li strong,
	.woocommerce ul.order_details li strong {
		font-size: 13px !important;
		line-height: 1.35 !important;
		white-space: normal !important;
		word-break: break-word !important;
	}

	/* 5th stat card (Method) spans both columns on mobile */
	.woocommerce ul.woocommerce-order-overview.order_details li:last-child:nth-child(odd),
	ul.woocommerce-order-overview.order_details li:last-child:nth-child(odd),
	.woocommerce ul.order_details li:last-child:nth-child(odd) {
		grid-column: span 2 !important;
	}

	section.woocommerce-order-details,
	section.woocommerce-customer-details {
		padding: 16px 12px !important;
		border-radius: 12px !important;
	}

	table.woocommerce-table--order-details {
		table-layout: fixed !important;
		width: 100% !important;
	}

	table.woocommerce-table--order-details th,
	table.woocommerce-table--order-details td {
		padding: 10px 6px !important;
		font-size: 13px !important;
		word-break: break-word !important;
		box-sizing: border-box !important;
	}

	table.woocommerce-table--order-details td.product-name {
		width: auto !important;
	}

	table.woocommerce-table--order-details td.product-total {
		width: 95px !important;
		text-align: right !important;
		white-space: nowrap !important;
	}

	.order-complete-support-box {
		flex-direction: column !important;
		align-items: flex-start !important;
		padding: 16px 14px !important;
		border-radius: 12px !important;
	}

	.order-complete-actions {
		flex-direction: column !important;
		width: 100% !important;
		gap: 10px !important;
	}

	.order-complete-actions a.btn-continue-shop,
	.order-complete-actions button.btn-print-order {
		width: 100% !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.cart-progress-header-wrap,
	.order-complete-actions,
	.order-complete-support-box,
	.btn-print-order {
		display: none !important;
	}
	.checkout-main-layout {
		background: #fff !important;
		padding: 0 !important;
	}
	.checkout-main-layout .woocommerce-order {
		max-width: 100% !important;
		margin: 0 !important;
	}
	section.woocommerce-order-details,
	ul.woocommerce-order-overview.order_details li {
		border: 1px solid #ccc !important;
		box-shadow: none !important;
	}
}

