/* H&H Spa Quote — shared "Compare Models" tool (black & yellow brand theme).
   Self-contained: declares its own theme vars so it works under both the
   customer and sales wrappers and when appended to <body>. */
.hhsq-cmp-modal {
	--hhsq-yellow: #FEDD00;
	--hhsq-black: #111111;
	--hhsq-ink: #1b1b1b;
	--hhsq-line: #e5e5e5;
	--hhsq-muted: #777;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	background: rgba(0, 0, 0, .62);
	padding: 24px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--hhsq-ink);
	-webkit-font-smoothing: antialiased;
}
.hhsq-cmp-modal.open { display: flex; align-items: flex-start; justify-content: center; }
html.hhsq-cmp-lock { overflow: hidden; }

/* Trigger button (placed in the templates) */
.hhsq-compare-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: var(--hhsq-black, #111);
	border: 2px solid #111;
	border-radius: 12px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.hhsq-compare-btn:hover { background: #111; color: #FEDD00; }
.hhsq-compare-btn svg { width: 18px; height: 18px; }

.hhsq-cmp-dialog {
	background: #fff;
	width: 100%;
	max-width: 1080px;
	max-height: calc(100vh - 48px);
	border-radius: 16px;
	overflow: auto;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
	display: flex;
	flex-direction: column;
}

.hhsq-cmp-head {
	position: sticky;
	top: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	background: var(--hhsq-black);
	color: #fff;
}
.hhsq-cmp-title {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: #fff;
	border-bottom: 3px solid var(--hhsq-yellow);
	padding-bottom: 4px;
}
.hhsq-cmp-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	padding: 0 !important;       /* defeat theme's global button padding */
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	flex: none;
}
.hhsq-cmp-x:hover { background: var(--hhsq-yellow); color: #111; border-color: var(--hhsq-yellow); }

/* Picker */
.hhsq-cmp-pickwrap { padding: 16px 22px; border-bottom: 1px solid var(--hhsq-line); }
.hhsq-cmp-pickhead {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.hhsq-cmp-pickhint { font-size: 13px; font-weight: 700; color: var(--hhsq-muted); }
.hhsq-cmp-hl { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; margin-left: auto; }
.hhsq-cmp-hl input { accent-color: var(--hhsq-black); width: 16px; height: 16px; }
.hhsq-cmp-clear {
	background: #fff;
	border: 2px solid var(--hhsq-black);
	border-radius: 9px;
	padding: 5px 12px;
	font-size: 12.5px;
	font-weight: 800;
	cursor: pointer;
	color: var(--hhsq-black);
}
.hhsq-cmp-clear:hover { background: var(--hhsq-black); color: var(--hhsq-yellow); }

.hhsq-cmp-group { margin-bottom: 12px; }
.hhsq-cmp-group:last-child { margin-bottom: 0; }
.hhsq-cmp-grouplabel {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--hhsq-black);
	margin-bottom: 7px;
}
.hhsq-cmp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hhsq-cmp-chip {
	border: 2px solid var(--hhsq-line);
	background: #fff;
	color: var(--hhsq-ink);
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.hhsq-cmp-chip:hover:not(:disabled) { border-color: #bbb; }
.hhsq-cmp-chip.selected {
	border-color: var(--hhsq-black);
	background: var(--hhsq-yellow);
	color: var(--hhsq-black);
	font-weight: 800;
}
.hhsq-cmp-chip:disabled { opacity: .4; cursor: not-allowed; }

/* Table */
.hhsq-cmp-tablewrap { padding: 18px 22px 24px; overflow-x: auto; }
.hhsq-cmp-empty { color: var(--hhsq-muted); font-size: 15px; text-align: center; padding: 28px 0; margin: 0; }
.hhsq-cmp-table { border-collapse: collapse; width: 100%; min-width: 480px; }
.hhsq-cmp-table th, .hhsq-cmp-table td { text-align: left; vertical-align: top; }

.hhsq-cmp-rowhead {
	position: sticky;
	left: 0;
	background: #fafafa;
	z-index: 1;
	width: 168px;
	min-width: 140px;
	padding: 11px 12px;
	font-size: 12.5px;
	font-weight: 800;
	color: var(--hhsq-black);
	border-bottom: 1px solid var(--hhsq-line);
}
thead .hhsq-cmp-rowhead { background: #fff; border-bottom: 2px solid var(--hhsq-black); }

.hhsq-cmp-col {
	position: relative;
	padding: 12px 12px 14px;
	min-width: 150px;
	border-bottom: 2px solid var(--hhsq-black);
	text-align: center;
}
.hhsq-cmp-img {
	display: block;
	width: 100%;
	height: 92px;
	background-size: cover;
	background-position: center;
	border-radius: 10px;
	border: 1px solid var(--hhsq-line);
	margin-bottom: 8px;
}
.hhsq-cmp-img--blank { background: repeating-linear-gradient(45deg, #f3f3f3, #f3f3f3 10px, #ececec 10px, #ececec 20px); }
.hhsq-cmp-brand { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--hhsq-muted); }
.hhsq-cmp-name { display: block; font-size: 14px; font-weight: 800; color: var(--hhsq-black); line-height: 1.25; }
.hhsq-cmp-rm {
	position: absolute;
	top: 6px; right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px; height: 24px;
	padding: 0 !important;       /* defeat theme's global button padding */
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 50%;
	border: none;
	background: var(--hhsq-black);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.hhsq-cmp-rm:hover { background: #c0392b; }

.hhsq-cmp-cell {
	padding: 11px 12px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--hhsq-ink);
	border-bottom: 1px solid var(--hhsq-line);
	text-align: center;
}
.hhsq-cmp-table tbody tr:nth-child(even) .hhsq-cmp-cell,
.hhsq-cmp-table tbody tr:nth-child(even) .hhsq-cmp-rowhead { background: #fcfcfc; }
.hhsq-cmp-dash { color: #bbb; }
.hhsq-cmp-list { margin: 0; padding-left: 16px; text-align: left; }
.hhsq-cmp-list li { margin: 2px 0; }

/* Highlight rows whose values differ across the selected models */
.hhsq-cmp-diff .hhsq-cmp-cell { background: rgba(254, 221, 0, .16); }
.hhsq-cmp-diff .hhsq-cmp-rowhead { background: rgba(254, 221, 0, .28); }

@media (max-width: 600px) {
	.hhsq-cmp-modal { padding: 0; }
	.hhsq-cmp-dialog { max-width: 100%; max-height: 100vh; border-radius: 0; }
	.hhsq-cmp-rowhead { width: 120px; min-width: 110px; }
}
