/*=========== Start ezd-page_breadcrumb css ============*/
.ezd-page_breadcrumb {
	background: var(--black_50);
	padding: 12px 0;
	position: relative;
	z-index: 1;
	margin-top: -2px;

	.row {
		align-items: center;
	}

	.date {
		color: var(--black_500);
		float: right;
		font-size: 13px;

		i {
			padding-right: 5px;
		}
	}
}

/*=========== End ezd-page_breadcrumb css ============*/

/* Search Banner area
============================================================================================ */
.ezd_search_banner {
	background-color: #fafafa;
	padding-top: 140px;
	padding-bottom: 70px;
	background-position: bottom;
	background-repeat: no-repeat;
	background-size: contain;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;

	&.no_keywords #ezd-search-results {
		top: calc(100% + 10px);
	}

	&.has_bg_dark {
		background-size: cover;
		background-repeat: no-repeat;

		.ezd_search_keywords {
			.label {
				color: #d6d9dc;
			}

			ul li a {
				color: #ebebeb;
				text-decoration: none;
			}
		}

		&.no_cs_bg {
			background-image: url("../images/search-bg.jpeg");
		}
	}

	.input-wrapper label {
		position: absolute;
		top: 48%;
		left: -2px;
	}

	.banner_shap_img {
		li {
			&:first-child {
				top: auto;
				bottom: 0;
			}

			&:last-child {
				top: auto;
				bottom: 0;
				left: auto;
				right: 0;
			}
		}
	}
}

form.ezd_search_form {
	max-width: 650px;

	@media (max-width: 767px) {
		max-width: 80%;
	}

	.form-group {
		margin-bottom: 0;
		padding-bottom: 0;

		.input-wrapper {
			input {
				font-size: 14px;
				font-weight: 400;
				height: 50px;
				line-height: 50px;
				box-shadow: 0 1px 1px rgba(11, 80, 115, 0.3),
					0 1px 5px rgba(60, 64, 67, 0.1);
				padding-right: 30px;
				margin-bottom: 0;

				&::-webkit-search-cancel-button {
					padding-right: 28px;

					&:hover {
						cursor: pointer;
					}
				}

				&:focus,
				&:hover {
					box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3),
						0 2px 6px 2px rgba(60, 64, 67, 0.15);
				}

				&:focus {
					background: var(--bs-white)!important;
					color: var(--black_900);
					outline: none;

					&::placeholder {
						color: var(--black_500);
					}

					+ label i {
						color: var(--black_900);
					}
				}

				&::placeholder {
					color: var(--black_500);
					font-size: 14px;
					font-weight: 400;
				}
			}
		}
	}
}

.ezd_search_keywords {
	.label {
		color: #54595d;
		font-weight: 400;
	}

	ul {
		li {
			margin-left: 0;
			margin-bottom: 0;
			margin-top: 0;

			a {
				background: transparent;
				padding: 0;
				border-bottom: 2px solid rgba(255, 255, 255, 0.2);
				transition: all 300ms linear 0s;
				border-radius: 0;
				color: #54595d;
				font-weight: 500;
				font-size: 14px;
				line-height: 1.2;
				display: inline;
			}

			&:hover {
				a {
					border-color: rgba(255, 255, 255, 0.5);
				}
			}
		}
	}
}

/** === Doc search form result === **/
.doc_banner_text .banner_search_form {
	transition: all 0.4s;
}

.doc_banner_text .banner_search_form {
	margin-top: 45px;
}

.ezd_search_form,
.doc_banner_text .banner_search_form {
	position: relative;
}

#ezd-search-results {
	padding: 0;
	border: none;
	position: absolute;
	width: 100%;
	background: var(--bs-white);
	border-radius: 10px;
	box-shadow: 0 3px 4px 0 rgba(4, 73, 89, 0.06);
	font-size: 14px;
	font-weight: 400;
	display: none;
	transition: all 0.4s;
	z-index: 99;
	top: calc(100% - 0px);

	a {
		text-decoration: none;
	}

	&.ajax-search {
		display: block;
	}

	&::before {
		content: "";
		width: 12px;
		height: 12px;
		background: var(--bs-white);
		position: absolute;
		top: -6px;
		transform: rotate(45deg);
		left: 40px;
		border-left: 1px solid var(--bs-white);
		border-top: 1px solid var(--bs-white);
	}

	.error.title {
		margin-bottom: 0;
		text-align: left;
		color: #dc3545;
		padding: 15px;
	}

	.doc-section {
		border-right: none;
		padding-left: 30px;
		font-size: 16px;
		font-weight: 700;
		line-height: initial;
		margin-bottom: 5px;
	}

	.search-result-item {
		padding: 10px 20px;
		position: relative;
		border-bottom: 1px solid var(--black_50);
		transition: 0.3s all;
		cursor: pointer;
		&.no-thumbnail{
			.breadcrumb.eazydocs-search-wrapper, .doc-section{
				padding-left: 0;
			}
		}

		a.title {
			display: flex;
			color: var(--black_700);
		}

		&:last-of-type {
			border-bottom: none;
		}

		&:hover svg.block.h-auto.w-16 {
			display: block;
		}

		&:hover {
			background: var(--ezd_brand_color);

			.breadcrumb-item,
			a {
				color: #fff;
			}
		}

		img,
		svg.block.h-full.w-auto {
			position: absolute;
			top: 12px;
			margin: auto;
		}

		svg.block.h-auto.w-16 {
			position: absolute;
			right: 20px;
			top: 0;
			bottom: 0;
			margin: auto;
			display: none;
		}

		.breadcrumb .breadcrumb-item {
			a {
				display: inline-flex;
			}
		}
	}
}

.eazydocs-breadcrumb-root-title li.breadcrumb-item {
	color: rgb(119 122 175) !important;
	background: rgb(245 245 250);
	width: 100%;
	padding: 5px 15px !important;
}

#ezd-search-results .breadcrumb .breadcrumb-item {
	padding-left: 0;
}

ol.eazydocs-search-wrapper .breadcrumb .breadcrumb-item:first-child {
	display: none;
}

#ezd-search-results .breadcrumb.eazydocs-search-wrapper {
	padding-left: 30px;
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
}

#ezd_searchInput ~ .spinner {
	position: absolute;
	right: 27px;
	display: none;
	background: var(--bs-white);
	z-index: 999;
	bottom: 17px;
	border-width: 2px;
	width: 18px;
	height: 18px;
	vertical-align: -0.125em;
}

.spinner-border {
	display: inline-block;
	width: 2rem;
	height: 2rem;
	vertical-align: middle;
	border: 0.25em solid rgba(0, 0, 0, 0.14);
	border-right-color: transparent;
	border-radius: 50%;
	-webkit-animation: 0.75s linear infinite spinner-border;
	animation: 0.75s linear infinite spinner-border;

	&.spinner-border-sm {
		width: 1rem;
		height: 1rem;
		border-width: 0.2em;
	}

	.visually-hidden {
		visibility: hidden;
	}
}

@keyframes spinner-border {
	100% {
		transform: rotate(360deg);
	}
}

.alert-danger {
	background: rgba(255, 243, 244, 0.7);
	border-color: #fbadb3;
}

.alert-success {
	background: rgba(241, 253, 243, 0.7);
	border-color: #94e3a1;
}

.has_drop #ezd_searchInput {
	+ .spinner {
		right: 130px;
	}

	&::-webkit-search-cancel-button {
		right: 130px;
		position: absolute;
	}
}

.ezd_search_form {
	margin: 10px auto 0;

	.form-group {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

	.input-wrapper {
		position: relative;
		flex: 1;

		i.left-icon {
			position: absolute;
			left: 25px;
			font-size: 16px;
			color: var(--black_900);
			top: 50%;
			transform: translateY(-50%) rotate(-90deg);
		}

		input {
			background: var(--bs-white)!important;
			border: 0;
			height: 60px;
			font-size: 16px;
			padding-left: 52px;
			width: 100%;
			border-radius: 45px;
			padding-right: 155px;
			background: rgba(255, 255, 255, 0.2);
			color: var(--black_900);

			&:hover {
				background: rgba(255, 255, 255, 0.27);
			}
		}
	}
}

/** === Focust Search Form === **/
body.ezd-search-focused {
	.focus_overlay {
		opacity: 1;
		visibility: visible;
	}

	.banner_search_form {
		position: relative;
		z-index: 999 !important;
	}
}

.focus_overlay {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	visibility: hidden;
	z-index: 999;
	opacity: 0;
	background: rgba(0, 0, 0, 0.4);
	transition: all 0.3s linear;
	width: 100% !important;
	max-width: 100% !important;
}

.ezd_search_form .header_search_form_info {
	position: relative;

	&.search_form_wrap {
		.search_submit_btn {
			position: absolute;
			right: 0;
			box-shadow: none !important;
			height: 100%;
			width: 50px;
			border: none;
			background: var(--ezd_brand_color);
			display: flex;
			align-items: center;
			justify-content: center;
			top: 0;

			> i {
				font-size: 16px;
				color: var(--black_900);
			}

			> svg {
				width: auto;
				max-width: 20px;
				height: auto;
				max-height: 100%;
				min-width: 18px;
				object-fit: cover;
			}
		}
	}

	.form-group.ezd-right {
		.search_field_wrap {
			padding-left: 25px;
			border-radius: 45px;
		}
		.search_submit_btn {
			border-radius: 0 5px 5px 0;
		}

	}

	.form-group.ezd-left {
		.search_field_wrap {
			padding-left: 70px;
			border-radius: 45px;
		}
		.search_submit_btn {
			left: 0;
			right: auto;
			border-radius: 5px 0 0 5px;
		}

	}
}

.ezd_search_keywords {
	text-align: left;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	font-weight: 500;
	justify-content: center;
	margin-top: 15px;

	span {
		font-size: 14px;
		color: var(--black_900);
		margin-right: 12px;
	}

	ul {
		margin: 0;
		padding: 0;

		li {
			display: inline-block;
			margin-right: 7px;
		}
	}
}

.breadcrumb .breadcrumb-item + .breadcrumb-item:before {
	content: "5";
	font-family: eleganticons;
	color: #b7b9be;
	padding: 0 2px;
}

.header_search_keyword {
	text-align: left;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	font-weight: 500;
	justify-content: center;
	margin-top: 10px;

	&.justify-content-end{
		justify-content: flex-end;
	}

	&.justify-content-start {
		justify-content: flex-start;
	}

	.search_keyword_label {
		font-size: 14px;
		margin-right: 15px;
		color: var(--black_100);
	}

	ul {
		margin: 0;
		display: flex !important;
		flex-flow: row !important;

		li {
			display: inline-block;
			margin: 0 3px 0;

			a {
				display: block;
				font-size: 13px;
				padding: 0 19px;
				border-radius: 45px;
				background: var(--ezd_brand_color);
				color: #fff;
			}
		}
	}
}

.header_search_form_info {
	input[type="search"] {
		padding-right: 0 !important;
	}

	&.search_form_wrap {
		.form-group {
			padding-bottom: 0;
		}

		input[type="search"] {
			height: 75px;
			background: #fff;
			border: 0;

			&:focus {
				outline: none;
			}
		}
	}
}

.spinner {
	&.search_form_spinner {
		position: absolute;
		right: 20px;
		top: 50%;
		transform: translateY(-55%);
		display: none;
		background: #fff;
		z-index: 999;

		> img {
			max-width: 22px;
		}
	}
}

body.ezd-search-focused {
	.ezd_click_capture {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		visibility: hidden;
		z-index: 110;
		opacity: 0;
		background: rgba(0, 0, 0, 0.4);
		transition: all 0.3s linear;
	}
}
