.er-search-form { position: relative; }
.er-search-box { position: absolute; left: 0; right: 0; top: 100%; z-index: 1000; max-height: 70vh; overflow: auto; background: #fff; border: 1px solid #e3e3e3; border-top: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); text-align: left; }
.er-search-box[hidden] { display: none; }
.er-search-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: #222; font-size: 15px; line-height: 1.3; text-decoration: none; }
.er-search-item img { flex: none; width: 48px; height: 48px; object-fit: contain; background: #fff; }
.er-search-all { display: block; padding: 10px 12px; border-top: 1px solid #eee; color: #00A3A2; font-weight: 600; text-decoration: none; }
.er-search-item:hover, .er-search-item.is-active, .er-search-all:hover, .er-search-all.is-active { background: #e6f6f6; color: #007a79; }
.er-search-none { padding: 12px; color: #666; }
.er-search-bar { max-width: 640px; margin: 0 0 24px; }
.er-search-bar form { display: flex; gap: 8px; }
.er-search-bar .search-field { flex: 1; min-width: 0; }
/* Galvenes lupas pārklājums: tēma to apgriež (overflow:hidden) — atļaujam sarakstam izkrist ārā, kamēr tas ir atvērts. */
#site-header-search .site-search:has(.er-search-box:not([hidden])) { overflow: visible !important; }
