/* GitBook Sync — instant docs search. */

:root {
	--gbsync-primary: #008A75;
}

.gbsync-search {
	position: relative;
	max-width: 480px;
}

.gbsync-search__input {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 14px;
	font-size: 15px;
	border: 1px solid #d7dbe0;
	border-radius: 8px;
	background: #fff;
	color: #1f2430;
}

.gbsync-search__input:focus {
	outline: none;
	border-color: var(--gbsync-primary);
	box-shadow: 0 0 0 3px rgba(0, 138, 117, 0.15);
}

.gbsync-search__results {
	position: absolute;
	z-index: 50;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	background: #fff;
	border: 1px solid #e6e8eb;
	border-radius: 10px;
	box-shadow: 0 8px 28px rgba(16, 22, 38, 0.12);
	overflow: hidden;
	max-height: 60vh;
	overflow-y: auto;
}

.gbsync-search__item {
	display: block;
	padding: 10px 14px;
	text-decoration: none;
	border-bottom: 1px solid #f1f3f5;
}

.gbsync-search__item:last-child {
	border-bottom: 0;
}

.gbsync-search__item:hover,
.gbsync-search__item:focus {
	background: #f6f8fb;
}

.gbsync-search__title {
	display: block;
	font-weight: 600;
	color: var(--gbsync-primary);
}

.gbsync-search__excerpt {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
}

.gbsync-search__empty {
	padding: 12px 14px;
	color: #6b7280;
	font-size: 14px;
}
