/* ETANA Search Suggestions - locked visual styles, panel border removed, dark mode added
   Layout coordinates are calculated by JS. Visual styles are locked here to avoid theme overrides. */

html body .etana-ess-lite-panel {
    background: #FDFDFD !important;
    border-top: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.055) !important;
    padding: 10px 12px 12px !important;
    overflow-y: auto !important;
    font-family: inherit !important;
    color: #1f2933 !important;
    box-sizing: border-box !important;
}

html body .etana-ess-lite-panel[hidden] {
    display: none !important;
}

/* Make the original search field and dropdown read as one component. */
html body .header-dropdown.etana-ess-lite-dropdown-open,
html body .header-dropdown.etana-ess-lite-dropdown-open .header-search-form,
html body .header-dropdown.etana-ess-lite-dropdown-open .rb-search-form,
html body .header-dropdown.etana-ess-lite-dropdown-open .search-form-inner {
    background: #FDFDFD !important;
    border-radius: 0 !important;
}

html body .header-dropdown.etana-ess-lite-dropdown-open .search-form-inner {
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}

html body .rb-search-form.etana-ess-lite-form-open .search-form-inner {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

html body .etana-ess-lite-heading {
    padding: 8px 10px 8px !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.055em !important;
    color: #31679A !important;
}

html body .etana-ess-lite-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

html body .etana-ess-lite-chip-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

html body .etana-ess-lite-item,
html body .etana-ess-lite-footer-link {
    text-decoration: none !important;
    color: #1f2933 !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

html body .etana-ess-lite-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 9px 10px !important;
    line-height: 1.25 !important;
}

html body .etana-ess-lite-item:hover,
html body .etana-ess-lite-item.etana-ess-lite-active {
    background: rgba(49, 103, 154, 0.08) !important;
    color: #31679A !important;
}

html body .etana-ess-lite-chip {
    min-width: 0 !important;
    justify-content: flex-start !important;
    padding: 10px 12px !important;
    background: #F3F7FA !important;
    border: 1px solid rgba(49, 103, 154, 0.16) !important;
    color: #31679A !important;
}

html body .etana-ess-lite-chip:hover,
html body .etana-ess-lite-chip.etana-ess-lite-active {
    background: #31679A !important;
    border-color: #31679A !important;
    color: #ffffff !important;
}

html body .etana-ess-lite-name {
    min-width: 0 !important;
    font-size: 13px !important;
    font-weight: 760 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body .etana-ess-lite-name mark {
    padding: 0 !important;
    background: transparent !important;
    color: #31679A !important;
    font-weight: 900 !important;
}

html body .etana-ess-lite-chip:hover mark,
html body .etana-ess-lite-chip.etana-ess-lite-active mark {
    color: #ffffff !important;
}

html body .etana-ess-lite-count {
    flex-shrink: 0 !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    color: #7b8794 !important;
}

html body .etana-ess-lite-item:hover .etana-ess-lite-count,
html body .etana-ess-lite-item.etana-ess-lite-active .etana-ess-lite-count {
    color: #31679A !important;
}

html body .etana-ess-lite-footer-link {
    display: block !important;
    margin-top: 8px !important;
    padding: 10px !important;
    border-top: 1px solid rgba(15, 23, 42, 0.07) !important;
    color: #31679A !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

html body .etana-ess-lite-footer-link:hover,
html body .etana-ess-lite-footer-link.etana-ess-lite-active {
    background: rgba(49, 103, 154, 0.08) !important;
}

html body .etana-ess-lite-empty,
html body .etana-ess-lite-loading {
    padding: 12px 10px !important;
    font-size: 12.5px !important;
    color: #7b8794 !important;
}

@media (max-width: 767px) {
    html body .etana-ess-lite-panel {
        border-radius: 0 !important;
        padding: 10px !important;
    }

    html body .rb-search-form.etana-ess-lite-form-open .search-form-inner {
        border-radius: 0 !important;
    }

    html body .etana-ess-lite-chip-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html body .etana-ess-lite-item {
        padding: 10px !important;
    }

    html body .etana-ess-lite-name {
        font-size: 12.5px !important;
    }
}

@media (max-width: 380px) {
    html body .etana-ess-lite-chip-list {
        grid-template-columns: 1fr !important;
    }
}


/* Dark mode: keep the dropdown consistent with the site dark header. */
html body.dark-mode .etana-ess-lite-panel,
html body[data-theme="dark"] .etana-ess-lite-panel,
html[data-theme="dark"] body .etana-ess-lite-panel,
html.dark-mode body .etana-ess-lite-panel {
    background: #000000 !important;
    color: #FDFDFD !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35) !important;
}

html body.dark-mode .header-dropdown.etana-ess-lite-dropdown-open,
html body.dark-mode .header-dropdown.etana-ess-lite-dropdown-open .header-search-form,
html body.dark-mode .header-dropdown.etana-ess-lite-dropdown-open .rb-search-form,
html body.dark-mode .header-dropdown.etana-ess-lite-dropdown-open .search-form-inner,
html body[data-theme="dark"] .header-dropdown.etana-ess-lite-dropdown-open,
html body[data-theme="dark"] .header-dropdown.etana-ess-lite-dropdown-open .header-search-form,
html body[data-theme="dark"] .header-dropdown.etana-ess-lite-dropdown-open .rb-search-form,
html body[data-theme="dark"] .header-dropdown.etana-ess-lite-dropdown-open .search-form-inner,
html[data-theme="dark"] body .header-dropdown.etana-ess-lite-dropdown-open,
html[data-theme="dark"] body .header-dropdown.etana-ess-lite-dropdown-open .header-search-form,
html[data-theme="dark"] body .header-dropdown.etana-ess-lite-dropdown-open .rb-search-form,
html[data-theme="dark"] body .header-dropdown.etana-ess-lite-dropdown-open .search-form-inner,
html.dark-mode body .header-dropdown.etana-ess-lite-dropdown-open,
html.dark-mode body .header-dropdown.etana-ess-lite-dropdown-open .header-search-form,
html.dark-mode body .header-dropdown.etana-ess-lite-dropdown-open .rb-search-form,
html.dark-mode body .header-dropdown.etana-ess-lite-dropdown-open .search-form-inner {
    background: #000000 !important;
    color: #FDFDFD !important;
}

html body.dark-mode .header-dropdown.etana-ess-lite-dropdown-open input[name="s"],
html body[data-theme="dark"] .header-dropdown.etana-ess-lite-dropdown-open input[name="s"],
html[data-theme="dark"] body .header-dropdown.etana-ess-lite-dropdown-open input[name="s"],
html.dark-mode body .header-dropdown.etana-ess-lite-dropdown-open input[name="s"] {
    color: #FDFDFD !important;
    -webkit-text-fill-color: #FDFDFD !important;
}

html body.dark-mode .header-dropdown.etana-ess-lite-dropdown-open input[name="s"]::placeholder,
html body[data-theme="dark"] .header-dropdown.etana-ess-lite-dropdown-open input[name="s"]::placeholder,
html[data-theme="dark"] body .header-dropdown.etana-ess-lite-dropdown-open input[name="s"]::placeholder,
html.dark-mode body .header-dropdown.etana-ess-lite-dropdown-open input[name="s"]::placeholder {
    color: rgba(253, 253, 253, 0.64) !important;
}

html body.dark-mode .etana-ess-lite-item,
html body.dark-mode .etana-ess-lite-footer-link,
html body[data-theme="dark"] .etana-ess-lite-item,
html body[data-theme="dark"] .etana-ess-lite-footer-link,
html[data-theme="dark"] body .etana-ess-lite-item,
html[data-theme="dark"] body .etana-ess-lite-footer-link,
html.dark-mode body .etana-ess-lite-item,
html.dark-mode body .etana-ess-lite-footer-link {
    color: #FDFDFD !important;
}

html body.dark-mode .etana-ess-lite-chip,
html body[data-theme="dark"] .etana-ess-lite-chip,
html[data-theme="dark"] body .etana-ess-lite-chip,
html.dark-mode body .etana-ess-lite-chip {
    background: #111111 !important;
    border-color: rgba(253, 253, 253, 0.14) !important;
    color: #FDFDFD !important;
}

html body.dark-mode .etana-ess-lite-item:hover,
html body.dark-mode .etana-ess-lite-item.etana-ess-lite-active,
html body[data-theme="dark"] .etana-ess-lite-item:hover,
html body[data-theme="dark"] .etana-ess-lite-item.etana-ess-lite-active,
html[data-theme="dark"] body .etana-ess-lite-item:hover,
html[data-theme="dark"] body .etana-ess-lite-item.etana-ess-lite-active,
html.dark-mode body .etana-ess-lite-item:hover,
html.dark-mode body .etana-ess-lite-item.etana-ess-lite-active {
    background: rgba(49, 103, 154, 0.34) !important;
    color: #FDFDFD !important;
}

html body.dark-mode .etana-ess-lite-chip:hover,
html body.dark-mode .etana-ess-lite-chip.etana-ess-lite-active,
html body[data-theme="dark"] .etana-ess-lite-chip:hover,
html body[data-theme="dark"] .etana-ess-lite-chip.etana-ess-lite-active,
html[data-theme="dark"] body .etana-ess-lite-chip:hover,
html[data-theme="dark"] body .etana-ess-lite-chip.etana-ess-lite-active,
html.dark-mode body .etana-ess-lite-chip:hover,
html.dark-mode body .etana-ess-lite-chip.etana-ess-lite-active {
    background: #31679A !important;
    border-color: #31679A !important;
    color: #ffffff !important;
}

html body.dark-mode .etana-ess-lite-count,
html body.dark-mode .etana-ess-lite-empty,
html body.dark-mode .etana-ess-lite-loading,
html body[data-theme="dark"] .etana-ess-lite-count,
html body[data-theme="dark"] .etana-ess-lite-empty,
html body[data-theme="dark"] .etana-ess-lite-loading,
html[data-theme="dark"] body .etana-ess-lite-count,
html[data-theme="dark"] body .etana-ess-lite-empty,
html[data-theme="dark"] body .etana-ess-lite-loading,
html.dark-mode body .etana-ess-lite-count,
html.dark-mode body .etana-ess-lite-empty,
html.dark-mode body .etana-ess-lite-loading {
    color: rgba(253, 253, 253, 0.62) !important;
}

html body.dark-mode .etana-ess-lite-name mark,
html body[data-theme="dark"] .etana-ess-lite-name mark,
html[data-theme="dark"] body .etana-ess-lite-name mark,
html.dark-mode body .etana-ess-lite-name mark {
    color: #ffffff !important;
}

html body.dark-mode .etana-ess-lite-footer-link,
html body[data-theme="dark"] .etana-ess-lite-footer-link,
html[data-theme="dark"] body .etana-ess-lite-footer-link,
html.dark-mode body .etana-ess-lite-footer-link {
    border-top-color: rgba(253, 253, 253, 0.10) !important;
    color: #FDFDFD !important;
}
