/*------------------------------------*\
    MODAL
\*------------------------------------*/
.search-error-auto,
.search-auto {
	position: relative;
}

	.search-error-auto.active .search-results-wrapper,
	.search-error-auto.active .search-error-results-wrapper,
	.search-auto.active .search-results-wrapper,
	.search-auto.active .search-error-results-wrapper {
		display: block;
	}

.header-search .search-input,
.search-input {
	display: block;
	width: 100%;
	padding: 6px 9px 5px;
	border: 2px solid #00c0f3;
	border-radius: 25px;
	line-height: 24px;
	color: #666;
	font-size: 16px;
	height: auto;
	/*
      @include placeholder {
          font-size: 12px;
      }
  */
}

@media (min-width: 1025px) {
	.header-search .search-input,
	.search-input {
		font-size: 12px;
	}
}

/* Search form styling */
.search-form-group {
	position: relative;
}

.search-box {
	border-radius: 10px !important;
	position: relative;
}

.search-icon-left {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #272674 !important;
	z-index: 2;
	font-size: 20px;
	background: transparent;
	border: none;
	padding: 0;
}

.search-btn,
.search-btn-close {
	display: block;
	position: absolute;
	top: 6px;
	right: 4px;
	padding: 5px;
	font-size: 16px;
	color: #333;
	cursor: pointer;
}

.search-btn-close {
	top: 2px;
	font-size: 24px;
}

.search-auto-all {
	padding: 10px 15px;
	border-top: 1px solid #e8e8e8;
	clear: both; /* Ensure it doesn't overlap floated elements */
	margin-top: 10px; /* Add some spacing */
}

	.search-auto-all a {
		display: block;
		max-width: 350px;
		margin: 10px auto;
		width: 90%;
		padding: 15px 0;
		background: #00c0f3;
		border: 1px solid #00c0f3;
		color: #fff;
		text-align: center;
		font-weight: 500;
	}

		.search-auto-all a:hover {
			background: rgb(0, 159.762962963, 202.2);
		}

.search-highlight {
	font-weight: 700;
	background-color: rgba(251, 221, 2, 0.5);
}

/*------------------------------------*\
    Results
\*------------------------------------*/
.search-error-results-wrapper,
.search-results-wrapper {
	display: none;
	position: absolute;
	width: 400px;
	right: 0;
	background: #fff;
	border: 1px solid #e8e8e8;
	box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
	letter-spacing: 0.3px;
	z-index: 1051 !important;
	max-height: 400px !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
}

@media (min-width: 768px) {
	.search-error-results-wrapper,
	.search-results-wrapper {
		left: 6px;
		right: 6px;
		width: auto;
	}
}

.search-error-results-wrapper .loading,
.search-results-wrapper .loading {
	height: 80px;
	justify-content: center;
	align-items: center;
	display: flex;
	color: #333;
	font-size: 17px;
}

	.search-error-results-wrapper .loading:before,
	.search-results-wrapper .loading:before {
		display: inline-block;
		content: "\e93d";
		animation: icon-spin 2s linear infinite;
	}

.search-no-results {
	padding: 25px 15px;
	font-size: 14px;
}

/*------------------------------------*\
    Title
\*------------------------------------*/
.search-auto-title {
	margin-bottom: 40px !important;
	padding: 5px 15px;
	font-weight: 700;
	font-size: 14px;
	border-bottom: 1px solid #e8e8e8;
}

.search-auto-item {
	padding-bottom: 10px;
	border-bottom: 1px solid #e8e8e8;
}

	.search-auto-item:last-child {
		border-bottom: 0;
	}

/*------------------------------------*\
    Query
\*------------------------------------*/
.search-auto-query {
	border-bottom: 1px solid #e8e8e8;
}

	.search-auto-query a {
		display: block;
		padding: 5px 15px;
	}

/*------------------------------------*\
    Queries
\*------------------------------------*/
.search-auto-queries .item {
	padding: 5px 15px;
}

/*------------------------------------*\
    Products
\*------------------------------------*/
/* Ensure the product image and content are aligned */
.search-auto-product {
	display: flex; /* Align image and text side by side */
	height: auto !important;
	max-height: 120px !important;
	padding: 4px 0 !important;
	margin-bottom: 0 !important;
}
.search-auto-products .item {
	padding: 10px 15px;
	display: block; /* Prevent inline overlap */
	/*margin-bottom: 10px;  Add spacing between rows */
}

.search-auto-products a {
	display: block;
}

.search-auto-products img {
	display: block;
}

.search-auto-products .product-image {
	width: 50px;
	float: left;
	margin-right: 16px;
	flex-shrink: 0;
}


.search-auto-products .product-content {
	width: calc(100% - 65px);
	float: right;
	flex: 1;
}

.search-auto-products .product-ing {
	display: block;
	font-size: 12px;
}

.search-auto-products .product-desc {
	display: block;
	font-size: 12px;
}

.search-auto-products .product-name {
	display: block;
	font-weight: 700;
}

.search-auto-products .product-price {
	display: block;
	font-size: 12px;
}

/*------------------------------------*\
    Categories
\*------------------------------------*/
.search-auto-categories .item {
	padding: 5px 15px;
}

/*------------------------------------*\
    Page error search
\*------------------------------------*/
.search-error-results-wrapper {
	width: 100%;
	width: 100vw;
	max-width: 700px;
	left: 50%;
	right: auto;
	transform: translate(-50%, 0);
	color: #666;
	text-align: left;
}

.search-error-auto {
	width: 310px;
	margin: 0 auto 12px;
}

.search-error-input {
	width: 100%;
	padding: 5px 16px 5px 11px;
	border: 1px solid #8e8e8e;
	border-radius: 11px;
	background: #fff;
}

.search-error-btn {
	position: absolute;
	top: 4px;
	right: 4px;
	height: auto;
	width: auto;
	margin: 0;
	padding: 3px 7px 3px 3px;
	vertical-align: initial;
	border-radius: 10px;
	background: #454545;
	color: #fff;
	font-size: 11px;
}

	.search-error-btn .icon {
		position: relative;
		top: 1px;
		font-size: 13px;
		line-height: 11px;
	}
