/* H&H Masterack Quote — sales price tool (black & yellow brand theme) */
.hhmq-wrap {
	--hhmq-yellow: #FEDD00;
	--hhmq-yellow-dk: #e6c700;
	--hhmq-black: #111111;
	--hhmq-ink: #1b1b1b;
	--hhmq-line: #e5e5e5;
	--hhmq-muted: #777;
	/* Break out of the theme's content column: viewport-centered, capped
	   at 1400px. Assumes the container itself is centered (GeneratePress). */
	--hhmq-w: min(1400px, calc(100vw - 56px));
	width: var(--hhmq-w);
	margin-left: calc((100% - var(--hhmq-w)) / 2);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--hhmq-ink);
	-webkit-font-smoothing: antialiased;
}

.hhmq-login-required {
	max-width: 560px; margin: 40px auto; padding: 22px 26px;
	border: 2px solid var(--hhmq-black, #111); border-radius: 12px; background: #fffbe6;
	font-size: 15px;
}

.hhmq-topbar { margin-bottom: 22px; }
.hhmq-h {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--hhmq-black);
	border-bottom: 3px solid var(--hhmq-yellow);
	padding-bottom: 12px;
}

.hhmq-grid { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; }

/* Step cards */
.hhmq-card {
	border: 1px solid var(--hhmq-line);
	border-radius: 14px;
	padding: 18px 20px 20px;
	margin: 0 0 20px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.hhmq-card legend {
	font-weight: 800;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--hhmq-black);
	padding: 3px 10px;
	background: var(--hhmq-yellow);
	border-radius: 6px;
}

/* Big pick cards */
.hhmq-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.hhmq-pick-grid--vehicles, .hhmq-pick-grid--roofs { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.hhmq-pick {
	position: relative;
	display: flex; flex-direction: column; gap: 5px;
	border: 2px solid var(--hhmq-line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
	padding: 15px 14px;
	text-align: left;
	font: inherit;
	color: var(--hhmq-ink);
}
.hhmq-pick:hover { border-color: #cfcfcf; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.hhmq-pick.has-img { overflow: hidden; }
/* Product shots are white/transparent renders — contain, never crop. */
.hhmq-pick-img {
	display: block; height: 112px;
	margin: -15px -14px 8px;
	background-size: contain; background-position: center; background-repeat: no-repeat;
	background-color: #fff;
	border-bottom: 1px solid var(--hhmq-line);
}
.hhmq-pick-grid--vehicles .hhmq-pick-img { height: 96px; }
.hhmq-pick.selected { border-color: var(--hhmq-black); box-shadow: 0 0 0 4px rgba(254,221,0,.55); transform: translateY(-2px); }
.hhmq-pick.selected::after {
	content: "\2713"; position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--hhmq-black); color: var(--hhmq-yellow); font-size: 13px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.hhmq-pick-title { font-weight: 800; font-size: 15px; color: var(--hhmq-black); padding-right: 20px; }
.hhmq-pick-blurb { font-size: 12.5px; color: #555; line-height: 1.35; }
.hhmq-pick-sub { font-size: 11px; color: var(--hhmq-muted); letter-spacing: .03em; }
.hhmq-pick-price { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 800; color: var(--hhmq-black); }

.hhmq-noracks { margin: 4px 0 0; }

/* Line tables (package contents, custom builder, add-ons, extras) */
.hhmq-lines {
	margin-top: 16px;
	border: 1px solid var(--hhmq-line);
	border-radius: 12px;
	overflow: hidden;
}
.hhmq-lines-head {
	padding: 9px 14px;
	background: #fafafa;
	border-bottom: 1px solid var(--hhmq-line);
	font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
	color: var(--hhmq-black);
}
.hhmq-line {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 13.5px;
	cursor: default;
	margin: 0;
}
.hhmq-line:last-child { border-bottom: none; }
label.hhmq-line { cursor: pointer; }
.hhmq-line input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--hhmq-black); flex: none; margin: 0; }
.hhmq-line.off .hhmq-line-main, .hhmq-line.off .hhmq-line-qty, .hhmq-line.off .hhmq-line-price { opacity: .38; text-decoration: line-through; }
.hhmq-line-qty { font-weight: 800; color: var(--hhmq-black); flex: none; min-width: 28px; }
.hhmq-line-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; }
.hhmq-part-name { font-weight: 600; color: var(--hhmq-ink); }
button.hhmq-part-link {
	background: none; border: none; padding: 0; font: inherit; font-weight: 600;
	color: var(--hhmq-ink); text-align: left; cursor: zoom-in;
	text-decoration: underline; text-decoration-color: var(--hhmq-yellow-dk); text-decoration-thickness: 2px; text-underline-offset: 2px;
}
button.hhmq-part-link:hover { color: #000; text-decoration-color: var(--hhmq-black); }
.hhmq-line-pn { font-size: 11px; color: var(--hhmq-muted); letter-spacing: .03em; }
.hhmq-line-note { font-size: 11.5px; color: #a05a00; font-weight: 600; }
.hhmq-line-price { flex: none; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--hhmq-black); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hhmq-qs {
	display: inline-block; vertical-align: 1px; margin-left: 6px;
	padding: 1px 7px; border-radius: 99px;
	background: var(--hhmq-yellow); color: var(--hhmq-black);
	font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}

/* Quantity steppers */
.hhmq-stepper { display: flex; align-items: center; gap: 0; flex: none; border: 1.5px solid #d2d2d2; border-radius: 9px; overflow: hidden; }
.hhmq-step-btn {
	width: 32px; height: 32px; border: none; background: #f5f5f5; cursor: pointer;
	font-size: 17px; font-weight: 700; color: var(--hhmq-black); line-height: 1;
	transition: background .12s ease;
}
.hhmq-step-btn:hover { background: var(--hhmq-yellow); }
.hhmq-step-qty { width: 34px; text-align: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.hhmq-line--stepper.picked { background: #fffdf0; }
.hhmq-line--stepper.picked .hhmq-step-qty { color: var(--hhmq-black); }

/* Summary panel */
.hhmq-summary { position: sticky; top: 24px; }
.hhmq-summary-card {
	border: 1px solid var(--hhmq-line);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 6px 22px rgba(0,0,0,.09);
}
.hhmq-summary-card h3 {
	margin: 0;
	padding: 16px 20px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: var(--hhmq-black);
	color: var(--hhmq-yellow);
}

/* Margin slider */
.hhmq-margin { padding: 14px 20px 10px; border-bottom: 1px solid var(--hhmq-line); background: #fafafa; }
.hhmq-margin-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.hhmq-margin-head label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--hhmq-black); }
.hhmq-margin-value { font-size: 18px; font-weight: 800; color: var(--hhmq-black); font-variant-numeric: tabular-nums; }
.hhmq-margin input[type="range"] { width: 100%; accent-color: var(--hhmq-black); cursor: pointer; }
.hhmq-margin-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--hhmq-muted); margin-top: 2px; }

.hhmq-breakdown { padding: 14px 20px 8px; max-height: 380px; overflow-y: auto; }
.hhmq-muted { color: var(--hhmq-muted); font-size: 14px; }
.hhmq-bd-vehicle { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--hhmq-black); }
.hhmq-bd-section { margin-bottom: 12px; }
.hhmq-bd-title {
	font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
	color: var(--hhmq-muted); margin-bottom: 4px;
	border-bottom: 1px solid #f0f0f0; padding-bottom: 3px;
}
.hhmq-bd-line {
	display: flex; justify-content: space-between; gap: 12px;
	font-size: 12.5px; padding: 2.5px 0; color: var(--hhmq-ink);
}
.hhmq-bd-line span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.hhmq-bd-pn { display: block; font-size: 10.5px; color: var(--hhmq-muted); letter-spacing: .04em; font-weight: 400; }

.hhmq-subtotals { padding: 10px 20px 0; border-top: 1px solid var(--hhmq-line); }
.hhmq-subrow { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: var(--hhmq-ink); }
.hhmq-subrow span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.hhmq-min-note { margin: 2px 0 0; font-size: 11.5px; color: #a05a00; font-weight: 600; text-align: right; }

/* Tax selector row, directly above the total */
.hhmq-taxrow { display: flex; align-items: center; gap: 10px; padding: 10px 20px 0; }
.hhmq-taxrow label { font-size: 13px; font-weight: 700; color: var(--hhmq-black); }
.hhmq-taxrow select {
	flex: 1 1 auto; padding: 7px 10px; border: 1.5px solid #d2d2d2; border-radius: 9px;
	font-size: 13px; background: #fff; color: var(--hhmq-ink); cursor: pointer;
}
.hhmq-taxrow select:focus { outline: none; border-color: var(--hhmq-black); box-shadow: 0 0 0 4px rgba(254,221,0,.35); }
.hhmq-tax-amt { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.hhmq-total-row {
	display: flex; justify-content: space-between; align-items: baseline;
	margin: 8px 20px 16px; padding: 12px 0 0; border-top: 2px solid var(--hhmq-black);
	font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--hhmq-black);
}
.hhmq-total-row span:last-child {
	font-size: 26px; letter-spacing: 0;
	background: linear-gradient(transparent 62%, var(--hhmq-yellow) 62%);
	padding: 0 4px;
	font-variant-numeric: tabular-nums;
}

/* PDF form */
.hhmq-pdf-fields { display: grid; gap: 8px; margin: 0 20px 10px; }
.hhmq-pdf-fields input {
	width: 100%; padding: 10px 12px; border: 1.5px solid #d2d2d2; border-radius: 10px;
	font-size: 13.5px; box-sizing: border-box; background: #fff; color: var(--hhmq-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.hhmq-pdf-fields input:focus { outline: none; border-color: var(--hhmq-black); box-shadow: 0 0 0 4px rgba(254,221,0,.35); }
.hhmq-submit {
	display: block; width: calc(100% - 40px); margin: 0 20px 18px;
	background: var(--hhmq-yellow); color: var(--hhmq-black);
	border: 2px solid var(--hhmq-black); border-radius: 12px; padding: 14px;
	font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.hhmq-submit:hover { background: var(--hhmq-black); color: var(--hhmq-yellow); }
.hhmq-submit:disabled { opacity: .5; cursor: default; }

/* Lightbox */
.hhmq-lightbox {
	position: fixed; inset: 0; background: rgba(0,0,0,.85);
	display: none; align-items: center; justify-content: center; z-index: 100000; padding: 24px;
}
.hhmq-lightbox.open { display: flex; }
.hhmq-lightbox-inner { position: relative; max-width: 92vw; max-height: 90vh; }
.hhmq-lightbox-inner img { display: block; max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 12px 44px rgba(0,0,0,.55); background: #fff; }
.hhmq-lightbox-caption { margin-top: 10px; text-align: center; color: #fff; font-size: 14px; font-weight: 600; }
.hhmq-lightbox-close {
	position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; border-radius: 50%;
	border: 2px solid #fff; background: var(--hhmq-black); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2;
}
.hhmq-lightbox-close:hover { background: var(--hhmq-yellow); color: #111; }

/* Customer mode: Request a Quote lead form (replaces the price summary) */
.hhmq-lead-form { margin-top: 14px; }
.hhmq-lead-intro { font-size: 13px; color: var(--hhmq-muted); margin: 0 0 12px; line-height: 1.45; }
.hhmq-field { display: block; margin-bottom: 10px; }
.hhmq-field > span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.hhmq-field > span em { color: var(--hhmq-yellow-dk); font-style: normal; }
.hhmq-field input,
.hhmq-field select,
.hhmq-field textarea {
	width: 100%; padding: 9px 11px; border: 1px solid var(--hhmq-line); border-radius: 7px;
	font: inherit; color: var(--hhmq-ink); background: #fff; box-sizing: border-box;
}
.hhmq-field input:focus,
.hhmq-field select:focus,
.hhmq-field textarea:focus { outline: none; border-color: var(--hhmq-black); box-shadow: 0 0 0 3px rgba(254,221,0,.4); }
.hhmq-field textarea { resize: vertical; }
.hhmq-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hhmq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hhmq-lead-msg { margin: 10px 0 0; padding: 9px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; }
.hhmq-lead-msg.ok { background: #e9f9ee; color: #1c7a3f; border: 1px solid #b9e7c8; }
.hhmq-lead-msg.err { background: #fdecec; color: #b3261e; border: 1px solid #f3c2bf; }

@media (max-width: 980px) {
	.hhmq-grid { grid-template-columns: 1fr; }
	.hhmq-summary { position: static; }
	.hhmq-breakdown { max-height: none; }
}
