/*
 * Zendesk Help Center search widget (.zd-search)
 * Used with /static/common/scripts/zendesk-search.js and
 * common/include/search-widget-zendesk/<brand>/<lang>.html
 * The spinner reuses the site's .loader / .spinner.size-4 / .loader-text styles.
 */

.zd-search {
	width: 100%;
	text-align: left;
}

.zd-search [hidden] {
	display: none !important;
}

.zd-search__sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.zd-search__form {
	margin: 0;
}

.zd-search__label {
	display: block;
	width: 100%;
	margin: 0;
	font-weight: normal;
}

.zd-search input.zd-search__input {
	display: block;
	width: 100%;
	height: 50px;
	margin-bottom: 15px;
	padding: 5px 15px 5px 60px;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: url(/static/common/images/support/search-icon.png) no-repeat 20px center #fff;
	background-size: 20px;
	font-size: 17px;
	text-overflow: ellipsis;
	-webkit-appearance: none;
	appearance: none;
}

.zd-search input.zd-search__input:focus {
	outline: 2px solid #3D73D8;
	outline-offset: 0;
}

.zd-search input.zd-search__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.zd-search__loader {
	padding-top: 20px;
	font-size: 15px;
	text-align: center;
}

.zd-search__message {
	padding-top: 20px;
	font-size: 15px;
	text-align: center;
}

.zd-search__results {
	margin: 0;
	padding: 20px 0;
	list-style: none;
}

.zd-search__result {
	margin: 0 0 18px;
	padding: 0 0 18px;
	border-bottom: 1px solid #ddd;
}

.zd-search__result:last-child {
	border-bottom: none;
}

.zd-search__title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #333;
	overflow-wrap: anywhere;
}

.zd-search__snippet {
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.5;
	color: #555;
	overflow-wrap: anywhere;
}

.zd-search__snippet em {
	font-style: normal;
	font-weight: 600;
	color: #222;
	background: #fff3b0;
}

.zd-search__link {
	font-size: 15px;
	font-weight: 500;
}

.zd-search__newtab-icon {
	display: inline-block;
	margin-left: 5px;
	vertical-align: -1px;
}

.zd-search__link:focus {
	outline: 2px solid #3D73D8;
	outline-offset: 2px;
}

.zd-search__more {
	display: block;
	margin: 0 auto 20px;
}

/* The results loader appended below the list during "Show More" */
.zd-search__results + .zd-search__loader {
	padding-top: 0;
}

@media (max-width: 767px) {
	.zd-search input.zd-search__input {
		font-size: 15px;
	}
}
