/* Vue SearchNav / SearchBox / Search.vue styles, previously scoped in the Vue bundle. */

.nysba-search-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	justify-content: center;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9999;
}

.nysba-search-modal.is-open {
	display: flex;
}

.nysba-search-modal-overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

.nysba-search-modal-content {
	position: relative;
	color: #000;
	background: white;
	padding: 2rem;
	border-radius: 8px;
	z-index: 10000;
	width: 100%;
	max-width: 1200px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nysba-search-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	z-index: 1;
	cursor: pointer;
}

.nysba-search-modal .searchContainer {
	position: relative;
	margin-bottom: 2.5rem;
	padding-top: 3.75rem;
	background: #fff;
}

.nysba-search-modal .suggestions-box ul {
	display: block;
}

.search-box {
	position: relative;
}

.search-box-inner {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	width: 100%;
	max-width: 90rem;
	margin-inline: auto;
	padding-inline: 5rem;
}

.search-box input {
	font-size: 2rem;
	font-weight: 500;
	color: #fff;
	padding: 0.625rem 0;
	margin-bottom: 1.875rem;
	background-color: transparent;
	border-top: 0;
	border-right: 0;
	border-left: 0;
	border-bottom: 1px solid #fff;
	width: 100%;
}

.search-box input::placeholder {
	font-size: 24px;
	color: #eee;
}

.search-box.modal input::placeholder {
	color: rgba(0, 0, 0, 0.75);
}

.search-box.modal input {
	color: #000;
	border-bottom: 1px solid #000;
}

.search-box button {
	font-size: 1rem;
	font-weight: 700;
	line-height: 3.875rem;
	padding: 0 2.75rem;
	height: 3.875rem;
	margin-bottom: 1.875rem;
	background-color: #fff;
	border-radius: 0 0 1.875rem 0;
	border: 0;
	box-shadow: 0 0 0 1px rgba(1, 22, 51, 0.05), 0 4px 10px 0 rgba(1, 20, 46, 0.1);
	appearance: none;
	cursor: pointer;
	white-space: nowrap;
}

.suggestions-box {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	border: 1px solid #ccc;
	background: white;
	z-index: 1000;
}

.suggestions-box ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: block !important;
	height: auto !important;
}

.suggestions-box ul > li {
	padding: 10px;
	cursor: pointer;
	height: auto !important;
	text-align: left !important;
	justify-content: flex-start !important;
}

.suggestions-box li:hover,
.suggestions-box li:focus,
.suggestions-box li.highlighted {
	background: #f0f0f0;
	outline: none;
}

.algolia-search .searchContainer {
	position: relative;
	margin-bottom: 2.5rem;
	padding-top: 3.75rem;
	background: linear-gradient(90deg, #002e6c 0%, #8251fc 100%);
}

.algolia-search .searchContainerTabs {
	display: none;
	gap: 2rem;
	width: 100%;
	max-width: 90rem;
	margin-inline: auto;
	padding-inline: 5rem;
}

.algolia-search .search-component-main {
	width: 100%;
	max-width: 90rem;
	margin-inline: auto;
	padding-inline: 5rem;
}

.algolia-search .search-component-grid {
	display: flex;
	justify-content: space-between;
	gap: 3.5rem;
}

@media (max-width: 1024px) {
	.search-box-inner,
	.algolia-search .search-component-main {
		padding-inline: 3.125rem;
	}
}

@media (max-width: 768px) {
	.search-box-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}
}

@media (max-width: 620px) {
	.search-box input::placeholder {
		font-size: 18px;
	}

	.search-box-inner,
	.algolia-search .search-component-main {
		padding-inline: 1.875rem;
	}

	.algolia-search .search-component-grid {
		flex-direction: column;
	}
}
