/**
 * WooCommerce Lite - Frontend Stylesheet (Ultra Lightweight ~15KB)
 * Tương thích 100% Theme Flatsome & Mobile First
 */

:root {
	--wclite-primary: #d26e4b;
	--wclite-primary-hover: #b85836;
	--wclite-success: #27ae60;
	--wclite-border: #e2e8f0;
	--wclite-bg-light: #f8fafc;
	--wclite-text-main: #1e293b;
	--wclite-text-muted: #64748b;
	--wclite-radius: 6px;
}

/* ==========================================================================
   1. GIỎ HÀNG (CART PAGE - PHONG CÁCH HIỆN ĐẠI ĐIỆN MÁY XANH)
   ========================================================================== */
.wclite-cart-container {
	margin: 20px auto 40px auto;
	font-family: inherit;
	color: var(--wclite-text-main);
	max-width: 1080px;
}

.dmx-cart-header-nav {
	margin-bottom: 18px;
}

.dmx-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0f172a;
	font-size: 20px;
	font-weight: 700;
	text-decoration: none !important;
	transition: color 0.15s ease;
}

.dmx-back-link:hover {
	color: #0071e3;
}

.dmx-cart-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 24px;
	align-items: start;
}

@media (max-width: 920px) {
	.dmx-cart-layout {
		grid-template-columns: 1fr;
	}
}

/* Card danh sách sản phẩm */
.dmx-cart-items-card {
	background: #ffffff;
	border: 1px solid var(--wclite-border);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.dmx-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid var(--wclite-border);
	background: #ffffff;
}

.dmx-header-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	color: #0f172a;
}

.dmx-header-count {
	font-size: 13.5px;
	color: #64748b;
}

.dmx-product-list {
	padding: 0;
}

.dmx-product-row {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.15s ease;
}

.dmx-product-row:last-child {
	border-bottom: none;
}

.dmx-product-col-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.dmx-check-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0071e3;
	cursor: pointer;
}

.dmx-product-thumb-wrap {
	display: block;
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	flex-shrink: 0;
}

.dmx-product-thumb {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
}

.dmx-no-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 32px;
}

.dmx-product-col-right {
	flex: 1;
	min-width: 0;
}

.dmx-product-title-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 8px;
}

.dmx-product-title {
	font-size: 14.5px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.4;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dmx-product-title:hover {
	color: #0071e3;
}

.dmx-remove-btn {
	color: #94a3b8;
	padding: 2px 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	transition: color 0.15s ease;
	flex-shrink: 0;
}

.dmx-remove-btn:hover {
	color: #dc2626;
}

.dmx-product-variation {
	margin-bottom: 12px;
}

.dmx-product-variation span {
	display: inline-block;
	background: #f1f5f9;
	color: #475569;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}

.dmx-bottom-action-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 12px;
	flex-wrap: wrap;
}

/* Stepper tăng giảm số lượng Điện Máy Xanh */
.dmx-qty-stepper {
	display: inline-flex !important;
	align-items: center !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 6px !important;
	background: #ffffff !important;
	overflow: hidden !important;
	height: 32px !important;
}

.dmx-qty-btn {
	width: 32px !important;
	height: 32px !important;
	min-height: 32px !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #ffffff !important;
	border: none !important;
	color: #334155 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	transition: background 0.15s ease, color 0.15s ease !important;
	line-height: 1 !important;
}

.dmx-qty-btn:hover {
	background: #f1f5f9 !important;
	color: #0071e3 !important;
}

.dmx-qty-input {
	width: 44px !important;
	height: 32px !important;
	min-height: 32px !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: center !important;
	border: none !important;
	border-left: 1px solid #e2e8f0 !important;
	border-right: 1px solid #e2e8f0 !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	color: #0f172a !important;
	background: #ffffff !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	-webkit-appearance: textfield !important;
	-moz-appearance: textfield !important;
	appearance: textfield !important;
}

.dmx-qty-input::-webkit-inner-spin-button,
.dmx-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

/* Giá sản phẩm chữ đỏ đậm nổi bật chuẩn DMX */
.dmx-price-wrap {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

.dmx-item-price {
	font-size: 17px;
	font-weight: 700;
	color: #d70018;
	line-height: 1.2;
}

.dmx-card-footer {
	padding: 14px 20px;
	background: #f8fafc;
	border-top: 1px solid var(--wclite-border);
}

.dmx-btn-continue {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: #475569;
	text-decoration: none !important;
	transition: color 0.15s ease;
}

.dmx-btn-continue:hover {
	color: #0071e3;
}

/* Sidebar bên phải */
.dmx-cart-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dmx-delivery-method-card,
.dmx-coupon-card,
.dmx-payment-detail-card {
	background: #ffffff;
	border: 1px solid var(--wclite-border);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	padding: 18px 20px;
}

/* Box chọn giao hàng */
.dmx-delivery-tabs {
	display: flex;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 12px;
	background: #f8fafc;
}

.dmx-deliv-tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 12px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	margin: 0 !important;
	background: #f8fafc;
	color: #475569;
	transition: all 0.15s ease;
	position: relative;
	user-select: none;
}

.dmx-deliv-tab input,
.dmx-deliv-tab input[type="radio"],
.dmx-deliv-tab input[type="checkbox"] {
	display: none !important;
	position: absolute !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	pointer-events: none !important;
	margin: 0 !important;
	visibility: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

.dmx-radio-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	position: relative;
	display: inline-block;
	flex-shrink: 0;
	transition: all 0.15s ease;
	background: #ffffff;
	box-sizing: border-box;
}

.dmx-deliv-tab.is-active,
.dmx-deliv-tab:has(input:checked) {
	background: #ffffff;
	color: #0071e3;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dmx-deliv-tab.is-active .dmx-radio-dot,
.dmx-deliv-tab:has(input:checked) .dmx-radio-dot {
	border-color: #0071e3;
	background: #0071e3;
	box-shadow: inset 0 0 0 3px #ffffff;
}

.dmx-delivery-address-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #64748b;
	line-height: 1.4;
}

/* Box mã giảm giá */
.dmx-coupon-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14.5px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 10px;
}

.dmx-coupon-form {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: none;
}

.dmx-coupon-input {
	flex: 1;
	height: 38px !important;
	padding: 0 12px !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 6px !important;
	font-size: 13.5px !important;
	text-transform: uppercase;
	outline: none !important;
}

.dmx-coupon-input:focus {
	border-color: #0071e3 !important;
	box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.15) !important;
}

.dmx-btn-coupon {
	padding: 0 16px !important;
	height: 38px !important;
	background: #0f172a !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
	font-size: 13.5px !important;
	cursor: pointer !important;
	transition: background 0.15s ease !important;
}

.dmx-btn-coupon:hover {
	background: #1e293b !important;
}

.dmx-applied-coupons {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dmx-coupon-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.dmx-remove-coupon-btn {
	background: none;
	border: none;
	color: #065f46;
	cursor: pointer;
	padding: 0;
	font-size: 14px;
	line-height: 1;
}

/* Box Chi tiết thanh toán */
.dmx-detail-title {
	margin: 0 0 16px 0;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--wclite-border);
}

.dmx-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	font-size: 14px;
	color: #334155;
}

.dmx-row-label {
	color: #475569;
}

.dmx-row-val {
	font-weight: 600;
	color: #0f172a;
}

.dmx-grand-total-row {
	border-top: 1px dashed var(--wclite-border);
	margin-top: 12px;
	padding-top: 14px;
	align-items: baseline;
}

.dmx-total-label-wrap {
	display: flex;
	flex-direction: column;
}

.dmx-total-label {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.dmx-total-note {
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
}

.dmx-total-amount {
	font-size: 22px;
	font-weight: 800;
	color: #d70018;
}

/* Nút Đặt mua lớn màu xanh chuẩn Điện Máy Xanh */
.dmx-btn-checkout {
	display: block;
	width: 100%;
	padding: 14px 20px;
	background: #0071e3;
	color: #ffffff !important;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none !important;
	margin-top: 18px;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 113, 227, 0.28);
	transition: all 0.2s ease;
}

.dmx-btn-checkout:hover {
	background: #005bb5;
	box-shadow: 0 6px 18px rgba(0, 113, 227, 0.38);
	transform: translateY(-1px);
}

.dmx-btn-checkout:active {
	transform: translateY(0);
}

.dmx-checkout-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	color: #64748b;
	margin: 12px 0 0 0;
	text-align: center;
}

/* Empty cart box */
.wclite-empty-cart-box {
	padding: 60px 20px;
	background: #ffffff;
	border: 1px solid var(--wclite-border);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wclite-empty-cart-box .empty-icon {
	font-size: 54px;
	margin-bottom: 14px;
}

.wclite-empty-cart-box h2 {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 8px;
}

.wclite-empty-cart-box p {
	color: #64748b;
	margin-bottom: 24px;
	font-size: 14px;
}

.btn-back-home {
	padding: 12px 28px;
	font-weight: 700;
	border-radius: 6px;
	font-size: 14.5px;
}

/* ==========================================================================
   2. THANH TOÁN ONE-PAGE CHECKOUT
   ========================================================================== */
.wclite-checkout-wrap {
	margin: 30px auto;
	font-family: inherit;
}

.wclite-checkout-grid {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 30px;
	align-items: start;
}

@media (max-width: 850px) {
	.wclite-checkout-grid {
		grid-template-columns: 1fr;
	}
}

.wclite-card {
	background: #fff;
	border: 1px solid var(--wclite-border);
	border-radius: var(--wclite-radius);
	padding: 24px;
	margin-bottom: 20px;
}

.wclite-card-title {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid var(--wclite-border);
	padding-bottom: 12px;
}

.wclite-form-row {
	margin-bottom: 16px;
}

.wclite-form-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 13px;
}

.wclite-input,
.wclite-select,
.wclite-textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #fff;
}

.wclite-input:focus,
.wclite-select:focus,
.wclite-textarea:focus {
	border-color: var(--wclite-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(210, 110, 75, 0.15);
}

.wclite-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.wclite-row-3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
}

@media (max-width: 600px) {
	.wclite-row-2,
	.wclite-row-3 {
		grid-template-columns: 1fr;
	}
}

/* Payment Selector Cards */
.wclite-payment-methods {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wclite-payment-card {
	border: 1.5px solid var(--wclite-border);
	border-radius: var(--wclite-radius);
	padding: 14px 16px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	transition: all 0.2s;
}

.wclite-payment-card:hover {
	border-color: #cbd5e1;
	background: var(--wclite-bg-light);
}

.wclite-payment-card.active {
	border-color: var(--wclite-primary);
	background: #fdf8f6;
}

.wclite-payment-card input[type="radio"] {
	margin-top: 3px;
	cursor: pointer;
}

.wclite-payment-info strong {
	display: block;
	font-size: 14px;
	margin-bottom: 2px;
}

.wclite-payment-info p {
	margin: 0;
	font-size: 12px;
	color: var(--wclite-text-muted);
}

/* Order Review Items */
.wclite-review-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--wclite-border);
}

.wclite-review-thumb {
	width: 50px;
	height: 50px;
	border-radius: 4px;
	object-fit: cover;
	border: 1px solid var(--wclite-border);
}

.wclite-review-details {
	flex: 1;
}

.wclite-review-title {
	font-weight: 600;
	font-size: 13px;
	line-height: 1.3;
	margin-bottom: 2px;
}

.wclite-review-qty {
	font-size: 12px;
	color: var(--wclite-text-muted);
}

.wclite-review-price {
	font-weight: 600;
	font-size: 14px;
}

/* Place Order Button */
.wclite-btn-submit-order {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 15px;
	background: var(--wclite-primary);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
	margin-top: 20px;
}

.wclite-btn-submit-order:hover {
	background: var(--wclite-primary-hover);
}

.wclite-btn-submit-order:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ==========================================================================
   3. FRONTEND SWATCHES (CHỌN BIẾN THỂ)
   ========================================================================== */
.wclite-swatches-box {
	margin: 20px 0;
}

.wclite-swatch-group {
	margin-bottom: 15px;
}

.wclite-swatch-label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 8px;
}

.wclite-swatches-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wclite-swatch-item {
	padding: 6px 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	background: #fff;
	transition: all 0.2s;
	user-select: none;
}

.wclite-swatch-item:hover {
	border-color: var(--wclite-primary);
}

.wclite-swatch-item.active {
	border-color: var(--wclite-primary);
	background: #fdf8f6;
	color: var(--wclite-primary);
}

.wclite-swatch-item.color-swatch {
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #cbd5e1;
}

.wclite-swatch-item.color-swatch.active {
	box-shadow: 0 0 0 2px var(--wclite-primary);
}

/* ==========================================================================
   4. DRAWER CART (OFF-CANVAS POPUP)
   ========================================================================== */
.wclite-drawer-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wclite-drawer-backdrop.active {
	opacity: 1;
	visibility: visible;
}

.wclite-cart-drawer {
	position: fixed;
	top: 0;
	right: -400px;
	width: 380px;
	max-width: 90vw;
	height: 100%;
	background: #fff;
	z-index: 99999;
	box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
	transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
}

.wclite-cart-drawer.active {
	right: 0;
}

.wclite-drawer-header {
	padding: 16px 20px;
	border-bottom: 1px solid var(--wclite-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.wclite-drawer-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.wclite-drawer-close {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}

.wclite-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
}

.wclite-drawer-footer {
	padding: 20px;
	border-top: 1px solid var(--wclite-border);
	background: var(--wclite-bg-light);
}

/* Spinner & alerts */
.wclite-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.wclite-notice-box {
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 14px;
}
.wclite-notice-box.error {
	background: #fef2f2;
	border-left: 4px solid #ef4444;
	color: #991b1b;
}
.wclite-notice-box.success {
	background: #f0fdf4;
	border-left: 4px solid #22c55e;
	color: #166534;
}

/* ==========================================================================
   Cấu hình Grid Danh mục sản phẩm: Desktop 5 cột, Tablet 3 cột, Mobile 2 cột
   ========================================================================== */
.products.row.large-columns-5 > .col {
	max-width: 20%;
	flex-basis: 20%;
}
@media (max-width: 849px) {
	.products.row.medium-columns-3 > .col {
		max-width: 33.333333% !important;
		flex-basis: 33.333333% !important;
	}
}
@media (max-width: 549px) {
	.products.row.small-columns-2 > .col {
		max-width: 50% !important;
		flex-basis: 50% !important;
	}
}

/* ==========================================================================
   Tối ưu hiển thị Breadcrumbs chuẩn SEO & Rank Math
   ========================================================================== */
.woocommerce-breadcrumb,
.rank-math-breadcrumb {
	margin-bottom: 15px;
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}
.rank-math-breadcrumb p {
	margin: 0;
}
.woocommerce-breadcrumb a,
.rank-math-breadcrumb a {
	color: #000000;
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}
.woocommerce-breadcrumb a:hover,
.rank-math-breadcrumb a:hover {
	color: var(--wclite-primary, #0284c7);
}
.woocommerce-breadcrumb .divider,
.rank-math-breadcrumb .separator {
	margin: 0 6px;
	opacity: 0.5;
	font-weight: 300;
}
.woocommerce-breadcrumb .active,
.rank-math-breadcrumb .last {
	color: #111;
	font-weight: 600;
}

/* =========================================================
   Unified Cart & Checkout (Gom Checkout vào Cart)
   ========================================================= */
.dmx-cart-left-col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dmx-customer-info-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dmx-header-subnote {
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
}

.dmx-customer-form-body {
	margin-top: 14px;
}

/* Tabs chuyển loại khách hàng: Cá nhân vs Doanh nghiệp */
.dmx-customer-type-tabs {
	display: flex;
	background: #f1f5f9;
	padding: 4px;
	border-radius: 9px;
	margin-bottom: 16px;
	gap: 6px;
}

.dmx-type-tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 14px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 7px;
	color: #64748b;
	transition: all 0.2s ease;
	user-select: none;
	margin: 0 !important;
	background: transparent;
}

.dmx-type-tab input[type="radio"] {
	display: none !important;
	position: absolute !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	visibility: hidden !important;
}

.dmx-type-tab.is-active {
	background: #ffffff !important;
	color: #0071e3 !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

/* Khối thông tin công ty & Tra cứu MST */
.dmx-company-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 16px;
	animation: dmxFadeIn 0.25s ease;
}

@keyframes dmxFadeIn {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.dmx-input-with-btn {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.dmx-btn-lookup {
	background: #0071e3 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 0 18px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	transition: background 0.15s ease !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	height: auto !important;
	line-height: normal !important;
}

.dmx-btn-lookup:hover {
	background: #005bb5 !important;
}

.dmx-btn-lookup:disabled {
	background: #94a3b8 !important;
	cursor: not-allowed !important;
}

.dmx-mst-status {
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.45;
}

.dmx-mst-status.is-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.dmx-mst-status.is-warning {
	background: #fffbeb;
	color: #92400e;
	border: 1px solid #fde68a;
}

.dmx-mst-status.is-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.dmx-form-row-2col {
	display: flex;
	gap: 14px;
}

@media (max-width: 768px) {
	.dmx-form-row-2col {
		flex-direction: column;
		gap: 0;
	}
}

.dmx-form-group {
	margin-bottom: 14px;
	flex: 1;
}

.dmx-label {
	font-size: 13.5px;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 6px;
	display: block;
}

.dmx-input,
.dmx-textarea {
	width: 100% !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 8px !important;
	padding: 10px 14px !important;
	font-size: 14px !important;
	color: #0f172a !important;
	outline: none !important;
	transition: all 0.15s ease !important;
	box-sizing: border-box !important;
	background: #ffffff !important;
	height: auto !important;
}

.dmx-input:focus,
.dmx-textarea:focus {
	border-color: #0071e3 !important;
	box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12) !important;
}

.dmx-textarea {
	resize: vertical;
	min-height: 70px;
}

/* Card Phương thức thanh toán */
.dmx-payment-methods-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dmx-section-subtitle {
	font-size: 14.5px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 12px 0;
}

.dmx-payment-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dmx-payment-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	margin: 0 !important;
	background: #f8fafc;
	transition: all 0.15s ease;
	position: relative;
	user-select: none;
}

.dmx-payment-option input,
.dmx-payment-option input[type="radio"] {
	display: none !important;
	position: absolute !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	pointer-events: none !important;
	margin: 0 !important;
	visibility: hidden !important;
}

.dmx-payment-option.is-active {
	border-color: #0071e3;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 113, 227, 0.08);
}

.dmx-payment-option.is-active .dmx-radio-dot {
	border-color: #0071e3;
	background: #0071e3;
	box-shadow: inset 0 0 0 3px #ffffff;
}

.dmx-pay-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dmx-pay-title {
	font-size: 13.5px;
	font-weight: 600;
	color: #0f172a;
}

.dmx-pay-desc {
	font-size: 12px;
	color: #64748b;
	line-height: 1.35;
}

/* Thông báo & Hộp tư vấn */
.wclite-checkout-notices {
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 12px;
	font-size: 13.5px;
	line-height: 1.45;
}

.wclite-checkout-notices.is-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.wclite-checkout-notices.is-success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.dmx-consult-note-box {
	background: #f0f9ff;
	border: 1px dashed #7dd3fc;
	border-radius: 8px;
	padding: 12px 14px;
	margin: 12px 0 16px;
	font-size: 13px;
	color: #0369a1;
	line-height: 1.45;
}

.dmx-consult-note-box p {
	margin: 0;
}

.dmx-price-contact {
	color: #e11d48;
	font-weight: 700;
	font-size: 14px;
}

.dmx-btn-checkout.btn-consultation {
	background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%) !important;
	box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35) !important;
}

.dmx-btn-checkout.btn-consultation:hover {
	background: linear-gradient(135deg, #005bb5 0%, #004494 100%) !important;
}

/* ==========================================================================
   MINI-CART & TƯ VẤN (CONSULTATION BUTTONS)
   ========================================================================== */
.woocommerce-mini-cart__buttons.buttons {
	margin: 12px 0 0 0 !important;
	padding: 0 !important;
}

.woocommerce-mini-cart__buttons.buttons a.button {
	width: 100% !important;
	display: block !important;
	text-align: center !important;
	background: #0071e3 !important;
	color: #ffffff !important;
	border-radius: 8px !important;
	padding: 12px 16px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-transform: none !important;
	box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25) !important;
	border: none !important;
	transition: all 0.2s ease !important;
}

.woocommerce-mini-cart__buttons.buttons a.button:hover {
	background: #005bb5 !important;
	box-shadow: 0 6px 16px rgba(0, 113, 227, 0.35) !important;
}

/* Nút tư vấn nổi bật */
.wclite-btn-consult {
	background: linear-gradient(135deg, #0071e3 0%, #005bb5 100%) !important;
	color: #ffffff !important;
	border-radius: 8px !important;
	padding: 10px 24px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3) !important;
	border: none !important;
	transition: all 0.2s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 160px !important;
}

.wclite-btn-consult:hover {
	background: linear-gradient(135deg, #005bb5 0%, #004494 100%) !important;
	box-shadow: 0 6px 18px rgba(0, 113, 227, 0.4) !important;
	transform: translateY(-1px);
}

/* Spinner quay nhẹ không dùng emoji */
.wclite-spinner-icon {
	display: inline-block;
	width: 13px;
	height: 13px;
	border: 2px solid #ffffff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: wclite-spin 0.6s linear infinite;
	vertical-align: middle;
	margin-right: 4px;
}

@keyframes wclite-spin {
	to { transform: rotate(360deg); }
}

/* Giá liên hệ tư vấn màu đỏ strong */
.dmx-price-contact {
	color: #d70018 !important;
	font-weight: 700 !important;
	font-size: 15px !important;
}

/* ==========================================================================
   POPUP MODAL THÀNH CÔNG (SUCCESS DIALOG)
   ========================================================================== */
.wclite-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wclite-modal-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.wclite-modal-dialog {
	background: #ffffff;
	border-radius: 16px;
	max-width: 480px;
	width: 100%;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
	position: relative;
	transform: scale(0.92) translateY(12px);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
}

.wclite-modal-overlay.is-visible .wclite-modal-dialog {
	transform: scale(1) translateY(0);
}

.wclite-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f1f5f9;
	border: none;
	color: #64748b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
	z-index: 2;
}

.wclite-modal-close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.wclite-modal-body {
	padding: 32px 24px 28px;
	text-align: center;
}

.wclite-modal-icon-wrap {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #dcfce7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.wclite-modal-title {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px 0;
	line-height: 1.35;
}

.wclite-modal-sub {
	font-size: 14px;
	color: #475569;
	margin: 0 0 18px 0;
	line-height: 1.5;
}

.wclite-modal-info-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 16px;
	text-align: left;
}

.wclite-info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 13.5px;
	border-bottom: 1px dashed #e2e8f0;
}

.wclite-info-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.wclite-info-row:first-child {
	padding-top: 0;
}

.wclite-info-label {
	color: #64748b;
	font-weight: 500;
}

.wclite-info-val {
	color: #0f172a;
	font-weight: 600;
	text-align: right;
	max-width: 65%;
	word-break: break-word;
}

.wclite-modal-notice {
	font-size: 13px;
	line-height: 1.5;
	color: #0369a1;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 20px;
	text-align: left;
}

.wclite-modal-actions {
	display: flex;
	gap: 12px;
}

.wclite-btn-modal {
	flex: 1;
	padding: 12px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.15s ease;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wclite-btn-modal.primary {
	background: #0071e3;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.wclite-btn-modal.primary:hover {
	background: #005bb5;
}

.wclite-btn-modal.secondary {
	background: #f1f5f9;
	color: #334155 !important;
}

.wclite-btn-modal.secondary:hover {
	background: #e2e8f0;
	color: #0f172a !important;
}

/* ==========================================================================
   Khung chứa các biến thể liên kết & Bán chéo (Linked Products & Grouped Variants)
   Chuẩn mô hình sàn TMĐT & Modal View Flatsome Lite
   ========================================================================== */

/* Khung chứa các biến thể liên kết */
.linked-product {
	display: flex;
	flex-flow: wrap;
	gap: 10px;
	margin: 14px 0 18px;
	width: 100%;
}
.linked-product-title {
	font-size: 13px;
	font-weight: 700;
	color: #1d2327;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	display: block;
	width: 100%;
}
.item-linked-product {
	font-size: 13px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 8px 12px;
	min-width: 100px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	position: relative;
	overflow: hidden;
	text-decoration: none !important;
	transition: all 0.2s ease;
	cursor: pointer;
}
.item-linked-product:hover {
	border-color: #2271b1;
	transform: translateY(-1px);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}
.item-linked-product span {
	font-size: 13px;
	font-weight: 500;
	color: #2c3338;
	line-height: 1.3;
	margin-bottom: 4px;
}
.item-linked-product strong {
	font-size: 13px;
	color: #d63638;
	font-weight: 700;
}
/* Trạng thái sản phẩm đang xem (Active) */
.item-linked-product.active {
	border-color: #d70018;
	background: #ffffff;
}
.item-linked-product.active span {
	font-weight: 700;
	color: #1d2327;
}
.item-linked-product.active strong {
	color: #d70018;
}
/* Huy hiệu dấu check ở góc trên bên phải (Top-Right Badge) */
.item-linked-product.active:after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 15px;
	height: 14px;
	background: #d70018;
	border-radius: 0 4px 0 8px;
	z-index: 1;
}
.item-linked-product.active:before {
	content: '';
	position: absolute;
	top: 2px;
	right: 4.5px;
	width: 4px;
	height: 7px;
	border: solid #ffffff;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
	z-index: 2;
}

/* Khối Sản phẩm Bán chéo / Phụ kiện mua kèm */
.wclite-cross-sells-wrap {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px dashed #e2e8f0;
}
.wclite-cross-sells-title {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.wclite-cross-sells-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}
.wclite-cross-sell-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	text-decoration: none !important;
	transition: all 0.2s ease;
}
.wclite-cross-sell-item:hover {
	border-color: #0071e3;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transform: translateY(-1px);
}
.wclite-cross-sell-thumb {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
	background: #ffffff;
}
.wclite-cross-sell-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.wclite-cross-sell-name {
	font-size: 12px;
	font-weight: 600;
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}
.wclite-cross-sell-price {
	font-size: 12px;
	font-weight: 700;
	color: #dc2626;
}

/* Tối ưu riêng cho Modal View / Quick View của Flatsome Lite */
.flatsome-product-view-container .linked-product,
#flatsome-product-view-container .linked-product,
#flatsomeProductViewContent .linked-product,
body.flatsome-product-view-active .linked-product,
.product-lightbox-inner .linked-product,
.product-quick-view-container .linked-product,
.mfp-content .linked-product {
	gap: 8px;
	margin: 10px 0 14px;
}
.flatsome-product-view-container .item-linked-product,
#flatsome-product-view-container .item-linked-product,
#flatsomeProductViewContent .item-linked-product,
body.flatsome-product-view-active .item-linked-product,
.product-lightbox-inner .item-linked-product,
.product-quick-view-container .item-linked-product,
.mfp-content .item-linked-product {
	padding: 6px 10px;
	min-width: 90px;
	font-size: 12.5px;
}
.flatsome-product-view-container .item-linked-product span,
#flatsome-product-view-container .item-linked-product span,
#flatsomeProductViewContent .item-linked-product span,
body.flatsome-product-view-active .item-linked-product span,
.product-lightbox-inner .item-linked-product span,
.product-quick-view-container .item-linked-product span,
.mfp-content .item-linked-product span {
	font-size: 12px;
}
.flatsome-product-view-container .item-linked-product strong,
#flatsome-product-view-container .item-linked-product strong,
#flatsomeProductViewContent .item-linked-product strong,
body.flatsome-product-view-active .item-linked-product strong,
.product-lightbox-inner .item-linked-product strong,
.product-quick-view-container .item-linked-product strong,
.mfp-content .item-linked-product strong {
	font-size: 12px;
}





/* Khối Bán thêm / Nâng cấp (Upsells) */
.wclite-upsells-wrap {
	margin: 28px 0;
	padding: 18px 20px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.wclite-upsells-header {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 2px solid #f1f5f9;
	padding-bottom: 10px;
}
.wclite-upsells-grid {
	display: grid;
	grid-template-columns: repeat(var(--wclite-upsell-cols, 4), 1fr);
	gap: 14px;
}
@media (max-width: 768px) {
	.wclite-upsells-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px;
	}
}
.wclite-upsell-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none !important;
	background: #ffffff;
	transition: all 0.2s ease-in-out;
}
.wclite-upsell-card:hover {
	border-color: #0284c7;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
	transform: translateY(-2px);
}
.wclite-upsell-thumb-wrap {
	width: 100%;
	padding-top: 100%;
	position: relative;
	background: #f8fafc;
}
.wclite-upsell-thumb-wrap img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wclite-upsell-info {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.wclite-upsell-name {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 6px;
}
.wclite-upsell-price {
	font-size: 13px;
	font-weight: 700;
	color: #dc2626;
	margin-top: auto;
}
