.ezis-panel {
	position: absolute;
	z-index: 99999;
	display: none;
	max-height: 70vh;
	overflow-y: auto;
	background: #ffffff;
	border: 1px solid #e3e6e8;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 23, 32, 0.14);
	font-family: inherit;
	-webkit-overflow-scrolling: touch;
}
.ezis-panel.ezis-open { display: block; }

.ezis-head {
	padding: 9px 14px 5px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8a949c;
}

.ezis-row {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 8px 14px;
	text-decoration: none;
	color: #1d2733;
	cursor: pointer;
	border: none;
}
.ezis-row:hover,
.ezis-row.ezis-active {
	background: #eef7f6;
}
.ezis-row.ezis-active {
	box-shadow: inset 3px 0 0 #0f9e91;
}

.ezis-thumb {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 6px;
	background: #f2f4f5 center/cover no-repeat;
	border: 1px solid #edf0f1;
}

.ezis-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}
.ezis-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ezis-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
	font-size: 12.5px;
}
.ezis-price { color: #0f9e91; font-weight: 700; }
.ezis-price del { color: #9aa4ac; font-weight: 400; margin-right: 4px; }
.ezis-oos {
	font-size: 11px;
	font-weight: 600;
	color: #b4632a;
	background: #fdf0e4;
	padding: 1px 6px;
	border-radius: 999px;
}

.ezis-catrow { padding: 7px 14px; }
.ezis-cat-ic {
	flex: 0 0 auto;
	width: 26px;
	text-align: center;
	color: #0f9e91;
	font-size: 15px;
}
.ezis-catrow .ezis-name { flex: 1 1 auto; font-weight: 600; }
.ezis-count {
	flex: 0 0 auto;
	font-size: 12px;
	color: #8a949c;
	background: #f2f4f5;
	padding: 1px 8px;
	border-radius: 999px;
}

.ezis-none {
	padding: 14px;
	font-size: 13.5px;
	color: #6b757d;
	text-align: center;
}

.ezis-foot {
	display: block;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #0f9e91;
	text-decoration: none;
	border-top: 1px solid #eef1f2;
	background: #fafbfb;
	border-radius: 0 0 10px 10px;
}
.ezis-foot:hover,
.ezis-foot.ezis-active { background: #eef7f6; }

/* Follow the visitor's device/browser preference: light by default, dark only if they prefer dark. */
@media (prefers-color-scheme: dark) {
	.ezis-panel { background: #1c2530; border-color: #2c3a48; box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
	.ezis-row { color: #e8edf1; }
	.ezis-row:hover, .ezis-row.ezis-active { background: #223341; }
	.ezis-thumb { background-color: #263340; border-color: #2c3a48; }
	.ezis-head { color: #7c8894; }
	.ezis-count { background: #263340; color: #9aa7b2; }
	.ezis-foot { background: #18212b; border-color: #2c3a48; }
	.ezis-foot:hover, .ezis-foot.ezis-active { background: #223341; }
}

/* ===== Header search icon ===== */
.ezis-header-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	padding: 0 6px;
	margin: 0;
	cursor: pointer;
	color: inherit;
	line-height: 0;
}
.ezis-header-btn svg { display: block; width: 30px; height: 30px; }
.ezis-header-btn:hover { opacity: 0.72; }

/* ===== Search modal ===== */
html.ezis-modal-lock { overflow: hidden; }
.ezis-modal { position: fixed; inset: 0; z-index: 100000; display: none; }
.ezis-modal.ezis-open { display: block; }
.ezis-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 32, 0.45); }
.ezis-modal-card {
	position: relative;
	width: calc(100% - 32px);
	max-width: 560px;
	margin: 8vh auto 0;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	overflow: hidden;
}
.ezis-modal-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid #eef1f2;
}
.ezis-modal-mag { color: #8a949c; flex: 0 0 auto; }
.ezis-modal-input {
	flex: 1 1 auto;
	border: none;
	outline: none;
	font-size: 17px;
	background: transparent;
	color: #1d2733;
	font-family: inherit;
}
.ezis-modal-close {
	flex: 0 0 auto;
	border: none;
	background: transparent;
	font-size: 17px;
	color: #8a949c;
	cursor: pointer;
	line-height: 1;
	padding: 4px 6px;
}
.ezis-modal-close:hover { color: #1d2733; }
.ezis-modal-results { max-height: 60vh; overflow-y: auto; }
.ezis-modal-results .ezis-foot { border-radius: 0; }

@media (prefers-color-scheme: dark) {
	.ezis-modal-card { background: #1c2530; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
	.ezis-modal-bar { border-color: #2c3a48; }
	.ezis-modal-input { color: #e8edf1; }
	.ezis-modal-close { color: #7c8894; }
	.ezis-modal-close:hover { color: #e8edf1; }
}
