/*
  Trusted Finder Styles
  Styles for the trusted seller search interface
*/

/* Defensive: if main bundle/shell.css is missing (wrong CSS order), rail SVGs must not scale to column width. */
body.trusted-finder-page .homepage-shell.redesign-shell .rail .item .ico,
body.trusted-finder-page .homepage-shell.redesign-shell .rail svg.ico {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  box-sizing: content-box;
}

/* Utility Classes for CSP Compliance */
.hidden {
  display: none !important;
}

/* Ensure grid displays correctly when not hidden */
.deals-grid:not(.hidden) {
  display: grid;
}

.ebay-partner-disclosure {
  font-size: 0.85rem;
  color: var(--text-secondary, #666);
  margin: 0.5rem 0 1rem 0;
}

.suggestions-dropdown {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

.modal-item-name-input {
  font-size: 1.1rem;
}

/* --- V2: Mode badge, pills, panels, parse status --- */
.trusted-search-mode-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  margin-left: 0.5rem;
}
.trusted-search-mode-badge.trusted-search-mode-shorthand { background: #dbeafe; color: #1e40af; }
.trusted-search-mode-badge.trusted-search-mode-json { background: #d1fae5; color: #065f46; }
.trusted-search-mode-badge.trusted-search-mode-markdown { background: #fef3c7; color: #92400e; }
.trusted-search-mode-badge.trusted-search-mode-invalid,
.trusted-search-mode-badge.trusted-search-mode-error { background: #fee2e2; color: #991b1b; }

.trusted-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}
.trusted-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.trusted-filter-pill:hover { background: #d1d5db; }
.trusted-filter-pill:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.trusted-filter-pill-remove { font-weight: bold; opacity: 0.8; }

.trusted-parse-status {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}
.trusted-parse-status.trusted-parse-status-warn { color: #92400e; }
.trusted-parse-status.trusted-parse-status-error { color: #991b1b; font-weight: 500; }

.trusted-v2-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.trusted-v2-toggle-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}
.trusted-v2-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.trusted-v2-toggle-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.trusted-v2-panel {
  margin-top: 0.75rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow-x: auto;
}

/* Syntax help: match API preview dark theme (#1e293b) */
#trustedSyntaxHelpPanel.trusted-v2-panel {
  background: #1e293b;
  border-color: #334155;
}
.trusted-syntax-help-table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
}
.trusted-syntax-help-table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid #475569; color: #e2e8f0; }
.trusted-syntax-help-table code { font-size: 0.8rem; background: #334155; color: #94a3b8; padding: 0.15rem 0.35rem; border-radius: 4px; }

.trusted-api-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
}
.trusted-api-copy-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  background: #e2e8f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.trusted-api-copy-btn:hover { background: #cbd5e1; }
.trusted-api-preview-body {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.8rem;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.trusted-examples-title, .trusted-examples-heading {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #334155;
}
.trusted-examples-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.trusted-example-query {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
}
.trusted-example-query:hover { background: #e2e8f0; }
.trusted-example-query:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .trusted-filter-pills { margin-top: 0.5rem; }
  .trusted-v2-actions { flex-wrap: wrap; }
  .trusted-v2-panel { padding: 0.75rem; }
}

/* CRITICAL: Force visibility of all filter panel elements */
#trustedFiltersPanel {
  box-sizing: border-box;
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
}

#trustedFiltersPanel * {
  box-sizing: border-box;
}

#trustedFiltersPanel .trusted-filters-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  padding: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  min-height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden;
}

#trustedFiltersPanel .trusted-filter-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Force visibility of all child elements */
#trustedFiltersPanel label,
#trustedFiltersPanel input,
#trustedFiltersPanel select,
#trustedFiltersPanel span,
#trustedFiltersPanel div {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Buy It Now pill toggle: panel-wide input rule above sets opacity:1 !important — hide native checkbox paint only here */
body.trusted-finder-page #trustedFiltersPanel .switch input[type='checkbox'] {
  opacity: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* Native controls: do not force display:block on custom-styled checkbox/radio/switch or hidden range mirrors. */
#trustedFiltersPanel input[type="number"],
#trustedFiltersPanel select {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#trustedFiltersPanel input[type="range"]:not(.tf-range-mirror) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#trustedFiltersPanel input.tf-range-mirror[type="range"] {
  display: none !important;
}

#trustedFiltersPanel label:not(.check) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #6b7280 !important;
}

/* Direct fixes for trusted-finder page using body class */
/* Ensure main content is pushed right to account for sidebar */
body.trusted-finder-page.has-account-sidebar main,
body.has-account-sidebar.trusted-finder-page main {
  margin-left: var(--account-sidebar-width-collapsed, 64px) !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow: visible !important;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* When sidebar is expanded, adjust margin */
html.account-sidebar-expanded body.trusted-finder-page.has-account-sidebar main,
html.account-sidebar-expanded body.has-account-sidebar.trusted-finder-page main {
  margin-left: var(--account-sidebar-width-expanded, 240px) !important;
}

body.trusted-finder-page .trusted-filters-panel {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  min-height: 100px !important;
  background: transparent !important;
  background-color: transparent !important;
}

body.trusted-finder-page .trusted-filters-panel .trusted-filters-container {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

body.trusted-finder-page .trusted-results-container {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
}

body.trusted-finder-page .trusted-welcome-state {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  margin-top: 0 !important;
}

/* Override for hidden/empty welcome state */
body.trusted-finder-page .trusted-welcome-state[style*="display: none"],
body.trusted-finder-page #trustedWelcomeState:empty {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Trusted Finder: main fills shell content width */
body.trusted-finder-page main {
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow: visible !important;
  overflow-x: hidden !important;
  min-height: auto !important;
  /* Avoid isolate here: it interacts badly with hero children that use sub-zero z-index
     (e.g. .tf-header__bg), which can hide hero text behind the tint layer in production. */
}

body.trusted-finder-page:not(.has-account-sidebar) main {
  margin-left: 0 !important;
}

body.trusted-finder-page.has-account-sidebar main {
  max-width: none !important;
  width: calc(100vw - var(--account-sidebar-width-collapsed, 64px)) !important;
  box-sizing: border-box;
  overflow-x: hidden !important;
  transition:
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html.account-sidebar-expanded body.trusted-finder-page.has-account-sidebar main {
  width: calc(100vw - var(--account-sidebar-width-expanded, 240px)) !important;
  overflow-x: hidden !important;
}

/*
 * Redesign shell: `.app.homepage-shell` is a 2-column grid (rail | main). Legacy
 * `body.has-account-sidebar main` rules (style.css + above) add margin-left and
 * `100vw`-based widths so main clears a *fixed* account sidebar pre-shell. That
 * double-counts the rail and blows up layout on desktop. Mobile @media zeros those
 * rules — hence TF only looked correct under ~768px. Reset main to the grid cell.
 */
body.trusted-finder-page .app.homepage-shell.redesign-shell > main.homepage-main-column,
body.trusted-finder-page .app.homepage-shell.redesign-shell main.homepage-main-column,
body.trusted-finder-page.has-account-sidebar .app.homepage-shell.redesign-shell > main.homepage-main-column,
body.trusted-finder-page.has-account-sidebar .app.homepage-shell.redesign-shell main.homepage-main-column,
body.has-account-sidebar.trusted-finder-page .app.homepage-shell.redesign-shell > main.homepage-main-column,
body.has-account-sidebar.trusted-finder-page .app.homepage-shell.redesign-shell main.homepage-main-column,
html.account-sidebar-expanded body.trusted-finder-page.has-account-sidebar .app.homepage-shell.redesign-shell > main.homepage-main-column,
html.account-sidebar-expanded body.trusted-finder-page.has-account-sidebar .app.homepage-shell.redesign-shell main.homepage-main-column,
html.account-sidebar-expanded body.has-account-sidebar.trusted-finder-page .app.homepage-shell.redesign-shell > main.homepage-main-column,
html.account-sidebar-expanded body.has-account-sidebar.trusted-finder-page .app.homepage-shell.redesign-shell main.homepage-main-column {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  background: transparent !important;
}

body.trusted-finder-page .trusted-filters-panel,
body.trusted-finder-page .trusted-results-container {
  visibility: visible !important;
  display: block !important;
  position: relative !important;
  opacity: 1 !important;
}

body.trusted-finder-page .trusted-filters-panel {
  min-height: 100px !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  background: transparent !important;
  background-color: transparent !important;
}

body.trusted-finder-page .trusted-filters-panel .trusted-filters-container {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
}




.trusted-filters-panel {
  max-width: 1200px;
  margin: 0 auto 1.25rem;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
  display: block !important;
  visibility: visible !important;
  background: transparent !important;
  opacity: 1 !important;
}

/* High specificity rules to ensure panel is visible */
body.trusted-finder-page .trusted-filters-panel,
body.trusted-finder-page .trusted-filters-panel,
.trusted-finder-page .trusted-filters-panel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* Inner card: white, rounded, soft shadow - bridges hero and content */
.trusted-filters-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  padding: 0 !important;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  min-height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.trusted-filters-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-bottom-color 300ms ease;
}

.trusted-filters-header .header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.trusted-filters-container.filters-collapsed .trusted-filters-header {
  border-bottom-color: transparent;
}

/* 3-column grid: Price Range | Listing + Condition | Seller Trust - compact vertical footprint */
.trusted-filters-content {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr !important;
  gap: 0.75rem 2rem !important;
  padding: 0.75rem 1rem !important;
  overflow: hidden;
  transition: max-height 400ms ease, opacity 400ms ease, padding-top 400ms ease, padding-bottom 400ms ease;
  max-height: 2000px;
  opacity: 1;
  align-items: start !important;
}

.trusted-filters-content.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Override all visibility rules when collapsed - maximum specificity to beat #trustedFiltersPanel rules */
#trustedFiltersPanel .trusted-filters-container .trusted-filters-content.collapsed .trusted-filter-group,
#trustedFiltersPanel .trusted-filters-container .trusted-filters-content.collapsed .trusted-filter-label,
#trustedFiltersPanel .trusted-filters-container .trusted-filters-content.collapsed label.trusted-filter-label,
#trustedFiltersPanel .trusted-filters-container .trusted-filters-content.collapsed label,
#trustedFiltersPanel .trusted-filters-container .trusted-filters-content.collapsed input,
#trustedFiltersPanel .trusted-filters-container .trusted-filters-content.collapsed select,
#trustedFiltersPanel .trusted-filters-container .trusted-filters-content.collapsed span:not(.collapse-arrow),
#trustedFiltersPanel .trusted-filters-container .trusted-filters-content.collapsed div:not(.trusted-filters-header) {
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip-path: inset(0 0 100% 0) !important;
}

/* High specificity rules to ensure container is visible */
body.trusted-finder-page .trusted-filters-container,
body.trusted-finder-page .trusted-filters-container,
.trusted-finder-page .trusted-filters-container,
#trustedFiltersPanel .trusted-filters-container {
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
}

body.trusted-finder-page .trusted-filters-content,
body.trusted-finder-page .trusted-filters-content,
.trusted-finder-page .trusted-filters-content,
#trustedFiltersPanel .trusted-filters-content {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.trusted-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  overflow: visible;
  min-width: 0;
}

/* Filter columns: each is a vertical stack */
.trusted-filter-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
  isolation: isolate;
}

.trusted-filter-col-price .trusted-filter-group {
  width: 100%;
}

/* Col 2: Listing + Condition - tighter grouping, align with Col 1 */
.trusted-filter-col-middle {
  gap: 0.5rem;
}

.trusted-filter-col-middle .trusted-filter-group {
  width: 100%;
}

/* Col 3: Seller Trust - whitespace separation only (no border) */
.trusted-filter-col-seller-trust .trusted-filter-group {
  width: 100%;
}

/* Ensure other filter groups don't contain price-related elements */
.trusted-filter-group:not(:has(.price-range-container)) {
  isolation: isolate;
}

/* Prevent price-related elements from appearing outside price range */
.trusted-filter-group:not(:has(.price-range-container)) .slider-value-display,
.trusted-filter-group:not(:has(.price-range-container)) .price-input-with-slider,
.trusted-filter-group:not(:has(.price-range-container)) .trusted-price-input {
  display: none !important;
}

/* Global section headers - 10–11px, tight margin */
.trusted-filter-label {
  font-weight: 600;
  font-size: 0.625rem; /* 10px */
  line-height: 1.2;
  color: #6b7280 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-bottom: 0.2rem;
}

/* Price Range */
/* Ensure price range elements are scoped to their container only */
.trusted-filter-group:has(.price-range-container) {
  overflow: visible;
  position: relative;
}

.price-range-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 0;
  width: 100%;
  overflow: visible;
  position: relative;
}

/* Desktop: Stack min/max vertically for larger, more usable sliders */
@media (min-width: 769px) {
  .price-range-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .price-separator {
    display: none;
  }
  
  .price-input-with-slider {
    width: 100%;
    flex: none;
  }
  
  /* Larger sliders on desktop for better usability */
  .trusted-price-slider {
    height: 8px;
    margin: 0.75rem 0;
  }
  
  .trusted-price-slider::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
  }
  
  .trusted-price-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
  }
  
  /* Better spacing for stacked layout */
  .price-label-input-row {
    margin-bottom: 0.5rem;
  }
  
  .slider-input-wrapper {
    padding: 0.5rem 0;
  }
}

/* Label + input on same row, slider immediately below */
.price-label-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.price-label-input-row label {
  margin-bottom: 0;
}
.price-input-with-slider {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 0;
  overflow: visible;
}

/* Scoped price range labels - prevent leakage */
.price-range-container label,
.price-input-with-slider label {
  font-size: 0.875rem;
  color: var(--text-secondary) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap;
  overflow: visible;
  position: relative;
}

.slider-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 0;
  overflow: visible;
  width: 100%;
}

.trusted-price-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
}

.trusted-price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime-vibrant);
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.trusted-price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.trusted-price-slider::-webkit-slider-thumb:active {
  transform: scale(1.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.trusted-price-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime-vibrant);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 100ms ease, box-shadow 100ms ease;
}

.trusted-price-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.trusted-price-slider::-moz-range-thumb:active {
  transform: scale(1.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Scoped to price range container only - prevent leakage to other sections */
.price-range-container .slider-value-display,
.price-input-with-slider .slider-value-display,
.slider-input-wrapper .slider-value-display {
  min-width: 70px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text) !important;
  text-align: right;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: visible;
  position: relative;
}

/* Scoped price inputs - ensure they stay in price range section */
.price-range-container .trusted-price-input,
.price-input-with-slider .trusted-price-input,
.trusted-price-input {
  width: 100%;
  min-height: 30px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border) !important;
  border-radius: 4px;
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--text) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.trusted-price-input:focus {
  border-color: var(--lime-vibrant);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.price-separator {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Toggle Switch */
.toggle-switch-container {
  display: flex;
  align-items: center;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  overflow: visible;
  width: 100%;
}

.toggle-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
  position: relative;
  width: 44px;
  height: 24px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 12px;
  outline: none;
  transition: background 200ms ease;
  cursor: pointer;
}

.toggle-switch input[type="checkbox"]:checked {
  background: var(--lime-vibrant);
}

.toggle-switch input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: transform 200ms ease;
}

.toggle-switch input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}

/* CRITICAL FIX: Override conflicting toggle-slider styles from style.css */
/* The style.css has .toggle-slider with position:absolute and full coverage */
/* This breaks the trusted-finder toggle, so we need to reset it completely */
.toggle-switch .toggle-slider,
#trustedFiltersPanel .toggle-slider,
.trusted-filters-panel .toggle-slider,
.trusted-filter-group .toggle-slider,
.trusted-filters-container .toggle-slider {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  background-color: transparent !important;
  background: transparent !important;
  border-radius: 0 !important;
  cursor: default !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-sizing: border-box !important;
}

.toggle-switch .toggle-slider:before,
#trustedFiltersPanel .toggle-slider:before,
.trusted-filters-panel .toggle-slider:before {
  display: none !important;
  content: none !important;
  position: static !important;
  width: 0 !important;
  height: 0 !important;
}

.toggle-label {
  font-size: 0.875rem;
  color: var(--text) !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap;
  position: relative;
}

/* Condition Radio Buttons */
.condition-radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  overflow: visible;
  width: 100%;
}

.condition-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.condition-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--lime-vibrant);
}

.condition-radio span {
  font-size: 0.875rem;
  color: var(--text) !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap;
  position: relative;
}

/* Ensure condition radio labels don't show price values */
.condition-radio-group .slider-value-display,
.condition-radio-group .price-input-with-slider,
.condition-radio-group .trusted-price-input {
  display: none !important;
}

/* Ensure toggle switch section doesn't show price elements */
.toggle-switch-container .slider-value-display,
.toggle-switch-container .price-input-with-slider,
.toggle-switch-container .trusted-price-input {
  display: none !important;
}

/* Seller criteria overrides - divider above Custom values, compact rows */
.trusted-filter-group.trusted-criteria-overrides {
  gap: 0.35rem;
  padding-top: 0.5rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.trusted-criteria-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.35rem;
}

.trusted-criteria-row:last-child {
  margin-bottom: 0;
}

/* Row: [Label] left, [Input + Helper] right */
.trusted-criteria-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  width: 100%;
}

.trusted-criteria-label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #374151 !important;
  margin: 0;
  flex-shrink: 0;
}

/* Input + helper grouped on the right, vertically centered */
.trusted-criteria-input-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.trusted-criteria-input {
  width: 4rem;
  min-width: 4rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border) !important;
  border-radius: 4px;
  font-size: 0.8125rem;
  text-align: right;
  background: #ffffff !important;
  color: var(--text) !important;
  -moz-appearance: textfield;
  box-sizing: border-box;
  min-height: 30px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.trusted-criteria-input::-webkit-outer-spin-button,
.trusted-criteria-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.trusted-criteria-input:focus {
  outline: none;
  border-color: var(--lime-vibrant) !important;
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Match Trusted Level dropdown exactly - compact 30px */
.trusted-level-select,
.trusted-criteria-input {
  min-height: 30px;
  box-sizing: border-box;
  border-radius: 4px;
}

.trusted-criteria-helper {
  font-size: 0.75rem;
  color: #6b7280 !important;
  min-width: 2.25rem;
  text-align: right;
  flex-shrink: 0;
  line-height: 30px;
}

/* Slider: full width, tight below input row */
.trusted-criteria-slider {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0.05rem 0 0;
}

.trusted-criteria-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime-vibrant);
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.trusted-criteria-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.trusted-criteria-slider::-webkit-slider-thumb:active {
  transform: scale(1.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.trusted-criteria-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime-vibrant);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 100ms ease, box-shadow 100ms ease;
}

.trusted-criteria-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.trusted-criteria-slider::-moz-range-thumb:active {
  transform: scale(1.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Trusted Level Select - compact 30px */
.trusted-level-select {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border) !important;
  border-radius: 4px;
  font-size: 0.8125rem;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--text) !important;
  outline: none;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 30px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.trusted-level-select:focus {
  border-color: var(--lime-vibrant);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Trusted Level override message removed from DOM; keep rule for any legacy refs */
.trusted-level-override-msg {
  display: none !important;
}

/* Results Container */
.trusted-results-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem 3rem;
  position: relative;
  z-index: 1;
  display: block !important;
  visibility: visible !important;
}

/* Welcome State */
.trusted-welcome-state {
  text-align: center;
  padding: 4rem 1rem;
  display: block !important;
  visibility: visible !important;
  position: relative;
}

/* Force welcome state to be completely hidden when display: none is set or when empty */
.trusted-welcome-state[style*="display: none"],
#trustedWelcomeState[style*="display: none"],
#trustedWelcomeState:empty {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  line-height: 0 !important;
}

.welcome-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.trusted-welcome-state h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--text);
}

.trusted-welcome-state > p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.welcome-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feature-icon {
  color: var(--lime-vibrant);
  font-weight: 700;
  font-size: 1rem;
}

/* Loading State */
.trusted-loading-state {
  text-align: center;
  padding: 3rem 1rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--lime-vibrant);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Results Header */
.trusted-results-header {
  margin-top: 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.trusted-results-header .results-info {
  flex: 1;
  min-width: 0;
}

.trusted-results-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.results-count {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.trusted-rate-limit-pill {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
  padding: 0.2rem 0.5rem;
  background: var(--surface-secondary, #f1f5f9);
  border-radius: 9999px;
  display: inline-block;
  max-width: 100%;
}

.trusted-rate-limit-pill.rate-limit-low {
  background: #fef3c7;
  color: #92400e;
}

.trusted-rate-limit-pill.rate-limit-none {
  background: #fee2e2;
  color: #991b1b;
}

/* Sort control in results header */
.trusted-results-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trusted-view-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 8px);
  padding: 0.25rem;
}

.view-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius, 8px) - 2px);
  color: var(--text-secondary, #6b7280);
  cursor: pointer;
  transition: all 200ms ease;
}

.view-toggle-btn:hover {
  background: var(--surface-hover, #f9fafb);
  color: var(--text, #111827);
}

.view-toggle-btn.active {
  background: var(--lime-vibrant, #a3e635);
  color: var(--text, #111827);
}

.view-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.trusted-sort-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trusted-sort-label {
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary, #6b7280);
  white-space: nowrap;
}

.trusted-sort-select {
  min-height: 36px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border) !important;
  border-radius: 4px;
  font-size: 0.875rem;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--text) !important;
  outline: none;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.trusted-sort-select:focus {
  border-color: var(--lime-vibrant);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Trusted Product Card Enhancements */
.trusted-product-card {
  position: relative;
}

.trusted-product-card .product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius) var(--radius) 0 0;
}

.trusted-product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ffffff;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

/* Add error state for failed image loads */
.trusted-product-card .product-image img[src=""],
.trusted-product-card .product-image img:not([src]) {
  display: none;
}

.trusted-seller-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--lime-vibrant);
  color: var(--text);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.trusted-seller-badge svg {
  width: 14px;
  height: 14px;
}

/* Free shipping badge - pill style, safe insets (bottom-left to avoid overlap with trusted-seller-badge) */
.trusted-shipping-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  top: auto;
  right: auto;
  padding: 5px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #dcfce7;
  color: #065f46;
  border: 1px solid rgba(5, 150, 105, 0.4);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  z-index: 10;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seller-stats {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seller-stats::before {
  content: '✓';
  color: var(--lime-vibrant);
  font-weight: 700;
}

/* Card meta: condition, category, availability - inline within product-metadata */
.trusted-card-meta {
  font-size: inherit;
  color: inherit;
  line-height: 1.35;
}

.product-metadata .trusted-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted, var(--text-secondary));
}

.trusted-card-condition,
.trusted-card-category,
.trusted-card-quantity,
.trusted-card-availability,
.trusted-card-shipping {
  display: inline;
}

.trusted-card-shipping {
  color: inherit;
}

/* Empty State */
.trusted-empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.trusted-empty-state h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.trusted-empty-state p {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

/* Error State */
.trusted-error-state {
  text-align: center;
  padding: 4rem 1rem;
}

.error-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.trusted-error-state h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--error);
}

.trusted-error-state p {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

/* Pagination */
.trusted-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--lime-vibrant);
  border-color: var(--lime-vibrant);
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Table View Styles */
.trusted-results-table-container {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: var(--radius, 8px);
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #ffffff);
}

.trusted-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.trusted-results-table thead {
  background: var(--surface-hover, #f9fafb);
  border-bottom: 2px solid var(--border, #e5e7eb);
}

.trusted-results-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-secondary, #6b7280);
  white-space: nowrap;
  position: relative;
}

.trusted-results-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 200ms ease;
}

.trusted-results-table th.sortable:hover {
  background: var(--surface-hover, #f3f4f6);
}

.trusted-results-table th.sortable.active {
  color: var(--text, #111827);
  background: var(--surface-hover, #f3f4f6);
}

.sort-indicator {
  display: inline-block;
  margin-left: 0.5rem;
  width: 0;
  height: 0;
  opacity: 0;
  transition: opacity 200ms ease;
}

.trusted-results-table th.sortable.active .sort-indicator {
  opacity: 1;
}

.trusted-results-table th.sortable.active.sort-asc .sort-indicator::after {
  content: '↑';
  display: inline-block;
}

.trusted-results-table th.sortable.active.sort-desc .sort-indicator::after {
  content: '↓';
  display: inline-block;
}

.trusted-results-table tbody tr {
  border-bottom: 1px solid var(--border, #e5e7eb);
  transition: background-color 200ms ease;
}

.trusted-results-table tbody tr:hover {
  background: var(--surface-hover, #f9fafb);
}

.trusted-results-table tbody tr:last-child {
  border-bottom: none;
}

.trusted-results-table td {
  padding: 1rem;
  vertical-align: middle;
}

.trusted-results-table .col-image {
  width: 80px;
}

.trusted-results-table .col-image img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius, 8px);
  border: 1px solid var(--border, #e5e7eb);
}

.trusted-results-table .col-title {
  min-width: 200px;
  max-width: 400px;
}

.trusted-results-table .col-title a {
  color: var(--text, #111827);
  text-decoration: none;
  font-weight: 500;
  transition: color 200ms ease;
}

.trusted-results-table .col-title a:hover {
  color: var(--lime-vibrant, #a3e635);
  text-decoration: underline;
}

.trusted-results-table .col-price {
  font-weight: 600;
  color: var(--text, #111827);
  white-space: nowrap;
}

.trusted-results-table .col-feedback,
.trusted-results-table .col-reviews {
  text-align: right;
  white-space: nowrap;
}

.trusted-results-table .col-condition {
  color: var(--text-secondary, #6b7280);
  font-size: 0.8125rem;
}

.trusted-results-table .col-shipping {
  color: var(--text-secondary, #6b7280);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.trusted-results-table .col-quantity {
  text-align: center;
  font-weight: 600;
  color: var(--text, #111827);
}

.trusted-results-table .col-actions {
  white-space: nowrap;
}

.trusted-results-table .buy-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--navy-deep);
  color: var(--lime-vibrant);
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.trusted-results-table .buy-button:hover {
  background: #0A0F24;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 219, 0, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* ======================================================================== */
  /* CRITICAL TOUCH TARGET FIXES - Phase 1 */
  /* ======================================================================== */
  
  /* Increase all slider thumbs to 28px for better touch interaction (above 44px minimum with padding) */
  .trusted-price-slider::-webkit-slider-thumb {
    width: 28px !important;
    height: 28px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
  }
  
  .trusted-price-slider::-moz-range-thumb {
    width: 28px !important;
    height: 28px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
  }
  
  .trusted-criteria-slider::-webkit-slider-thumb {
    width: 28px !important;
    height: 28px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
  }
  
  .trusted-criteria-slider::-moz-range-thumb {
    width: 28px !important;
    height: 28px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
  }
  
  /* Increase slider track height for better visibility and add padding for larger touch target */
  .trusted-price-slider {
    height: 8px !important;
    padding: 8px 0 !important;
    margin: 8px 0 !important;
  }
  
  .trusted-criteria-slider {
    height: 8px !important;
    padding: 8px 0 !important;
    margin: 8px 0 !important;
  }
  
  /* Ensure slider wrapper provides adequate touch area */
  .slider-input-wrapper {
    padding: 4px 0 !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
  
  /* All inputs minimum 44px height, 16px font (prevents iOS zoom) */
  .trusted-price-input,
  .trusted-criteria-input,
  .trusted-level-select,
  .trusted-sort-select {
    min-height: 44px !important;
    font-size: 16px !important;
    padding: 0.625rem 0.75rem !important;
  }
  
  /* Price input fields: wider to accommodate larger values like 10000.00 */
  .trusted-price-input {
    min-width: 120px !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }
  
  /* Ensure price input containers allow proper width */
  .price-label-input-row {
    gap: 0.75rem !important;
  }
  
  .price-label-input-row .trusted-price-input {
    flex: 1 1 0 !important;
    min-width: 120px !important;
  }
  
  /* Larger radio buttons for better touch targets */
  .condition-radio input[type="radio"] {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
  }
  
  /* Better radio label tap areas */
  .condition-radio {
    padding: 0.5rem;
    margin: -0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* More spacing between radio options */
  .condition-radio-group {
    gap: 2rem !important;
  }
  
  /* Ensure toggle switch has proper spacing */
  .toggle-switch {
    min-height: 44px;
    padding: 0.5rem 0;
  }
  
  /* Better header button sizing - ensure 44x44px minimum tap targets */
  .trusted-filter-label-collapsible {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0.5rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
  
  /* Ensure reset button is properly sized icon-only with adequate tap target */
  .trusted-settings-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0.5rem !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
  }
  
  .trusted-settings-btn .trusted-settings-btn-text {
    display: none !important;
  }
  
  /* Ensure feature badge items have adequate tap area if clickable */
  .trusted-hero-badge-item {
    min-height: 44px !important;
    padding: 0.5rem 0.75rem !important;
  }
  
  /* Ensure search button has adequate tap target */
  .trusted-search-btn {
    min-height: 48px !important;
    min-width: 44px !important;
  }
  
  /* Pagination buttons minimum 44px height */
  .pagination-btn {
    min-height: 44px !important;
  }
  
  /* ======================================================================== */
  /* SPACING & LAYOUT IMPROVEMENTS - Phase 2 */
  /* ======================================================================== */
  
  /* Advanced Settings Content - More vertical spacing with consistent rhythm */
  .trusted-filters-content {
    grid-template-columns: 1fr !important;
    gap: 1.5rem 0 !important; /* Increased from 1.25rem for better breathing room */
    padding: 1.5rem 1rem !important; /* Increased from 1.25rem */
  }
  
  /* More space between filter groups with consistent rhythm */
  .trusted-filter-col {
    gap: 1.25rem !important; /* Increased from 1rem */
  }
  
  /* More space between price min/max sections */
  .price-range-container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.75rem !important; /* Increased from 1.5rem */
  }
  
  /* Better spacing in price input sections */
  .price-input-with-slider {
    gap: 0.75rem !important; /* Increased from 0.5rem */
  }
  
  /* More space in seller criteria section */
  .trusted-criteria-row {
    margin-bottom: 1.25rem !important; /* Increased from 1rem */
    gap: 0.75rem !important; /* Increased from 0.5rem */
  }
  
  .trusted-filter-group.trusted-criteria-overrides {
    gap: 1.25rem !important; /* Increased from 1rem */
  }
  
  /* Better spacing for slider value displays */
  .slider-value-display {
    font-size: 0.875rem !important;
    min-width: 90px !important; /* Increased from 80px for better readability */
    text-align: right !important; /* Align numbers to the right */
  }
  
  /* Consistent spacing between hero and filters */
  .trusted-filters-panel {
    margin-top: -2rem !important;
    margin-bottom: 1.5rem !important; /* Added bottom margin for consistency */
  }
  
  /* Consistent spacing between filters and results */
  .trusted-results-container {
    margin-top: 1rem !important;
    padding-top: 0 !important;
  }
  
  /* ======================================================================== */
  /* TYPOGRAPHY & READABILITY - Phase 3 */
  /* ======================================================================== */
  
  /* Slightly larger filter labels for better readability */
  .trusted-filter-label {
    font-size: 0.6875rem !important; /* 11px - up from 10px */
    line-height: 1.4 !important;
    letter-spacing: 0.06em !important;
  }
  
  /* Better helper text sizing */
  .trusted-criteria-helper {
    font-size: 0.8125rem !important;
    line-height: 1.4 !important;
  }
  
  /* Consistent typography for price inputs and labels */
  .price-label-input-row label {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
  }
  
  .slider-value-display {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
  }
  
  /* ======================================================================== */
  /* VISUAL POLISH - Phase 4 */
  /* ======================================================================== */
  
  /* Better focus states for inputs */
  .trusted-price-input:focus,
  .trusted-criteria-input:focus,
  .trusted-level-select:focus {
    box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.2) !important;
    border-color: var(--lime-vibrant) !important;
  }
  
  /* Active slider thumb state */
  .trusted-price-slider::-webkit-slider-thumb:active,
  .trusted-criteria-slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
  }
  
  /* ======================================================================== */
  /* EXISTING MOBILE STYLES (preserved and enhanced) */
  /* ======================================================================== */
  
  .trusted-results-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem !important; /* Increased from 0.75rem */
  }

  .trusted-view-toggle {
    align-self: flex-start;
  }
  
  /* Better sort control sizing */
  .trusted-sort-control {
    width: 100%;
  }
  
  .trusted-sort-select {
    flex: 1;
    min-height: 44px !important;
  }

  .trusted-results-table-container {
    overflow-x: visible;
  }

  .trusted-results-table {
    min-width: 0;
    display: block;
  }

  .trusted-results-table thead {
    display: none;
  }

  .trusted-results-table tbody {
    display: block;
  }

  .trusted-results-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .trusted-results-table tbody tr:hover {
    box-shadow: var(--shadow-hover);
  }

  .trusted-results-table td {
    display: block;
    padding: 0.5rem 0;
    text-align: left;
    border: none;
  }

  .trusted-results-table td:before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-block;
    min-width: 100px;
  }

  .trusted-results-table .col-image {
    width: 100%;
    text-align: center;
    margin-bottom: 0.75rem;
  }

  .trusted-results-table .col-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: var(--radius-sm);
  }

  .trusted-results-table .col-title {
    min-width: 0;
    max-width: none;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .trusted-results-table td:last-child {
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border);
  }



  /* Seller Trust column: no divider on mobile */
  .trusted-filter-col-seller-trust {
    border-left: none;
    padding-left: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }

  .price-separator {
    display: none;
  }

  /* Pagination: better mobile layout */
  .trusted-pagination {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
    margin-top: 1.5rem;
  }

  .pagination-btn {
    width: 100%;
    max-width: 200px;
    padding: 0.75rem 1rem;
  }

  .pagination-info {
    font-size: 0.8125rem;
    text-align: center;
    order: -1;
  }

  /* ======================================================================== */
  /* CRITICAL: Fix grey bar on left side - disable all sidebar margins on mobile */
  /* ======================================================================== */
  
  /* CRITICAL: Hide the ::before pseudo-element that creates the grey bar */
  body.has-account-sidebar::before,
  body.trusted-finder-page.has-account-sidebar::before,
  body.has-account-sidebar.trusted-finder-page::before,
  html.account-sidebar-expanded body.has-account-sidebar::before,
  html.account-sidebar-expanded body.trusted-finder-page.has-account-sidebar::before,
  html.account-sidebar-expanded body.has-account-sidebar.trusted-finder-page::before {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    content: none !important;
    visibility: hidden !important;
  }
  
  /* Account sidebar: ensure main content and hero are ALWAYS full width on mobile */
  /* Override ALL sidebar margin rules - sidebar is overlay-only on mobile */
  /* Use maximum specificity to override the !important rules at lines 102-118 and 222-233 */
  /* CRITICAL: These rules MUST override the desktop rules, so we use !important and come after them */
  body.trusted-finder-page.has-account-sidebar main,
  body.has-account-sidebar.trusted-finder-page main,
  html.account-sidebar-expanded body.trusted-finder-page.has-account-sidebar main,
  html.account-sidebar-expanded body.has-account-sidebar.trusted-finder-page main,
  body.trusted-finder-page.has-account-sidebar main,
  html.account-sidebar-expanded body.trusted-finder-page.has-account-sidebar main,
  body.trusted-finder-page.has-account-sidebar.account-sidebar-transitions-enabled main,
  body.has-account-sidebar.trusted-finder-page.account-sidebar-transitions-enabled main,
  html.account-sidebar-expanded body.trusted-finder-page.has-account-sidebar.account-sidebar-transitions-enabled main,
  html.account-sidebar-expanded body.has-account-sidebar.trusted-finder-page.account-sidebar-transitions-enabled main {
    margin-left: 0 !important;
    padding-left: 0 !important;
    /* Override calc() width rules that subtract sidebar width - use 100vw to fill viewport */
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    overflow-x: hidden !important; /* Prevent horizontal overflow */
  }

  /* Ensure body and html have no left margin/padding on mobile */
  body.trusted-finder-page.has-account-sidebar,
  body.has-account-sidebar.trusted-finder-page,
  html.account-sidebar-expanded body.trusted-finder-page.has-account-sidebar,
  html.account-sidebar-expanded body.has-account-sidebar.trusted-finder-page {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  /* Navbar: ensure full width on trusted-finder mobile */
  body.trusted-finder-page .navbar,
  body.trusted-finder-page header .navbar,
  html.account-sidebar-expanded body.trusted-finder-page .navbar,
  html.account-sidebar-expanded body.trusted-finder-page header .navbar {
    margin-right: 0 !important;
    margin-left: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Hide navbar search on mobile for trusted-finder */
  body.trusted-finder-page .nav-search {
    display: none !important;
  }

  /* Ensure expanded advanced settings content has enough bottom padding */
  .trusted-filters-content:not(.collapsed) {
    padding-bottom: 1.5rem !important; /* Increased from 1.25rem */
  }
  
  /* Enhanced visual separation for Advanced Settings section */
  .trusted-filters-header {
    border-bottom: 1px solid var(--border, #e5e7eb) !important;
    padding-bottom: 1rem !important;
    margin-bottom: 0 !important;
  }
  
  .trusted-filters-container.filters-collapsed .trusted-filters-header {
    border-bottom-color: transparent !important;
  }
  
  /* Better visual hierarchy for Advanced Settings toggle */
  .trusted-filter-label-collapsible {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: var(--text, #1f2937) !important;
  }
  
  .trusted-filter-label-collapsible .collapse-arrow {
    transition: transform 0.3s ease !important;
  }
  
  .trusted-filters-content:not(.collapsed) ~ .trusted-filter-label-collapsible:not(.tf-filters__toggle) .collapse-arrow,
  html:has(.trusted-filters-content:not(.collapsed))
    .trusted-filter-label-collapsible:not(.tf-filters__toggle) .collapse-arrow {
    transform: rotate(180deg) !important;
  }

  /* Remove any outline or border on main to prevent stray visual artifacts */
  body.trusted-finder-page main {
    outline: none !important;
    border: none !important;
  }

  /* Ensure header actions can wrap if needed */
  .trusted-filters-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .trusted-filters-header .header-actions {
    flex-wrap: wrap;
  }
  
  /* FINAL OVERRIDE: Ensure main element has NO left margin on mobile - highest priority */
  /* This must come at the end of the media query to override everything */
  /* Target ALL possible selectors to ensure we override desktop rules */
  html,
  body,
  html.trusted-finder-page,
  body.trusted-finder-page,
  html.has-account-sidebar,
  body.has-account-sidebar,
  html.trusted-finder-page.has-account-sidebar,
  body.trusted-finder-page.has-account-sidebar,
  html.has-account-sidebar.trusted-finder-page,
  body.has-account-sidebar.trusted-finder-page {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  
  main,
  body main,
  body.trusted-finder-page main,
  body.has-account-sidebar main,
  body.trusted-finder-page.has-account-sidebar main,
  body.has-account-sidebar.trusted-finder-page main,
  html.account-sidebar-expanded body.trusted-finder-page.has-account-sidebar main,
  html.account-sidebar-expanded body.has-account-sidebar.trusted-finder-page main,
  body.trusted-finder-page.has-account-sidebar main,
  html.account-sidebar-expanded body.trusted-finder-page.has-account-sidebar main {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    overflow-x: hidden !important; /* Prevent horizontal overflow */
  }
  
  /* Ensure body background doesn't show through - make main fill entire viewport */
  body.trusted-finder-page.has-account-sidebar,
  body.has-account-sidebar.trusted-finder-page {
    overflow-x: hidden !important;
  }
}

@media (max-width: 480px) {
  /* Even smaller screens: ensure button stays icon-only */
  .trusted-settings-btn {
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    justify-content: center;
  }
  
  /* Even more aggressive spacing for very small screens */
  .trusted-filters-content {
    padding: 1rem 0.875rem !important;
    gap: 1rem 0 !important;
  }
  
  .trusted-filter-col {
    gap: 0.875rem !important;
  }
  
  .price-range-container {
    gap: 1.25rem !important;
  }
}

/* Leak audit (post–brace fix): intentional duplicate `.trusted-settings-btn` above (480px tweaks) + base
   block below; no other mobile-only rules in the formerly trapped span needed re-wrapping. */

/* Settings Button */
.trusted-settings-btn {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
  width: auto;
  min-width: 150px;
}

.trusted-settings-btn:hover {
  background: var(--lime-vibrant);
  border-color: var(--lime-vibrant);
  color: var(--text);
  transform: translateY(-1px);
}

.trusted-settings-btn:active {
  transform: translateY(0);
}

.trusted-settings-btn svg {
  width: 16px;
  height: 16px;
}

/* Sandbox Mode Indicator */
.sandbox-mode-indicator {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f59e0b;
  color: #fff;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

/* Custom Criteria Modal Form */
#trustedSellerCriteriaForm .form-group {
  margin-bottom: 1.5rem;
}

#trustedSellerCriteriaForm .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

#trustedSellerCriteriaForm .form-help {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: normal;
  margin-left: 0.25rem;
}

#trustedSellerCriteriaForm input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

#trustedSellerCriteriaForm input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime-vibrant);
  cursor: pointer;
  transition: transform 100ms ease;
}

#trustedSellerCriteriaForm input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

#trustedSellerCriteriaForm input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime-vibrant);
  cursor: pointer;
  border: none;
}

#trustedSellerCriteriaForm input[type="number"] {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 200ms ease;
  background: var(--surface);
  color: var(--text);
}

#trustedSellerCriteriaForm input[type="number"]:focus {
  border-color: var(--lime-vibrant);
}

#trustedSellerCriteriaForm .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0;
}

#trustedSellerCriteriaForm .checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
  accent-color: var(--lime-vibrant);
}

/* Ensure trusted seller criteria modal is visible */
#trustedSellerCriteriaModal.modal.is-visible {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#trustedSellerCriteriaModal .modal-content {
  background: #ffffff !important;
  color: #000000 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 400px;
}

#trustedSellerCriteriaModal .modal-header {
  background: #ffffff !important;
  color: #000000 !important;
  display: flex !important;
}

#trustedSellerCriteriaModal .modal-body {
  background: #ffffff !important;
  color: #000000 !important;
  display: block !important;
  padding: 24px !important;
}

#trustedSellerCriteriaModal .form-group {
  display: block !important;
  margin-bottom: 1.5rem;
}

#trustedSellerCriteriaModal label {
  display: block !important;
  color: #000000 !important;
}

#trustedSellerCriteriaModal input,
#trustedSellerCriteriaModal select {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #d1d5db !important;
}

/* Disabled Trusted Level Dropdown */
.trusted-level-select.trusted-level-disabled,
.trusted-level-select:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background-color: #f3f4f6 !important;
  color: #6b7280 !important;
}

.trusted-filter-group:has(.trusted-level-select.trusted-level-disabled) .trusted-filter-label {
  opacity: 0.5;
}

/* Disabled Criteria Sections in Modal */
.criteria-section-disabled {
  opacity: 0.5 !important;
  pointer-events: none !important;
}

.criteria-section-disabled input,
.criteria-section-disabled label,
.criteria-section-disabled span {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.criteria-section-disabled input[type="range"],
.criteria-section-disabled input[type="number"] {
  background-color: #f3f4f6 !important;
  color: #6b7280 !important;
}

.criteria-section-enabled {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Advanced Settings Collapsible */
.trusted-filter-label-collapsible {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: opacity 200ms ease;
  flex-shrink: 0;
}

.trusted-filter-label-collapsible:hover {
  opacity: 0.8;
}

.trusted-filter-label-collapsible .trusted-filter-label {
  margin: 0;
  flex: 1;
}

.trusted-filter-label-collapsible .collapse-arrow {
  flex-shrink: 0;
  transition: transform 300ms ease;
  color: var(--text-secondary);
}

.trusted-filter-label-collapsible:not(.tf-filters__toggle)[aria-expanded='false'] .collapse-arrow {
  transform: rotate(180deg);
}

/* Trusted Finder: pale fill on legacy static pages without redesign shell */
body.trusted-finder-page:not(:has(.homepage-shell.redesign-shell)) main {
  background: var(--bg-pale);
}

body.trusted-finder-page:not(:has(.homepage-shell.redesign-shell)) .trusted-results-container {
  background: var(--bg-pale);
}

/* Redesign shell: body already uses --redesign-bg; avoid stacking a different main fill (visible bands) */
body.trusted-finder-page .homepage-shell.redesign-shell .main.homepage-main-column {
  background: transparent;
}

body.trusted-finder-page .homepage-shell.redesign-shell .trusted-results-container {
  background: transparent;
}

/* Trusted Finder: force footer and footer links to light text for readability on dark background */
body.trusted-finder-page .site-footer,
body.trusted-finder-page .site-footer .footer-links a {
  color: #94a3b8;
}

body.trusted-finder-page .site-footer .footer-links a:hover {
  color: var(--lime-vibrant);
}

/* --------------------------------------------------------------------------
 * Trusted Finder body polish (.tf-*), redesign stack + search card
 * -------------------------------------------------------------------------- */
body.trusted-finder-page .tf-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  body.trusted-finder-page .tf-stack {
    gap: 28px;
  }
}

body.trusted-finder-page .homepage-shell.redesign-shell .tf-header.section-h {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  border-bottom: none;
}

body.trusted-finder-page .homepage-shell.redesign-shell .tf-header .section-h__title {
  font-size: clamp(1.375rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--text, #0f172a);
}

body.trusted-finder-page .homepage-shell.redesign-shell .tf-header .section-h__sub {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary, #64748b);
  max-width: 42rem;
}

body.trusted-finder-page .homepage-shell.redesign-shell .tf-header .section-h__sub em {
  font-style: normal;
  font-weight: 600;
  color: var(--text, #0f172a);
}

body.trusted-finder-page .tf-header .section-h__meta {
  flex-shrink: 0;
}

body.trusted-finder-page .tf-preset-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--navy-900, #0b1129) 7%, transparent);
  color: var(--navy-900, #0b1129);
  border: 1px solid color-mix(in srgb, var(--navy-900, #0b1129) 15%, transparent);
}

/* Search card — light surface (V2 toggles readable on redesign) */
body.trusted-finder-page .tf-search.card {
  margin: 0;
  padding: 1rem 1.125rem 1rem;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-2, 0 10px 40px rgb(15 23 42 / 0.08));
  box-sizing: border-box;
}

body.trusted-finder-page .tf-search__wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}

body.trusted-finder-page .tf-search__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-alt, #f8fafc) 92%, transparent);
  min-height: 56px;
  box-sizing: border-box;
}

body.trusted-finder-page .tf-search__row:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime-vibrant) 38%, transparent);
  border-color: color-mix(in srgb, var(--lime-vibrant) 45%, transparent);
}

body.trusted-finder-page .tf-search__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.75rem;
  color: var(--text-secondary, #64748b);
}

body.trusted-finder-page .tf-search__input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 48px;
  padding: 0 0.5rem 0 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  font-variant-numeric: tabular-nums;
}

body.trusted-finder-page .tf-search__submit {
  margin: 6px !important;
  margin-left: auto !important;
  flex-shrink: 0;
  min-height: 44px !important;
  align-self: center;
  gap: 0.5rem !important;
  border-radius: 999px !important;
  padding: 10px 1.125rem !important;
}

body.trusted-finder-page .tf-search__kbd {
  display: inline-block;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.125rem 0.35rem;
  border-radius: 4px;
  background: color-mix(in srgb, #111827 8%, transparent);
  color: #334155;
  line-height: 1;
}

@media (max-width: 380px), (max-width: 599px) {
  body.trusted-finder-page .tf-search__row:has(.tf-search__submit) {
    border-radius: 16px;
  }

  body.trusted-finder-page .tf-search__kbd {
    display: none !important;
  }
}

@media (max-width: 359px) {
  body.trusted-finder-page .tf-search__kbd {
    display: none !important;
  }
}

body.trusted-finder-page .tf-search__signals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0 0.125rem;
  font-size: 0.8125rem;
  color: var(--text-secondary, #64748b);
  list-style: none;
}

body.trusted-finder-page .tf-search__signals li {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.3;
}

body.trusted-finder-page .tf-signal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.trusted-finder-page .tf-signal-dot--feedback {
  background: color-mix(in srgb, #3b82f6 82%, transparent);
}

body.trusted-finder-page .tf-signal-dot--reviews {
  background: color-mix(in srgb, var(--lime-vibrant) 88%, transparent);
}

body.trusted-finder-page .tf-signal-dot--badge {
  background: color-mix(in srgb, #f59e0b 88%, transparent);
}

body.trusted-finder-page .tf-search .trusted-v2-actions {
  margin-top: 0;
}

body.trusted-finder-page .tf-search.card .trusted-v2-toggle-btn {
  background: var(--surface, #fff);
  border-color: var(--border, #e2e8f0);
  color: var(--text-secondary, #64748b);
  backdrop-filter: none;
}

body.trusted-finder-page .tf-search.card .trusted-v2-toggle-btn:hover {
  background: var(--surface-alt, #f8fafc);
  border-color: var(--border, #cbd5e1);
  color: var(--text, #0f172a);
}

body.trusted-finder-page .tf-search.card .trusted-v2-panel {
  background: var(--surface-alt, #f8fafc);
  border-color: var(--border, #e2e8f0);
}

body.trusted-finder-page .trusted-filter-pills:not(.hidden) {
  margin-top: 0.25rem !important;
}

body.trusted-finder-page .tf-filters {
  width: 100%;
  box-sizing: border-box;
}

body.trusted-finder-page .tf-filter-col-caption {
  margin: 0 0 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b !important;
}

body.trusted-finder-page .trusted-filters-header {
  align-items: center;
}

body.trusted-finder-page .trusted-filters-header .trusted-filter-label-collapsible {
  flex: 1 1 auto;
  min-width: 0;
}

body.trusted-finder-page #trustedFiltersPanel[data-tf-dirty='false'] #trustedResetToPresetBtn {
  opacity: 0.45;
  pointer-events: none;
}

body.trusted-finder-page #trustedFiltersPanel[data-tf-dirty='true'] #trustedResetToPresetBtn {
  opacity: 1;
  pointer-events: auto;
}

body.trusted-finder-page .tf-reset-btn {
  white-space: nowrap;
}

/* Results slot — optional motion only (no visibility trap on container) */
body.trusted-finder-page .trusted-results-container {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body.trusted-finder-page .trusted-results-container[data-tf-slot-state='empty'] {
  opacity: 1;
}

body.trusted-finder-page .trusted-results-container[data-tf-slot-state='loading'] {
  opacity: 0.92;
}

body.trusted-finder-page .trusted-results-container[data-tf-slot-state='results'] {
  opacity: 1;
}

/* Welcome card */
body.trusted-finder-page .tf-welcome.card-soft {
  margin: 0;
  padding: 1.25rem 1.25rem 1.35rem;
  border-radius: var(--radius-md, 12px);
  background: color-mix(in srgb, var(--surface-alt, #f8fafc) 88%, var(--surface, #fff));
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 4px 14px rgb(15 23 42 / 0.05);
}

body.trusted-finder-page .tf-welcome__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text, #0f172a);
}

body.trusted-finder-page .tf-welcome__sub {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary, #64748b);
}

body.trusted-finder-page .tf-welcome__sub code {
  font-size: 0.82em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--navy-900, #0b1129) 7%, transparent);
  color: var(--navy-900, #0b1129);
}

body.trusted-finder-page .tf-welcome__examples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

body.trusted-finder-page .tf-example {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text, #0f172a);
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.trusted-finder-page .tf-example:hover {
  border-color: color-mix(in srgb, var(--lime-vibrant) 38%, transparent);
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.06);
}

body.trusted-finder-page .tf-example:focus-visible {
  outline: 2px solid var(--lime-vibrant);
  outline-offset: 2px;
}

body.trusted-finder-page .tf-example em {
  font-style: normal;
  font-weight: 600;
  color: var(--text-secondary, #475569);
}

@media (max-width: 480px) {
  body.trusted-finder-page .tf-welcome__examples {
    grid-template-columns: 1fr;
  }
}

/* Trusted Finder redesign: filter-panel rules use `#trustedFiltersPanel` in selectors because
   the live DOM nests the panel inside `.tf-filters` — keep this descendant chain when editing. */

/* Filter controls polish (scoped) */
body.trusted-finder-page #trustedFiltersPanel .select-shell {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
  padding: 0 0.5rem;
  box-sizing: border-box;
}

body.trusted-finder-page #trustedFiltersPanel .select-shell:focus-within {
  border-color: color-mix(in srgb, var(--lime-vibrant) 45%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--lime-vibrant) 25%, transparent);
}

body.trusted-finder-page #trustedFiltersPanel .trusted-level-select {
  width: 100%;
  border: none;
  background: transparent;
  min-height: 44px;
  padding: 0.25rem 0;
  font-size: 0.875rem;
}

body.trusted-finder-page #trustedFiltersPanel .condition-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.trusted-finder-page #trustedFiltersPanel .condition-radio {
  margin: 0;
  padding: 0;
  position: relative;
  border-radius: 999px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface-alt, #f8fafc);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.trusted-finder-page #trustedFiltersPanel .condition-radio:has(input:checked) {
  background: var(--surface, #fff);
  border-color: color-mix(in srgb, var(--lime-vibrant) 55%, transparent);
  box-shadow: 0 1px 4px rgb(15 23 42 / 0.07);
}

body.trusted-finder-page #trustedFiltersPanel .condition-radio span {
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

body.trusted-finder-page #trustedFiltersPanel .condition-radio input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.trusted-finder-page #trustedFiltersPanel .trusted-filter-checkbox input[type='checkbox'] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--lime-500, var(--lime-vibrant));
}

body.trusted-finder-page #trustedFiltersPanel .toggle-switch input:checked + .toggle-slider {
  background: color-mix(in srgb, var(--lime-vibrant) 88%, #16a34a) !important;
}

body.trusted-finder-page #trustedFiltersPanel .toggle-slider:before {
  background: #fff !important;
}

body.trusted-finder-page #trustedFiltersPanel .trusted-price-slider,
body.trusted-finder-page #trustedFiltersPanel .trusted-criteria-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--border, #e2e8f0);
}

body.trusted-finder-page #trustedFiltersPanel .trusted-price-slider::-webkit-slider-thumb,
body.trusted-finder-page #trustedFiltersPanel .trusted-criteria-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface, #fff);
  border: 2px solid var(--lime-vibrant);
  box-shadow: 0 1px 4px rgb(15 23 42 / 0.12);
  cursor: pointer;
}

body.trusted-finder-page #trustedFiltersPanel .trusted-price-slider::-moz-range-thumb,
body.trusted-finder-page #trustedFiltersPanel .trusted-criteria-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface, #fff);
  border: 2px solid var(--lime-vibrant);
  box-shadow: 0 1px 4px rgb(15 23 42 / 0.12);
  cursor: pointer;
}

body.trusted-finder-page #trustedFiltersPanel .trusted-criteria-row {
  align-items: center;
  gap: 0.6rem;
}

body.trusted-finder-page #trustedFiltersPanel .trusted-criteria-input {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1023px) {
  body.trusted-finder-page #trustedFiltersPanel .trusted-filters-content {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 767px) {
  body.trusted-finder-page #trustedFiltersPanel .trusted-filters-content {
    grid-template-columns: 1fr !important;
  }
}

/* ========== Trusted Finder redesign (README handoff) ========== */
body.trusted-finder-page #tfRoot[data-dirty='false'] #filtersHead .tf-filters__reset {
  opacity: 0.45;
  pointer-events: none;
}

body.trusted-finder-page #tfRoot[data-dirty='true'] #filtersHead .tf-filters__reset {
  opacity: 1;
  pointer-events: auto;
}

body.trusted-finder-page #tfRoot[data-dirty='true'] #filtersHead .dirty {
  display: inline-flex !important;
}

body.trusted-finder-page .tf-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}

body.trusted-finder-page .tf-header.tf-header--navy {
  /* core.css sets global `header { position:sticky; z-index:50; border; box-shadow; … }`
     for the top chrome — the TF hero is also a <header>, so undo that here or desktop
     stacking/paint breaks while mobile layout masks it. */
  position: relative;
  top: auto;
  z-index: 0;
  flex-shrink: 0;
  backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--redesign-navy-900, #0b1129);
  color: #fff;
  border-radius: 22px;
  padding: 38px 40px 34px;
  overflow: hidden;
  isolation: isolate;
}

body.trusted-finder-page .tf-header__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 280px at 88% 18%, rgba(31, 219, 0, 0.16), transparent 60%),
    radial-gradient(380px 220px at 10% 110%, rgba(54, 232, 26, 0.1), transparent 60%),
    linear-gradient(180deg, var(--redesign-navy-800, #111a3a), var(--redesign-navy-900, #0b1129) 60%);
}

body.trusted-finder-page .tf-header--navy .lede {
  max-width: 62ch;
  position: relative;
  z-index: 1;
}

body.trusted-finder-page .tf-header--navy .meta {
  position: relative;
  z-index: 1;
}

body.trusted-finder-page .tf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--redesign-lime-300, #87f56b);
  margin-bottom: 14px;
}

body.trusted-finder-page .tf-header--navy .tf-eyebrow {
  color: var(--redesign-lime-300, #87f56b) !important;
}

body.trusted-finder-page .tf-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--redesign-lime-400, #36e81a);
  box-shadow: 0 0 0 0 rgba(31, 219, 0, 0.55);
  animation: tfLivePulse 1.8s ease-out infinite;
}

@keyframes tfLivePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 219, 0, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(31, 219, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 219, 0, 0);
  }
}

body.trusted-finder-page .tf-header--navy h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.1;
  color: #fff !important;
  text-wrap: balance;
}

body.trusted-finder-page .tf-header--navy .sub {
  margin: 0;
  font-size: 16px;
  color: #b7bdd2 !important;
  text-wrap: balance;
  max-width: 60ch;
  line-height: 1.5;
}

body.trusted-finder-page .tf-header--navy .sub em {
  font-style: normal;
  color: var(--redesign-lime-300, #87f56b) !important;
  font-weight: 600;
}

body.trusted-finder-page .tf-header .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  align-self: flex-start;
}

body.trusted-finder-page .preset-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 9px 14px 9px 11px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 13px;
  color: #dde1ee;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
}

body.trusted-finder-page .preset-badge .lvl {
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.trusted-finder-page .preset-badge .lvl .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--redesign-lime-500, #1fdb00);
  box-shadow: 0 0 0 3px rgba(31, 219, 0, 0.18);
}

body.trusted-finder-page .preset-badge .sep {
  color: rgba(255, 255, 255, 0.3);
}

body.trusted-finder-page .preset-badge.is-custom .lvl .dot {
  background: #c49a1f;
  box-shadow: 0 0 0 3px rgba(196, 154, 31, 0.18);
}

body.trusted-finder-page .preset-badge.is-loose .lvl .dot {
  background: #2e6bff;
  box-shadow: 0 0 0 3px rgba(46, 107, 255, 0.18);
}

body.trusted-finder-page .tf-search {
  background: var(--redesign-surface, #fff);
  border: 1px solid var(--redesign-line, #e4e1d6);
  border-radius: 22px;
  padding: 18px 18px 20px;
  box-shadow: 0 6px 18px -10px rgba(11, 17, 41, 0.18), 0 2px 4px rgba(11, 17, 41, 0.05);
}

body.trusted-finder-page .tf-search__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 14px;
  background: var(--redesign-bg, #f6f5f0);
  border: 1px solid var(--redesign-line, #e4e1d6);
  transition:
    border-color 0.12s,
    box-shadow 0.12s,
    background 0.12s;
}

body.trusted-finder-page .tf-search__row:focus-within {
  border-color: var(--redesign-navy-700, #1a2644);
  background: var(--redesign-surface, #fff);
  box-shadow: 0 0 0 4px rgba(11, 17, 41, 0.08);
}

body.trusted-finder-page .tf-search__ico {
  flex-shrink: 0;
  color: var(--redesign-ink-400, #7b8198);
}

body.trusted-finder-page .tf-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 19px;
  color: var(--redesign-ink-900, #0e1322);
  font-family: inherit;
  padding: 14px 4px;
}

body.trusted-finder-page .tf-search__input::placeholder {
  color: var(--redesign-ink-400, #7b8198);
}

body.trusted-finder-page .tf-search__submit {
  background: var(--redesign-navy-900, #0b1129);
  color: #fff;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.12s;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

body.trusted-finder-page .tf-search__submit:hover {
  background: var(--redesign-navy-800, #111a3a);
}

body.trusted-finder-page .tf-search__kbd-ret {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

body.trusted-finder-page .tf-search__signals {
  list-style: none;
  padding: 14px 6px 2px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  font-size: 13px;
  color: var(--redesign-ink-500, #5a6076);
}

body.trusted-finder-page .tf-search__signals li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.trusted-finder-page .tf-search__signals .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--redesign-lime-500, #1fdb00);
}

body.trusted-finder-page .tf-search__signals .dot--b {
  background: #2e6bff;
}

body.trusted-finder-page .tf-search__signals .dot--g {
  background: #c49a1f;
}

body.trusted-finder-page .tf-search__signals-alt {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

body.trusted-finder-page .tf-search__link-btn {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  color: var(--redesign-ink-700, #2b3142);
  border-bottom: 1px dashed var(--redesign-line-strong, #c9c5b5);
  padding-bottom: 1px;
}

body.trusted-finder-page .tf-search__link-btn:hover {
  color: var(--redesign-navy-900, #0b1129);
  border-color: var(--redesign-ink-500, #5a6076);
}

body.trusted-finder-page .tf-filters > .trusted-filters-panel {
  background: var(--redesign-surface, #fff);
  border: 1px solid var(--redesign-line, #e4e1d6);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 18px -10px rgba(11, 17, 41, 0.12);
}

body.trusted-finder-page .tf-filters .trusted-filters-container.tf-filters-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

body.trusted-finder-page .tf-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--redesign-line, #e4e1d6);
  background: var(--redesign-bg, #f6f5f0);
  gap: 12px;
}

body.trusted-finder-page .tf-filters__head[aria-expanded='false'] {
  border-bottom-color: transparent;
}

body.trusted-finder-page .tf-filters__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--redesign-ink-700, #2b3142);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

body.trusted-finder-page .tf-filters__toggle .chev {
  flex-shrink: 0;
  max-width: 20px;
  max-height: 20px;
  transition: transform 0.18s ease;
}

body.trusted-finder-page .tf-filters__head[aria-expanded='true'] .tf-filters__toggle .chev {
  transform: rotate(180deg);
}

body.trusted-finder-page .tf-filters__head .dirty {
  display: none;
  background: var(--redesign-lime-50, #ecfde4);
  color: #156100;
  border: 1px solid #bfeaa5;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body.trusted-finder-page .tf-filters__body {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;
}

body.trusted-finder-page .tf-filters__body.collapsed {
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  padding: 0 !important;
  border: none !important;
}

body.trusted-finder-page .tf-filters__body.hidden {
  display: none !important;
}

body.trusted-finder-page .tf-col {
  padding: 20px 22px 22px;
  border-right: 1px solid var(--redesign-line, #e4e1d6);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.trusted-finder-page .tf-col:last-child {
  border-right: 0;
}

body.trusted-finder-page .tf-col__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--redesign-ink-500, #5a6076);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.trusted-finder-page .tf-col__label .hint {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--redesign-ink-400, #7b8198);
  font-size: 11px;
}

body.trusted-finder-page #trustedFiltersPanel .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.trusted-finder-page #trustedFiltersPanel .tf-range-label,
body.trusted-finder-page #trustedFiltersPanel .field > label {
  font-size: 12px;
  color: var(--redesign-ink-500, #5a6076);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.trusted-finder-page #trustedFiltersPanel .field > label .val {
  font-variant-numeric: tabular-nums;
  color: var(--redesign-ink-900, #0e1322);
  font-weight: 600;
}

body.trusted-finder-page #trustedFiltersPanel .input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.trusted-finder-page #trustedFiltersPanel .input {
  border: 1px solid var(--redesign-line, #e4e1d6);
  background: var(--redesign-surface, #fff);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--redesign-ink-900, #0e1322);
  width: 100%;
  font-variant-numeric: tabular-nums;
}

body.trusted-finder-page #trustedFiltersPanel .input:focus {
  outline: 0;
  border-color: var(--redesign-navy-700, #1a2644);
  box-shadow: 0 0 0 3px rgba(11, 17, 41, 0.08);
}

body.trusted-finder-page #trustedFiltersPanel .input.with-prefix {
  padding-left: 22px;
}

body.trusted-finder-page #trustedFiltersPanel .input-wrap {
  position: relative;
  flex: 1;
}

body.trusted-finder-page #trustedFiltersPanel .input-wrap .prefix {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--redesign-ink-400, #7b8198);
  font-size: 13px;
}

body.trusted-finder-page #trustedFiltersPanel .input-sep {
  color: var(--redesign-ink-400, #7b8198);
  font-size: 13px;
}

body.trusted-finder-page #trustedFiltersPanel .dual {
  position: relative;
  height: 28px;
  padding: 0 9px;
}

body.trusted-finder-page #trustedFiltersPanel .dual .track {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 999px;
  background: var(--redesign-line, #e4e1d6);
}

body.trusted-finder-page #trustedFiltersPanel .dual .track .fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--redesign-lime-500, #1fdb00);
  border-radius: 999px;
}

body.trusted-finder-page #trustedFiltersPanel .dual .thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--redesign-surface, #fff);
  border: 1px solid var(--redesign-line-strong, #c9c5b5);
  box-shadow: 0 1px 0 rgba(11, 17, 41, 0.04);
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 1;
}

body.trusted-finder-page #trustedFiltersPanel .dual .thumb:active {
  cursor: grabbing;
}

body.trusted-finder-page #trustedFiltersPanel .tf-price-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--redesign-ink-400, #7b8198);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

body.trusted-finder-page #trustedFiltersPanel .tf-range-mirror {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body.trusted-finder-page #trustedFiltersPanel .range,
body.trusted-finder-page #trustedFiltersPanel .tf-qty-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}

body.trusted-finder-page #trustedFiltersPanel .range:focus,
body.trusted-finder-page #trustedFiltersPanel .tf-qty-range:focus {
  outline: 0;
}

body.trusted-finder-page #trustedFiltersPanel .range::-webkit-slider-runnable-track,
body.trusted-finder-page #trustedFiltersPanel .tf-qty-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--redesign-lime-500, #1fdb00) 0%,
    var(--redesign-lime-500, #1fdb00) var(--fill, 50%),
    var(--redesign-line, #e4e1d6) var(--fill, 50%),
    var(--redesign-line, #e4e1d6) 100%
  );
}

body.trusted-finder-page #trustedFiltersPanel .range::-webkit-slider-thumb,
body.trusted-finder-page #trustedFiltersPanel .tf-qty-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--redesign-surface, #fff);
  border: 1px solid var(--redesign-line-strong, #c9c5b5);
  margin-top: -7px;
  box-shadow: 0 1px 0 rgba(11, 17, 41, 0.04);
}

body.trusted-finder-page #trustedFiltersPanel .range::-moz-range-track,
body.trusted-finder-page #trustedFiltersPanel .tf-qty-range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--redesign-line, #e4e1d6);
}

body.trusted-finder-page #trustedFiltersPanel .range::-moz-range-progress,
body.trusted-finder-page #trustedFiltersPanel .tf-qty-range::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--redesign-lime-500, #1fdb00);
}

body.trusted-finder-page #trustedFiltersPanel .seg {
  display: inline-flex;
  background: var(--redesign-bg, #f6f5f0);
  border: 1px solid var(--redesign-line, #e4e1d6);
  border-radius: 10px;
  padding: 3px;
  width: 100%;
  gap: 0;
}

body.trusted-finder-page #trustedFiltersPanel .seg input {
  display: none;
}

body.trusted-finder-page #trustedFiltersPanel .seg label {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--redesign-ink-500, #5a6076);
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s,
    box-shadow 0.12s;
  margin: 0;
}

body.trusted-finder-page #trustedFiltersPanel .seg input:checked + label {
  background: var(--redesign-surface, #fff);
  color: var(--redesign-ink-900, #0e1322);
  box-shadow: 0 1px 0 rgba(11, 17, 41, 0.04);
}

body.trusted-finder-page #trustedFiltersPanel .switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--redesign-line, #e4e1d6);
  border-radius: 8px;
  background: var(--redesign-surface, #fff);
}

body.trusted-finder-page #trustedFiltersPanel .switch-row .copy {
  flex: 1;
  font-size: 13px;
  color: var(--redesign-ink-900, #0e1322);
}

body.trusted-finder-page #trustedFiltersPanel .switch-row .copy .hint {
  display: block;
  font-size: 12px;
  color: var(--redesign-ink-500, #5a6076);
  margin-top: 1px;
}

body.trusted-finder-page #trustedFiltersPanel .switch {
  --sw: 36px;
  --sh: 20px;
  position: relative;
  width: var(--sw);
  height: var(--sh);
  flex-shrink: 0;
}

body.trusted-finder-page #trustedFiltersPanel .switch input {
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  position: absolute;
  z-index: 2;
}

body.trusted-finder-page #trustedFiltersPanel .switch .slot {
  position: absolute;
  inset: 0;
  background: var(--redesign-line-strong, #c9c5b5);
  border-radius: 999px;
  transition: background 0.15s;
  pointer-events: none;
}

body.trusted-finder-page #trustedFiltersPanel .switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(var(--sh) - 4px);
  height: calc(var(--sh) - 4px);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(11, 17, 41, 0.25);
  transition: transform 0.15s;
  pointer-events: none;
}

body.trusted-finder-page #trustedFiltersPanel .switch input:checked ~ .slot {
  background: var(--redesign-lime-500, #1fdb00);
}

body.trusted-finder-page #trustedFiltersPanel .switch input:checked ~ .knob {
  transform: translateX(calc(var(--sw) - var(--sh)));
}

body.trusted-finder-page #trustedFiltersPanel .checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.trusted-finder-page #trustedFiltersPanel .check.tf-check,
body.trusted-finder-page #trustedFiltersPanel label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--redesign-ink-900, #0e1322);
  cursor: pointer;
}

body.trusted-finder-page #trustedFiltersPanel .check input {
  display: none;
}

body.trusted-finder-page #trustedFiltersPanel .check .box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--redesign-line-strong, #c9c5b5);
  background: var(--redesign-surface, #fff);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

body.trusted-finder-page #trustedFiltersPanel .check .box svg {
  width: 12px;
  height: 12px;
  max-width: 12px;
  max-height: 12px;
  color: #fff;
  opacity: 0;
}

body.trusted-finder-page #trustedFiltersPanel .check input:checked + .box {
  background: var(--redesign-lime-500, #1fdb00);
  border-color: var(--redesign-lime-500, #1fdb00);
}

body.trusted-finder-page #trustedFiltersPanel .check input:checked + .box svg {
  opacity: 1;
}

body.trusted-finder-page #trustedFiltersPanel .select-shell {
  position: relative;
}

body.trusted-finder-page #trustedFiltersPanel .select-shell select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid var(--redesign-line, #e4e1d6);
  background: var(--redesign-surface, #fff);
  border-radius: 8px;
  padding: 9px 36px 9px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--redesign-ink-900, #0e1322);
}

body.trusted-finder-page #trustedFiltersPanel .select-shell .caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  max-width: 12px;
  max-height: 12px;
  color: var(--redesign-ink-500, #5a6076);
  pointer-events: none;
}

body.trusted-finder-page #trustedFiltersPanel .helper {
  margin-top: 6px;
  font-size: 11px;
  color: var(--redesign-ink-500, #5a6076);
}

body.trusted-finder-page .tf-welcome {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.25)),
    var(--redesign-bg, #f6f5f0);
  border: 1px dashed var(--redesign-line-strong, #c9c5b5);
  border-radius: 22px;
  padding: 26px 26px 22px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}

body.trusted-finder-page .tf-syntax {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--redesign-ink-500, #5a6076);
}

body.trusted-finder-page .tf-syntax code {
  font-size: 11.5px;
  background: var(--redesign-bg-alt, #eceae2);
  border: 1px solid var(--redesign-line, #e4e1d6);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--redesign-ink-700, #2b3142);
  margin-right: 8px;
}

body.trusted-finder-page .tf-syntax .desc {
  color: var(--redesign-ink-400, #7b8198);
}

body.trusted-finder-page .tf-welcome__examples.tf-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.trusted-finder-page .tf-example .term {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--redesign-ink-900, #0e1322);
  margin-bottom: 4px;
}

body.trusted-finder-page .tf-example .ops {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

body.trusted-finder-page .tf-example .op {
  font-size: 11px;
  font-weight: 600;
  color: var(--redesign-ink-700, #2b3142);
  background: var(--redesign-bg-alt, #eceae2);
  border-radius: 3px;
  padding: 0 4px;
}

body.trusted-finder-page .tf-example .why {
  display: block;
  font-size: 11px;
  color: var(--redesign-ink-400, #7b8198);
}

@media (max-width: 1100px) {
  body.trusted-finder-page .tf-filters__body {
    grid-template-columns: 1fr 1fr !important;
  }

  body.trusted-finder-page .tf-col:nth-child(2) {
    border-right: 0;
  }

  body.trusted-finder-page .tf-col:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--redesign-line, #e4e1d6);
    border-right: 0;
  }

  body.trusted-finder-page .tf-welcome {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  body.trusted-finder-page .tf-filters__body {
    grid-template-columns: 1fr !important;
  }

  body.trusted-finder-page .tf-col {
    border-right: 0;
    border-bottom: 1px solid var(--redesign-line, #e4e1d6);
  }

  body.trusted-finder-page .tf-col:last-child {
    border-bottom: 0;
  }

  body.trusted-finder-page .tf-welcome__examples.tf-examples {
    grid-template-columns: 1fr;
  }

  body.trusted-finder-page .tf-search__row {
    flex-wrap: wrap;
  }

  body.trusted-finder-page .tf-search__submit {
    width: 100%;
    justify-content: center;
  }

  body.trusted-finder-page .tf-search__signals-alt {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

body.trusted-finder-page .trusted-filter-col-price {
  position: relative;
}

body.trusted-finder-page #trustedFiltersPanel .tf-col .select-shell {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.trusted-finder-page #trustedFiltersPanel .tf-col .select-shell:focus-within {
  box-shadow: none !important;
}

body.trusted-finder-page .tf-search .trusted-v2-panel {
  margin-top: 12px;
}

body.trusted-finder-page .tf-search__link-btn:focus-visible {
  outline: 2px solid var(--redesign-navy-700, #1a2644);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Dormant stats row (re-enable when live metrics exist) */
body.trusted-finder-page .tf-header__stats {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 13px;
  color: #8b92ab;
}

body.trusted-finder-page .tf-header__stats b {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}
