/* Nikon Objective Lens Selector - Plugin Styles
   All rules scoped under .nols-container to avoid theme conflicts */

/* ── Button base ──
   .nols-container is repeated to raise specificity above equal-or-lower-specificity
 */
.nols-container.nols-container .button {
  /* color/text-transform/font-size/font-weight/background stay lost to a theme
     "button skin" rule at this specificity - that rule appears to use !important
     itself, so only !important can beat it here. */
  color: #333 !important;
  text-transform: uppercase !important;
  font-size: 0.77778rem !important;
  padding: 0.5rem;
  font-weight: 500 !important;
  background: #FFDE00 !important;
  background: linear-gradient(#FFDE00 0%, #FFDE00 50%, #ff0 100%) repeat-x 0 0% !important;
  background-size: 100% 200%;
  display: inline-block;
  line-height: 1;
  box-shadow: rgba(0, 0, 0, 0.6) 0 1px 2px;
  transition: background-position 0.25s ease, box-shadow-color 0.25s ease;
  border: 0;
}
.nols-container.nols-container .button::after {
  content: none;
}
.nols-container.nols-container .button:hover {
  background-position: 0 100%;
  box-shadow: rgba(0, 0, 0, 0.8) 0 1px 2px;
}
.nols-container.nols-container .button a {
  color: #333 !important;
}

/* ── Popup title ── */
.w-popup-wrap .w-popup-box-title {
  font-size: 1.25rem !important;
}

/* ── Popup content padding ── */
.w-popup-wrap .w-popup-box-content {
  padding: 0px 25px !important;
}

/* ── Popup title product name (appended by JS) ── */
.w-popup-wrap .w-popup-box-title .nols-product-title {
  font-size: 1.3rem;
  font-weight: 600;
}

/* ── Enquiry summary (added by JS above the form when enquiring about several objectives) ──
   The theme moves the popup to <body>, outside .nols-container, so this is scoped to the
   popup instead. The list scrolls on its own so the form fields stay in view. */
.w-popup-wrap .nols-enquiry-summary {
  margin: 0 0 1.25em;
  padding: 0.75em 1em;
  background: #fff8c2;
  border-left: 4px solid #ffe600;
}
.w-popup-wrap .nols-enquiry-summary .nols-summary-heading {
  margin: 0 0 0.4em;
  padding: 0;
  font-weight: 600;
}
.w-popup-wrap .nols-enquiry-summary ul {
  max-height: 30vh;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.w-popup-wrap .nols-enquiry-summary li {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin: 0;
  padding: 0.3em 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.w-popup-wrap .nols-enquiry-summary li:first-child {
  border-top: 0;
}
.w-popup-wrap .nols-enquiry-summary .nols-summary-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
}
.w-popup-wrap .nols-enquiry-summary .nols-summary-code {
  flex-shrink: 0;
  color: #666;
  font-size: 0.88889em;
}
.w-popup-wrap .nols-enquiry-summary .nols-summary-remove {
  flex-shrink: 0;
  width: 1.6em;
  height: 1.6em;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1a1a1a;
  font-size: 1.1em;
  line-height: 1;
  cursor: pointer;
}
.w-popup-wrap .nols-enquiry-summary .nols-summary-remove:hover,
.w-popup-wrap .nols-enquiry-summary .nols-summary-remove:focus-visible {
  background: #1a1a1a;
  color: #ffe600;
}

/* ── Enquiry modal ── */
.nols-container .enquiry-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nols-container .enquiry-modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 90%;
  position: relative;
}
.nols-container .enquiry-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  line-height: 1;
}
.nols-container .enquiry-modal-close:hover {
  color: #333;
}
.nols-container .enquiry-modal-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.nols-container .enquiry-modal-content p {
  margin: 1rem 0;
  font-size: 1rem;
  color: #333;
}
.nols-container .enquiry-modal-button {
  background-color: #FFDE00;
  color: #333;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}
.nols-container .enquiry-modal-button:hover {
  background-color: #FFD700;
}

/* ── Glossary ── */
.nols-container .selector-glossary {
  font-size: 0.88889em;
  padding: 2em 0;
  clear: both;
}
.nols-container .selector-glossary ul {
  column-count: 3;
  column-gap: 2em;
  padding: 0;
}
.nols-container .selector-glossary h3 {
  font-family: "Roboto", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 1em;
  margin-top: 0;
}
.nols-container .selector-glossary li {
  border-bottom: 1px solid #efefef;
  list-style: none;
  position: relative;
  padding: 0.5em 0 0.5em 60px;
  display: inline-block;
  width: 100%;
  font-weight: 300;
}
.nols-container .selector-glossary strong {
  position: absolute;
  top: 0.5em;
  left: 0;
  font-weight: 700;
  padding-right: 0.5em;
  display: inline-block;
  vertical-align: top;
  width: 60px;
}

/* ── Sticky bar (filters + chosen filters + result count) ──
   One sticky block rather than three separately-stuck elements, so their stacked offsets
   never need computing individually. Its scope (.selector-sticky-scope) ends with the
   product list, so it releases before the glossary. The column-header row below sticks
   directly beneath it, offset by this bar's measured height (--nols-sticky-bar-height, set
   by a ResizeObserver in objective-selector.js - the height varies as the filter bar wraps
   and as chosen-filter pills are added). */
.nols-container .selector-sticky-bar {
  position: sticky;
  top: var(--nols-sticky-offset);
  /* Above the column headers (5) so open filter dropdowns overlay them. */
  z-index: 7;
  background: #fff;
}
/* Theme gotcha: below its mobile breakpoint the theme sets .l-canvas to overflow: hidden,
   which makes it a scroll container - every sticky descendant then sticks to .l-canvas
   (which never scrolls) instead of the viewport, so nothing sticks at all. overflow: clip
   clips identically but doesn't create a scroll container. display: flow-root is needed
   too: overflow: hidden was also making .l-canvas a block formatting context, and without
   one child margins collapse differently, which shifted the theme's fixed header (top:
   auto, so it sits at its static position) 160px down the page. Scoped to pages with the
   selector on them. */
.l-canvas:has(.nols-container) {
  overflow: clip;
  display: flow-root;
}

/* ── Selector body ── */
.nols-container .selector-body {
  margin: 0 0 15px 0;
  width: 100%;
  position: relative;
}
.nols-container .selector-list-info {
  font-weight: 300;
  padding: 15px 1em 1em 1em;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em 1em;
}
.nols-container .selector-list-info p {
  margin: 0;
  padding: 0;
}
.nols-container .selector-list-info .item-count {
  font-weight: 700;
}
.nols-container .selector-body .selector-list {
  border-top: 1px solid #999;
}
/* Only the rows scroll horizontally, not .selector-list itself - position: sticky needs an
   ancestor chain up to the viewport with no non-visible overflow to track page scroll
   correctly, so the sticky header (a sibling of this wrapper, not a descendant) must stay
   outside any scrolling container. Its horizontal position is kept in sync with this wrapper
   via JS (scroll listener in objective-selector.js). */
.nols-container .selector-body .selector-list-rows {
  overflow-x: auto;
  /* Explicit, not left to default: overflow-x: auto alone computes overflow-y to auto too
     (per the CSS overflow spec), which can spawn a real vertical scrollbar reserving width
     (seen with classic/non-overlay OS scrollbars even for near-zero vertical overflow).
     That would narrow this element's available width relative to .selector-column-headers
     (a sibling with no such scrollbar), throwing their flex-grow column math out of sync
     and drifting the header out of alignment with the rows below it. */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  /* Its native scrollbar would only be reachable at the very end of the list - the
     sticky .selector-x-scroll proxy below replaces it (swiping the rows still works). */
  scrollbar-width: none;
}
.nols-container .selector-body .selector-list-rows::-webkit-scrollbar {
  display: none;
}
/* Proxy horizontal scrollbar (built and kept in sync in objective-selector.js): sticks to
   the bottom of the viewport while the list is in view, only shown when the table
   overflows. Its 1px-tall inner div is sized to the rows' scrollWidth. */
.nols-container .selector-x-scroll {
  position: sticky;
  bottom: 0;
  z-index: 4;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
}
.nols-container .selector-x-scroll[hidden] {
  display: none;
}
.nols-container .selector-x-scroll > div {
  height: 1px;
}

/* ── Multi-select (behind the element's "Multi-select" box) ──
   Select mode (.nols-select-mode on the container, toggled in objective-selector.js) swaps
   each row's Enquire button for a checkbox in the same pinned column, so the layout doesn't
   shift, and shows a bar stuck to the bottom of the viewport. */
.nols-container .selector-multi-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.nols-container .selector-multi-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nols-container .selector-multi-switch {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #bbb;
  transition: background 0.2s ease;
}
.nols-container .selector-multi-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.nols-container .selector-multi-toggle input:checked + .selector-multi-switch {
  background: #1a1a1a;
}
.nols-container .selector-multi-toggle input:checked + .selector-multi-switch::after {
  transform: translateX(16px);
  background: #ffe600;
}
.nols-container .selector-multi-toggle input:focus-visible + .selector-multi-switch {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}
.nols-container .so-select-check {
  display: none;
  align-items: center;
  gap: 0.4em;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}
.nols-container .so-select-box {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #1a1a1a;
  border-radius: 3px;
  background: #fff;
}
.nols-container .selector-item.is-selected .so-select-box {
  background: #ffe600;
}
.nols-container .selector-item.is-selected .so-select-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #1a1a1a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.nols-container.nols-select-mode .selector-body .selector-item .so-product-select,
.nols-container.nols-select-mode .selector-body .selector-item .so-cad-request {
  display: none;
}
.nols-container.nols-select-mode .selector-body .selector-item .so-select-check {
  display: inline-flex;
}
.nols-container.nols-select-mode .selector-body .selector-item {
  cursor: pointer;
}
/* The pinned actions cell has its own opaque background (to cover columns scrolling under
   it), so it needs the selected tint too. */
.nols-container .selector-body .selector-item.selector-item-col-mode.is-selected,
.nols-container .selector-body .selector-item.selector-item-col-mode.is-selected .so-stats-row .so-stat-cell-actions {
  background: #fff8c2;
}
.nols-container .selector-multi-bar {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em 1em;
  padding: 0.75em 1em;
  background: #1a1a1a;
  color: #fff;
}
.nols-container .selector-multi-bar[hidden] {
  display: none;
}
.nols-container .selector-multi-bar p {
  margin: 0;
  padding: 0;
}
.nols-container .selector-multi-bar .selector-multi-status,
.nols-container .selector-multi-bar.has-selection .selector-multi-hint {
  display: none;
}
.nols-container .selector-multi-bar.has-selection .selector-multi-status {
  display: inline;
}
.nols-container .selector-multi-bar .selector-multi-clear {
  margin-left: 0.75em;
  color: #ffe600;
  text-decoration: underline;
}
/* Same yellow pill as the per-row Enquire button (.so-product-select). */
.nols-container .selector-multi-bar .selector-multi-enquire {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
  background: #ffe600;
  line-height: 1;
  padding: 0.4em 1.2em 0.35em 1.2em;
  border-radius: 1em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.nols-container .selector-multi-bar:not(.has-selection) .selector-multi-enquire {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Both bars stick to the bottom of the viewport - lift the proxy scrollbar above this one. */
.nols-container.nols-select-mode .selector-x-scroll {
  bottom: var(--nols-multi-bar-height, 0px);
}

/* ── Column headers mode ── */
.nols-container {
  /* Offset from the top of the viewport for the sticky bar and column-header row,
     to clear the theme's sticky site header. */
  --nols-sticky-offset: 60px;
}
.nols-container .selector-column-headers {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #999;
  background: #e7e7e7;
  background: linear-gradient(to bottom, #dddddd 0, #e7e7e7 2em);
  padding: 0.5em 0;
  font-size: 0.77778em;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  position: sticky;
  top: calc(var(--nols-sticky-offset) + var(--nols-sticky-bar-height, 0px));
  z-index: 5;
  /* Its columns' own min-widths (below) force this row wider than the viewport on narrow
     screens - it never shrinks itself (no min-width here; that would blow out the page
     width). overflow-x: hidden clips the resulting overflow to the row's own visible width;
     its horizontal scroll position is synced to .selector-list-rows via JS rather than
     scrolling independently, so there's only one visible scrollbar. */
  overflow-x: hidden;
}
.nols-container .selector-column-headers .so-col-header {
  flex: 1 1 0;
  text-align: center;
  min-width: 100px;
  padding: 0 0.25em;
  line-height: 1.25rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  overflow-wrap: break-word;
}
.nols-container .selector-column-headers .so-col-header-blank {
  flex: 0 0 190px;
  width: 190px;
  text-align: left;
  padding-left: 1em;
}
.nols-container .selector-column-headers .so-col-header-actions {
  flex: 0 0 180px;
  align-self: stretch;
  background: #e7e7e7;
}
/* The Enquire column stays pinned to the right edge while the table scrolls horizontally
   (header and rows each stick within their own horizontal scroll container, which are kept
   at the same scrollLeft). Needs an opaque background to cover the columns sliding under it. */
.nols-container .selector-column-headers .so-col-header-actions,
.nols-container .selector-body .selector-item.selector-item-col-mode .so-stats-row .so-stat-cell-actions {
  position: sticky;
  right: 0;
  z-index: 1;
}
.nols-container .selector-list.has-x-overflow .so-col-header-actions,
.nols-container .selector-list.has-x-overflow .so-stat-cell-actions {
  box-shadow: -6px 0 6px -4px rgba(0, 0, 0, 0.25);
}
.nols-container .selector-body .selector-item.selector-item-col-mode {
  display: flex;
  align-items: center;
  /* nowrap so .so-product-cell + .so-stats-row overflow horizontally (scrollable via the
     .selector-list-rows wrapper) on narrow viewports instead of wrapping onto separate
     lines - relies on the trailing .selector-applications list normally being empty, since
     with nowrap it can no longer force itself onto its own line. */
  flex-wrap: nowrap;
}
.nols-container .selector-body .selector-item.selector-item-col-mode .so-product-cell {
  flex: 0 0 190px;
  width: 190px;
  border-right: 1px solid #efefef;
  padding: 0.5em;
  font-size: 16px !important;
  line-height: 20px !important;
}
.nols-container .selector-body .selector-item.selector-item-col-mode .so-product-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0.25em;
  color: #333;
}
.nols-container .selector-body .selector-item.selector-item-col-mode .so-product-code {
  font-size: 0.88889em;
  color: #666;
}
.nols-container .selector-body .selector-item.selector-item-col-mode .so-product-code .so-series {
  font-weight: 300;
  font-size: 0.7em;
  color: #666;
}
.nols-container .selector-body .selector-item.selector-item-col-mode .so-stats-row {
  flex: 1 1 0;
  display: flex;
  /* stretch (not center): a cell whose text wraps to 2 lines (e.g. "Brightfield,
     Darkfield (BD)") grows taller than its single-line siblings - centering each cell
     by its own content height then makes its text start noticeably higher than the
     row's other cells, so the row reads as crooked even though every column's
     horizontal position is correct. Stretching gives every cell the same box height
     (the tallest sibling's), then each cell centers its own text within that shared
     height via align-items/justify-content below, so all cells' text lines up. */
  align-items: stretch;
  padding-bottom: 0;
  /* 7 stat cells x 100px + the 180px actions cell (both below) */
  min-width: 880px;
}
.nols-container .selector-body .selector-item.selector-item-col-mode .so-stats-row .so-stat-cell {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 100px;
  padding: 0.5em 0.5em;
  font-size: 0.88889em;
  border-right: 1px solid #efefef;
}
.nols-container .selector-body .selector-item.selector-item-col-mode .so-stats-row .so-stat-cell:last-child {
  border-right: 0;
}
.nols-container .selector-body .selector-item.selector-item-col-mode .so-stats-row .so-stat-cell-actions {
  flex: 0 0 180px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}
.nols-container .selector-body .selector-item.selector-item-col-mode .so-stats-row .so-stat-cell.so-highlight {
  background: #ffe600;
}
.nols-container .selector-body .selector-item.selector-item-col-mode .so-cad-container,
.nols-container .selector-body .selector-item.selector-item-col-mode .selector-applications {
  flex: 0 0 100%;
}
.nols-container .selector-body .selector-item {
  padding: 0;
  border-bottom: 1px solid #999;
  position: relative;
  min-height: 80px;
  width: 100%;
  opacity: 1;
  transition: all 0.5s ease-in-out;
  display: grid;
  grid-template-areas: "heading heading" "stats stats" "cad cad" "apps apps";
  grid-template-columns: 1fr;
}
.nols-container .selector-body .selector-item.hidden {
  opacity: 0;
  min-height: 0;
  overflow: hidden;
  height: 0;
  border: 0;
  transition: all 0.5s ease-in-out;
}
.nols-container .selector-item.filtered-out {
  display: none !important;
}
.nols-container .selector-body .selector-item.selected h3 {
  background: #FD0;
}
.nols-container .selector-body .selector-item h3 {
  font-size: 1.11111em;
  background: #e7e7e7;
  background: -moz-linear-gradient(top, #dddddd 0, #e7e7e7 2em);
  background: -webkit-linear-gradient(top, #dddddd 0, #e7e7e7 2em);
  background: linear-gradient(to bottom, #dddddd 0, #e7e7e7 2em);
  color: #333;
  font-weight: 500;
  padding: 0.25em 1em 0.15em 1em;
  margin: 0;
  position: relative;
  cursor: pointer;
  grid-area: heading;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
.nols-container .selector-body .selector-item h3 .so-material-number {
  font-weight: 300;
  font-size: 0.7em;
  color: #666;
}
.nols-container .selector-body .selector-item h3 .so-series {
  font-weight: 300;
  font-size: 0.7em;
  color: #666;
}
.nols-container .selector-body .selector-item h3 .so-heading-text {
  flex: 1 1 auto;
  min-width: 0;
}
.nols-container .selector-body .selector-item .so-product-select {
  position: relative;
  margin-top: 5px;
  font-weight: 600;
  font-size: 15px;
  top: auto;
  right: auto;
  color: #1a1a1a;
  background: #ffe600;
  line-height: 1;
  padding: 0.4em 1.2em 0.35em 1.2em;
  border-radius: 1em;
  pointer-events: auto;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.nols-container .selector-body .selector-item .so-product-select-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.nols-container .selector-body .selector-item .so-cad-container {
  grid-area: cad;
  padding: 0 1em;
}
.nols-container .selector-body .selector-item .so-cad-request {
  font-family: var(--font-family);
  font-style: normal;
  text-transform: none;
  font-size: 15px;
  line-height: 1.20 !important;
  font-weight: 600;
  letter-spacing: 0em;
  padding: 5px 10px;
  transition-duration: .3s;
  border-radius: 4em;
  transition-timing-function: ease;
  --btn-height: calc(1.20em + 2 * 1em);
  background: transparent;
  border-color: #ffe600;
  border-image: none;
  color: #1a1a1a !important;
  border: 2px solid #ffe600;
  pointer-events: auto;
  cursor: pointer;
  display: inline-block;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.nols-container .selector-body .selector-item .so-cad-request:hover {
  background: #ffe600;
}
.nols-container .selector-body .selector-item .selector-stats {
  margin: 0;
  padding-bottom: 1em;
  border-collapse: collapse;
  border-width: 1px 0 0 0;
  grid-area: stats;
}
.nols-container .selector-body .selector-item .selector-stats tbody {
  display: flex;
  flex-wrap: wrap;
}
.nols-container .selector-body .selector-item .selector-stats tr {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  border-right: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
  box-sizing: border-box;
}
.nols-container .selector-body .selector-item .selector-stats tr:last-child {
  border-right: 0;
}
.nols-container .selector-body .selector-item .selector-stats th {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0;
  border: none;
  padding: 0.25em 0.5em 0 0.5em;
}
.nols-container .selector-body .selector-item .selector-stats td {
  display: block;
  width: 100%;
  padding: 0 0.5em 0.25em 0.5em;
  border: none;
  text-align: center;
  font-size: 0.88889em;
}
.nols-container .selector-body .selector-item .selector-ratings {
  margin: 0;
  padding-bottom: 1em;
  grid-area: ratings;
  border-width: 1px 0 0 1px;
}
.nols-container .selector-body .selector-item .selector-ratings tr {
  width: 12.5%;
  background: #efefef;
  display: block;
  float: left;
  border-right: 1px solid #FFF;
}
.nols-container .selector-body .selector-item .selector-ratings tr:last-child {
  margin-right: 0;
  border-bottom: 0;
  border-right: 0;
}
.nols-container .selector-body .selector-item .selector-ratings tr.r-, .nols-container .selector-body .selector-item .selector-ratings tr.r-0 {
  opacity: 0.5;
}
.nols-container .selector-body .selector-item .selector-ratings tr.r-1 {
  background: #d0e778;
}
.nols-container .selector-body .selector-item .selector-ratings tr.r-2 {
  background: #c6eab0;
}
.nols-container .selector-body .selector-item .selector-ratings tr.r-3, .nols-container .selector-body .selector-item .selector-ratings tr.r-4 {
  background: #9fd874;
}
.nols-container .selector-body .selector-item .selector-ratings th {
  display: block;
  width: 100%;
  padding: 0.25em 0.5em 0 0.5em;
  border: none;
  text-align: center;
}
.nols-container .selector-body .selector-item .selector-ratings th span {
  font-size: 0.7778em;
  opacity: 0.65;
}
.nols-container .selector-body .selector-item .selector-ratings td {
  display: block;
  width: 100%;
  padding: 0 0.5em 0.25em 0.5em;
  border: none;
  text-align: center;
  font-size: 0.88889em;
}
.nols-container .selector-body .selector-applications {
  margin: 0;
  clear: both;
  grid-area: apps;
  display: flex;
  flex-wrap: wrap;
}
.nols-container .selector-body .selector-applications li {
  display: block;
  margin: 0;
  font-weight: 300;
  font-size: 0.77778em;
  background: #f6f6f6;
  padding: 0.3em 1em 0.2em 1em;
  line-height: 1;
  max-height: 1.25rem;
  white-space: nowrap;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

/* ── Filters ── */
.nols-container .selector-filters {
  width: 100%;
  margin: 0 auto;
  padding: 0 0;
  min-height: 3em;
  background: #1a1a1a;
  background: -moz-linear-gradient(top, #2a2a2a 0, #1a1a1a 2em);
  background: -webkit-linear-gradient(top, #2a2a2a 0, #1a1a1a 2em);
  background: linear-gradient(to bottom, #2a2a2a 0, #1a1a1a 2em);
  color: #fff;
  position: relative;
  z-index: 6;
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: stretch;
  /* Filters wrap onto additional rows on narrow viewports rather than scrolling - unlike
     the product table, this bar's dropdowns are absolutely-positioned descendants that
     would get clipped by a scrolling ancestor (overflow-x: auto forces overflow-y: auto
     too per the CSS overflow spec, and a stray vertical scrollbar from that was also
     interfering with clicking the +). Wrapping avoids needing any overflow/clip handling
     here at all. */
  flex-wrap: wrap;
}
.nols-container .selector-filters .selector-filter {
  padding: 0 0 0 0;
  flex: 1 1 150px;
  min-width: 150px;
  position: relative;
  z-index: 1;
  display: flex;
}
.nols-container .selector-filters .selector-filter:first-child {
  border-radius: 4px 0 0 0;
}
.nols-container .selector-filters .selector-filter:last-of-type {
  border-radius: 0 4px 0 0;
}
.nols-container .selector-filters .selector-filter:last-of-type h3 {
  border-right: 0;
}
.nols-container .selector-filters .selector-filter.sf-magnification ul {
  column-count: 3;
  column-gap: 0;
}
.nols-container .selector-filters .selector-filter:hover,
.nols-container .selector-filters .selector-filter.open {
  background: #2a2a2a;
  /* Above sibling filters (z-index: 1), so an open dropdown isn't painted under the next
     row of filters when the bar wraps on narrow viewports. */
  z-index: 2;
}
.nols-container .selector-filters .selector-filter:hover ul,
.nols-container .selector-filters .selector-filter.open ul {
  left: auto;
  opacity: 1;
  transition: opacity 0.25s ease-in-out 0.25s;
}
.nols-container .selector-filters h3 {
  margin: 0;
  font-size: 1em;
  padding: 0.5em 1em;
  font-family: "Roboto", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: white;
  font-weight: 400;
  border-right: 1px solid #333;
  min-height: 3em;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}
.nols-container .selector-filters h3 span {
  overflow: visible;
  white-space: normal;
  word-wrap: break-word;
  min-width: 0;
  line-height: 1.2;
}
.nols-container .selector-filters h3::after {
  content: "+";
  font-size: 1em;
  line-height: 1;
  font-family: "Noto Sans", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  text-shadow: none;
  flex-shrink: 0;
}
.nols-container .selector-filters h3 img {
  position: absolute;
  left: 0.5em;
  top: 0.75em;
}
.nols-container .selector-filters ul {
  opacity: 0;
  position: absolute;
  top: 100%;
  left: -200vw;
  font-size: 0.88889em;
  font-weight: 300;
  padding: 0;
  margin: 0 0 0.5em -1px;
  border: 1px solid #333;
  border-width: 1px 0 0 1px;
  background-color: rgba(26, 26, 26, 0.98);
  min-width: 240px;
  max-width: 100%;
  /* The bar is sticky, so an over-long dropdown can't be reached by scrolling the page -
     cap it to the viewport and let it scroll itself instead. */
  max-height: calc(100vh - var(--nols-sticky-offset) - 8em);
  overflow-y: auto;
  overflow-x: hidden;
}
.nols-container .selector-filters ul li {
  display: inline-block;
  list-style: none;
  padding: 0.25em 1em;
  margin-bottom: 0;
  border: 1px solid #333;
  border-width: 0 1px 1px 0;
  width: 100%;
  cursor: pointer;
}
.nols-container .selector-filters ul li.zero-count {
  color: #999;
}
.nols-container .selector-filters ul li:hover {
  background: #3a3a3a;
}
.nols-container .selector-filters ul li.selected,
.nols-container .selector-filters ul li.active {
  color: #333;
  background: #FFDE00;
}

/* ── Chosen filters ── */
.nols-container .selector-chosen-filters {
  background: #1a1a1a;
  position: relative;
  /* min-height, not height: once the pills wrap onto a second row they must grow the
     black strip rather than spill out below it over the result count. */
  padding: 0.5em 1em 0.25em 1em;
  min-height: 2.25em;
  width: 100%;
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
}
.nols-container .selector-chosen-filters ul {
  margin: 0;
  line-height: 1;
  padding: 0 118px 0 0;
}
.nols-container .selector-chosen-filters ul li {
  list-style: none;
  display: inline-block;
  background: #FFDE00;
  border-radius: 1em;
  margin: 0 0.5em 0.25em 0;
  padding: 0.3em 2em 0.2em 1em;
  position: relative;
  font-weight: 500;
  font-size: 0.88889em;
  white-space: nowrap;
  cursor: pointer;
}
.nols-container .selector-chosen-filters ul li::after {
  content: "\2715";
  font-weight: 500;
  position: absolute;
  right: 0.25em;
  top: 0.25em;
  font-size: 0.75em;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 0.3em 0 0.2em 0;
  width: 1.5em;
  height: 1em;
  display: block;
  border-radius: 1em;
  text-align: center;
}
.nols-container .selector-chosen-filters .selector-clear-all {
  font-family: var(--font-family);
  font-style: normal;
  text-transform: none;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0em;
  padding: 0.4em 1.2em 0.35em 1.2em;
  border-radius: 1em;
  color: #1a1a1a;
  background: #ffe600;
  position: absolute;
  top: 0.5em;
  right: 1em;
  opacity: 1;
  transition: opacity 0.5s ease;
  cursor: pointer;
  border: none;
}
.nols-container .selector-chosen-filters .selector-clear-all i {
  margin-right: 0.5em;
}
.nols-container .selector-chosen-filters .selector-clear-all[disabled] {
  opacity: 0;
  cursor: inherit;
}

/* ── Filter active state highlight classes ── */
.nols-container .selector-list.fa-as li.sa-as { background: #FFDE00; }
.nols-container .selector-list.fa-cl li.sa-cl { background: #FFDE00; }
.nols-container .selector-list.fa-clin li.sa-clin { background: #FFDE00; }
.nols-container .selector-list.fa-conf li.sa-conf { background: #FFDE00; }
.nols-container .selector-list.fa-edu li.sa-edu { background: #FFDE00; }
.nols-container .selector-list.fa-tra li.sa-tra { background: #FFDE00; }
.nols-container .selector-list.fa-multi li.sa-multi { background: #FFDE00; }
.nols-container .selector-list.fa-sim li.sa-sim { background: #FFDE00; }
.nols-container .selector-list.fa-storm li.sa-storm { background: #FFDE00; }
.nols-container .selector-list.fa-re li.sa-re { background: #FFDE00; }
.nols-container .selector-list.fa-tirf li.sa-tirf { background: #FFDE00; }
.nols-container .selector-list.fa-tc li.sa-tc { background: #FFDE00; }
.nols-container .selector-list.BF tr.sr-BF { box-shadow: inset #FFDE00 0 0 0 3px; }
.nols-container .selector-list.DF tr.sr-DF { box-shadow: inset #FFDE00 0 0 0 3px; }
.nols-container .selector-list.DIC tr.sr-DIC { box-shadow: inset #FFDE00 0 0 0 3px; }
.nols-container .selector-list.Fl-vis tr.sr-Fl-vis { box-shadow: inset #FFDE00 0 0 0 3px; }
.nols-container .selector-list.Fl-uv tr.sr-Fl-uv { box-shadow: inset #FFDE00 0 0 0 3px; }
.nols-container .selector-list.Fl-nir tr.sr-Fl-nir { box-shadow: inset #FFDE00 0 0 0 3px; }
.nols-container .selector-list.Pol tr.sr-Pol { box-shadow: inset #FFDE00 0 0 0 3px; }
.nols-container .selector-list.PC tr.sr-PC { box-shadow: inset #FFDE00 0 0 0 3px; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .nols-container .selector-body {
    margin: 0 0 2rem 0;
    width: 100%;
  }
  /* The glossary is a sibling of .selector-body, not inside it - these glossary rules
     were previously scoped under .selector-body and so never matched, leaving 3 cramped
     columns on phones. */
  .nols-container .selector-glossary ul {
    column-count: 2;
  }
  .nols-container .selector-body .selector-item {
    grid-template-areas: "heading heading" "stats apps" "ratings ratings";
    grid-template-columns: 3fr 7fr;
  }
  .nols-container .selector-body .selector-item h3 {
    border-top: 1px solid #333;
  }
  .nols-container .selector-body .selector-item .selector-applications {
    margin: 0;
    padding: 0.2em;
  }
  .nols-container .selector-body .selector-item .selector-applications li {
    padding: 0.2em 1em 0.2em 1em;
  }
  .nols-container .selector-filters, .nols-container .selector-chosen-filters {
    width: 100%;
    border-radius: 0;
  }
  .nols-container .selector-filters h3, .nols-container .selector-chosen-filters h3 {
    text-align: center;
    padding-top: 0.33333rem;
  }
  .nols-container .selector-chosen-filters h3::after {
    content: none;
  }
  .nols-container .selector-filters h3 img, .nols-container .selector-chosen-filters h3 img {
    height: 24px;
    position: relative;
    left: auto;
    top: auto;
    margin-top: 0;
  }
  .nols-container .selector-filters h3 span, .nols-container .selector-chosen-filters h3 span {
    font-size: 0.77778rem;
    display: block;
    margin-top: -0.33333rem;
  }
}
@media (max-width: 720px) {
  .nols-container .selector-glossary ul {
    column-count: 1;
  }
  /* Narrower pinned Enquire column on phones, so it doesn't eat most of the screen. */
  .nols-container .selector-column-headers .so-col-header-actions,
  .nols-container .selector-body .selector-item.selector-item-col-mode .so-stats-row .so-stat-cell-actions {
    flex-basis: 110px;
  }
  .nols-container .selector-body .selector-item.selector-item-col-mode .so-stats-row {
    /* 7 stat cells x 100px + the 110px actions cell */
    min-width: 810px;
  }
  /* Too narrow to reserve a right-hand gutter for the absolutely-positioned Clear Filters
     button - a long pill ran underneath it. Put the button in flow after the pills, and let
     a pill wrap its own text rather than overflow the strip. */
  .nols-container .selector-chosen-filters ul {
    padding-right: 0;
  }
  .nols-container .selector-chosen-filters ul li {
    white-space: normal;
    max-width: 100%;
  }
  .nols-container .selector-chosen-filters .selector-clear-all {
    position: static;
    margin: 0.25em 0 0.5em;
  }
  .nols-container .selector-chosen-filters .selector-clear-all[disabled] {
    display: none;
  }
  .nols-container .selector-body .selector-item {
    grid-template-areas: "heading" "stats" "ratings" "apps";
    grid-template-columns: 1fr;
  }
  .nols-container .selector-body .selector-item .selector-ratings th {
    height: 2.5rem;
    line-height: 1;
  }
  .nols-container .selector-body .selector-item .selector-ratings td {
    height: 2.5rem;
    vertical-align: middle;
  }
}
