/* =========================================================
   Wholix — frontend
   ========================================================= */

/* ---- Minimum notice & badges (product page) ---- */
.wholix-min-notice { margin: 8px 0 14px; }
.wholix-badge {
	display: inline-block;
	background: #f0f0f1;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 4px 10px;
	font-size: 0.85em;
	font-weight: 600;
	color: #1d2327;
	margin-right: 6px;
}

/* ---- Tiered price table (simple products) ---- */
.wholix-price-table { margin: 16px 0; }
.wholix-price-table h4 {
	margin: 0 0 8px;
	font-size: 1em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.wholix-variation-name { font-weight: 600; margin: 10px 0 4px; }
.wholix-tiers-front {
	width: 100%; max-width: 360px;
	border-collapse: collapse; margin-bottom: 10px;
}
.wholix-tiers-front th, .wholix-tiers-front td {
	border: 1px solid #e2e2e2; padding: 6px 12px; text-align: left;
}
.wholix-tiers-front thead th {
	background: #fafafa; font-size: 0.85em;
	text-transform: uppercase; letter-spacing: 0.03em;
}

/* =========================================================
   SIZE MATRIX — modern ordering grid
   ========================================================= */
.wholix-matrix {
	--ws-ink: #16161d;
	--ws-muted: #6b7184;
	--ws-faint: #aeb3c2;
	--ws-line: #e8e9ef;
	--ws-line-strong: #d7d9e2;
	--ws-na-line: #cdd0da;
	--ws-na-bg: #f4f5f8;
	--ws-surface: #ffffff;
	--ws-surface-2: #f6f7fa;
	--ws-accent: #6c3ce0;
	--ws-accent-hover: #5a2fc4;
	--ws-accent-soft: rgba(108, 60, 224, 0.09);
	--ws-filled-bg: rgba(108, 60, 224, 0.09);
	--ws-accent-ring: rgba(108, 60, 224, 0.30);
	--ws-success: #12a150;
	--ws-success-soft: rgba(18, 161, 80, 0.10);
	--ws-danger: #e5484d;
	--ws-radius: 16px;
	--ws-radius-sm: 10px;
	--ws-cell: 58px;
	--ws-rowhead: 132px;

	margin: 18px 0 26px;
	color: var(--ws-ink);
	font-feature-settings: "tnum" 1, "lnum" 1;
	-webkit-font-smoothing: antialiased;
}
.wholix-matrix *,
.wholix-matrix *::before,
.wholix-matrix *::after { box-sizing: border-box; }

/* ---- Grid card ---- */
.ws-grid-wrap {
	position: relative;
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	background: var(--ws-surface);
	box-shadow: 0 1px 2px rgba(20, 22, 40, 0.04), 0 8px 24px -16px rgba(20, 22, 40, 0.18);
	overflow: hidden;
}
.ws-grid-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.ws-grid-scroll::-webkit-scrollbar { height: 8px; }
.ws-grid-scroll::-webkit-scrollbar-thumb { background: var(--ws-line-strong); border-radius: 99px; }

/* edge fades to signal horizontal scroll */
.ws-grid-wrap::before,
.ws-grid-wrap::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 28px;
	pointer-events: none; opacity: 0; transition: opacity .2s ease; z-index: 4;
}
.ws-grid-wrap::before { left: var(--ws-rowhead); background: linear-gradient(90deg, rgba(20,22,40,.07), transparent); }
.ws-grid-wrap::after  { right: 0; background: linear-gradient(270deg, rgba(20,22,40,.07), transparent); }
.ws-grid-wrap.is-scroll-start::before { opacity: 1; }
.ws-grid-wrap.is-scroll-end::after    { opacity: 1; }

.ws-grid {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	table-layout: auto;
}

/* headers */
.ws-grid thead th {
	position: sticky; top: 0; z-index: 3;
	background: var(--ws-surface-2);
	color: var(--ws-muted);
	font-size: 11px; font-weight: 700;
	letter-spacing: 0.06em; text-transform: uppercase;
	padding: 12px 8px;
	border-bottom: 1px solid var(--ws-line);
	white-space: nowrap;
}
.ws-colhead { min-width: var(--ws-cell); text-align: center !important; }
.wholix-matrix .ws-colhead .ws-head { justify-content: center; }

.ws-corner {
	left: 0; z-index: 5;
	width: var(--ws-rowhead); min-width: var(--ws-rowhead);
	text-align: left; line-height: 1.25;
	border-right: 1px solid var(--ws-line);
}
.ws-corner-col { display: block; color: var(--ws-faint); font-size: 10px; }
.ws-corner-row { display: block; color: var(--ws-ink); font-size: 12px; }

/* row head (e.g. colour) */
.ws-rowhead {
	position: sticky; left: 0; z-index: 2;
	background: var(--ws-surface);
	width: var(--ws-rowhead); min-width: var(--ws-rowhead); max-width: var(--ws-rowhead);
	text-align: left; font-weight: 600; font-size: 13px; color: var(--ws-ink);
	padding: 8px 12px;
	border-right: 1px solid var(--ws-line);
	border-bottom: 1px solid var(--ws-line);
	line-height: 1.25;
	overflow: hidden;
}
.ws-grid tbody tr:hover .ws-rowhead { background: var(--ws-surface-2); }

/* cells */
.ws-cell {
	position: relative;
	padding: 6px;
	text-align: center;
	border-bottom: 1px solid var(--ws-line);
	background: var(--ws-surface);
	transition: background .15s ease;
}
.ws-grid tbody tr:hover .ws-cell { background: #fcfcfd; }
.ws-cell.is-filled,
.ws-grid tbody tr:hover .ws-cell.is-filled { background: var(--ws-filled-bg); }
.ws-cell-na { background: var(--ws-surface-2); }
/* disabled "box" used for non-existent combos and out-of-stock cells */
.ws-na-box {
	display: inline-flex; align-items: center; justify-content: center;
	position: relative; overflow: hidden;
	width: var(--ws-cell); max-width: 100%; height: 38px;
	border: 1.5px solid var(--ws-line);
	border-radius: var(--ws-radius-sm);
	background: var(--ws-na-bg);
	color: var(--ws-faint);
	cursor: not-allowed;
	user-select: none;
}
.ws-na-line { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ws-na-line line { stroke: var(--ws-na-line); stroke-width: 1.5; }
.ws-na-out { font-size: 15px; font-weight: 700; line-height: 1; }

/* number input */
.ws-input {
	width: var(--ws-cell);
	max-width: 100%;
	height: 38px;
	padding: 0 4px;
	text-align: center;
	font-size: 15px; font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--ws-ink);
	background: var(--ws-surface);
	border: 1.5px solid var(--ws-line-strong);
	border-radius: var(--ws-radius-sm);
	-webkit-appearance: none; -moz-appearance: textfield; appearance: textfield;
	transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.ws-input::-webkit-outer-spin-button,
.ws-input::-webkit-inner-spin-button { -webkit-appearance: none !important; appearance: none !important; margin: 0; display: none; }
.ws-input:hover { border-color: var(--ws-muted); }
.ws-input:focus,
.ws-input:focus-visible {
	outline: none;
	border-color: var(--ws-accent);
	box-shadow: 0 0 0 3px var(--ws-accent-ring);
}
.is-filled .ws-input { border-color: var(--ws-accent); color: var(--ws-accent); }
.ws-input.is-zero { color: var(--ws-faint); }
.ws-input::placeholder { color: var(--ws-faint); opacity: 1; }

.ws-cell-hint {
	position: absolute; top: 3px; right: 5px;
	font-size: 9px; font-weight: 700; line-height: 1;
	color: var(--ws-faint);
	pointer-events: none;
}

/* ---- List layout (fallback / single attribute) ---- */
.ws-list {
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	background: var(--ws-surface);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(20,22,40,.04), 0 8px 24px -16px rgba(20,22,40,.18);
}
.ws-list-row {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--ws-line);
	transition: background .15s ease;
}
.ws-list-row:last-child { border-bottom: 0; }
.ws-list-row:hover { background: var(--ws-surface-2); }
.ws-list-row.is-filled { background: var(--ws-filled-bg); }
.ws-list-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ws-list-name { font-weight: 600; font-size: 14px; }
.ws-list-price { font-size: 13px; color: var(--ws-muted); }
.ws-list-input .ws-input { width: 76px; }

/* ---- Order bar (signature) ---- */
.ws-bar {
	display: flex; align-items: center; gap: 18px; flex-wrap: nowrap;
	margin-top: 16px; padding: 14px 16px;
	background: var(--ws-surface);
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	box-shadow: 0 1px 2px rgba(20,22,40,.04), 0 10px 30px -18px rgba(20,22,40,.30);
}
.ws-bar-info { display: flex; align-items: center; gap: 18px; min-width: 0; }
.ws-bar-units { display: flex; align-items: baseline; gap: 6px; }
.ws-units-num { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.ws-units-label { font-size: 13px; color: var(--ws-muted); }

.ws-progress { min-width: 116px; }
.ws-progress-track {
	height: 6px; border-radius: 99px; background: var(--ws-line);
	overflow: hidden; margin-bottom: 5px;
}
.ws-progress-fill {
	display: block; height: 100%; width: 0;
	background: var(--ws-accent); border-radius: 99px;
	transition: width .25s ease, background .25s ease;
}
.ws-progress.is-complete .ws-progress-fill { background: var(--ws-success); }
.ws-progress-text { font-size: 11px; color: var(--ws-muted); font-weight: 600; }
.ws-progress.is-complete .ws-progress-text { color: var(--ws-success); }

.ws-bar-pricing { margin-left: auto; text-align: right; line-height: 1.2; white-space: nowrap; }
.ws-unit-price { display: block; font-size: 12px; color: var(--ws-muted); min-height: 14px; }
.ws-total-price { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.ws-tax-note { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--ws-faint); text-transform: uppercase; letter-spacing: 0.04em; }

.wholix-matrix .ws-add {
	flex: 0 0 auto;
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 48px; padding: 0 26px;
	font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: 0.01em;
	color: #fff;
	background-color: var(--ws-accent);
	background-image: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 46%);
	border: 0; border-radius: 12px; cursor: pointer;
	box-shadow: 0 1px 1px rgba(20,22,40,.16),
	            0 12px 22px -12px var(--ws-accent-ring),
	            inset 0 1px 0 rgba(255,255,255,.24);
	transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease, opacity .15s ease;
}
.wholix-matrix .ws-add-icon { width: 18px; height: 18px; flex: none; }
.wholix-matrix .ws-add:hover:not(:disabled) {
	background-color: var(--ws-accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(20,22,40,.18),
	            0 18px 30px -14px var(--ws-accent-ring),
	            inset 0 1px 0 rgba(255,255,255,.28);
}
.wholix-matrix .ws-add:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(20,22,40,.2), inset 0 2px 4px rgba(0,0,0,.14);
}
.wholix-matrix .ws-add:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ws-accent-ring); }
.wholix-matrix .ws-add:disabled { opacity: 0.5; cursor: not-allowed; background-image: none; box-shadow: none; }
.wholix-matrix .ws-add.is-loading { color: transparent; pointer-events: none; }
.ws-spinner { display: none; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: ws-spin .7s linear infinite; }
.wholix-matrix .ws-add.is-loading .ws-spinner { display: block; }
@keyframes ws-spin { to { transform: rotate(360deg); } }

/* nudge + messages */
.ws-nudge {
	margin: 10px 2px 0; padding: 8px 12px;
	font-size: 13px; font-weight: 600; color: var(--ws-accent);
	background: var(--ws-accent-soft); border-radius: 10px;
}
.ws-msg { margin-top: 12px; }
.ws-msg ul { margin: 0; padding: 0; list-style: none; }
.ws-msg li { font-size: 13px; padding: 9px 12px; border-radius: 10px; }
.ws-msg.is-error li { color: #8c1d22; background: rgba(229,72,77,.10); margin-bottom: 6px; }
.ws-msg.is-success li {
	color: #15803d; background: #e9f9ef; border: 1px solid #b6e6c5;
	border-radius: 13px; font-weight: 700; font-size: 14px;
	display: flex; align-items: center; gap: 11px; padding: 13px 14px;
	box-shadow: 0 6px 18px -10px rgba(34,168,90,.55);
}
.ws-msg.is-success li::before {
	content: "✓"; flex: 0 0 auto;
	width: 26px; height: 26px; border-radius: 50%;
	background: #22a85a; color: #fff; font-weight: 800; font-size: 14px;
	display: inline-flex; align-items: center; justify-content: center;
}
.ws-msg.is-error a { color: inherit; text-decoration: underline; margin-left: auto; font-weight: 600; }
.ws-msg.is-success a {
	margin-left: auto; text-decoration: none; white-space: nowrap;
	background: #22a85a; color: #fff; padding: 9px 17px; border-radius: 10px;
	font-weight: 700; font-size: 13px;
	box-shadow: 0 4px 12px -4px rgba(34,168,90,.5);
	transition: background .15s ease, transform .05s ease;
}
.ws-msg.is-success a:hover { background: #1d9c52; }
.ws-msg.is-success a:active { transform: translateY(1px); }

/* Safety: never show WooCommerce's own "view cart" link inside the matrix. */
.wholix-matrix .added_to_cart { display: none !important; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
	.wholix-matrix { --ws-cell: 52px; --ws-rowhead: 116px; }
	.ws-grid thead th { padding: 10px 5px; font-size: 10px; }
	.ws-rowhead { font-size: 12px; padding: 8px 9px; }
	.ws-corner { padding: 10px 9px; }
	.ws-cell { padding: 5px 4px; }
	.ws-input, .ws-na-box { height: 36px; font-size: 14px; }
	.wholix-matrix .ws-head { gap: 6px; }
	.wholix-matrix .ws-eye-slot { width: 18px; }
	.wholix-matrix .ws-eye svg { width: 15px; height: 15px; }

	.ws-bar {
		position: sticky; bottom: 8px; z-index: 20;
		flex-wrap: wrap; gap: 10px 14px;
		padding: 12px 14px;
		background: rgba(255,255,255,0.92);
		-webkit-backdrop-filter: saturate(1.4) blur(8px);
		backdrop-filter: saturate(1.4) blur(8px);
		box-shadow: 0 8px 30px -8px rgba(20,22,40,.28);
	}
	.ws-bar-info { gap: 12px; }
	.ws-units-num { font-size: 19px; }
	.ws-total-price { font-size: 19px; }
	.ws-add { flex: 1 0 100%; order: 3; }
}

@media (max-width: 400px) {
	.wholix-matrix { --ws-cell: 46px; --ws-rowhead: 104px; }
	.ws-rowhead { font-size: 11.5px; padding: 7px 8px; }
	.ws-input { font-size: 13px; padding: 0 2px; }
	.wholix-matrix .ws-swatch,
	.wholix-matrix .ws-swatch-empty { width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.wholix-matrix * { transition: none !important; animation: none !important; }
}

/* =========================================================
   PRICE BREAK TABLE — shortcode / widget / auto
   ========================================================= */
.ws-pricetable {
	--ws-ink: #16161d;
	--ws-muted: #6b7184;
	--ws-line: #e8e9ef;
	--ws-surface: #ffffff;
	--ws-surface-2: #f6f7fa;
	--ws-accent: #6c3ce0;
	--ws-save: #12a150;
	--ws-save-soft: rgba(18, 161, 80, 0.12);
	--ws-radius: 16px;

	width: 420px;
	max-width: 100%;
	margin: 18px 0;
	color: var(--ws-ink);
	font-feature-settings: "tnum" 1, "lnum" 1;
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	background: var(--ws-surface);
	box-shadow: 0 1px 2px rgba(20,22,40,.04), 0 12px 30px -20px rgba(20,22,40,.22);
	overflow: hidden;
}
.ws-pricetable *,
.ws-pricetable *::before,
.ws-pricetable *::after { box-sizing: border-box; }

.ws-pt-head {
	padding: 14px 18px;
	background: var(--ws-surface-2);
	border-bottom: 1px solid var(--ws-line);
}
.ws-pt-title {
	font-size: 12px; font-weight: 700;
	letter-spacing: 0.07em; text-transform: uppercase;
	color: var(--ws-muted);
}
.ws-pt-group { padding: 6px 0; }
.ws-pt-group + .ws-pt-group { border-top: 1px solid var(--ws-line); }
.ws-pt-grouplabel {
	display: block; padding: 10px 18px 4px;
	font-size: 12px; font-weight: 700; color: var(--ws-accent);
}
.ws-pt-table { width: 100%; border-collapse: collapse; }
.ws-pt-row td {
	padding: 13px 18px;
	border-bottom: 1px solid var(--ws-line);
	vertical-align: middle;
}
.ws-pt-table tr:last-child td { border-bottom: 0; }

.ws-pt-qty { white-space: nowrap; }
.ws-pt-range { font-size: 15px; font-weight: 700; }
.ws-pt-unit { font-size: 12px; color: var(--ws-muted); margin-left: 2px; }

.ws-pt-price {
	text-align: right; white-space: nowrap;
	font-size: 16px; font-weight: 800; letter-spacing: -0.01em;
}
.ws-pt-price .woocommerce-Price-amount { font-weight: 800; }
.ws-pt-each { font-size: 11px; font-weight: 600; color: var(--ws-muted); margin-left: 2px; }

.ws-pt-save { width: 1%; text-align: right; padding-left: 6px !important; white-space: nowrap; }
.ws-pt-badge {
	display: inline-block;
	font-size: 11px; font-weight: 800; line-height: 1;
	color: var(--ws-save); background: var(--ws-save-soft);
	padding: 5px 8px; border-radius: 99px;
}

.ws-pt-row.is-best { background: rgba(108, 60, 224, 0.05); }
.ws-pt-row.is-best .ws-pt-price { color: var(--ws-accent); }

/* Elementor width modes (prefix_class ws-ptw-) */
.ws-ptw-full .ws-pricetable { width: 100%; max-width: 100%; }

@media (max-width: 480px) {
	.ws-pricetable { width: 100%; max-width: 100%; }
	.ws-pt-row td { padding: 12px 14px; }
}

/* ---- Job area: logo uploads + notes ---- */
.wholix-matrix .ws-job {
	margin-top: 16px;
	display: grid;
	gap: 16px;
}
.wholix-matrix .ws-job-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ws-muted);
	margin-bottom: 8px;
}
.wholix-matrix .ws-dropzone {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 22px 16px;
	border: 1.5px dashed var(--ws-line-strong);
	border-radius: var(--ws-radius);
	background: var(--ws-surface-2);
	color: var(--ws-muted);
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.wholix-matrix .ws-dropzone:hover,
.wholix-matrix .ws-dropzone:focus-within,
.wholix-matrix .ws-dropzone.is-drag {
	border-color: var(--ws-accent);
	background: var(--ws-accent-soft);
	color: var(--ws-accent);
}
.wholix-matrix .ws-file-input {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	opacity: 0; cursor: pointer;
}
.wholix-matrix .ws-dropzone-icon svg { width: 26px; height: 26px; }
.wholix-matrix .ws-dropzone-text { font-size: 14px; font-weight: 600; color: var(--ws-ink); }
.wholix-matrix .ws-dropzone-hint { font-size: 11px; }

.wholix-matrix .ws-files {
	display: flex; flex-wrap: wrap; gap: 8px;
	margin-top: 10px;
}
.wholix-matrix .ws-files:empty { margin-top: 0; }
.wholix-matrix .ws-file {
	display: inline-flex; align-items: center; gap: 8px;
	max-width: 100%;
	padding: 7px 10px 7px 12px;
	border: 1px solid var(--ws-line);
	border-radius: 999px;
	background: var(--ws-surface);
	font-size: 13px;
}
.wholix-matrix .ws-file.is-done { border-color: var(--ws-accent); }
.wholix-matrix .ws-file.is-error { border-color: var(--ws-danger); color: var(--ws-danger); }
.wholix-matrix .ws-file-name {
	max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	font-weight: 600;
}
.wholix-matrix .ws-file-state { font-size: 11px; color: var(--ws-muted); }
.wholix-matrix .ws-file.is-loading .ws-file-name { opacity: .7; }
.wholix-matrix .ws-file-remove {
	border: 0; background: transparent; cursor: pointer;
	font-size: 18px; line-height: 1; color: var(--ws-muted);
	padding: 0 2px;
}
.wholix-matrix .ws-file-remove:hover { color: var(--ws-danger); }
.wholix-matrix .ws-upload-error { margin-top: 8px; font-size: 12px; color: var(--ws-danger); }

.wholix-matrix .ws-notes {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1.5px solid var(--ws-line-strong);
	border-radius: var(--ws-radius-sm);
	font-size: 14px;
	color: var(--ws-ink);
	background: var(--ws-surface);
	resize: vertical;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wholix-matrix .ws-notes:focus {
	outline: none;
	border-color: var(--ws-accent);
	box-shadow: 0 0 0 3px var(--ws-accent-ring);
}

/* ---- Colour swatches in matrix headers ---- */
.wholix-matrix .ws-head {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
}
.wholix-matrix .ws-colhead .ws-head { justify-content: center; }
.wholix-matrix .ws-rowhead .ws-head { justify-content: flex-start; }
.wholix-matrix .ws-head-label {
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.2;
}
.wholix-matrix .ws-eye-slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	flex: 0 0 auto;
}
.wholix-matrix .ws-swatch-empty {
	display: inline-block;
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}
.wholix-matrix .ws-swatch {
	width: 14px;
	height: 14px;
	border-radius: 4px;
	flex: 0 0 auto;
	border: 1px solid rgba(0, 0, 0, 0.18);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* ---- Colour preview eye + lightbox ---- */
.wholix-matrix .ws-eye {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--ws-muted);
	cursor: pointer;
	flex: 0 0 auto;
	transition: background .15s ease, color .15s ease;
}
.wholix-matrix .ws-eye:hover { background: var(--ws-accent-soft); color: var(--ws-accent); }
.wholix-matrix .ws-eye svg { width: 15px; height: 15px; }
.wholix-matrix .ws-list-info .ws-eye { margin-right: 4px; }

.ws-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(17, 18, 22, 0.78);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .18s ease;
}
.ws-lightbox.is-open { opacity: 1; }
.ws-lightbox[hidden] { display: none; }
.ws-lightbox-inner {
	position: relative;
	max-width: min(92vw, 720px);
	max-height: 88vh;
	background: #fff;
	border-radius: 16px;
	padding: 14px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
	transform: scale(.96);
	transition: transform .18s ease;
}
.ws-lightbox.is-open .ws-lightbox-inner { transform: scale(1); }
.ws-lightbox-img {
	display: block;
	max-width: 100%;
	max-height: calc(88vh - 70px);
	width: auto;
	height: auto;
	border-radius: 8px;
	object-fit: contain;
}
.ws-lightbox-cap {
	margin-top: 10px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: #1f2430;
}
.ws-lightbox .ws-lightbox-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.92) !important;
	color: #1f2430 !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
	cursor: pointer;
	font-size: 0;
	line-height: 0;
	outline: none !important;
	transition: background .15s ease, transform .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.ws-lightbox .ws-lightbox-close:hover { background: #fff !important; transform: scale(1.06); }
.ws-lightbox .ws-lightbox-close:focus-visible { box-shadow: 0 0 0 3px var(--ws-accent-ring, rgba(108,60,224,.35)) !important; }
.ws-lightbox .ws-lightbox-close svg { width: 18px; height: 18px; display: block; }

/* ---- Per-product services & upload slots ---- */
.wholix-matrix .ws-slots {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
}
.wholix-matrix .ws-job-label {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.wholix-matrix .ws-price-badge {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ws-accent-soft);
	color: var(--ws-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
}
.wholix-matrix .ws-price-badge .ws-per { font-size: 10px; font-weight: 600; opacity: .8; }
.wholix-matrix .ws-price-badge .amount,
.wholix-matrix .ws-price-badge bdi { white-space: nowrap; }

.wholix-matrix .ws-services-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.wholix-matrix .ws-service {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 14px;
	border: 1.5px solid var(--ws-line-strong);
	border-radius: 12px;
	background: var(--ws-surface);
	cursor: pointer;
	user-select: none;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.wholix-matrix .ws-service:hover { border-color: var(--ws-accent); }
.wholix-matrix .ws-service-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.wholix-matrix .ws-service-box {
	width: 20px;
	height: 20px;
	border-radius: 6px;
	border: 1.5px solid var(--ws-line-strong);
	background: var(--ws-surface);
	flex: 0 0 auto;
	position: relative;
	transition: background .15s ease, border-color .15s ease;
}
.wholix-matrix .ws-service-box::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .15s ease;
}
.wholix-matrix .ws-service-input:checked + .ws-service-box {
	background: var(--ws-accent);
	border-color: var(--ws-accent);
}
.wholix-matrix .ws-service-input:checked + .ws-service-box::after { transform: rotate(45deg) scale(1); }
.wholix-matrix .ws-service-input:checked ~ .ws-service-text .ws-service-label { color: var(--ws-accent); }
.wholix-matrix .ws-service:has(.ws-service-input:checked) {
	border-color: var(--ws-accent);
	background: var(--ws-accent-soft);
	box-shadow: 0 0 0 3px var(--ws-accent-ring);
}
.wholix-matrix .ws-service-input:focus-visible + .ws-service-box {
	box-shadow: 0 0 0 3px var(--ws-accent-ring);
}
.wholix-matrix .ws-service-label { font-size: 14px; font-weight: 600; color: var(--ws-ink); }

@media (max-width: 480px) {
	.wholix-matrix .ws-slots { grid-template-columns: 1fr; }
	.wholix-matrix .ws-service { flex: 1 1 100%; }
}

/* ---- Field descriptions (frontend) ---- */
.wholix-matrix .ws-job-desc {
	display: block;
	margin: -2px 0 8px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--ws-muted);
}
.wholix-matrix .ws-service { align-items: flex-start; }
.wholix-matrix .ws-service-box { margin-top: 1px; }
.wholix-matrix .ws-service-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wholix-matrix .ws-service-top { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wholix-matrix .ws-service-desc { font-size: 12px; line-height: 1.4; color: var(--ws-muted); }

/* ---- Placement preview (front/back/sleeve proofs) ---- */
.wholix-matrix .ws-proof {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 2px;
}
.wholix-matrix .ws-proof-views {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.wholix-matrix .ws-proof-stage {
	width: 220px;
	max-width: 100%;
	border: 1px solid var(--ws-line);
	border-radius: 12px;
	overflow: hidden;
	background: #f5f5f8;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.wholix-matrix .ws-proof-view.is-active .ws-proof-stage {
	border-color: var(--ws-accent);
	box-shadow: 0 0 0 3px var(--ws-accent-ring);
}
.wholix-matrix .ws-proof-canvas { display: block; width: 100%; height: auto; }

/* Pricing-group note under the price table */
.ws-pricetable .ws-pt-poolnote {
	display: flex; align-items: center; gap: 11px;
	margin: 14px 2px 2px; padding: 12px 15px;
	background: #f3f0fb; border: 1px solid #e1d7f6; border-radius: 12px;
}
.ws-pricetable .ws-pt-poolnote-ic {
	flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
	background: #6c3ce0; display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 3px 8px -3px rgba(108,60,224,.6);
}
.ws-pricetable .ws-pt-poolnote-ic svg { display: block; }
.ws-pricetable .ws-pt-poolnote-tx { font-size: 13px; line-height: 1.45; color: #4b2ea8; }
.ws-pricetable .ws-pt-poolnote-tx strong { color: #3a2185; font-weight: 800; }

/* ---- Matrix tabs (3rd attribute split) — clear two-step sections ---- */
.wholix-matrix .ws-tabs { margin-bottom: 18px; }
.wholix-matrix .ws-tabs > .ws-step + .ws-step { margin-top: 14px; }

.wholix-matrix .ws-step {
	border: 1px solid var(--ws-accent-ring);
	border-radius: 16px;
	background: var(--ws-surface);
	overflow: hidden;
}
.wholix-matrix .ws-step--select {
	background: linear-gradient(180deg, var(--ws-accent-soft), rgba(108,60,224,0.03));
	padding: 16px 18px;
}
.wholix-matrix .ws-step--grid .ws-step-head {
	padding: 15px 18px;
	border-bottom: 1px solid var(--ws-line);
	background: var(--ws-surface-2);
}

.wholix-matrix .ws-step-head { display: flex; align-items: center; gap: 12px; }
.wholix-matrix .ws-step--select .ws-step-head { margin-bottom: 14px; }
.wholix-matrix .ws-step-num {
	flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
	background: var(--ws-accent); color: #fff; font-weight: 800; font-size: 14px;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 5px 12px -4px var(--ws-accent-ring);
}
.wholix-matrix .ws-step-titles { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.wholix-matrix .ws-step-title { font-size: 15px; font-weight: 800; color: var(--ws-ink); }
.wholix-matrix .ws-step-sub { font-size: 12.5px; color: var(--ws-muted); margin-top: 2px; }

/* the grid sits flush inside step 2 (its own border removed) */
.wholix-matrix .ws-step--grid .ws-grid-wrap { border: 0; border-radius: 0; }

/* dynamic "you selected X" instruction in step 2 */
.wholix-matrix .ws-step-hint {
	display: flex; align-items: center; gap: 10px;
	margin: 0; padding: 12px 18px;
	background: var(--ws-accent-soft);
	border-bottom: 1px solid var(--ws-line);
	font-size: 13px; line-height: 1.45; color: var(--ws-ink);
}
.wholix-matrix .ws-step-hint-ic {
	flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
	background: var(--ws-accent); display: inline-flex; align-items: center; justify-content: center;
}
.wholix-matrix .ws-step-hint-ic svg { display: block; }
.wholix-matrix .ws-step-hint-tx strong { color: var(--ws-accent); font-weight: 800; }

.wholix-matrix .ws-tabs-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.wholix-matrix .ws-tabs-btns .ws-tab {
	-webkit-appearance: none; appearance: none; cursor: pointer;
	border: 1.5px solid var(--ws-line-strong); background: var(--ws-surface);
	color: var(--ws-ink); padding: 9px 18px; border-radius: 999px;
	font-size: 13.5px; font-weight: 700; line-height: 1; white-space: nowrap;
	transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.wholix-matrix .ws-tabs-btns .ws-tab:hover { border-color: var(--ws-accent); color: var(--ws-accent); }
.wholix-matrix .ws-tabs-btns .ws-tab.is-active {
	background: var(--ws-accent) !important; border-color: var(--ws-accent) !important; color: #fff !important;
	box-shadow: 0 6px 16px -6px var(--ws-accent-ring);
}
.wholix-matrix .ws-tabs-btns .ws-tab:focus-visible { outline: 2px solid var(--ws-accent); outline-offset: 2px; }
.wholix-matrix .ws-tabpanel[hidden] { display: none; }
