/**
 * Smart features: Quote List (RFQ) + Smart Kitchen Planner.
 * Same ink/graphite/gold system as the shop and PDP.
 */

:root {
	--qf-ink: #0a0a0c;
	--qf-graphite: #151517;
	--qf-graphite-2: #1b1b1f;
	--qf-line: rgba(242, 239, 231, .09);
	--qf-line-2: rgba(242, 239, 231, .17);
	--qf-text: #f2efe7;
	--qf-text-2: rgba(242, 239, 231, .64);
	--qf-gold: #d8b36c;
	--qf-gold-deep: #d4af37;
	--qf-gold-grad: linear-gradient(135deg, #edcf70, #d4af37);
}

/* ------------------------------------------------------------------ *
 * Add-to-quote triggers
 * ------------------------------------------------------------------ */

.hhm-qla {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid var(--qf-line-2);
	background: transparent;
	color: var(--qf-text-2);
	cursor: pointer;
	transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.hhm-qla:hover,
.hhm-qla:focus-visible {
	color: var(--qf-gold);
	border-color: rgba(216, 179, 108, .55);
	background: rgba(216, 179, 108, .08);
}

.hhm-qla.is-added {
	color: #7fd49a;
	border-color: rgba(127, 212, 154, .55);
}

.hhm-qla svg { width: 15px; height: 15px; }

.hhm-qla--card {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 10px;
}

.hhm-qla--pdp {
	width: 100%;
	min-height: 46px;
	border-radius: 12px;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .02em;
}

/* ------------------------------------------------------------------ *
 * Floating launcher
 * ------------------------------------------------------------------ */

.hhm-ql__launcher {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 1190;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 12px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--qf-graphite-2);
	border: 1px solid var(--qf-line-2);
	color: var(--qf-text);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .02em;
	cursor: pointer;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
	transition: border-color .15s ease, transform .15s ease;
}

.hhm-ql__launcher:hover { border-color: rgba(216, 179, 108, .6); }
.hhm-ql__launcher svg { width: 16px; height: 16px; color: var(--qf-gold); }
.hhm-ql__launcher.has-items { border-color: rgba(216, 179, 108, .5); }
.hhm-ql__launcher.is-pulse { transform: scale(1.06); }

.hhm-ql__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--qf-gold-grad);
	color: #191204;
	font-size: .72rem;
}

@media (max-width: 640px) {
	.hhm-ql__launcher { left: 12px; bottom: 12px; padding: 11px 14px; }
	.hhm-ql__launcher-label { display: none; }
}

/* ------------------------------------------------------------------ *
 * Drawer
 * ------------------------------------------------------------------ */

.hhm-ql__overlay {
	position: fixed;
	inset: 0;
	z-index: 1195;
	background: rgba(5, 5, 7, .6);
	backdrop-filter: blur(2px);
}

.hhm-ql__drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 1200;
	width: min(430px, 96vw);
	display: flex;
	flex-direction: column;
	background: var(--qf-graphite);
	border-right: 1px solid var(--qf-line-2);
	color: var(--qf-text);
	box-shadow: 24px 0 60px rgba(0, 0, 0, .5);
}

.hhm-ql__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 10px;
}

.hhm-ql__head h2 { margin: 0; font-size: 1.05rem; color: var(--qf-text); }

.hhm-ql__close {
	border: 0;
	background: transparent;
	color: var(--qf-text-2);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.hhm-ql__close:hover { color: var(--qf-text); }

.hhm-ql__hint {
	margin: 0;
	padding: 0 20px 14px;
	font-size: .78rem;
	color: var(--qf-text-2);
	border-bottom: 1px solid var(--qf-line);
}

.hhm-ql__items { flex: 1; overflow-y: auto; padding: 8px 14px; }

.hhm-ql__item {
	display: grid;
	grid-template-columns: 44px 1fr auto auto;
	gap: 10px;
	align-items: center;
	padding: 10px 6px;
	border-bottom: 1px solid var(--qf-line);
}

.hhm-ql__item img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 8px;
	background: #f5f1e8;
}

.hhm-ql__item-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.hhm-ql__item-meta a {
	color: var(--qf-text);
	font-size: .8rem;
	font-weight: 600;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hhm-ql__item-meta a:hover { color: var(--qf-gold); }
.hhm-ql__item-meta span { font-size: .72rem; color: var(--qf-text-2); }

.hhm-ql__qty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--qf-line-2);
	border-radius: 999px;
	padding: 2px 4px;
}

.hhm-ql__qty button {
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--qf-text-2);
	font-size: .95rem;
	cursor: pointer;
}

.hhm-ql__qty button:hover { color: var(--qf-gold); background: rgba(216, 179, 108, .1); }
.hhm-ql__qty span { min-width: 16px; text-align: center; font-size: .8rem; }

.hhm-ql__remove {
	border: 0;
	background: transparent;
	color: var(--qf-text-2);
	font-size: 1.1rem;
	cursor: pointer;
}

.hhm-ql__remove:hover { color: #e08a8a; }

.hhm-ql__empty { padding: 40px 24px; text-align: center; color: var(--qf-text-2); }
.hhm-ql__empty p { margin: 0 0 6px; font-size: .9rem; }
.hhm-ql__empty-sub { font-size: .76rem !important; }

.hhm-ql__foot { padding: 14px 20px 18px; border-top: 1px solid var(--qf-line-2); }

.hhm-ql__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 12px;
	font-size: .8rem;
	color: var(--qf-text-2);
}

.hhm-ql__total strong { color: var(--qf-gold); font-size: 1rem; }

.hhm-ql__send {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 48px;
	border-radius: 12px;
	background: #25d366;
	color: #06250f;
	font-weight: 800;
	font-size: .85rem;
	text-decoration: none;
	transition: filter .15s ease;
}

.hhm-ql__send:hover { filter: brightness(1.06); color: #06250f; }
.hhm-ql__send svg { width: 17px; height: 17px; }

.hhm-ql__alt {
	display: block;
	margin: 10px 0 0;
	text-align: center;
	font-size: .76rem;
	color: var(--qf-gold);
	text-decoration: none;
}

.hhm-ql__alt:hover { text-decoration: underline; }

.hhm-ql__clear {
	display: block;
	margin: 12px auto 0;
	border: 0;
	background: transparent;
	color: var(--qf-text-2);
	font-size: .72rem;
	cursor: pointer;
	text-decoration: underline;
}

html.hhm-ql-open { overflow: hidden; }

/* ------------------------------------------------------------------ *
 * Smart Kitchen Planner
 * ------------------------------------------------------------------ */

.hhm-kp {
	background: var(--qf-ink);
	color: var(--qf-text);
	padding: 40px 0 80px;
}

.hhm-kp .hhm-container { max-width: 1140px; }

.hhm-kp__kicker {
	color: var(--qf-gold);
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin: 0 0 10px;
}

.hhm-kp h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0 0 10px; text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }
.hhm-kp__lede { color: rgba(255, 255, 255, .8); max-width: 640px; margin: 0 0 34px; font-size: .95rem; }

.hhm-kp__steps { display: flex; gap: 8px; margin: 0 0 22px; font-size: .74rem; color: var(--qf-text-2); }
.hhm-kp__steps span { padding: 6px 12px; border: 1px solid var(--qf-line); border-radius: 999px; }
.hhm-kp__steps span.is-active { color: #191204; background: var(--qf-gold-grad); border-color: transparent; font-weight: 800; }

.hhm-kp__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin: 0 0 26px;
}

.hhm-kp__opt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 18px 16px;
	border: 1px solid var(--qf-line-2);
	border-radius: 14px;
	background: var(--qf-graphite);
	color: var(--qf-text);
	font-size: .86rem;
	font-weight: 700;
	cursor: pointer;
	text-align: left;
	transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.hhm-kp__opt:hover { border-color: rgba(216, 179, 108, .5); transform: translateY(-2px); }
.hhm-kp__opt.is-selected { border-color: var(--qf-gold); background: rgba(216, 179, 108, .09); }
.hhm-kp__opt-emoji { font-size: 1.4rem; }
.hhm-kp__opt small { color: var(--qf-text-2); font-weight: 500; font-size: .72rem; }

.hhm-kp__nav { display: flex; gap: 10px; }

.hhm-kp__ai-hint { margin: 0 0 24px; }

.hhm-kp__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--qf-gold-grad);
	color: #191204;
	font-weight: 800;
	font-size: .84rem;
	cursor: pointer;
	transition: filter .15s ease;
}

.hhm-kp__btn:hover { filter: brightness(1.07); }
.hhm-kp__btn[disabled] { opacity: .4; cursor: not-allowed; }

.hhm-kp__btn--ghost {
	background: transparent;
	border: 1px solid var(--qf-line-2);
	color: var(--qf-text-2);
}

.hhm-kp__btn--ghost:hover { color: var(--qf-text); }

.hhm-kp__loading { padding: 50px 0; text-align: center; color: var(--qf-text-2); }
.hhm-kp__loading::after { content: "…"; animation: hhm-kp-dots 1.2s infinite; }
@keyframes hhm-kp-dots { 50% { opacity: .3; } }

.hhm-kp__station { margin: 0 0 34px; }

.hhm-kp__station-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--qf-line);
}

.hhm-kp__station-head h2 { margin: 0; font-size: 1.05rem; color: var(--qf-text); }
.hhm-kp__station-head span { font-size: .74rem; color: var(--qf-text-2); }

.hhm-kp__products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 12px;
}

.hhm-kp__product {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--qf-line);
	border-radius: 14px;
	background: var(--qf-graphite);
	overflow: hidden;
}

.hhm-kp__product-media { background: #f5f1e8; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.hhm-kp__product-media img { max-width: 82%; max-height: 82%; object-fit: contain; }

.hhm-kp__product-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }

.hhm-kp__product-body a {
	color: var(--qf-text);
	font-size: .8rem;
	font-weight: 600;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.4em;
}

.hhm-kp__product-body a:hover { color: var(--qf-gold); }
.hhm-kp__product-price { font-size: .82rem; font-weight: 800; color: var(--qf-gold); }
.hhm-kp__product .hhm-qla--pdp { margin-top: auto; min-height: 38px; font-size: .72rem; }

.hhm-kp__summary {
	position: sticky;
	bottom: 14px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 30px;
	padding: 16px 20px;
	border: 1px solid rgba(216, 179, 108, .4);
	border-radius: 16px;
	background: rgba(21, 21, 23, .97);
	box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}

.hhm-kp__summary-meta { font-size: .78rem; color: var(--qf-text-2); }
.hhm-kp__summary-meta strong { display: block; color: var(--qf-gold); font-size: 1.05rem; }
.hhm-kp__summary-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Cascade defense: main.css paints h1–h4 ink with !important inside the site
   shell — reclaim the smart-feature scopes exactly like archive.css does. */
@media screen {
	body.hhm-site .hhm-site-shell .hhm-kp h1 { color: #fff !important; }
	body.hhm-site .hhm-site-shell .hhm-kp h2,
	body.hhm-site .hhm-site-shell .hhm-kp h3,
	body.hhm-site .hhm-site-shell .hhm-kp-band__title,
	body.hhm-site .hhm-site-shell .hhm-ql__head h2 { color: var(--qf-text) !important; }
	body.hhm-site .hhm-site-shell .hhm-kp__lede { color: rgba(255, 255, 255, .8) !important; }

	body.hhm-site .hhm-site-shell .hhm-qla {
		background: transparent !important;
		border: 1px solid var(--qf-line-2) !important;
		color: var(--qf-text-2) !important;
		border-radius: 12px;
	}

	body.hhm-site .hhm-site-shell .hhm-qla--card { border-radius: 10px; }

	body.hhm-site .hhm-site-shell .hhm-qla:hover,
	body.hhm-site .hhm-site-shell .hhm-qla:focus-visible {
		color: var(--qf-gold) !important;
		border-color: rgba(216, 179, 108, .55) !important;
		background: rgba(216, 179, 108, .08) !important;
	}

	body.hhm-site .hhm-site-shell .hhm-qla.is-added {
		color: #7fd49a !important;
		border-color: rgba(127, 212, 154, .55) !important;
	}

	body.hhm-site .hhm-site-shell .hhm-kp__opt,
	body.hhm-site .hhm-site-shell .hhm-kp__btn--ghost { color: var(--qf-text) !important; }
	body.hhm-site .hhm-site-shell .hhm-kp__opt small { color: var(--qf-text-2) !important; }
	body.hhm-site .hhm-site-shell .hhm-kp__btn:not(.hhm-kp__btn--ghost) { color: #191204 !important; }

	/* main.css also paints generic buttons light — repaint the planner set. */
	body.hhm-site .hhm-site-shell .hhm-kp__opt {
		background: var(--qf-graphite) !important;
		border: 1px solid var(--qf-line-2) !important;
	}

	body.hhm-site .hhm-site-shell .hhm-kp__opt:hover { border-color: rgba(216, 179, 108, .5) !important; }

	body.hhm-site .hhm-site-shell .hhm-kp__opt.is-selected {
		border-color: var(--qf-gold) !important;
		background: rgba(216, 179, 108, .09) !important;
	}

	body.hhm-site .hhm-site-shell .hhm-kp__btn:not(.hhm-kp__btn--ghost) { background: var(--qf-gold-grad) !important; border: 0 !important; }
	body.hhm-site .hhm-site-shell .hhm-kp__btn--ghost { background: transparent !important; border: 1px solid var(--qf-line-2) !important; }

	/* The quote list renders in wp_footer OUTSIDE .hhm-site-shell, where
	   Electro's generic button palette (light grey) still applies — repaint
	   every .hhm-ql control unscoped. */
	body.hhm-site .hhm-ql .hhm-ql__qty button,
	body.hhm-site .hhm-ql .hhm-ql__close,
	body.hhm-site .hhm-ql .hhm-ql__remove,
	body.hhm-site .hhm-ql .hhm-ql__clear {
		background: transparent !important;
		border: 0 !important;
		color: var(--qf-text-2) !important;
	}

	body.hhm-site .hhm-ql .hhm-ql__qty button:hover { color: var(--qf-gold) !important; background: rgba(216, 179, 108, .1) !important; }

	body.hhm-site .hhm-ql .hhm-ql__launcher {
		background: var(--qf-gold-grad) !important;
		border: 0 !important;
		color: #191204 !important;
		box-shadow: 0 10px 28px rgba(212, 175, 55, .45), 0 4px 12px rgba(0, 0, 0, .35) !important;
	}

	body.hhm-site .hhm-ql .hhm-ql__launcher:hover { filter: brightness(1.07); }
	body.hhm-site .hhm-ql .hhm-ql__launcher svg { color: #191204 !important; }
	body.hhm-site .hhm-ql .hhm-ql__count { background: #191204 !important; color: var(--qf-gold) !important; }
	body.hhm-site .hhm-ql .hhm-ql__send { background: #25d366 !important; color: #06250f !important; }
	body.hhm-site .hhm-ql .hhm-ql__drawer { background: var(--qf-graphite) !important; color: var(--qf-text) !important; }
	body.hhm-site .hhm-ql .hhm-ql__head h2 { color: var(--qf-text) !important; }
	body.hhm-site .hhm-ql .hhm-ql__item-meta a { color: var(--qf-text) !important; }
}

/* ------------------------------------------------------------------ *
 * AI Kitchen Consultant chat
 * ------------------------------------------------------------------ */

.hhm-kp__modes { display: flex; gap: 10px; margin: 0 0 20px; }

.hhm-kp__mode {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid var(--qf-line-2);
	border-radius: 999px;
	background: var(--qf-graphite);
	color: var(--qf-text-2);
	font-size: .82rem;
	font-weight: 700;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}

.hhm-kp__mode em {
	font-style: normal;
	font-size: .62rem;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(216, 179, 108, .16);
	color: var(--qf-gold);
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hhm-kp__mode.is-active {
	border-color: var(--qf-gold);
	color: var(--qf-text);
	background: rgba(216, 179, 108, .09);
}

.hhm-kc {
	max-width: 780px;
	border: 1px solid rgba(216, 179, 108, .45);
	border-radius: 18px;
	background: #faf7f0;
	padding: 18px;
	margin: 0 0 30px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.hhm-kc__messages {
	max-height: 460px;
	min-height: 180px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 4px 2px 12px;
}

.hhm-kc__msg { max-width: 88%; }
.hhm-kc__msg--wide { max-width: 100%; width: 100%; }
.hhm-kc__msg p {
	margin: 0;
	padding: 11px 15px;
	border-radius: 14px;
	font-size: .85rem;
	line-height: 1.55;
}

.hhm-kc__msg--bot { align-self: flex-start; }
.hhm-kc__msg--bot p { background: #fff; color: #1b1d1a; border: 1px solid rgba(27, 29, 26, .1); border-bottom-left-radius: 4px; }
.hhm-kc__msg--user { align-self: flex-end; }
.hhm-kc__msg--user p { background: rgba(212, 175, 55, .22); color: #1b1d1a; border-bottom-right-radius: 4px; }

.hhm-kc__typing p { display: inline-flex; gap: 5px; }
.hhm-kc__typing span {
	width: 7px; height: 7px; border-radius: 50%;
	background: rgba(27, 29, 26, .5);
	animation: hhm-kc-bounce 1.2s infinite;
}
.hhm-kc__typing span:nth-child(2) { animation-delay: .15s; }
.hhm-kc__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hhm-kc-bounce { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.hhm-kc__products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.hhm-kc__product {
	border: 1px solid rgba(27, 29, 26, .12);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.hhm-kc__product > a { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #f5f1e8; }
.hhm-kc__product img { max-width: 80%; max-height: 80%; object-fit: contain; }
.hhm-kc__product-meta { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px 12px; }
.hhm-kc__product-meta > a {
	color: #1b1d1a;
	font-size: .76rem;
	font-weight: 600;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.3em;
}
.hhm-kc__product-meta > a:hover { color: var(--qf-gold-deep); }
.hhm-kc__product-meta > span { font-size: .78rem; font-weight: 800; color: #a97818; }
.hhm-kc__product .hhm-qla--pdp { min-height: 34px; font-size: .7rem; border-radius: 9px; }

.hhm-kc__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }

.hhm-kc__chips button {
	padding: 8px 14px;
	border: 1px solid rgba(27, 29, 26, .18);
	border-radius: 999px;
	background: #fff;
	color: #3a3d38;
	font-size: .76rem;
	cursor: pointer;
	transition: color .15s ease, border-color .15s ease;
}

.hhm-kc__chips button:hover { color: #a97818; border-color: rgba(169, 120, 24, .5); }

.hhm-kc__form { display: flex; gap: 10px; align-items: flex-end; }

.hhm-kc__form textarea {
	flex: 1;
	resize: none;
	min-height: 46px;
	max-height: 120px;
	padding: 12px 15px;
	border: 1px solid rgba(27, 29, 26, .22);
	border-radius: 12px;
	background: #fff;
	color: #1b1d1a;
	font-size: .85rem;
	line-height: 1.4;
}

.hhm-kc__form textarea:focus { outline: none; border-color: rgba(169, 120, 24, .6); }

.hhm-kc__note { margin: 10px 0 0; font-size: .68rem; color: rgba(27, 29, 26, .55); }

@media screen {
	/* The chat card is deliberately LIGHT so it pops out of the dark page. */
	body.hhm-site .hhm-site-shell .hhm-kc { background: #faf7f0 !important; }
	body.hhm-site .hhm-site-shell .hhm-kc__form textarea {
		background: #fff !important;
		color: #1b1d1a !important;
		border: 1px solid rgba(27, 29, 26, .22) !important;
	}
	body.hhm-site .hhm-site-shell .hhm-kc__chips button {
		background: #fff !important;
		color: #3a3d38 !important;
		border: 1px solid rgba(27, 29, 26, .18) !important;
	}
	body.hhm-site .hhm-site-shell .hhm-kp__mode { background: var(--qf-graphite) !important; color: var(--qf-text-2) !important; border: 1px solid var(--qf-line-2) !important; }
	body.hhm-site .hhm-site-shell .hhm-kp__mode.is-active { border-color: var(--qf-gold) !important; color: var(--qf-text) !important; background: rgba(216, 179, 108, .12) !important; }
	body.hhm-site .hhm-site-shell .hhm-kc__product-meta > a { color: #1b1d1a !important; }
	body.hhm-site .hhm-site-shell .hhm-kc .hhm-qla {
		background: #191204 !important;
		border: 0 !important;
		color: #edcf70 !important;
	}
	body.hhm-site .hhm-site-shell .hhm-kc .hhm-qla:hover { filter: brightness(1.2); }
	body.hhm-site .hhm-site-shell .hhm-kc .hhm-qla.is-added { color: #7fd49a !important; }
}

/* ------------------------------------------------------------------ *
 * Floating AI concierge (site-wide, docked above WhatsApp)
 * ------------------------------------------------------------------ */

.hhm-bot { position: relative; z-index: 100000; }

.hhm-bot__launcher {
	position: fixed;
	right: 18px;
	bottom: 96px;
	z-index: 100001;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 8px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(140deg, #23211b, #14130f 60%);
	color: #f6f2e8;
	cursor: pointer;
	box-shadow: 0 14px 38px rgba(0, 0, 0, .5), 0 0 0 1px rgba(216, 179, 108, .35), 0 0 26px rgba(212, 175, 55, .22);
	transition: transform .2s ease, box-shadow .2s ease;
}

.hhm-bot__launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(216, 179, 108, .6), 0 0 34px rgba(212, 175, 55, .35); }

.hhm-bot__orb {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #f3dc9a, #d4af37 58%, #8a6a1c 100%);
	color: #191204;
	flex: none;
}

.hhm-bot__orb::before {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0 40%, rgba(243, 220, 154, .9) 50%, transparent 60% 100%);
	animation: hhm-bot-spin 3.2s linear infinite;
}

.hhm-bot__orb svg { position: relative; width: 20px; height: 20px; }

@keyframes hhm-bot-spin { to { transform: rotate(360deg); } }

.hhm-bot__launcher-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.hhm-bot__launcher-txt strong { font-size: .8rem; font-weight: 800; letter-spacing: .02em; }
.hhm-bot__launcher-txt small { font-size: .64rem; color: rgba(246, 242, 232, .62); }

.hhm-bot__launcher.is-nudge { animation: hhm-bot-nudge .6s ease 3; }
@keyframes hhm-bot-nudge { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-7px); } }

.hhm-bot__launcher.is-open .hhm-bot__orb::before { animation-play-state: paused; }

/* Panel */

.hhm-bot__panel {
	position: fixed;
	right: 18px;
	bottom: 158px;
	z-index: 100002;
	width: min(400px, calc(100vw - 28px));
	height: min(600px, calc(100dvh - 190px));
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	overflow: hidden;
	background: #faf7f0;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(216, 179, 108, .4);
	animation: hhm-bot-in .28s cubic-bezier(.2, .9, .3, 1.2);
	transform-origin: bottom right;
}

@keyframes hhm-bot-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.hhm-bot__head {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 13px 14px;
	background:
		radial-gradient(140% 200% at 8% 0%, rgba(243, 220, 154, .3), transparent 55%),
		linear-gradient(135deg, #1d1a13, #0d0c09);
	color: #f6f2e8;
}

.hhm-bot__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #f3dc9a, #d4af37 60%, #8a6a1c);
	color: #191204;
	flex: none;
}

.hhm-bot__avatar svg { width: 18px; height: 18px; }

.hhm-bot__id { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.hhm-bot__id strong { font-size: .88rem; letter-spacing: .01em; }
.hhm-bot__id > span { font-size: .66rem; color: rgba(246, 242, 232, .6); display: inline-flex; align-items: center; gap: 5px; }

.hhm-bot__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #35d07f;
	box-shadow: 0 0 6px rgba(53, 208, 127, .9);
	animation: hhm-bot-pulse 2s ease infinite;
}

@keyframes hhm-bot-pulse { 50% { opacity: .5; } }

.hhm-bot__head-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.hhm-bot__human {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(37, 211, 102, .16);
	color: #47e084;
	transition: background .15s ease;
}

.hhm-bot__human:hover { background: rgba(37, 211, 102, .3); color: #47e084; }
.hhm-bot__human svg { width: 16px; height: 16px; }

.hhm-bot__min {
	border: 0;
	background: transparent;
	color: rgba(246, 242, 232, .7);
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
	padding: 2px 6px;
}

.hhm-bot__min:hover { color: #fff; }

.hhm-bot__messages {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 13px;
	background:
		radial-gradient(120% 60% at 100% 0%, rgba(212, 175, 55, .06), transparent 60%),
		#faf7f0;
}

.hhm-bot__msg { max-width: 92%; }
.hhm-bot__msg.is-in { animation: hhm-bot-msg .24s ease; }
@keyframes hhm-bot-msg { from { opacity: 0; transform: translateY(8px); } }

.hhm-bot__msg p {
	margin: 0;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: .84rem;
	line-height: 1.55;
}

.hhm-bot__msg--bot { align-self: flex-start; }
.hhm-bot__msg--bot p { background: #fff; color: #1b1d1a; border: 1px solid rgba(27, 29, 26, .09); border-bottom-left-radius: 5px; box-shadow: 0 2px 8px rgba(27, 29, 26, .05); }
.hhm-bot__msg--user { align-self: flex-end; }
.hhm-bot__msg--user p { background: linear-gradient(135deg, rgba(243, 220, 154, .55), rgba(212, 175, 55, .38)); color: #1b1d1a; border-bottom-right-radius: 5px; }

.hhm-bot__typing p { display: inline-flex; gap: 5px; }
.hhm-bot__typing span { width: 7px; height: 7px; border-radius: 50%; background: rgba(27, 29, 26, .45); animation: hhm-kc-bounce 1.2s infinite; }
.hhm-bot__typing span:nth-child(2) { animation-delay: .15s; }
.hhm-bot__typing span:nth-child(3) { animation-delay: .3s; }

.hhm-bot__products {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 8px;
	width: min(360px, 100%);
}

.hhm-bot__product {
	border: 1px solid rgba(27, 29, 26, .1);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(27, 29, 26, .05);
}

.hhm-bot__product > a { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #f5f1e8; }
.hhm-bot__product img { max-width: 78%; max-height: 78%; object-fit: contain; }
.hhm-bot__product-meta { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; }
.hhm-bot__product-meta > a {
	color: #1b1d1a;
	font-size: .7rem;
	font-weight: 600;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.2em;
}
.hhm-bot__product-meta > span { font-size: .74rem; font-weight: 800; color: #a97818; }

.hhm-bot__qla,
.hhm-bot .hhm-bot__qla {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	border: 0;
	border-radius: 8px;
	background: #191204;
	color: #edcf70;
	font-size: .66rem;
	font-weight: 700;
	cursor: pointer;
	transition: filter .15s ease;
}

.hhm-bot__qla:hover { filter: brightness(1.25); }
.hhm-bot__qla.is-added { color: #7fd49a; }

.hhm-bot__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 13px 10px; background: #faf7f0; }

.hhm-bot__chips button {
	padding: 7px 12px;
	border: 1px solid rgba(27, 29, 26, .16);
	border-radius: 999px;
	background: #fff;
	color: #3a3d38;
	font-size: .72rem;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}

.hhm-bot__chips button:hover { color: #a97818; border-color: rgba(169, 120, 24, .5); }

.hhm-bot__composer {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px 6px;
	background: #faf7f0;
	border-top: 1px solid rgba(27, 29, 26, .08);
}

.hhm-bot__composer textarea {
	flex: 1;
	resize: none;
	min-height: 42px;
	max-height: 110px;
	padding: 11px 14px;
	border: 1px solid rgba(27, 29, 26, .2);
	border-radius: 13px;
	background: #fff;
	color: #1b1d1a;
	font-size: .84rem;
	line-height: 1.4;
}

.hhm-bot__composer textarea:focus { outline: none; border-color: rgba(169, 120, 24, .65); box-shadow: 0 0 0 3px rgba(212, 175, 55, .15); }

.hhm-bot__send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, #edcf70, #d4af37);
	color: #191204;
	cursor: pointer;
	flex: none;
	transition: filter .15s ease, transform .15s ease;
}

.hhm-bot__send:hover { filter: brightness(1.07); transform: scale(1.05); }
.hhm-bot__send[disabled] { opacity: .5; cursor: wait; }
.hhm-bot__send svg { width: 18px; height: 18px; }

.hhm-bot__note { margin: 0; padding: 4px 14px 10px; background: #faf7f0; font-size: .62rem; color: rgba(27, 29, 26, .5); }

/* While the concierge is open it owns the corner: hide the floating WhatsApp
   button (the bot header carries its own WhatsApp handoff) and, on phones,
   the quote launcher under the sheet. */
html.hhm-bot-open .ht-ctc,
html.hhm-bot-open [class^="ht-ctc"],
html.hhm-bot-open [id^="ht-ctc"] { display: none !important; }

@media (max-width: 640px) {
	html.hhm-bot-open .hhm-ql__launcher,
	html.hhm-bot-open .hhm-bot__launcher { display: none !important; }
}

/* Product pages push WhatsApp above the mobile purchase bar — follow it. */
@media (max-width: 1023px) {
	.single-product .hhm-bot__launcher { bottom: 172px; }
	.single-product .hhm-bot__panel { bottom: 232px; height: min(560px, calc(100dvh - 250px)); }
}

@media (max-width: 640px) {
	.hhm-bot__launcher { right: 12px; bottom: 92px; padding: 7px 13px 7px 7px; }
	.single-product .hhm-bot__launcher { bottom: 168px; }
	.hhm-bot__panel,
	.single-product .hhm-bot__panel {
		right: 0;
		left: 0;
		bottom: 0;
		width: 100%;
		height: min(82dvh, 640px);
		border-radius: 22px 22px 0 0;
		transform-origin: bottom center;
	}
	html.hhm-bot-open { overflow: hidden; }
}

/* Cascade defense: Electro's generic button/textarea palette. */
@media screen {
	body.hhm-site .hhm-bot__launcher { background: linear-gradient(140deg, #23211b, #14130f 60%) !important; color: #f6f2e8 !important; border: 0 !important; }
	body.hhm-site .hhm-bot__min { background: transparent !important; border: 0 !important; }
	body.hhm-site .hhm-bot__send { background: linear-gradient(135deg, #edcf70, #d4af37) !important; color: #191204 !important; border: 0 !important; }
	body.hhm-site .hhm-bot__composer textarea { background: #fff !important; color: #1b1d1a !important; border: 1px solid rgba(27, 29, 26, .2) !important; }
	body.hhm-site .hhm-bot__chips button { background: #fff !important; color: #3a3d38 !important; border: 1px solid rgba(27, 29, 26, .16) !important; }
	body.hhm-site .hhm-bot .hhm-bot__qla { background: #191204 !important; color: #edcf70 !important; border: 0 !important; }
	body.hhm-site .hhm-bot__product-meta > a { color: #1b1d1a !important; }
}

/* Planner entry band (homepage + shop) */
.hhm-kp-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 26px 0;
	padding: 20px 24px;
	border: 1px solid rgba(216, 179, 108, .35);
	border-radius: 16px;
	background:
		radial-gradient(110% 160% at 0% 0%, rgba(216, 179, 108, .14) 0%, rgba(216, 179, 108, .03) 55%, transparent 100%),
		var(--qf-graphite);
}

.hhm-kp-band__copy h2,
.hhm-kp-band__copy .hhm-kp-band__title { margin: 0 0 4px; font-size: 1.05rem; color: var(--qf-text); }
.hhm-kp-band__copy p { margin: 0; font-size: .8rem; color: var(--qf-text-2); }
.hhm-kp-band__badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(216, 179, 108, .14);
	color: var(--qf-gold);
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* TranslatePress default floater stays off — the header switcher is ours. */
#trp-floater-ls,
.trp-floating-switcher { display: none !important; }
