/* NOONEVA search: suggestions under the search field, and the results page. The home page search bar
   keeps its own styles. Colors and radii repeat the site's green and white identity. */

/* Screen reader announcements. */
.nvs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Suggestions panel: placed by script under the search form, scrolls inside its own height. */
.nvs-panel { position: absolute; z-index: 110; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #C6D0CA; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(6, 63, 45, .18); color: #17251E; font-size: 14px; line-height: 1.4; text-align: left; }
.nvs-panel[hidden], .nvs-msg[hidden] { display: none; }

/* One suggestion: at least 44 px tall so it is easy to tap. */
.nvs-opt { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px; border-bottom: 1px solid #E8F3EA; color: inherit; text-decoration: none; }
.nvs-list .nvs-opt:last-child { border-bottom: 0; }
.nvs-opt:hover, .nvs-opt[aria-selected="true"] { background: #F2F8F3; color: inherit; }
.nvs-opt[aria-selected="true"] { outline: 2px solid #167A34; outline-offset: -2px; border-radius: 8px; }
.nvs-opt__img { flex: none; width: 52px; height: 52px; border-radius: 8px; background: #F2F8F3; object-fit: contain; }
.nvs-opt__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.nvs-opt__title { display: -webkit-box; overflow: hidden; color: #063F2D; font-weight: 700; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.nvs-opt__models { color: #5B6B62; font-size: 12.5px; }
.nvs-opt__price { flex: none; color: #063F2D; font-weight: 800; }
.nvs-opt--all { justify-content: center; color: #167A34; font-weight: 700; }

/* Fit label: green is listed, amber is not confirmed, gray is a name or brand match only. */
.nvs-page .nvs-fit, .nvs-panel .nvs-fit { display: inline-block; margin: 0; padding: 1px 7px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.nvs-fit--ok { background: #E8F3EA; color: #063F2D; }
.nvs-fit--verify { background: #FDF5DF; color: #7A5600; }
.nvs-fit--info { background: #EEF1EF; color: #4A5951; }

/* Messages in the panel: no match, empty field, search unavailable. */
.nvs-msg { padding: 14px 16px; }
.nvs-msg p { margin: 0 0 6px; }
.nvs-msg p:first-child { font-weight: 700; }
.nvs-msg p:last-child { margin-bottom: 0; }
.nvs-msg__note { color: #5B6B62; font-size: 13px; }
.nvs-msg a, .nvs-empty a { color: #167A34; font-weight: 700; text-decoration: underline; }

/* Results page: same content width as the home page. */
.nvs-page { box-sizing: border-box; width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 20px 56px; color: #17251E; }
.nvs-page *, .nvs-panel * { box-sizing: border-box; }

/* Results page search form: same look as the home page search bar. */
.nvs-form { max-width: 660px; margin: 0 0 28px; }
.nvs-form__row { display: flex; border-radius: 12px; box-shadow: 0 2px 8px rgba(6, 63, 45, .08); }
.nvs-page .nvs-form input { flex: 1; width: 100%; min-width: 0; height: 54px; margin: 0; padding: 0 16px; border: 1px solid #C6D0CA; border-right: 0; border-radius: 12px 0 0 12px; background: #fff; color: #17251E; font-size: 16px; }
.nvs-page .nvs-form input:focus { outline: 2px solid #167A34; outline-offset: -2px; }
.nvs-page .nvs-form button { flex: none; min-height: 54px; padding: 0 22px; border: 0; border-radius: 0 12px 12px 0; background: #167A34; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.nvs-page .nvs-form button:hover { background: #063F2D; }

/* Results page headings. */
.nvs-page .nvs-title { margin: 0; color: #063F2D; font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.nvs-page .nvs-count { margin: 6px 0 0; font-weight: 600; }
.nvs-page .nvs-advice { margin: 4px 0 0; color: #5B6B62; font-size: 14px; }
.nvs-page .nvs-group { margin: 28px 0 12px; color: #063F2D; font-size: 19px; font-weight: 800; line-height: 1.3; }
.nvs-group span { color: #5B6B62; font-weight: 600; }

/* Refine by brand or category. */
.nvs-refine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.nvs-refine__label { margin-right: 4px; color: #5B6B62; font-size: 13px; font-weight: 600; }
.nvs-page .nvs-chip { min-height: 36px; padding: 4px 14px; border: 1px solid #C6D0CA; border-radius: 999px; background: #fff; color: #063F2D; font-size: 13.5px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.nvs-page .nvs-chip:hover { border-color: #167A34; background: #F2F8F3; color: #063F2D; }
.nvs-page .nvs-chip[aria-pressed="true"] { border-color: #167A34; background: #167A34; color: #fff; }

/* Result cards. */
.nvs-page .nvs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.nvs-card { display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid #DDE6E0; border-radius: 12px; background: #fff; }
.nvs-card__media { display: block; aspect-ratio: 1 / 1; background: #F2F8F3; }
.nvs-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nvs-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
.nvs-page .nvs-card__title { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.nvs-page .nvs-card__title a { color: #063F2D; text-decoration: none; }
.nvs-page .nvs-card__title a:hover { color: #167A34; text-decoration: underline; }
.nvs-page .nvs-card__models { margin: 0; color: #5B6B62; font-size: 13.5px; line-height: 1.45; }
.nvs-card__models strong { color: #17251E; font-weight: 600; }
.nvs-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: auto; padding-top: 6px; }
.nvs-card__price { color: #063F2D; font-size: 18px; font-weight: 800; }
.nvs-page .nvs-card__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: #167A34; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.nvs-page .nvs-card__link:hover { background: #063F2D; color: #fff; }

/* No match and "not compatible" notes. */
.nvs-empty { margin-top: 20px; padding: 28px 24px; border: 1px dashed #BFCDC4; border-radius: 12px; background: #F2F8F3; text-align: center; }
.nvs-page .nvs-empty p { margin: 0; }
.nvs-page .nvs-empty .nvs-empty__title { margin-bottom: 8px; color: #063F2D; font-size: 18px; font-weight: 800; }
.nvs-page .nvs-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: #FDF5DF; color: #7A5600; font-size: 14px; }
.nvs-note strong { font-weight: 700; }

/* Keyboard focus on the results page. */
.nvs-page a:focus-visible, .nvs-page button:focus-visible { outline: 2px solid #167A34; outline-offset: 2px; }

/* Phones: tighter suggestions, so more of them fit above the keyboard. One card per row with the photo beside it. */
@media (max-width: 720px) {
  .nvs-opt { position: relative; gap: 10px; padding: 9px 10px; }
  .nvs-opt__price { position: absolute; right: 10px; bottom: 9px; font-size: 13.5px; }
  .nvs-opt__img { width: 44px; height: 44px; }
  .nvs-opt__title { font-size: 13.5px; -webkit-line-clamp: 3; }
  .nvs-opt__models { overflow: hidden; max-width: calc(100% - 56px); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .nvs-page { padding: 20px 16px 40px; }
  .nvs-form { margin-bottom: 20px; }
  .nvs-page .nvs-form input { height: 50px; }
  .nvs-page .nvs-form button { min-height: 50px; padding: 0 14px; }
  .nvs-page .nvs-grid { grid-template-columns: minmax(0, 1fr); }
  .nvs-card { flex-direction: row; }
  .nvs-card__media { flex: none; width: 112px; aspect-ratio: auto; }
}
