/* ==========================================================================
   DC Quick Order — Frontend
   Tuned to the Loxhome theme:
   - Primary:   #000000
   - Secondary: #ff0004
   - Body bg:   #fafafa
   - Font:      Averta Regular / Averta Bold (theme-loaded, we inherit)
   - Buttons:   8px radius, 8/24 padding, color+background transitions
   - Inputs:    1px solid secondary, 8px radius, 44px min-height
   ========================================================================== */

.dcqo-app {
	--dcqo-primary: #000000;
	--dcqo-secondary: #ff0004;
	--dcqo-bg: #fafafa;
	--dcqo-surface: #ffffff;
	--dcqo-light-grey: #F7F7F7;
	--dcqo-dark-grey: #3E3E3E;
	--dcqo-border: #e5e5e5;
	--dcqo-border-strong: #d4d4d4;
	--dcqo-text: #000000;
	--dcqo-text-muted: #6b6b6b;
	--dcqo-danger: #dc3545;
	--dcqo-success: #198754;
	--dcqo-radius: 8px;
	--dcqo-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
	--dcqo-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	--dcqo-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
	--dcqo-transition: 0.3s ease;

	color: var(--dcqo-text);
	font-family: inherit; /* Averta Regular from theme */
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	display: block;
	clear: both;
}

/* Reset every block-level table element back to table-display
   in case the theme/WC overrides table layout further up. */
.dcqo-app .dcqo-table {
	display: table !important;
	width: 100% !important;
	table-layout: auto !important;
}
.dcqo-app .dcqo-table thead { display: table-header-group !important; }
.dcqo-app .dcqo-table tbody { display: table-row-group !important; }
.dcqo-app .dcqo-table tr { display: table-row !important; }
.dcqo-app .dcqo-table th,
.dcqo-app .dcqo-table td { display: table-cell !important; }

.dcqo-app *,
.dcqo-app *::before,
.dcqo-app *::after {
	box-sizing: border-box;
}

/* ----- Toolbar ---------------------------------------------------------- */

.dcqo-toolbar {
	background: var(--dcqo-surface);
	border: 1px solid var(--dcqo-border);
	border-radius: var(--dcqo-radius);
	padding: 20px;
	margin-bottom: 24px;
}

.dcqo-toolbar__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
}

/* Search takes most of the space; select + button pair side-by-side. */
.dcqo-toolbar__row > .dcqo-search {
	flex: 1 1 280px;
}

.dcqo-toolbar__row > .dcqo-select {
	flex: 1 1 200px;
	max-width: 320px;
}

.dcqo-toolbar__row > .dcqo-btn {
	flex: 0 0 auto;
}

@media (max-width: 575px) {
	.dcqo-toolbar__row > .dcqo-search,
	.dcqo-toolbar__row > .dcqo-select,
	.dcqo-toolbar__row > .dcqo-btn {
		flex: 1 1 100%;
		max-width: none;
	}
}

.dcqo-search {
	position: relative;
	min-width: 0;
}

.dcqo-search__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: var(--dcqo-secondary);
	pointer-events: none;
}

.dcqo-search__input {
	width: 100%;
	min-height: 44px;
	padding: 12px 16px 12px 44px;
	border: 1px solid var(--dcqo-secondary);
	border-radius: var(--dcqo-radius);
	background: var(--dcqo-surface);
	font-size: 16px;
	font-family: inherit;
	color: var(--dcqo-text);
	line-height: 1;
	outline: none;
	transition: border-color var(--dcqo-transition);
}

.dcqo-search__input:focus {
	border-color: var(--dcqo-primary);
}

.dcqo-select {
	width: 100%;
	min-height: 44px;
	padding: 12px 40px 12px 16px;
	border: 1px solid var(--dcqo-secondary);
	border-radius: var(--dcqo-radius);
	background: var(--dcqo-surface)
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>")
		no-repeat right 16px center;
	font-size: 16px;
	font-family: inherit;
	color: var(--dcqo-text);
	appearance: none;
	cursor: pointer;
	outline: none;
	transition: border-color var(--dcqo-transition);
	line-height: 1;
}

.dcqo-select:focus {
	border-color: var(--dcqo-primary);
}

/* ----- Buttons (matching theme .button conventions) -------------------- */

.dcqo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 24px;
	border: 1px solid transparent;
	border-radius: var(--dcqo-radius);
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
	transition: color var(--dcqo-transition), background var(--dcqo-transition), border-color var(--dcqo-transition);
	white-space: nowrap;
}

.dcqo-btn i,
.dcqo-btn svg {
	transition: transform var(--dcqo-transition);
}

.dcqo-btn:hover svg.dcqo-btn__arrow,
.dcqo-btn:hover i.dcqo-btn__arrow {
	transform: translateX(5px);
}

/* Primary = secondary blue (matches checkout-button etc.) */
.dcqo-btn--primary {
	border: 1px solid var(--dcqo-secondary);
	background: var(--dcqo-secondary);
	color: #fff;
}

.dcqo-btn--primary:hover {
	border-color: var(--dcqo-primary);
	background: var(--dcqo-primary);
	color: #fff;
}

.dcqo-btn--primary:disabled {
	border-color: var(--dcqo-border-strong);
	background: var(--dcqo-border-strong);
	color: #fff;
	cursor: not-allowed;
}

.dcqo-btn--primary:disabled:hover {
	border-color: var(--dcqo-border-strong);
	background: var(--dcqo-border-strong);
}

/* Outline = transparent with primary border (theme button--outline.button--dark) */
.dcqo-btn--outline {
	border: 1px solid var(--dcqo-primary);
	background: transparent;
	color: var(--dcqo-primary);
}

.dcqo-btn--outline:hover {
	background: var(--dcqo-primary);
	color: #fff;
}

.dcqo-btn--block {
	width: 100%;
}

.dcqo-btn--small {
	min-height: 36px;
	padding: 6px 16px;
	font-size: 14px;
}

.dcqo-btn[hidden] {
	display: none !important;
}

/* ----- Bulk panel ------------------------------------------------------- */

.dcqo-bulk {
	margin-top: 20px;
	padding: 20px;
	background: var(--dcqo-light-grey);
	border: 1px dashed var(--dcqo-border-strong);
	border-radius: var(--dcqo-radius);
}

.dcqo-bulk__label {
	display: block;
	font-family: inherit;
	font-weight: 400;
	font-size: 16px;
	margin-bottom: 8px;
	color: var(--dcqo-text);
}

.dcqo-bulk__input {
	width: 100%;
	min-height: 130px;
	padding: 12px 16px;
	border: 1px solid var(--dcqo-secondary);
	border-radius: var(--dcqo-radius);
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 14px;
	line-height: 1.6;
	color: var(--dcqo-text);
	background: var(--dcqo-surface);
	outline: none;
	resize: vertical;
	transition: border-color var(--dcqo-transition);
}

.dcqo-bulk__input:focus {
	border-color: var(--dcqo-primary);
}

.dcqo-bulk__actions {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-top: 16px;
	flex-wrap: wrap;
}

.dcqo-bulk__feedback {
	font-size: 14px;
	color: var(--dcqo-text-muted);
}

.dcqo-bulk__feedback strong {
	color: var(--dcqo-text);
}

.dcqo-bulk__feedback .dcqo-unresolved {
	color: var(--dcqo-danger);
}

/* ----- Layout grid ------------------------------------------------------ */

.dcqo-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 24px;
	align-items: flex-start;
	width: 100%;
}

/* Stack earlier — at < 1200px the table gets too cramped next to a 360px sidebar. */
@media (max-width: 1199px) {
	.dcqo-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* Every direct child must allow shrinking; otherwise the table can blow out
   the column width and overflow the toolbar/page wrapper. */
.dcqo-layout > * {
	min-width: 0;
	max-width: 100%;
}

/* ---- Theme escape hatch ------------------------------------------------
   If the user inserted [dc_quick_order] inside the theme's "shortcode"
   ACF component (which wraps it in col-xl-5 / shortcode-container with
   justify-content: flex-end), break out so the app gets the full width
   of the parent .container. This is a one-shot defensive override —
   harmless when the plugin lives in a normal text/full-width slot. */
.shortcode-container .dcqo-app,
.shortcode__wrapper .dcqo-app {
	width: 100%;
	max-width: none;
}

.shortcode-container:has(.dcqo-app) {
	display: block !important;
	justify-content: flex-start !important;
	width: 100%;
}

/* When grandparent is a Bootstrap col, neutralize its width clamp via
   CSS variable trick (only inside our app's container). The user should
   ideally use a full-width text component, but this softens the blow. */
[class*="col-xl-5"]:has(> .shortcode__wrapper > .shortcode-container > .dcqo-app),
[class*="col-xl-5"]:has(> .shortcode-container > .dcqo-app) {
	flex: 0 0 100% !important;
	max-width: 100% !important;
}

/* ----- Results panel ---------------------------------------------------- */

.dcqo-results {
	background: var(--dcqo-surface);
	border: 1px solid var(--dcqo-border);
	border-radius: var(--dcqo-radius);
	overflow: hidden;
	min-width: 0;
	max-width: 100%;
}

.dcqo-results__header {
	padding: 16px 24px;
	border-bottom: 1px solid var(--dcqo-border);
	background: var(--dcqo-light-grey);
	font-size: 14px;
	color: var(--dcqo-text-muted);
}

.dcqo-results__count strong {
	color: var(--dcqo-text);
	font-family: inherit;
	font-weight: 700; /* Averta Bold via numeric weight */
}

.dcqo-table-wrap {
	overflow-x: auto;
	width: 100%;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
}

.dcqo-table {
	width: 100%;
	min-width: 600px; /* fits comfortably in tablet-stacked layouts */
	border-collapse: collapse;
	font-size: 15px;
	margin: 0;
}

.dcqo-table th,
.dcqo-table td {
	padding: 16px 16px;
	text-align: left;
	border-bottom: 1px solid var(--dcqo-border);
	vertical-align: middle;
	overflow-wrap: break-word;
}

.dcqo-table th {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--dcqo-text-muted);
	background: var(--dcqo-light-grey);
	border-bottom: 1px solid var(--dcqo-border);
}

.dcqo-th--img { width: 72px; }
.dcqo-th--price { width: 140px; text-align: right; }
.dcqo-th--qty { width: 130px; }
.dcqo-th--action { width: 60px; text-align: right; }

.dcqo-table tbody tr {
	transition: background 0.15s ease;
}

.dcqo-table tbody tr:hover {
	background: var(--dcqo-light-grey);
}

.dcqo-row--loading td,
.dcqo-row--empty td {
	padding: 48px 20px;
	text-align: center;
	color: var(--dcqo-text-muted);
}

.dcqo-thumb {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: var(--dcqo-radius);
	background: var(--dcqo-light-grey);
	display: block;
}

.dcqo-product__name {
	font-family: inherit;
	font-weight: 700; /* Averta Bold */
	color: var(--dcqo-text);
	text-decoration: none;
	line-height: 1.3;
	display: block;
	overflow-wrap: break-word;
	transition: color var(--dcqo-transition);
}

.dcqo-product__name:hover {
	color: var(--dcqo-secondary);
	text-decoration: none;
}

.dcqo-product__variant-select {
	margin-top: 8px;
	width: 100%;
	max-width: 320px;
	min-height: 36px;
	padding: 6px 32px 6px 12px;
	border: 1px solid var(--dcqo-secondary);
	border-radius: var(--dcqo-radius);
	background: var(--dcqo-surface)
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>")
		no-repeat right 10px center;
	font-size: 14px;
	font-family: inherit;
	color: var(--dcqo-text);
	appearance: none;
	cursor: pointer;
	outline: none;
	line-height: 1.2;
	transition: border-color var(--dcqo-transition);
}

.dcqo-product__variant-select:focus {
	border-color: var(--dcqo-primary);
}

.dcqo-product__sku {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 13px;
	color: var(--dcqo-text-muted);
}

.dcqo-product__price {
	text-align: right;
	font-family: inherit;
	font-weight: 700; /* Averta Bold */
	color: var(--dcqo-text);
	white-space: nowrap;
}

.dcqo-product__price .woocommerce-Price-amount {
	color: inherit;
	font-weight: inherit;
}

.dcqo-product__price del {
	color: var(--dcqo-text-muted);
	font-weight: 400;
	margin-right: 6px;
}

.dcqo-product__price ins {
	text-decoration: none;
	background: transparent;
}

.dcqo-stock--out {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(220, 53, 69, 0.1);
	color: var(--dcqo-danger);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-top: 6px;
	white-space: nowrap;
}

/* ----- Quantity stepper (mirrors WC quantity selector) ----------------- */

.dcqo-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--dcqo-secondary);
	border-radius: var(--dcqo-radius);
	overflow: hidden;
	background: var(--dcqo-surface);
}

.dcqo-qty__btn {
	width: 36px;
	border: 0;
	background: var(--dcqo-surface);
	color: var(--dcqo-text);
	font-size: 18px;
	font-weight: 400;
	cursor: pointer;
	padding: 0;
	transition: background var(--dcqo-transition), color var(--dcqo-transition);
	font-family: inherit;
	line-height: 1;
}

.dcqo-qty__btn:hover {
	background: var(--dcqo-primary);
	color: #fff;
}

.dcqo-qty__input {
	width: 48px;
	min-height: 36px;
	border: 0;
	border-left: 1px solid var(--dcqo-border);
	border-right: 1px solid var(--dcqo-border);
	background: transparent;
	text-align: center;
	font-size: 14px;
	font-weight: 400;
	color: var(--dcqo-text);
	font-family: inherit;
	-moz-appearance: textfield;
	outline: none;
}

.dcqo-qty__input::-webkit-outer-spin-button,
.dcqo-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ----- Add button (icon only) ------------------------------------------ */

.dcqo-add-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--dcqo-secondary);
	border-radius: var(--dcqo-radius);
	background: transparent;
	color: var(--dcqo-secondary);
	cursor: pointer;
	transition: background var(--dcqo-transition), border-color var(--dcqo-transition), color var(--dcqo-transition);
	padding: 0;
}

.dcqo-add-btn:hover:not(:disabled) {
	background: var(--dcqo-secondary);
	border-color: var(--dcqo-secondary);
	color: #fff;
}

.dcqo-add-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	border-color: var(--dcqo-border-strong);
	color: var(--dcqo-text-muted);
}

.dcqo-add-btn.is-added {
	background: var(--dcqo-secondary);
	border-color: var(--dcqo-secondary);
	color: #fff;
}

.dcqo-add-btn svg {
	width: 18px;
	height: 18px;
}

.dcqo-add-btn i {
	font-size: 16px;
}

/* ----- Pagination ------------------------------------------------------- */

.dcqo-pagination {
	display: flex;
	gap: 6px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	padding: 16px;
	border-top: 1px solid var(--dcqo-border);
	background: var(--dcqo-light-grey);
	max-width: 100%;
	overflow: hidden;
}

.dcqo-pagination__btn {
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--dcqo-border-strong);
	border-radius: var(--dcqo-radius);
	background: var(--dcqo-surface);
	color: var(--dcqo-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
	transition: background var(--dcqo-transition), color var(--dcqo-transition), border-color var(--dcqo-transition);
}

.dcqo-pagination__btn:hover:not(:disabled) {
	background: var(--dcqo-primary);
	border-color: var(--dcqo-primary);
	color: #fff;
}

.dcqo-pagination__btn[aria-current="page"] {
	background: var(--dcqo-secondary);
	border-color: var(--dcqo-secondary);
	color: #fff;
}

.dcqo-pagination__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.dcqo-pagination__ellipsis {
	padding: 0 6px;
	color: var(--dcqo-text-muted);
}

/* ----- Order list (sidebar) -------------------------------------------- */

.dcqo-list {
	background: var(--dcqo-surface);
	border: 1px solid var(--dcqo-border);
	border-radius: var(--dcqo-radius);
	overflow: hidden;
	position: sticky;
	top: 72px;
	max-height: calc(100vh - 96px);
	display: flex;
	flex-direction: column;
	min-width: 0;
	max-width: 100%;
}

@media (max-width: 1199px) {
	.dcqo-list {
		position: static;
		max-height: none;
	}
}

.dcqo-list__header {
	padding: 16px 24px;
	background: var(--dcqo-primary);
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.dcqo-list__title {
	margin: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

.dcqo-list__count {
	background: var(--dcqo-secondary);
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	min-width: 32px;
	text-align: center;
	color: #fff;
}

.dcqo-list__body {
	flex: 1;
	overflow-y: auto;
	padding: 8px;
	min-height: 100px;
}

.dcqo-list__empty {
	text-align: center;
	color: var(--dcqo-text-muted);
	font-size: 14px;
	padding: 40px 20px;
	margin: 0;
}

.dcqo-list-item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	gap: 12px;
	padding: 12px;
	border-radius: var(--dcqo-radius);
	align-items: center;
	transition: background 0.15s;
}

.dcqo-list-item + .dcqo-list-item {
	border-top: 1px solid var(--dcqo-border);
}

.dcqo-list-item__img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: var(--dcqo-radius);
	background: var(--dcqo-light-grey);
}

.dcqo-list-item__body {
	min-width: 0;
}

.dcqo-list-item__name {
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--dcqo-text);
	margin: 0 0 2px;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.dcqo-list-item__meta {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 12px;
	color: var(--dcqo-text-muted);
}

.dcqo-list-item__variant {
	font-size: 12px;
	color: var(--dcqo-text-muted);
	margin-top: 2px;
}

.dcqo-list-item__qty {
	display: flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.dcqo-list-item__qty .dcqo-qty__input {
	width: 52px;
	min-height: 32px;
	border: 1px solid var(--dcqo-border-strong);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
}

.dcqo-list-item__remove {
	border: 0;
	background: transparent;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	color: var(--dcqo-text-muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background var(--dcqo-transition), color var(--dcqo-transition);
	padding: 0;
}

.dcqo-list-item__remove:hover {
	background: rgba(220, 53, 69, 0.1);
	color: var(--dcqo-danger);
}

.dcqo-list-item__remove svg,
.dcqo-list-item__remove i {
	width: 14px;
	height: 14px;
	font-size: 13px;
}

.dcqo-list__footer {
	padding: 20px;
	border-top: 1px solid var(--dcqo-border);
	background: var(--dcqo-light-grey);
}

.dcqo-list__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--dcqo-text-muted);
}

.dcqo-list__total strong {
	color: var(--dcqo-text);
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
}

/* ----- Toast ------------------------------------------------------------ */

.dcqo-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: var(--dcqo-primary);
	color: #fff;
	padding: 16px 24px;
	border-radius: var(--dcqo-radius);
	box-shadow: var(--dcqo-shadow-lg);
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 16px;
	animation: dcqo-toast-in 0.3s ease-out;
	max-width: 420px;
}

.dcqo-toast--success {
	background: var(--dcqo-secondary);
}

.dcqo-toast--error {
	background: var(--dcqo-danger);
}

.dcqo-toast a {
	color: #fff;
	text-decoration: underline;
	font-weight: 700;
	margin-left: auto;
	white-space: nowrap;
	transition: color var(--dcqo-transition);
}

.dcqo-toast a:hover {
	color: var(--dcqo-primary);
}

@keyframes dcqo-toast-in {
	from { transform: translateY(20px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

/* ----- Mobile / tablet card layout ------------------------------------- */

@media (max-width: 991px) {
	.dcqo-toolbar {
		padding: 16px;
	}

	/* Drop the table-min-width and remove horizontal scroll on mobile. */
	.dcqo-app .dcqo-table {
		min-width: 0 !important;
	}

	.dcqo-table-wrap {
		overflow-x: visible;
	}

	/* Convert table rows into cards. */
	.dcqo-app .dcqo-table,
	.dcqo-app .dcqo-table tbody {
		display: block !important;
		width: 100% !important;
	}

	.dcqo-app .dcqo-table thead {
		display: none !important;
	}

	.dcqo-app .dcqo-table tr {
		display: grid !important;
		grid-template-columns: 64px minmax(0, 1fr) auto;
		grid-template-areas:
			"img   name   action"
			"img   sku    sku"
			"price price  price"
			"qty   qty    qty";
		gap: 8px 12px;
		padding: 16px;
		border-bottom: 1px solid var(--dcqo-border);
		background: var(--dcqo-surface);
		align-items: start;
	}

	.dcqo-app .dcqo-table tr:hover {
		background: var(--dcqo-surface);
	}

	.dcqo-app .dcqo-table td {
		display: block !important;
		padding: 0 !important;
		border: 0 !important;
		width: auto !important;
	}

	/* Grid area assignments. */
	.dcqo-app .dcqo-table .dcqo-td--img    { grid-area: img; }
	.dcqo-app .dcqo-table .dcqo-td--name   { grid-area: name; align-self: center; }
	.dcqo-app .dcqo-table .dcqo-product__sku { grid-area: sku; }
	.dcqo-app .dcqo-table .dcqo-product__price { grid-area: price; }
	.dcqo-app .dcqo-table .dcqo-td--qty    { grid-area: qty; }
	.dcqo-app .dcqo-table .dcqo-td--action { grid-area: action; align-self: center; }

	/* Mobile labels for sku/price/qty rows. */
	.dcqo-app .dcqo-table .dcqo-product__sku::before,
	.dcqo-app .dcqo-table .dcqo-product__price::before,
	.dcqo-app .dcqo-table .dcqo-td--qty::before {
		content: attr(data-label) ":";
		display: inline-block;
		font-family: inherit;
		font-weight: 700;
		font-size: 12px;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		color: var(--dcqo-text-muted);
		margin-right: 8px;
		min-width: 80px;
	}

	.dcqo-app .dcqo-table .dcqo-product__sku {
		display: flex !important;
		align-items: center;
		font-family: inherit;
		font-size: 14px;
		color: var(--dcqo-text);
	}

	.dcqo-app .dcqo-table .dcqo-product__sku::after {
		content: attr(data-sku-text);
	}

	.dcqo-app .dcqo-table .dcqo-product__price {
		display: flex !important;
		align-items: center;
		justify-content: flex-start;
		text-align: left;
		padding-top: 8px !important;
		border-top: 1px dashed var(--dcqo-border) !important;
	}

	.dcqo-app .dcqo-table .dcqo-td--qty {
		display: flex !important;
		align-items: center;
	}

	.dcqo-app .dcqo-table .dcqo-thumb {
		width: 64px;
		height: 64px;
	}

	.dcqo-app .dcqo-table .dcqo-product__variant-select {
		max-width: 100%;
	}

	.dcqo-stock--out {
		margin-top: 8px;
	}
}

@media (max-width: 575px) {
	.dcqo-toast {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: none;
	}

	.dcqo-app .dcqo-table tr {
		grid-template-columns: 56px minmax(0, 1fr) auto;
		padding: 12px;
	}

	.dcqo-app .dcqo-table .dcqo-thumb {
		width: 56px;
		height: 56px;
	}
}
