.hh-preq {
	--hh-preq-accent: #0f6b4c;
	--hh-preq-accent-soft: #e8f3ee;
	--hh-preq-text: #1a1a1a;
	--hh-preq-muted: #6b6b6b;
	--hh-preq-border: #e2e2e2;
	--hh-preq-surface: #fff;
	--hh-preq-error: #b32d2e;
	color: var(--hh-preq-text);
	max-width: 860px;
	margin: 0 auto;
	position: relative;
}

.hh-preq button,
.hh-preq input,
.hh-preq select,
.hh-preq textarea {
	font: inherit;
}

.hh-preq-loading,
.hh-preq-empty {
	color: var(--hh-preq-muted);
	text-align: center;
	padding: 2em 0;
}

/* Intro */

.hh-preq-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 20px;
}

.hh-preq-intro p {
	margin: 0;
	flex: 1 1 320px;
}

.hh-preq-intro-text {
	flex: 1 1 320px;
}

.hh-preq-intro-title {
	margin: 0 0 6px;
	font-size: 1.4em;
	color: var(--hh-preq-accent);
}

.hh-preq-intro-text p {
	margin: 0 0 2px;
}

.hh-preq-note {
	background: var(--hh-preq-accent-soft);
	border-radius: 8px;
	padding: 10px 14px;
}

.hh-preq-note a {
	color: var(--hh-preq-accent);
	font-weight: 600;
}

.hh-preq-primary,
.hh-preq-secondary {
	border-radius: 8px;
	padding: 10px 18px;
	cursor: pointer;
	font-weight: 600;
	line-height: 1.2;
}

.hh-preq-primary {
	background: var(--hh-preq-accent);
	border: 1px solid var(--hh-preq-accent);
	color: #fff;
}

.hh-preq-primary:disabled {
	opacity: .6;
	cursor: wait;
}

.hh-preq-secondary {
	background: transparent;
	border: 1px solid var(--hh-preq-border);
	color: var(--hh-preq-text);
}

/* Toolbar */

.hh-preq-toolbar {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.hh-preq-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--hh-preq-border);
}

.hh-preq-tab {
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	padding: 8px 12px;
	cursor: pointer;
	color: var(--hh-preq-muted);
	font-weight: 600;
	margin-bottom: -1px;
}

.hh-preq-tab.is-active {
	color: var(--hh-preq-accent);
	border-bottom-color: var(--hh-preq-accent);
}

.hh-preq-tab-count {
	font-weight: 400;
	font-size: .85em;
}

.hh-preq-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hh-preq-search,
.hh-preq-select {
	border: 1px solid var(--hh-preq-border);
	border-radius: 8px;
	padding: 8px 10px;
	background: var(--hh-preq-surface);
	min-width: 0;
}

.hh-preq-search {
	flex: 1 1 200px;
}

.hh-preq-select {
	flex: 0 1 auto;
	max-width: 100%;
}

.hh-preq-catfilter {
	position: relative;
	flex: 0 1 240px;
	min-width: 0;
}

.hh-preq-catfilter-input {
	width: 100%;
	box-sizing: border-box;
	padding-inline-end: 30px;
}

.hh-preq-catfilter-clear {
	position: absolute;
	top: 50%;
	inset-inline-end: 6px;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hh-preq-accent-soft);
	color: var(--hh-preq-accent);
	cursor: pointer;
	line-height: 1;
}

.hh-preq-catfilter-clear[hidden],
.hh-preq-catfilter-list[hidden] {
	display: none;
}

.hh-preq-catfilter-list {
	position: absolute;
	top: calc(100% + 4px);
	inset-inline: 0;
	z-index: 50;
	max-height: 320px;
	overflow-y: auto;
	background: var(--hh-preq-surface);
	border: 1px solid var(--hh-preq-border);
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
	padding: 4px 0;
}

.hh-preq-catfilter-group {
	padding: 8px 12px 2px;
	font-size: .8em;
	font-weight: 700;
	color: var(--hh-preq-muted);
}

.hh-preq-catfilter-option {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 12px;
	cursor: pointer;
}

.hh-preq-catfilter-option:hover,
.hh-preq-catfilter-option.is-active {
	background: var(--hh-preq-accent-soft);
}

.hh-preq-catfilter-option.is-selected {
	font-weight: 700;
	color: var(--hh-preq-accent);
}

.hh-preq-catfilter-count {
	color: var(--hh-preq-muted);
	font-size: .85em;
}

.hh-preq-catfilter-empty {
	padding: 8px 12px;
	color: var(--hh-preq-muted);
}

/* Cards */

.hh-preq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hh-preq-group {
	font-size: 1.3em;
	margin: 1.2em 0 .2em;
}

.hh-preq-section {
	font-size: 1em;
	color: var(--hh-preq-muted);
	margin: .6em 0 0;
}

.hh-preq-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--hh-preq-surface);
	border: 1px solid var(--hh-preq-border);
	border-radius: 10px;
	padding: 14px;
}

.hh-preq-card.is-new {
	border-color: var(--hh-preq-accent);
	box-shadow: 0 0 0 3px var(--hh-preq-accent-soft);
}

.hh-preq-card-body {
	flex: 1;
	min-width: 0;
}

.hh-preq-title {
	font-size: 1.05em;
	margin: 0 0 4px;
	overflow-wrap: anywhere;
}

.hh-preq-details {
	margin: 0 0 8px;
	color: var(--hh-preq-muted);
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.hh-preq-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: .85em;
}

.hh-preq-cat {
	background: var(--hh-preq-accent-soft);
	color: var(--hh-preq-accent);
	border: 0;
	border-radius: 999px;
	padding: 2px 10px;
	cursor: pointer;
}

.hh-preq-date {
	color: var(--hh-preq-muted);
	margin-inline-start: auto;
}

/* Card extras: status, brand, photo, dietary tags */

.hh-preq-card-head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.hh-preq-card-text {
	flex: 1;
	min-width: 0;
}

.hh-preq-status {
	display: inline-block;
	margin-inline-start: 8px;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: .75em;
	font-weight: 700;
	vertical-align: middle;
}

.hh-preq-status.is-similar {
	background: #fff4d6;
	color: #7a5600;
}

.hh-preq-status.is-exists {
	background: var(--hh-preq-accent);
	color: #fff;
}

.hh-preq-brand {
	margin: 0 0 4px;
	font-size: .9em;
	font-weight: 600;
	color: var(--hh-preq-muted);
}

.hh-preq-photo {
	flex: 0 0 auto;
}

.hh-preq-photo img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--hh-preq-border);
}

.hh-preq-cat.is-diet {
	background: #fff4d6;
	color: #7a5600;
}

.hh-preq-similar.is-staff .hh-preq-similar-label {
	color: var(--hh-preq-accent);
	font-weight: 700;
}

.hh-preq-diet-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hh-preq-diet-chip {
	border: 1px solid var(--hh-preq-border);
	background: var(--hh-preq-surface);
	color: var(--hh-preq-text);
	border-radius: 999px;
	padding: 4px 12px;
	cursor: pointer;
	font-size: .9em;
}

.hh-preq-diet-chip.is-active {
	background: #7a5600;
	border-color: #7a5600;
	color: #fff;
}

/* Vote button */

.hh-preq-vote {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 64px;
	padding: 6px 4px;
	border: 1px solid var(--hh-preq-border);
	border-radius: 10px;
	background: var(--hh-preq-surface);
	color: var(--hh-preq-text);
	cursor: pointer;
	line-height: 1.1;
}

.hh-preq-vote:hover:not(:disabled) {
	border-color: var(--hh-preq-accent);
}

.hh-preq-vote-arrow {
	font-size: .8em;
	color: var(--hh-preq-muted);
}

.hh-preq-vote-count {
	font-size: 1.25em;
	font-weight: 700;
}

.hh-preq-vote-label {
	font-size: .75em;
	color: var(--hh-preq-muted);
}

.hh-preq-vote.is-voted {
	background: var(--hh-preq-accent);
	border-color: var(--hh-preq-accent);
	color: #fff;
}

.hh-preq-vote.is-voted .hh-preq-vote-arrow,
.hh-preq-vote.is-voted .hh-preq-vote-label {
	color: #fff;
}

.hh-preq-vote.is-mine {
	cursor: default;
	opacity: .7;
}

.hh-preq-vote.is-compact {
	flex-direction: row;
	gap: 6px;
	min-width: 0;
	padding: 4px 10px;
	border-radius: 999px;
}

.hh-preq-vote.is-compact .hh-preq-vote-count {
	font-size: 1em;
}

.hh-preq-added-badge {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 64px;
	padding: 6px 4px;
	border-radius: 10px;
	background: var(--hh-preq-accent-soft);
	color: var(--hh-preq-accent);
	font-weight: 700;
}

/* Similar products */

.hh-preq-similar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
}

.hh-preq-similar-label {
	font-size: .85em;
	color: var(--hh-preq-muted);
}

.hh-preq-product {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 3px 10px 3px 3px;
	border: 1px solid var(--hh-preq-border);
	border-radius: 999px;
	text-decoration: none;
	color: var(--hh-preq-text);
	font-size: .85em;
	background: var(--hh-preq-surface);
}

/* Storefront underlines every link in post content, with a more specific selector. */
.hh-preq .hh-preq-product,
.hh-preq .hh-preq-product:hover,
.hh-preq .hh-preq-product * {
	text-decoration: none !important;
}

.hh-preq-product:hover {
	border-color: var(--hh-preq-accent);
}

.hh-preq-product img,
.hh-preq-product-noimg {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	background: var(--hh-preq-accent-soft);
}

.hh-preq-product-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.hh-preq-product-oos {
	color: var(--hh-preq-error);
	font-size: .9em;
}

/* Form */

.hh-preq-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
	border: 1px solid var(--hh-preq-border);
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 24px;
	background: var(--hh-preq-surface);
}

.hh-preq-form h2 {
	margin: 0 0 8px;
	font-size: 1.2em;
}

.hh-preq-form label {
	font-weight: 600;
	margin-top: 8px;
}

.hh-preq-form input[type="text"],
.hh-preq-form textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--hh-preq-border);
	border-radius: 8px;
	padding: 9px 10px;
}

.hh-preq-optional {
	font-weight: 400;
	color: var(--hh-preq-muted);
}

.hh-preq-suggestions:empty {
	display: none;
}

.hh-preq-suggest-block {
	background: #fafafa;
	border-radius: 8px;
	padding: 10px 12px;
	margin-top: 6px;
}

.hh-preq-suggest-title {
	margin: 0;
	font-size: .9em;
	font-weight: 600;
}

.hh-preq-suggest-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}

.hh-preq-fieldset {
	border: 0;
	padding: 0;
	margin: 8px 0 0;
	min-width: 0;
}

.hh-preq-fieldset legend {
	font-weight: 600;
	padding: 0;
	margin-bottom: 6px;
}

.hh-preq-picked {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
}

.hh-preq-chip {
	background: var(--hh-preq-accent);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 3px 12px;
	cursor: pointer;
}

.hh-preq-picker {
	border: 1px solid var(--hh-preq-border);
	border-radius: 8px;
	overflow: hidden;
}

.hh-preq-picker-filter {
	width: 100%;
	box-sizing: border-box;
	border: 0;
	border-bottom: 1px solid var(--hh-preq-border);
	padding: 8px 10px;
}

.hh-preq-picker-list {
	max-height: 260px;
	overflow-y: auto;
	padding: 4px 10px 10px;
}

.hh-preq-picker-heading {
	font-weight: 700;
	font-size: .85em;
	color: var(--hh-preq-muted);
	margin: 10px 0 4px;
}

.hh-preq-picker-option {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 400 !important;
	margin: 2px 0 2px 14px !important;
	cursor: pointer;
}

.hh-preq-picker-option[hidden],
.hh-preq-picker-group[hidden] {
	display: none;
}

.hh-preq-new-cat-label {
	font-weight: 400 !important;
	font-size: .9em;
}

.hh-preq-error {
	color: var(--hh-preq-error);
	margin: 6px 0 0;
}

.hh-preq-error:empty {
	display: none;
}

.hh-preq-form-actions {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.hh-preq-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.hh-preq-form-row > div {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hh-preq-file {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.hh-preq-photo-field {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}

.hh-preq-form .hh-preq-file-button {
	display: inline-block;
	margin: 0;
	font-weight: 600;
	cursor: pointer;
}

.hh-preq-file-button[hidden] {
	display: none;
}

.hh-preq-photo-preview {
	position: relative;
}

.hh-preq-photo-preview img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--hh-preq-border);
}

.hh-preq-photo-remove {
	position: absolute;
	top: -8px;
	inset-inline-end: -8px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 0;
	background: var(--hh-preq-text);
	color: #fff;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}

.hh-preq-hint {
	margin: 4px 0 0;
	font-size: .85em;
	color: var(--hh-preq-muted);
}

.hh-preq-suggest-block.is-found {
	background: var(--hh-preq-accent-soft);
}

.hh-preq-diet-options {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.hh-preq-form .hh-preq-diet-option {
	font-weight: 400;
	margin: 0;
	cursor: pointer;
}

/* Toast */

.hh-preq-toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translate(-50%, 20px);
	background: var(--hh-preq-text);
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s, transform .2s;
	z-index: 9999;
	max-width: calc(100% - 32px);
}

.hh-preq-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.hh-preq-toast.is-error {
	background: var(--hh-preq-error);
}

@media (max-width: 600px) {
	.hh-preq-card {
		padding: 12px;
		gap: 10px;
	}

	.hh-preq-vote,
	.hh-preq-added-badge {
		min-width: 54px;
	}

	.hh-preq-select {
		flex: 1 1 45%;
	}

	.hh-preq-catfilter {
		flex: 1 1 45%;
	}

	.hh-preq-form-row {
		grid-template-columns: 1fr;
	}

	.hh-preq-photo img {
		width: 56px;
		height: 56px;
	}
}
