/* Modal base */
.eas-search-trigger{
	margin-inline-start: 12px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 8px;
	line-height: 1;
}
.eas-search-trigger .eas-icon{ display: inline-block; vertical-align: middle; }

.eas-modal{
	position: fixed;
	inset: 0;
	z-index: 9999;
	direction: rtl;
	display:flex;
	align-items:center;
	justify-content:center;
}
.eas-backdrop{
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.45);
	backdrop-filter: blur(2px);
}
.eas-dialog{
	position: relative;
	max-width: 900px;
	margin: 8vh auto;
	background: #fff;
	border-radius: 16px;
	padding: 20px 20px 8px;
	width:100%;
	box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.eas-close{
	position: absolute;
	inset-inline-end: 10px;
	inset-block-start: 8px;
	border: 0;
	background: transparent;
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
}
.eas-input-wrap{
	padding: 35px 8px 12px;
	border-bottom: 1px solid #eee;
}
.eas-input{
	width: 100%;
	padding: 14px 16px;
	font-size: 16px;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	outline: 0;
}
.eas-input:focus{ border-color: #999; }

.eas-results{ padding: 12px 8px 16px; max-height: 60vh; overflow: auto; }
.eas-hint{ color: #666; padding: 12px; font-size: 14px; }

.eas-list{ list-style: none; margin: 0; padding: 0; }
.eas-item{ border-bottom: 1px dashed #eee; }
.eas-item:last-child{ border-bottom: 0; }
.eas-link{ display: block; padding: 12px; text-decoration: none; color: #111; }
.eas-link:hover{ background: #fafafa; }
.eas-title{ font-weight: 600; margin-bottom: 4px; }
.eas-meta{ font-size: 12px; color: #666; display: flex; gap: 10px; }

.eas-view-all{
	display: inline-block;
	margin: 12px 8px 0;
	padding: 10px 14px;
	border: 1px solid #222;
	border-radius: 10px;
	text-decoration: none;
	color: #222;
	font-size: 14px;
}
.eas-view-all:hover{ background: #222; color: #fff; }

/* Fallback position if .av-main-nav not found */
.eas-fallback{
	position: fixed;
	top: 12px;
	right: 12px;
	z-index: 10000;
}
@media(max-width:992px){
	.eas-dialog {
		width: 90%;
	}
}