/* Instant search box and dropdown. Colours follow the site header:
   navy #133a61 (menu bar), text #333, light grey borders. */

.capebar-is {
	position: relative;
	max-width: 640px;
	font-family: Roboto, sans-serif;
}

.capebar-is__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.capebar-is__count {
	min-height: 1.4em;
	margin: 0 0 6px;
	font-size: 13px;
	color: #6b7280;
}

/* !important beats the Elementor kit input rules, which set padding,
   border and outline on every input. */
.capebar-is .capebar-is__input {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 0 16px 0 46px !important;
	border: 1px solid #d0d5db !important;
	border-radius: 4px !important;
	outline: none !important;
	font-size: 16px;
	color: #333;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%236b7280' d='M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z'/%3E%3C/svg%3E") no-repeat 17px center / 16px;
	transition: border-color .15s, box-shadow .15s;
}

.capebar-is .capebar-is__input:focus {
	border-color: #133a61 !important;
	box-shadow: 0 0 0 3px rgba(19, 58, 97, .15);
}

.capebar-is__results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 9999999;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 4px;
	box-shadow: 0 12px 32px rgba(0, 28, 56, .14);
}

.capebar-is__results[hidden] {
	display: none;
}

.capebar-is .capebar-is__result {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 16px;
	border-bottom: 1px solid #eef0f3;
	color: #333;
	text-decoration: none;
}

.capebar-is .capebar-is__result:last-child {
	border-bottom: 0;
}

.capebar-is .capebar-is__result:hover,
.capebar-is .capebar-is__result.is-active {
	background: #f2f5f9;
}

.capebar-is__thumb {
	flex: none;
	width: 44px;
	height: 56px;
	border-radius: 3px;
	object-fit: cover;
	object-position: top;
	background: #eef1f4;
}

.capebar-is__thumb--placeholder {
	object-fit: cover;
	object-position: center;
}

.capebar-is__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.capebar-is__title {
	overflow: hidden;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: #133a61;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.capebar-is__meta {
	font-size: 13px;
	color: #6b7280;
}

.capebar-is__empty {
	margin: 0;
	padding: 16px;
	font-size: 15px;
	color: #6b7280;
}

/* Header search: the panel floats under the Elementor search box. The
   script sets top, left and width. */
.capebar-is.capebar-is--floating {
	position: fixed;
	z-index: 9999999;
	max-width: none;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e3e6ea;
	border-radius: 4px;
	box-shadow: 0 12px 32px rgba(0, 28, 56, .14);
}

.capebar-is.capebar-is--floating[hidden] {
	display: none;
}

.capebar-is--floating .capebar-is__count {
	min-height: 0;
	margin: 0;
	padding: 10px 16px 8px;
	border-bottom: 1px solid #eef0f3;
}

.capebar-is--floating .capebar-is__count[hidden] {
	display: none;
}

.capebar-is--floating .capebar-is__results {
	position: static;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

