/* Honey Badger 0.4.2 — розумний пошук: підказки під полем і сторінка результатів.
   Кольори — через змінні теми; сірий текст #475569 проходить WCAG AA на білому й --hb-bg-light. */

/* ----- Поле пошуку ----- */
.hb-search-form { position: relative; }
.hb-search-input::placeholder { color: #5b6776; }
@media (min-width: 1101px) {
	.hb-header .hb-search-input { width: 220px; }
}

/* ----- Випадаючий список підказок ----- */
.hb-suggest {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 1000;
	max-height: 60vh;
	max-height: min(60dvh, 520px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 6px;
	background: #fff;
	border: 1px solid #dce3ea;
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
	text-align: left;
	color: #172033;
	font-size: 14px;
	line-height: 1.4;
}
.hb-suggest[hidden] { display: none; }
@media (min-width: 921px) {
	.hb-header .hb-suggest { right: auto; width: 420px; max-width: calc(100vw - 32px); }
	.hb-header .hb-suggest.hb-suggest-end { left: auto; right: 0; }
}
.hb-suggest-group + .hb-suggest-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid #e2e8f0; }
.hb-suggest-group-label {
	padding: 8px 10px 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #475569;
}
.hb-suggest-option {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 6px 10px;
	border-radius: 10px;
	color: #172033;
	text-decoration: none;
}
.hb-suggest-option:hover,
.hb-suggest-option.is-active {
	background: var(--hb-bg-light, #f0fdf4);
	color: #172033;
	text-decoration: none;
}
.hb-suggest-option.is-active { outline: 2px solid var(--hb-primary, #15803d); outline-offset: -2px; }
.hb-suggest-logo {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	object-fit: contain;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}
.hb-suggest-logo-empty,
.hb-ss-logo-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--hb-primary, #15803d);
	background: var(--hb-bg-light, #f0fdf4);
}
.hb-suggest-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.hb-suggest-title { font-weight: 600; overflow-wrap: anywhere; }
.hb-suggest-meta { font-size: 12px; color: #475569; }
.hb-suggest-badge,
.hb-ss-badge {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	padding: 1px 8px;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--hb-primary, #15803d);
	background: var(--hb-bg-light, #f0fdf4);
	border: 1px solid currentColor;
	border-radius: 999px;
}
.hb-suggest-empty { padding: 10px; color: #475569; }
.hb-suggest-option.hb-suggest-all {
	margin-top: 4px;
	border-top: 1px solid #e2e8f0;
	border-radius: 0 0 10px 10px;
	font-weight: 600;
	color: var(--hb-primary, #15803d);
	overflow-wrap: anywhere;
}

/* ----- Сторінка результатів ----- */
.hb-smart-results { max-width: 1000px; padding-bottom: 48px; }
.hb-smart-results .hb-search-header h1 { overflow-wrap: anywhere; }
.hb-smart-results .hb-search-count,
.hb-smart-results .hb-search-hint { color: #475569; }
.hb-search-form-wrap .hb-search-input { flex: 1; width: auto; min-width: 0; }
.hb-ss-section { margin: 0 0 36px; }
.hb-ss-title { margin: 0 0 14px; font-size: 22px; color: #172033; }
.hb-ss-offers {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: 16px;
}
.hb-ss-offer {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 18px;
	background: #fff;
	border: 1px solid #dce3ea;
	border-radius: 16px;
}
.hb-ss-offer-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hb-ss-offer-head > div { min-width: 0; }
.hb-ss-logo {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	object-fit: contain;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	font-size: 22px;
}
.hb-ss-offer-title { margin: 0 0 4px; font-size: 18px; overflow-wrap: anywhere; }
.hb-ss-offer-title a { color: #172033; }
.hb-ss-conditions { display: grid; gap: 6px; margin: 0; }
.hb-ss-conditions div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 8px 12px; background: var(--hb-bg-light, #f0fdf4); border-radius: 10px; }
.hb-ss-conditions dt { font-size: 13px; color: #475569; }
.hb-ss-conditions dd { margin: 0; font-weight: 700; color: #172033; }
.hb-ss-note { margin: 0; font-size: 13px; color: #475569; }
.hb-ss-more {
	align-self: flex-start;
	margin-top: auto;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: var(--hb-primary, #15803d);
	border-radius: 8px;
}
.hb-ss-more:hover { color: #fff; background: var(--hb-bg-dark, #064e3b); text-decoration: none; }
.hb-ss-articles { display: grid; gap: 12px; }
.hb-ss-article { padding: 16px 18px; background: #fff; border: 1px solid #dce3ea; border-radius: 14px; }
.hb-ss-article h3 { margin: 0 0 6px; font-size: 18px; overflow-wrap: anywhere; }
.hb-ss-article h3 a { color: #172033; }
.hb-ss-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 6px; font-size: 12px; color: #475569; }
.hb-ss-meta span { font-weight: 600; color: var(--hb-primary, #15803d); }
.hb-ss-excerpt { margin: 0; font-size: 14px; color: #475569; }
.hb-ss-more-link { display: inline-block; margin-top: 12px; font-weight: 600; }
.hb-ss-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hb-ss-chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	color: #172033;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
}
.hb-ss-chip:hover { color: var(--hb-primary, #15803d); border-color: var(--hb-primary, #15803d); text-decoration: none; }
.hb-ss-empty { margin: 0 0 36px; background: #fff; border: 1px solid #dce3ea; color: #172033; }
.hb-ss-empty p { margin: 0 0 10px; }
.hb-ss-empty .hb-ss-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0; padding: 0; list-style: none; }
.hb-ss-links a { font-weight: 600; }

@media (max-width: 600px) {
	.hb-smart-results .hb-search-header h1 { font-size: 22px; }
	.hb-ss-offer { padding: 16px; }
	.hb-ss-title { font-size: 20px; }
}
