/**
 * 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;
}

.cart-main-layout,
.checkout-main-layout {
	background-color: #f8fafc;
	min-height: calc(100vh - 320px);
	padding-bottom: 60px;
}

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

.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 (Stacked: Cart on top, Summary below)
   ========================================================================== */
.aplus-cart-grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
}

.aplus-cart-main-col {
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

.aplus-cart-sidebar-col,
.aplus-cart-bottom-col {
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

/* Cột Trái / Trên: Bảng giỏ hàng */
.aplus-cart-table-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.04);
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
}

.aplus-cart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #f1f5f9;
	background: #ffffff;
	gap: 12px;
}

.aplus-cart-header-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.aplus-cart-header-title h2 {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.aplus-cart-count-badge {
	background: #e0f2fe;
	color: #0284c7;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 6px;
	white-space: nowrap;
}

.aplus-cart-continue-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 600;
	color: #0284c7;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.aplus-cart-continue-link:hover {
	color: #0369a1;
	text-decoration: underline;
}

/* ==========================================================================
   4. Cart Items List & Rows
   ========================================================================== */
.aplus-cart-items-list {
	padding: 0 20px;
}

.aplus-cart-row {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #f1f5f9;
	align-items: center;
	box-sizing: border-box;
}

.aplus-cart-row:last-child {
	border-bottom: none;
}

/* Thumbnail */
.aplus-cart-col-thumb {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aplus-cart-col-thumb a {
	display: block;
	width: 100%;
	height: 100%;
}

.aplus-cart-col-thumb img,
.aplus-cart-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 8px;
}

/* Thông tin sản phẩm */
.aplus-cart-col-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.aplus-cart-brand-tag {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #0284c7;
	letter-spacing: 0.5px;
	background: #f0f9ff;
	padding: 1px 6px;
	border-radius: 4px;
	width: fit-content;
}

.aplus-cart-item-title {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aplus-cart-item-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.aplus-cart-item-title a:hover {
	color: #0284c7;
}

.aplus-cart-price {
	font-size: 13px;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 2px;
}

.aplus-price-label {
	color: #94a3b8;
}

.aplus-cart-price .woocommerce-Price-amount {
	color: #475569;
	font-weight: 600;
}

/* ==========================================================================
   5. Interactive Actions Block (Qty, Subtotal, Remove)
   ========================================================================== */
.aplus-cart-actions-block {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

/* Quantity Stepper Input */
.aplus-cart-col-qty {
	flex-shrink: 0;
}

.aplus-cart-col-qty .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	overflow: hidden;
	background: #ffffff;
	height: 34px;
	box-sizing: border-box;
}

.aplus-cart-col-qty .quantity .qty {
	width: 40px;
	height: 32px;
	border: none;
	text-align: center;
	font-weight: 600;
	font-size: 13px;
	color: #0f172a;
	padding: 0;
	margin: 0;
	background: transparent;
	-moz-appearance: textfield;
}

.aplus-cart-col-qty .quantity .qty::-webkit-outer-spin-button,
.aplus-cart-col-qty .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.aplus-qty-btn {
	width: 30px;
	height: 32px;
	background: #f8fafc;
	border: none;
	color: #475569;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
	user-select: none;
	padding: 0;
}

.aplus-qty-btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.aplus-qty-btn:active {
	background: #cbd5e1;
}

/* Subtotal */
.aplus-cart-col-subtotal {
	font-size: 15px;
	font-weight: 700;
	color: #0284c7;
	text-align: right;
	min-width: 95px;
	white-space: nowrap;
	flex-shrink: 0;
}

.aplus-subtotal-label {
	display: none;
	font-size: 12px;
	color: #94a3b8;
	font-weight: 500;
}

.aplus-cart-col-subtotal .woocommerce-Price-amount {
	color: #0284c7;
	font-weight: 700;
}

/* Remove button */
.aplus-cart-col-remove {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.woocommerce .aplus-cart-col-remove a.remove,
.woocommerce-cart .aplus-cart-col-remove a.remove,
.aplus-cart-col-remove a.aplus-trash-btn,
.aplus-trash-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	border-radius: 8px !important;
	color: #ef4444 !important;
	background: #fef2f2 !important;
	border: 1px solid #fee2e2 !important;
	cursor: pointer !important;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
	text-decoration: none !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: 0 1px 3px rgba(239, 68, 68, 0.08) !important;
	outline: none !important;
}

.woocommerce .aplus-cart-col-remove a.remove:hover,
.woocommerce-cart .aplus-cart-col-remove a.remove:hover,
.aplus-cart-col-remove a.aplus-trash-btn:hover,
.aplus-trash-btn:hover {
	color: #ffffff !important;
	background: #ef4444 !important;
	border-color: #ef4444 !important;
	box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
	transform: translateY(-2px) scale(1.05) !important;
}

.woocommerce .aplus-cart-col-remove a.remove:active,
.woocommerce-cart .aplus-cart-col-remove a.remove:active,
.aplus-cart-col-remove a.aplus-trash-btn:active,
.aplus-trash-btn:active {
	transform: translateY(0) scale(0.96) !important;
}

.aplus-cart-col-remove a.remove svg,
.aplus-trash-btn svg {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	stroke: currentColor !important;
	stroke-width: 2.2 !important;
	display: block !important;
	transition: transform 0.2s ease !important;
}

.aplus-cart-col-remove a.remove:hover svg,
.aplus-trash-btn:hover svg {
	stroke: #ffffff !important;
}

/* ==========================================================================
   6. Variations & Custom Fields
   ========================================================================== */
.aplus-cart-col-info dl.variation {
	margin: 4px 0 0 0;
	font-size: 12px;
	color: #64748b;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.aplus-cart-col-info dl.variation dt {
	font-weight: 600;
	float: none;
	margin: 0;
}

.aplus-cart-col-info dl.variation dd {
	margin: 0;
	padding: 0;
}

.aplus-cart-col-info dl.variation dd p {
	margin: 0;
}

/* ==========================================================================
   7. Cart Bottom Bar (Coupon & Update Cart)
   ========================================================================== */
.aplus-cart-bottom-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	flex-wrap: wrap;
	gap: 12px;
}

.aplus-coupon-form {
	display: flex;
	align-items: center;
	gap: 8px;
}

.aplus-coupon-input {
	height: 38px;
	padding: 0 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 13px;
	width: 180px;
	outline: none;
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aplus-coupon-input:focus {
	border-color: #0284c7;
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.aplus-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.2s ease;
	white-space: nowrap;
	text-decoration: none;
}

.aplus-btn-coupon {
	background: #ffffff;
	border: 1px solid #0284c7;
	color: #0284c7;
}

.aplus-btn-coupon:hover {
	background: #0284c7;
	color: #ffffff;
}

.aplus-btn-update {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #475569;
	gap: 6px;
}

.aplus-btn-update:hover {
	border-color: #94a3b8;
	background: #f1f5f9;
	color: #0f172a;
}

/* ==========================================================================
   8. Order Summary Section (Placed below Cart Items)
   ========================================================================== */
/* CRITICAL FIX: Override WooCommerce default styles that force cart_totals to 48% float right */
.woocommerce .cart-collaterals,
.woocommerce-page .cart-collaterals {
	width: 100% !important;
	float: none !important;
	clear: both !important;
	margin: 0 !important;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals,
.cart_totals.aplus-cart-totals-card {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	position: static !important;
	top: auto !important;
}

.aplus-cart-totals-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px !important;
	padding: 24px;
	box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.04);
	width: 100% !important;
	box-sizing: border-box;
	overflow: visible !important;
}

.aplus-cart-totals-grid-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 28px;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
}

/* Cột Trái: Cam kết & Quyền lợi Dentaluck */
.aplus-cart-trust-wrapper {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 22px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.aplus-trust-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e2e8f0;
}

.aplus-trust-header h3 {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.cart-trust-badges {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	border: none;
}

.trust-badge-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px !important;
	padding: 12px 14px;
	transition: all 0.2s ease;
}

.trust-badge-item:hover {
	border-color: #cbd5e1;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.trust-badge-icon {
	width: 36px;
	height: 36px;
	border-radius: 6px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.trust-badge-icon.icon-green {
	background: #f0fdf4;
}

.trust-badge-icon.icon-blue {
	background: #f0f9ff;
}

.trust-badge-icon.icon-orange {
	background: #fff7ed;
}

.trust-badge-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.trust-badge-content strong {
	font-size: 13.5px;
	color: #0f172a;
	font-weight: 700;
}

.trust-badge-content span {
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
}

/* Cột Phải: Tính toán tiền & Nút thanh toán */
.aplus-cart-calc-wrapper {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 22px 24px;
	box-sizing: border-box;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.aplus-cart-totals-header {
	padding-bottom: 12px;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 16px;
}

.aplus-cart-totals-header h2 {
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.aplus-summary-table {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aplus-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: #64748b;
	gap: 12px;
	min-width: 0;
}

.aplus-summary-label {
	color: #475569;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

.aplus-summary-value {
	font-weight: 700;
	color: #0f172a;
	text-align: right;
	white-space: nowrap;
	min-width: 0;
}

.aplus-summary-value .woocommerce-Price-amount {
	color: #0f172a;
	font-weight: 700;
}

.aplus-summary-row.cart-discount .discount-val {
	color: #16a34a;
}

.shipping-free-badge {
	background: #ecfdf5;
	color: #059669;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid #a7f3d0;
	white-space: nowrap;
}

/* ==========================================================================
   FIX OVERFLOW FOR SHIPPING ROW & CALCULATOR
   ========================================================================== */
.aplus-summary-row.shipping {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 8px !important;
	padding: 12px 0 !important;
	margin: 4px 0 !important;
	border-top: 1px dashed #e2e8f0 !important;
	border-bottom: 1px dashed #e2e8f0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.aplus-summary-row.shipping .aplus-summary-label {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	display: block;
	width: 100%;
}

.aplus-summary-row.shipping .aplus-summary-value,
.aplus-summary-row.shipping .aplus-shipping-methods-wrap {
	white-space: normal !important;
	text-align: left !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	word-break: break-word !important;
	overflow-wrap: break-word !important;
	box-sizing: border-box !important;
	font-weight: normal;
}

/* Table resets when WooCommerce outputs table markup */
.aplus-summary-row.shipping tr.woocommerce-shipping-totals,
.aplus-summary-row.shipping tbody,
.aplus-summary-row.shipping table {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.aplus-summary-row.shipping th {
	display: none !important;
}

.aplus-summary-row.shipping td {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	border: none !important;
	text-align: left !important;
	box-sizing: border-box !important;
}

/* Shipping methods list */
.aplus-summary-row.shipping ul#shipping_method {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 0 8px 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	width: 100% !important;
}

.aplus-summary-row.shipping ul#shipping_method li {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-size: 13.5px !important;
	color: #1e293b !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.4 !important;
	white-space: normal !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.aplus-summary-row.shipping ul#shipping_method li input[type="radio"],
.aplus-summary-row.shipping ul#shipping_method li input[type="hidden"] {
	margin: 0 !important;
	cursor: pointer;
	flex-shrink: 0;
}

.aplus-summary-row.shipping ul#shipping_method li label {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	width: 100% !important;
	font-weight: 600 !important;
	color: #0f172a !important;
	cursor: pointer !important;
	margin: 0 !important;
}

.aplus-summary-row.shipping ul#shipping_method li label .woocommerce-Price-amount {
	font-weight: 700 !important;
	color: #0284c7 !important;
}

/* Destination paragraph */
.aplus-summary-row.shipping .woocommerce-shipping-destination {
	font-size: 12.5px !important;
	color: #475569 !important;
	line-height: 1.5 !important;
	margin: 6px 0 8px 0 !important;
	padding: 8px 10px !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 6px !important;
	white-space: normal !important;
	word-break: break-word !important;
	overflow-wrap: anywhere !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

.aplus-summary-row.shipping .woocommerce-shipping-destination strong {
	color: #0f172a !important;
	font-weight: 600 !important;
}

/* Shipping Calculator trigger */
.aplus-summary-row.shipping .shipping-calculator-button {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	color: #0284c7 !important;
	text-decoration: underline !important;
	cursor: pointer !important;
	margin-top: 2px !important;
}

.aplus-summary-row.shipping .shipping-calculator-button:hover {
	color: #0369a1 !important;
}

/* Shipping Calculator Form */
.aplus-summary-row.shipping .shipping-calculator-form {
	margin-top: 10px !important;
	padding: 12px !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 6px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.aplus-summary-row.shipping .shipping-calculator-form .form-row {
	margin: 0 0 8px 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

.aplus-summary-row.shipping .shipping-calculator-form .select2-container,
.aplus-summary-row.shipping .shipping-calculator-form select,
.aplus-summary-row.shipping .shipping-calculator-form input.input-text {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	font-size: 13px !important;
	padding: 7px 10px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 6px !important;
	background: #ffffff !important;
}

.aplus-summary-row.shipping .shipping-calculator-form button.button {
	width: 100% !important;
	background: #0284c7 !important;
	color: #ffffff !important;
	border: none !important;
	padding: 8px 14px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	transition: background 0.2s ease !important;
	margin-top: 4px !important;
}

.aplus-summary-row.shipping .shipping-calculator-form button.button:hover {
	background: #0369a1 !important;
}

.aplus-summary-row.total-row {
	border-top: 1.5px dashed #cbd5e1;
	padding-top: 14px;
	margin-top: 6px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.aplus-summary-row.total-row .aplus-summary-label {
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
	white-space: nowrap;
	flex-shrink: 0;
}

.aplus-summary-row.total-row .total-amount,
.aplus-summary-row.total-row .total-amount .woocommerce-Price-amount {
	font-size: 22px !important;
	font-weight: 800 !important;
	color: #0284c7 !important;
	letter-spacing: -0.3px;
	white-space: nowrap;
	text-align: right;
}

/* Nút Tiến hành thanh toán */
.aplus-checkout-btn-wrap {
	margin-top: 20px;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button,
.aplus-checkout-btn-wrap .checkout-button,
.aplus-btn-checkout {
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 50px !important;
	padding: 0 20px !important;
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
	color: #ffffff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	border-radius: 8px !important;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
	text-align: center !important;
	white-space: nowrap !important;
	letter-spacing: 0.2px !important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button:hover,
.aplus-checkout-btn-wrap .checkout-button:hover,
.aplus-btn-checkout:hover {
	background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
	box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45) !important;
	transform: translateY(-1px) !important;
	color: #ffffff !important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button::after,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button::after {
	content: ' →';
	display: inline-block;
	margin-left: 8px;
	font-size: 18px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button:hover::after,
.woocommerce-page .wc-proceed-to-checkout a.checkout-button:hover::after {
	transform: translateX(4px);
}

/* ==========================================================================
   9. Empty Cart State
   ========================================================================== */
.aplus-empty-cart-card {
	text-align: center;
	padding: 48px 20px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 2px 12px -2px rgba(15, 23, 42, 0.04);
	max-width: 540px;
	margin: 20px auto 40px;
}

.aplus-empty-cart-icon {
	font-size: 48px;
	margin-bottom: 12px;
	display: inline-block;
}

.aplus-empty-cart-card h2 {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 8px;
}

.aplus-empty-cart-card p {
	font-size: 14px;
	color: #64748b;
	line-height: 1.5;
	margin-bottom: 20px;
}

.aplus-empty-cart-card .aplus-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 24px;
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   10. Responsive Breakpoints
   ========================================================================== */

/* Medium Screens & Tablets (<= 920px): Stack summary & trust badges */
@media (max-width: 920px) {
	.aplus-cart-totals-grid-inner {
		display: flex;
		flex-direction: column-reverse;
		gap: 20px;
	}

	.aplus-cart-calc-wrapper {
		width: 100%;
		padding: 20px 18px;
	}

	.aplus-cart-trust-wrapper {
		width: 100%;
		padding: 18px;
	}

	.cart-trust-badges {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

@media (min-width: 600px) and (max-width: 920px) {
	.cart-trust-badges {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Mobile Screens (<= 640px): 2-Tier Card Layout for Items */
@media (max-width: 640px) {
	.cart-progress-header-wrap {
		padding: 14px 0;
		margin-bottom: 16px;
	}

	.checkout-steps-bar {
		padding: 0 8px;
	}

	.checkout-steps-bar .step-label {
		font-size: 11px;
	}

	.checkout-steps-bar .step-num {
		width: 24px;
		height: 24px;
		font-size: 11px;
		border-radius: 6px;
	}

	.checkout-steps-bar .step-connector {
		margin: 0 6px;
		min-width: 12px;
	}

	.aplus-cart-header {
		padding: 12px 16px;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.aplus-cart-header-title h2 {
		font-size: 15px;
	}

	.aplus-cart-items-list {
		padding: 0 14px;
	}

	/* Card transformation for each item on phone */
	.aplus-cart-row {
		grid-template-columns: 60px 1fr 32px;
		gap: 10px;
		padding: 14px 0;
		align-items: start;
	}

	.aplus-cart-col-thumb {
		width: 60px;
		height: 60px;
		grid-row: 1 / 2;
		border-radius: 6px;
	}

	.aplus-cart-col-thumb img,
	.aplus-cart-img {
		border-radius: 6px;
	}

	.aplus-cart-col-info {
		grid-column: 2 / 3;
		gap: 3px;
	}

	.aplus-cart-item-title {
		font-size: 13px;
		line-height: 1.35;
	}

	.aplus-cart-col-remove {
		grid-column: 3 / 4;
		grid-row: 1 / 2;
		justify-content: flex-end;
	}

	/* Tầng 2 trên mobile: Stepper bên trái, Thành tiền bên phải */
	.aplus-cart-actions-block {
		grid-column: 1 / 4;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding-top: 8px;
		margin-top: 6px;
		border-top: 1px dashed #f1f5f9;
		gap: 8px;
		width: 100%;
	}

	.aplus-cart-col-subtotal {
		min-width: auto;
		text-align: right;
	}

	.aplus-subtotal-label {
		display: inline;
		margin-right: 4px;
	}

	/* Bottom Bar Mobile */
	.aplus-cart-bottom-bar {
		padding: 14px;
		flex-direction: column;
		gap: 10px;
		align-items: stretch;
	}

	.aplus-coupon-form {
		width: 100%;
	}

	.aplus-coupon-input {
		flex: 1;
		width: auto;
	}

	.aplus-btn-update {
		justify-content: center;
		width: 100%;
	}

	.aplus-cart-totals-card {
		padding: 16px 14px;
	}

	.aplus-cart-calc-wrapper {
		padding: 16px 14px;
	}
}

/* ==========================================================================
   11. Modern Dentaluck Checkout UI
   ========================================================================== */
.checkout-main-layout {
	background-color: #f8fafc;
	min-height: 70vh;
	padding-bottom: 60px;
}

/* Coupon toggle on checkout */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
	max-width: 1200px;
	margin: 0 auto 20px auto;
}

.woocommerce-checkout .woocommerce-info {
	background: #eff6ff !important;
	border: 1px solid #bfdbfe !important;
	border-left: 4px solid #0284c7 !important;
	color: #1e3a8a !important;
	padding: 14px 18px !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	display: flex;
	align-items: center;
	gap: 8px;
}

.woocommerce-checkout .woocommerce-info a {
	color: #0284c7 !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
}

.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 {
	display: block !important;
	width: 100% !important;
	max-width: 1200px;
	margin: 0 auto;
}

/* Two-column Checkout Grid (Supports both Aplus grid & core WC) */
.aplus-checkout-grid,
form.woocommerce-checkout:not(:has(.aplus-checkout-grid)) {
	display: grid !important;
	grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.95fr) !important;
	gap: 32px !important;
	align-items: start !important;
	margin: 20px 0 0 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* Left Column: Customer details */
.aplus-checkout-customer-col,
#customer_details {
	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;
}

table.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

table.woocommerce-checkout-review-order-table thead th {
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748b;
	font-weight: 700;
	padding: 0 0 12px 0;
	border-bottom: 1.5px solid #e2e8f0;
	text-align: left;
}

table.woocommerce-checkout-review-order-table thead th.product-total {
	text-align: right;
}

table.woocommerce-checkout-review-order-table tbody td {
	padding: 14px 0;
	border-bottom: 1px solid #f1f5f9;
	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 {
	padding: 10px 0;
	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;
	padding-top: 14px;
}

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;
	padding-top: 14px;
	padding-bottom: 4px;
	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: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	margin: 20px 0;
}

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

	.aplus-checkout-order-review,
	#order_review {
		position: static !important;
	}

	.aplus-checkout-section,
	.aplus-checkout-order-review,
	.woocommerce-billing-fields,
	.woocommerce-additional-fields,
	#order_review {
		padding: 20px 18px !important;
	}
}

@media (max-width: 640px) {
	.woocommerce-checkout .woocommerce-form-coupon-toggle {
		margin-bottom: 14px;
	}

	.aplus-checkout-section,
	.aplus-checkout-order-review,
	.woocommerce-billing-fields,
	.woocommerce-additional-fields,
	#order_review {
		padding: 16px 14px !important;
		border-radius: 8px !important;
	}

	.aplus-checkout-section > h3,
	.woocommerce-billing-fields h3,
	#order_review_heading {
		font-size: 16px !important;
	}

	#payment button#place_order,
	button#place_order {
		height: 48px !important;
		font-size: 15px !important;
	}
}

