.wh-kb-module {
	--wh-kb-accordion-gap: 10px;
	--wh-kb-chrome-border: color-mix(in srgb, currentColor 16%, transparent);
	--wh-kb-chrome-hover: color-mix(in srgb, currentColor 6%, transparent);
	--wh-kb-text: #111111;
	--wh-kb-text-muted: #555555;
	--wh-kb-link: #111111;
	--wh-kb-link-hover: #000000;
	box-sizing: border-box;
	width: 100%;
}

.wh-kb-module *,
.wh-kb-module *::before,
.wh-kb-module *::after {
	box-sizing: border-box;
}

.wh-kb-empty,
.wh-kb-search-empty {
	margin: 0;
	padding: 1rem 0;
}

.wh-kb-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-style: normal;
}

.wh-kb-icon .sr-only,
.wh-kb-module .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* FAQ accordion */
.wh-kb-faq {
	display: flex;
	flex-direction: column;
	gap: var(--wh-kb-accordion-gap);
}

.wh-kb-faq__item {
	border: 1px solid var(--wh-kb-chrome-border);
	border-radius: 8px;
	background: transparent;
	overflow: hidden;
}

.wh-kb-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	margin: 0;
	padding: 1rem 1.15rem;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	text-align: left;
	font: inherit;
	line-height: inherit;
}

.wh-kb-faq__question:hover,
.wh-kb-faq__question:focus {
	outline: none;
}

.wh-kb-faq__question:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.wh-kb-faq__question-text {
	flex: 1 1 auto;
}

.wh-kb-faq__answer {
	padding: 0 1.15rem 1.15rem;
}

.wh-kb-faq__answer[hidden] {
	display: none !important;
}

.wh-kb-faq__answer > *:first-child {
	margin-top: 0;
}

.wh-kb-faq__answer > *:last-child {
	margin-bottom: 0;
}

/* Knowledge Base browse layout */
.wh-kb-module--kb .wh-kb-search {
	position: relative;
	margin: 0 auto 2.5rem;
	max-width: 42rem;
}

.wh-kb-search__icon {
	position: absolute;
	top: 50%;
	left: 1.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transform: translateY(-50%);
	color: #6b7280;
	pointer-events: none;
}

.wh-kb-module--kb .wh-kb-search__input {
	width: 100%;
	max-width: none;
	padding: 1rem 1.15rem 1rem 3.1rem;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 8px;
	background: transparent;
	color: var(--wh-kb-text);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
}

.wh-kb-module--kb .wh-kb-search__input::placeholder {
	color: #6b7280;
}

.wh-kb-module--kb .wh-kb-search__input:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wh-kb-module--kb .wh-kb-search-empty {
	margin: 0 0 1.5rem;
	padding: 0;
	background: transparent;
	color: var(--wh-kb-text-muted);
	font-size: 1.125rem;
	text-align: center;
}

.wh-kb-browse {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 3rem 2.5rem;
	padding: 0;
	background: transparent;
	align-items: start;
}

.wh-kb-module--kb .wh-kb-category {
	min-width: 0;
	background: transparent;
}

.wh-kb-module--kb .wh-kb-category[hidden],
.wh-kb-module--kb .wh-kb-category__item[hidden] {
	display: none !important;
}

.wh-kb-module--kb h3.wh-kb-category__name {
	margin: 0 0 1.15rem;
	padding: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--wh-kb-text);
	background: transparent;
}

.wh-kb-module--kb .wh-kb-category__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.wh-kb-module--kb .wh-kb-category__item {
	margin: 0;
}

.wh-kb-module--kb .wh-kb-article-link {
	display: inline;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 0;
	background: transparent;
	color: var(--wh-kb-link);
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	font: inherit;
	font-size: 18px;
	line-height: 1.5;
}

.wh-kb-module--kb .wh-kb-article-link:hover,
.wh-kb-module--kb .wh-kb-article-link:focus {
	background: transparent;
	color: var(--wh-kb-link-hover);
	text-decoration: underline;
	outline: none;
}

.wh-kb-module--kb .wh-kb-article-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (max-width: 960px) {
	.wh-kb-browse {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.5rem 2rem;
	}
}

@media (max-width: 600px) {
	.wh-kb-module--kb .wh-kb-search {
		margin-bottom: 2rem;
		max-width: none;
	}

	.wh-kb-browse {
		grid-template-columns: 1fr;
		gap: 2.25rem;
	}
}
