/* Help Centre live search — v2.5.45 matches reference FAQ UX */

.help-search {
	position: relative;
}

.help-search.is-filled,
.help-search:focus-within {
	border-color: #00d5be !important;
}

/* X clear inside search box — hidden until typing; no theme button chrome */
.help-search__clear,
button.help-search__clear {
	display: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	border: 0 !important;
	border-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 4px !important;
	margin-left: 8px;
	cursor: pointer;
	line-height: 0;
	flex-shrink: 0;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	border-radius: 0;
}

.help-search.is-filled .help-search__clear,
.help-search.is-filled button.help-search__clear {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}

.help-search__clear:hover,
.help-search__clear:focus,
.help-search__clear:active {
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.help-search__clear:hover svg {
	stroke: #111827;
}

.rg-help-search-host {
	width: 100%;
	background: #f3f4f6;
}

.rg-help-search-panel {
	width: 100%;
	padding: 24px 20px 48px;
	box-sizing: border-box;
}

.rg-help-search-panel__inner {
	max-width: 920px;
	margin: 0 auto;
}

.rg-help-search-panel__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 18px;
	width: 100%;
}

.rg-help-search-panel__summary {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	font-weight: 400;
	color: #4b5563;
	flex: 1;
	min-width: 0;
}

.rg-help-search-panel__summary strong {
	color: #111827;
	font-weight: 700;
}

/* Text link "Clear search" — same row as result count, teal, no button chrome */
.rg-help-search-panel__clear,
button.rg-help-search-panel__clear {
	appearance: none !important;
	-webkit-appearance: none !important;
	border: 0 !important;
	border-color: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	color: #14b8a6 !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	padding: 0 !important;
	margin: 0;
	white-space: nowrap;
	flex-shrink: 0;
	text-decoration: none;
	border-radius: 0;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
}

.rg-help-search-panel__clear:hover,
.rg-help-search-panel__clear:focus,
.rg-help-search-panel__clear:active {
	color: #0d9488 !important;
	background: transparent !important;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	text-decoration: underline;
}

.rg-help-search-loading {
	color: #6b7280;
	padding: 12px 0;
}

.rg-help-search-results {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rg-help-search-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px;
	background: #ffffff;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
	text-decoration: none !important;
	color: inherit;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rg-help-search-card:hover,
.rg-help-search-card:focus,
.rg-help-search-card.is-active {
	border: 0;
	outline: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 0 0 1px #14b8a6;
}

.rg-help-search-card__icon {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: #14b8a6;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 2px;
	line-height: 1;
}

.rg-help-search-card__content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.rg-help-search-card__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 16px;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.35;
}

.rg-help-search-card__chevron {
	color: #9ca3af;
	font-weight: 400;
	font-size: 18px;
	line-height: 1;
}

.rg-help-search-card__category {
	font-size: 13px;
	font-weight: 600;
	color: #14b8a6;
	line-height: 1.3;
}

.rg-help-empty {
	background: #ffffff;
	border: 0;
	border-radius: 14px;
	padding: 48px 28px;
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.rg-help-empty__icon {
	margin-bottom: 16px;
}

.rg-help-empty__title {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.3;
	color: #1f2937;
}

.rg-help-empty__hint {
	margin: 0 0 24px;
	font-size: 15px;
	color: #6b7280;
	line-height: 1.5;
}

.rg-help-empty__suggest {
	appearance: none;
	border: 0;
	background: transparent;
	color: #14b8a6;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}

.rg-help-empty__suggest:hover {
	text-decoration: underline;
}

.rg-help-empty__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 10px;
	background: #14b8a6;
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.rg-help-empty__cta:hover {
	background: #0d9488;
}

@media (max-width: 640px) {
	.rg-help-search-panel {
		padding: 20px 16px 36px;
	}

	.rg-help-search-panel__meta {
		align-items: center;
	}

	.rg-help-search-card {
		padding: 16px;
	}

	.rg-help-empty {
		padding: 36px 18px;
	}
}
