/* ElitePhoneHub shell styles. Scoped with .ts- so they never fight the plugin CSS (site.css). */

:root {
  --ts-ink: #14161a;
  --ts-ink-soft: #545a63;
  --ts-ink-faint: #7c838c;
  --ts-line: #e5e5e1;
  --ts-bg: #fbfbfa;
  --ts-card: #fff;
  --ts-accent: #1a5cff;
  --ts-accent-ink: #fff;
  --ts-radius: 14px;
}

body {
  margin: 0;
  background: var(--ts-bg);
  color: var(--ts-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ts-skip { position: absolute; left: -9999px; }
.ts-skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 14px; border: 1px solid var(--ts-line); border-radius: 8px; z-index: 60; }

.ts-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* disclosure bar */
.ts-disclosure {
  background: #101318;
  color: #d8dbe0;
  font-size: 13.5px;
  padding: 9px 20px;
  text-align: center;
}
.ts-disclosure a { color: #9db6ff; text-decoration: underline; }

/* header */
.ts-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 251, 250, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ts-line);
}
.ts-header .ts-wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.ts-brand { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--ts-ink); text-decoration: none; white-space: nowrap; }
.ts-brand span { color: var(--ts-accent); }
.ts-brand-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 100%; }
.ts-brand-tag {
  font-size: 10.5px; font-weight: 500; letter-spacing: .005em; line-height: 1.2;
  color: var(--ts-ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ts-brand--footer { font-size: 17px; margin: 0 0 8px; }
.ts-nav { display: flex; gap: 20px; margin-left: auto; font-size: 14.5px; }
.ts-nav a { color: var(--ts-ink-soft); text-decoration: none; }
.ts-nav a:hover { color: var(--ts-ink); }
.ts-nav-toggle {
  display: none; margin-left: auto; align-items: center; justify-content: center;
  width: 40px; height: 38px; padding: 0; background: #fff; color: var(--ts-ink-soft);
  border: 1px solid var(--ts-line); border-radius: 10px; cursor: pointer;
}
.ts-nav-toggle:hover { color: var(--ts-ink); border-color: #c9ccd2; }
.ts-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* page body */
.ts-page { padding: 34px 0 64px; }
.ts-page h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.14; letter-spacing: -.025em; margin: 0 0 14px; max-width: 22ch; }
.ts-page h2 { font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -.02em; margin: 40px 0 12px; }
.ts-page h3 { font-size: 17px; margin: 24px 0 6px; }
.ts-page p, .ts-page li { color: var(--ts-ink-soft); }
.ts-page ul, .ts-page ol { padding-left: 20px; }
.ts-page table { border-collapse: collapse; width: 100%; }
.ts-kicker {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ts-ink-faint); font-weight: 600; margin: 0 0 12px;
}
.ts-lede { font-size: 17.5px; max-width: 66ch; margin: 0 0 22px; }
.ts-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.ts-note { font-size: 13.5px; color: var(--ts-ink-faint); border-top: 1px solid var(--ts-line); padding-top: 14px; margin-top: 34px; }
.ts-updated { font-size: 12.5px; color: var(--ts-ink-faint); margin: 0 0 14px; }

/* buttons */
.ts-btn {
  display: inline-block; background: var(--ts-accent); color: var(--ts-accent-ink);
  padding: 11px 16px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  text-decoration: none; border: 1px solid transparent;
}
.ts-btn:hover { filter: brightness(1.06); }
.ts-btn--ghost { background: #fff; color: var(--ts-ink-soft); border-color: var(--ts-line); font-weight: 500; }

/* model cards */
.ts-model-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 16px 0; }
.ts-model-card {
  background: var(--ts-card); border: 1px solid var(--ts-line);
  border-radius: var(--ts-radius); padding: 16px; display: flex; flex-direction: column; gap: 6px;
}
.ts-model-card h3 { margin: 0; font-size: 17px; }
.ts-model-card h3 a { color: var(--ts-ink); text-decoration: none; }
.ts-model-card h3 a:hover { color: var(--ts-accent); }
.ts-model-meta { margin: 0; font-size: 13.5px; color: var(--ts-ink-faint); }
.ts-model-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.ts-model-actions .ts-btn { padding: 9px 12px; font-size: 13.5px; }

/* offers */
.ts-offer-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 14px 0; }
.ts-offer {
  background: var(--ts-card); border: 1px solid var(--ts-line);
  border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px;
}
.ts-offer-title { margin: 0; font-size: 14px; line-height: 1.35; color: var(--ts-ink); }
.ts-offer-meta { margin: 0; font-size: 12.5px; color: var(--ts-ink-faint); }
.ts-offer-price { margin: 0; font-size: 20px; font-weight: 700; color: var(--ts-ink); }
.ts-offer .ts-btn { margin-top: auto; text-align: center; padding: 9px 12px; font-size: 13.5px; }
.ts-offer--cta { max-width: 360px; }
.ts-offer--cta .ts-btn { margin-top: 10px; }

/* specs */
.ts-specs { margin: 14px 0; font-size: 14.5px; }
.ts-specs th, .ts-specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ts-line); vertical-align: top; }
.ts-specs th { width: 34%; color: var(--ts-ink-faint); font-weight: 600; font-size: 13px; }

/* links + chips */
.ts-links { margin: 10px 0; }
.ts-links li { margin-bottom: 8px; }
.ts-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ts-chip {
  display: inline-block; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--ts-line); background: #fff; color: var(--ts-ink-soft); font-size: 13.5px;
}

/* footer */
.ts-footer { border-top: 1px solid var(--ts-line); background: #fff; padding: 40px 0 34px; font-size: 14px; }
.ts-footer-grid { display: grid; gap: 26px; grid-template-columns: 1.5fr 1fr 1fr; margin-bottom: 26px; }
.ts-footer h5 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ts-ink-faint); margin: 0 0 10px; }
.ts-footer ul { list-style: none; margin: 0; padding: 0; }
.ts-footer li { margin-bottom: 7px; }
.ts-footer a { color: var(--ts-ink-soft); text-decoration: none; }
.ts-footer a:hover { text-decoration: underline; }
.ts-footer-note { color: var(--ts-ink-soft); max-width: 34ch; margin: 0; }
.ts-legal { border-top: 1px solid var(--ts-line); padding-top: 16px; font-size: 12.8px; color: var(--ts-ink-faint); line-height: 1.6; }
.ts-legal p { margin: 0 0 8px; }

@media (max-width: 1180px) {
  .ts-nav { display: none; }
  .ts-nav-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .ts-footer-grid { grid-template-columns: 1fr; }
}

/* ---- content pages: neutralised plugin hero classes ---- */
.ts-hero { padding: 6px 0 0; border-bottom: 1px solid var(--ts-line); margin-bottom: 22px; }
.ts-hero h1 {
  font-size: clamp(27px, 4.2vw, 40px); line-height: 1.15; letter-spacing: -.025em;
  margin: 0 0 14px; max-width: 26ch;
}
.ts-hero .ts-lede { font-size: 17.5px; max-width: 66ch; margin: 0 0 20px; }
.ts-hero + section, .ts-hero + div { margin-top: 18px; }
.ts-details {
  border: 1px solid var(--ts-line); border-radius: 12px; background: var(--ts-card);
  padding: 14px 16px; margin: 14px 0;
}
.ts-details summary { cursor: pointer; font-weight: 600; color: var(--ts-ink); }
.ts-details[open] summary { margin-bottom: 10px; }
.ts-details p, .ts-details li { color: var(--ts-ink-soft); }
.ts-inline a { margin-right: 12px; }
.ts-anchor { display: block; scroll-margin-top: 90px; }

/* site.css centres/oversizes the plugin hero with !important; pin the shell look. */
:is(#main) .ts-hero,
:is(#main) .ts-hero h1,
:is(#main) .ts-hero .ts-lede,
:is(#main) .ts-hero .ts-kicker {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
:is(#main) .ts-hero h1 {
  font-size: clamp(27px, 4.2vw, 40px) !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em !important;
  max-width: 26ch !important;
  margin: 0 0 14px !important;
}
:is(#main) .ts-hero .ts-lede {
  font-size: 17.5px !important;
  max-width: 66ch !important;
  margin: 0 0 20px !important;
}
:is(#main) .ts-hero .ts-kicker { margin-bottom: 12px !important; }

/* inline link row inside content pages */
.ts-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.ts-inline a {
  display: inline-block; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--ts-line); background: #fff;
  color: var(--ts-ink-soft); font-size: 13.5px; text-decoration: none;
}
.ts-inline a:hover { border-color: #c9ccd2; color: var(--ts-ink); }

/* rich offer cards: photo, spec chips, price lines, expandable item details */
.ts-offer--rich { padding: 0; overflow: hidden; }
.ts-offer-media { display: block; background: #fff; aspect-ratio: 4 / 3; }
.ts-offer-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
.ts-offer-media-ph { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 13px; color: var(--ts-ink-faint); }
.ts-offer-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.ts-offer-model { margin: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.ts-offer-model a { color: var(--ts-accent); text-decoration: none; }
.ts-offer-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ts-offer-chips span { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: #f1f2f0; color: var(--ts-ink-soft); }
.ts-offer-title a { color: var(--ts-ink); text-decoration: none; }
.ts-offer-title a:hover { text-decoration: underline; }
.ts-offer-price small { font-size: 11.5px; font-weight: 500; color: var(--ts-ink-faint); }
.ts-offer-details { margin-top: 6px; border-top: 1px solid var(--ts-line); padding-top: 8px; }
.ts-offer-details summary { cursor: pointer; font-size: 12.5px; color: var(--ts-ink-soft); }
.ts-offer-details dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 12.5px; margin: 8px 0 0; }
.ts-offer-details dt { color: var(--ts-ink-faint); }
.ts-offer-details dd { margin: 0; color: var(--ts-ink-soft); }
.ts-offer-note { font-size: 11.5px; color: var(--ts-ink-faint); margin: 8px 0 0; }
.ts-model-media { margin: -16px -16px 10px; background: #fff; border-bottom: 1px solid var(--ts-line); height: 130px; }
.ts-model-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }

/* ---- homepage widget: one panel with iPhone, Galaxy and accessory cards ---- */
.ts-widget {
  border: 1px solid var(--ts-line);
  border-radius: 18px;
  background: #fff;
  padding: 22px 22px 18px;
  margin: 26px 0 0;
  box-shadow: 0 1px 2px rgba(16, 19, 24, .04);
}
.ts-widget-head { max-width: 68ch; margin: 0 0 18px; }
.ts-widget-head h2 { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 25px); letter-spacing: -.02em; }
.ts-widget-head p { margin: 0; font-size: 15px; color: var(--ts-ink-soft); }

.ts-pick-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1080px) { .ts-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .ts-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ts-pick-grid { grid-template-columns: minmax(0, 1fr); } }

.ts-pick {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ts-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.ts-pick-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--ts-line);
}
.ts-pick-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 10px; box-sizing: border-box;
}
.ts-pick-name {
  display: flex; align-items: center; justify-content: center; height: 100%;
  font-size: 13px; font-weight: 600; color: #9aa0a8;
}
.ts-pick-media--icon { display: flex; align-items: center; justify-content: center; background: #f6f7f5; }
.ts-pick-media--icon svg { width: 64px; height: 64px; color: #7c838c; stroke-width: 1.4; }
.ts-pick-kind {
  position: absolute; top: 10px; left: 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--ts-line);
  color: var(--ts-ink-soft);
}
.ts-pick[data-brand="iphone"] .ts-pick-kind { color: #1a5cff; border-color: #c9d8ff; }
.ts-pick[data-brand="galaxy"] .ts-pick-kind { color: #1f7a45; border-color: #bfe3cd; }
.ts-pick[data-brand="accessories"] .ts-pick-kind { color: var(--ts-ink-soft); }

.ts-pick-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ts-pick-body h3 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.ts-pick-body h3 a { color: var(--ts-ink); text-decoration: none; }
.ts-pick-body h3 a:hover { color: var(--ts-accent); }
.ts-pick-meta { margin: 0; font-size: 12.5px; color: var(--ts-ink-faint); }
.ts-pick-seller { margin: 0 0 6px; font-size: 11.5px; line-height: 1.35; color: var(--ts-ink-faint); }
.ts-seller-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--ts-ink-soft); text-decoration: none; }
.ts-seller-profile strong { font-weight: 600; text-decoration: underline; text-underline-offset: .12em; overflow-wrap: anywhere; }
.ts-seller-profile:hover strong { color: var(--ts-accent); }
.ts-seller-profile:focus-visible { outline: 2px solid var(--ts-accent); outline-offset: 2px; border-radius: 4px; }
.ts-seller-score { font-weight: 700; color: #166534; }
.ts-seller-badge { border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534; border-radius: 999px; padding: 1px 6px; font-size: 10px; font-weight: 700; }
.ts-pick-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ts-ink-soft); flex: 1 1 auto; }
.ts-pick-facts li { position: relative; padding-left: 12px; line-height: 1.4; }
.ts-pick-facts li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 4px; height: 4px; border-radius: 50%; background: #c9ccd2;
}
.ts-pick-price { margin: 2px 0 0; font-size: 19px; font-weight: 700; color: var(--ts-ink); }
.ts-pick-price small { font-size: 11.5px; font-weight: 500; color: var(--ts-ink-faint); }
.ts-pick-price--none { font-size: 13.5px; font-weight: 600; color: var(--ts-ink-soft); }
.ts-pick-actions { display: flex; gap: 8px; margin-top: 0; padding-top: 6px; }
.ts-pick-actions .ts-btn { flex: 1 1 auto; text-align: center; padding: 9px 10px; font-size: 13px; }
.ts-pick-actions .ts-btn--ghost { flex: 0 0 auto; }

.ts-widget-foot {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--ts-line);
}
.ts-widget-foot .ts-btn { padding: 9px 14px; font-size: 13.5px; }

/* widget tools: category filter + price sort */
.ts-widget-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.ts-pick-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-pick-tabs button {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--ts-line);
  background: #fff; color: var(--ts-ink-soft);
}
.ts-pick-tabs button span { font-size: 11.5px; color: var(--ts-ink-faint); }
.ts-pick-tabs button:hover { border-color: #c9ccd2; color: var(--ts-ink); }
.ts-pick-tabs button.is-active { background: var(--ts-ink); border-color: var(--ts-ink); color: #fff; }
.ts-pick-tabs button.is-active span { color: rgba(255, 255, 255, .72); }
.ts-pick-sort { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ts-ink-faint); }
.ts-pick-sort select {
  font: inherit; font-size: 13px; color: var(--ts-ink);
  background: #fff; border: 1px solid var(--ts-line); border-radius: 9px; padding: 7px 9px;
}
.ts-pick-series { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.ts-pick-series:empty, .ts-pick-series[hidden] { display: none; }
.ts-series-chip {
  cursor: pointer; font-family: inherit; font-size: 12.5px;
  padding: 6px 11px; border-radius: 8px;
  border: 1px solid var(--ts-line); background: #f7f7f5; color: var(--ts-ink-soft);
}
.ts-series-chip:hover { background: #fff; color: var(--ts-ink); }
.ts-series-chip.is-active { background: #eef2ff; border-color: #c9d8ff; color: var(--ts-accent); }
.ts-pick[hidden] { display: none; }
.ts-pick-empty { margin: 18px 0; font-size: 14px; color: var(--ts-ink-faint); }
.ts-widget-foot [data-ts-more] { order: -1; border-color: var(--ts-accent); color: var(--ts-accent); }
@media (max-width: 640px) {
  .ts-pick-sort { margin-left: 0; }
}

/* model info block used by the [elitephonehub_info] shortcode */
.ts-info {
  border: 1px solid var(--ts-line); border-radius: 14px; background: #fff;
  padding: 18px 20px; margin: 18px 0; max-width: 560px;
}
.ts-info h3 { margin: 0 0 10px; font-size: 18px; }
.ts-info-list { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 14px; }
.ts-info-list dt { color: var(--ts-ink-faint); }
.ts-info-list dd { margin: 0; color: var(--ts-ink-soft); }

/* ---- header: dropdown menus + eBay search ---- */
.ts-header .ts-wrap { gap: 14px; }
.ts-search { display: flex; align-items: center; gap: 6px; flex: 1 1 200px; max-width: 300px; }
.ts-search input[type="search"] {
  width: 100%; font: inherit; font-size: 13.5px; padding: 8px 10px;
  border: 1px solid var(--ts-line); border-radius: 9px; background: #fff; color: var(--ts-ink);
}
.ts-search button {
  font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px;
  border: 1px solid var(--ts-line); border-radius: 9px; background: #fff;
  color: var(--ts-ink); cursor: pointer; white-space: nowrap;
}
.ts-search button:hover { border-color: #c9ccd2; }
.ts-search--suggest { position: relative; }
.ts-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 120;
  background: #fff; border: 1px solid var(--ts-line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(16, 19, 24, .16); padding: 5px;
  max-height: min(60vh, 380px); overflow: auto;
}
.ts-suggest[hidden] { display: none !important; }
.ts-suggest-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border-radius: 8px; color: var(--ts-ink);
  font-size: 13.5px; text-decoration: none; line-height: 1.3;
}
.ts-suggest-item small {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ts-ink-faint);
}
.ts-suggest-item:hover, .ts-suggest-item.is-active { background: #eef3ff; }
.ts-suggest-ebay {
  display: block; width: 100%; text-align: left; cursor: pointer;
  margin-top: 2px; padding: 9px 10px; border: 0; border-top: 1px solid var(--ts-line);
  border-radius: 0 0 8px 8px; background: transparent; color: var(--ts-accent);
  font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.35;
}
.ts-suggest-ebay:hover, .ts-suggest-ebay.is-active { background: #eef3ff; }
.ts-mmenu .ts-suggest {
  position: static; max-height: none; margin: 6px 0 2px;
  box-shadow: none; background: #fbfbfa;
}
.ts-mmenu .ts-suggest-item { padding: 10px; font-size: 14px; }
.ts-nav { gap: 16px; align-items: center; }
.ts-menu { position: relative; }
.ts-menu > summary {
  list-style: none; cursor: pointer; font-size: 14.5px; color: var(--ts-ink-soft);
  padding: 8px 0; display: inline-flex; align-items: center; gap: 4px;
}
.ts-menu > summary::-webkit-details-marker { display: none; }
.ts-menu > summary::after { content: "▾"; font-size: 10px; color: var(--ts-ink-faint); }
.ts-menu[open] > summary, .ts-menu > summary:hover { color: var(--ts-ink); }
.ts-menu-panel {
  position: absolute; top: 100%; left: -12px; z-index: 60; min-width: 240px;
  max-height: 70vh; overflow: auto; background: #fff;
  border: 1px solid var(--ts-line); border-radius: 12px; padding: 8px;
  box-shadow: 0 12px 32px rgba(16, 19, 24, .12);
}
.ts-menu-panel a {
  display: block; padding: 7px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--ts-ink-soft); text-decoration: none;
}
.ts-menu-panel a:hover { background: #f6f7f5; color: var(--ts-ink); }
.ts-menu-all {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-weight: 600 !important; color: var(--ts-ink) !important;
  border-bottom: 1px solid var(--ts-line); border-radius: 0 !important;
  margin: 0 0 4px; padding: 8px 10px 10px !important;
}
.ts-menu-all:hover { background: #f6f7f5; }
.ts-menu-count {
  margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--ts-ink-faint);
  background: #f1f2ef; border-radius: 999px; padding: 1px 7px;
}
.ts-menu-group > summary { gap: 6px; }
.ts-menu-heading {
  margin: 8px 10px 4px; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ts-ink-faint); font-weight: 700;
}

/* ---- widget filters ---- */
.ts-filters { margin: 0 0 16px; }
.ts-filter-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; }
.ts-filter {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ts-ink-faint); font-weight: 700;
}
.ts-filter select, .ts-filter input {
  width: 100%; font: inherit; font-size: 13.5px; text-transform: none;
  letter-spacing: 0; font-weight: 400; color: var(--ts-ink);
  background: #fff; border: 1px solid var(--ts-line); border-radius: 9px; padding: 8px 9px;
}
.ts-filter[hidden] { display: none; }
.ts-filter-reset {
  font: inherit; font-size: 12.5px; padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--ts-line); background: #f7f7f5; color: var(--ts-ink-soft); cursor: pointer;
}
.ts-filter-reset:hover { background: #fff; color: var(--ts-ink); }
.ts-filter-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ts-filter-search input[type="search"] {
  flex: 1 1 240px; min-width: 0; font: inherit; font-size: 13.5px;
  padding: 9px 11px; border: 1px solid var(--ts-line); border-radius: 9px; background: #fff;
}
.ts-filter-search .ts-btn { padding: 9px 12px; font-size: 13px; }
.ts-filter-count { margin-left: auto; font-size: 12.5px; color: var(--ts-ink-faint); }
/* Which eBay shop the offers come from, and in which currency. */
.ts-market-note { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--ts-ink-faint); }
.ts-market-note:empty { display: none; }
@media (max-width: 900px) { .ts-filter-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ts-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ts-filter-count { margin-left: 0; } }
@media (max-width: 400px) { .ts-filter-row { grid-template-columns: minmax(0, 1fr); } }

/* ---- quick guide inside item cards ---- */
.ts-pick-title { font-size: 14.5px !important; line-height: 1.35; }
.ts-pick-title a {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ts-pick-guide { border-top: 1px solid var(--ts-line); padding-top: 8px; margin-top: 2px; }
.ts-pick-guide summary {
  list-style: none; cursor: pointer; font-size: 12.5px; color: var(--ts-ink-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.ts-pick-guide summary::-webkit-details-marker { display: none; }
.ts-pick-guide summary::after { content: "+"; color: var(--ts-ink-faint); }
.ts-pick-guide[open] summary::after { content: "–"; }
.ts-pick-guide dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 12px; margin: 8px 0; }
.ts-pick-guide dt { color: var(--ts-ink-faint); }
.ts-pick-guide dd { margin: 0; color: var(--ts-ink-soft); }
.ts-pick-guide-note { font-size: 11px; color: var(--ts-ink-faint); margin: 6px 0; }
.ts-pick-guide-links { margin: 0; font-size: 12px; }
.ts-pick-guide-links a { color: var(--ts-accent); }

/* ---- max four columns for every card grid on the site ---- */
.ts-model-grid, .ts-offer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .ts-model-grid, .ts-offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .ts-model-grid, .ts-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ts-model-grid, .ts-offer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- mobile header ---- */
@media (max-width: 1180px) {
  .ts-search--header { display: none; }
}

/* ---- full-screen mobile menu (rendered outside the sticky header) ---- */
.ts-mmenu {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background: var(--ts-bg); color: var(--ts-ink);
  animation: ts-mmenu-in .18s ease-out;
}
.ts-mmenu[hidden] { display: none !important; }
@keyframes ts-mmenu-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .ts-mmenu { animation: none; } }
body.ts-mmenu-open { overflow: hidden; }

.ts-mmenu-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 62px; padding: 0 16px 0 18px; background: #fff;
  border-bottom: 1px solid var(--ts-line);
}
.ts-mmenu-head .ts-brand { font-size: 19px; }
.ts-mmenu-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; cursor: pointer;
  background: #fff; color: var(--ts-ink-soft);
  border: 1px solid var(--ts-line); border-radius: 10px;
}
.ts-mmenu-close:hover { color: var(--ts-ink); border-color: #c9ccd2; }
.ts-mmenu-close:focus-visible,
.ts-mmenu :is(a, summary, button, input):focus-visible {
  outline: 2px solid var(--ts-accent); outline-offset: 2px;
}

.ts-mmenu-scroll {
  flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; padding: 16px 18px 30px;
}
@media (min-width: 760px) {
  .ts-mmenu-head { padding-left: max(18px, calc((100vw - 720px) / 2)); padding-right: max(18px, calc((100vw - 720px) / 2)); }
  .ts-mmenu-scroll { width: 100%; max-width: 720px; margin: 0 auto; }
}
.ts-mmenu .ts-search { display: flex; max-width: none; margin: 0 0 16px; }
.ts-mmenu .ts-search input[type="search"] { font-size: 16px; padding: 11px 12px; }
.ts-mmenu .ts-search button { padding: 11px 14px; }

.ts-mquick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ts-mquick a {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 58px;
  padding: 10px 12px; background: #fff; border: 1px solid var(--ts-line);
  border-radius: 12px; color: var(--ts-ink); text-decoration: none;
  font-size: 13.5px; font-weight: 600; line-height: 1.25;
}
.ts-mquick a:hover { border-color: #c9ccd2; }
.ts-mquick-icon {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: #eef2ff; color: var(--ts-accent); font-size: 15px;
}
.ts-mquick span + span { min-width: 0; }
.ts-mquick [data-ts-saved-count],
.ts-mquick [data-ts-compare-count] { color: var(--ts-ink-faint); font-weight: 500; }

.ts-msec { margin: 22px 0 0; }
.ts-msec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 0 2px 8px;
}
.ts-msec-head h2 {
  margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ts-ink-faint);
}
.ts-msec-head a { font-size: 12.5px; color: var(--ts-accent); text-decoration: none; }
.ts-msec-body {
  background: #fff; border: 1px solid var(--ts-line); border-radius: 14px;
  overflow: hidden;
}
.ts-msec-body > :first-child { border-top: 0; }

.ts-mlink {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 46px; padding: 10px 14px; border-top: 1px solid var(--ts-line);
  color: var(--ts-ink-soft); text-decoration: none; font-size: 14.5px; line-height: 1.3;
}
.ts-mlink:hover { background: #f7f8f6; color: var(--ts-ink); }
.ts-mlink--all {
  font-weight: 600; color: var(--ts-accent); background: #f6f9ff;
}
.ts-mlink--all:hover { background: #eef3ff; color: var(--ts-accent); }

.ts-mgroup { border-top: 1px solid var(--ts-line); }
.ts-mgroup:first-child { border-top: 0; }
.ts-mgroup > summary {
  display: flex; align-items: center; gap: 8px; min-height: 50px;
  padding: 10px 14px; cursor: pointer; list-style: none;
  font-size: 14.5px; font-weight: 600; color: var(--ts-ink);
}
.ts-mgroup > summary::-webkit-details-marker { display: none; }
.ts-mgroup > summary::marker { content: ""; }
.ts-mgroup > summary:hover { background: #f7f8f6; }
.ts-mgroup > summary::after {
  content: "+"; margin-left: 2px; color: var(--ts-ink-faint);
  font-size: 17px; font-weight: 400; line-height: 1;
}
.ts-mgroup[open] > summary::after { content: "–"; }
.ts-mcount {
  margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ts-ink-faint);
  background: #f1f2ef; border-radius: 999px; padding: 2px 7px;
}
.ts-mgroup-body { display: grid; background: #fafbf9; border-top: 1px solid var(--ts-line); }
.ts-mgroup-body .ts-mlink { padding-left: 24px; font-size: 14px; background: transparent; }
.ts-mgroup-body .ts-mlink--all { padding-left: 14px; }

.ts-mmenu-foot {
  flex: none; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--ts-line);
  font-size: 11.5px; line-height: 1.45; color: var(--ts-ink-faint);
}
.ts-mmenu-foot p { margin: 0 0 3px; }
.ts-mmenu-foot p:last-child { margin: 0; }

/* The plugin stylesheet centres sections, cards and paragraphs with !important.
   The whole site is left-aligned, so these unlayered overrides win on every page type. */
#main,
#main .ts-page,
#main .ts-page :is(h1, h2, h3, h4, h5, h6, p, li, ul, ol, dl, dt, dd, td, th, label, summary, figcaption, blockquote, span, a, strong, em) {
  text-align: left !important;
}
#main .ts-page :is(.ts-actions, .ts-pick-actions, .ts-widget-tools, .ts-pick-tabs, .ts-filter-row, .ts-filter-search, .ts-widget-foot, .ts-inline, .ts-chips) {
  justify-content: flex-start !important;
}
#main .ts-page :is(h1, h2, h3, h4) {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#main .ts-page :is(p, ul, ol, dl, table) {
  margin-left: 0 !important;
}
.ts-page .ts-updated { text-align: left !important; }
.ts-pick-actions { justify-content: flex-start !important; }

/* Stronger, unlayered overrides: the plugin pins headings/paragraphs to fit-content
   with auto side margins, which centres card text inside content pages. */
#main#main,
#main#main .ts-page :is(h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, td, th, blockquote, summary, label, figcaption) {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline: 0 !important;
}
#main#main .ts-page :is(h1, h2, h3, h4, p, ul, ol, dl, dt, dd) {
  width: auto !important;
  max-width: 100% !important;
}
#main#main .ts-page p { max-width: 72ch; }
.ts-pick p, .ts-pick li { max-width: none !important; }
/* widget headings stay moderate inside long content pages */
#main#main .ts-widget .ts-widget-head h2,
#main#main .ts-widget .ts-widget-head h3 {
  font-size: clamp(20px, 2.3vw, 26px) !important;
  line-height: 1.2 !important;
  margin: 0 0 6px !important;
}

/* --- Uniform content-page language (guides, comparison, legal) --------------- */
.ts-page > section { margin-top: 36px; }
.ts-page .ts-details {
  background: #fff;
  border: 1px solid var(--ts-line);
  border-radius: 12px;
  padding: 15px 17px;
  margin: 12px 0;
  max-width: none !important;
}
.ts-page .ts-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 15.5px;
  list-style: none;
}
.ts-page .ts-details summary::-webkit-details-marker { display: none; }
.ts-page .ts-details summary::after {
  content: "+";
  font-size: 21px;
  line-height: 1;
  color: var(--ts-ink-faint);
  flex: none;
}
.ts-page .ts-details[open] summary::after { content: "\2013"; }
.ts-page .ts-details[open] summary { margin-bottom: 8px; }
.ts-page .ts-details p:last-child, .ts-page .ts-details ul:last-child { margin-bottom: 0; }
.ts-chips { list-style: none; padding: 0; margin: 14px 0; }
.ts-chips li { margin: 0; }
.ts-chip { text-decoration: none; }
.ts-chip:hover { border-color: var(--ts-accent); color: var(--ts-accent); }
.ts-pick-name { color: var(--ts-ink-faint); text-decoration: none; }
.ts-page .ts-actions .ts-btn { text-decoration: none; }

/* live offers: keep the grid usable while the API answers */
.ts-pick-grid.is-loading { opacity: .45; }
.ts-pick-grid[aria-busy="true"] { cursor: progress; }

/* --- nested header menus (series -> models) -------------------------------- */
.ts-menu-group { margin: 1px 0; }
.ts-menu-group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 10px; border-radius: 8px; cursor: pointer; list-style: none;
  font-size: 13.5px; color: var(--ts-ink);
}
.ts-menu-group > summary::-webkit-details-marker { display: none; }
.ts-menu-group > summary::after { content: "+"; color: var(--ts-ink-faint); font-size: 15px; line-height: 1; }
.ts-menu-group[open] > summary::after { content: "\2013"; }
.ts-menu-group > summary:hover { background: #f6f7f5; }
.ts-menu-group > summary a { padding: 0; font-weight: 600; color: var(--ts-ink); }
.ts-menu-group > summary a:hover { background: none; }
.ts-menu-sub {
  display: grid; gap: 1px; margin: 2px 0 8px 12px; padding: 2px 0 2px 10px;
  border-left: 2px solid var(--ts-line);
}
.ts-menu-sub a { font-size: 13px; padding: 6px 8px; }

/* --- filters toggle + mobile layout --------------------------------------- */
/* Sticky filter bar. Collapsed by default on every screen: one row with the offer
   count, the filters that are on (as removable chips), the sort and the Filters button.
   On phones the panel opens as a bottom sheet, which is where a thumb already is. */
.ts-filterbar {
  position: sticky; top: 63px; z-index: 20; margin: 0 0 12px;
  background: rgba(251, 251, 250, .96);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--ts-line);
}
.ts-filterbar-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; min-height: 48px; }
.ts-filterbar-count { font-size: 12.5px; color: var(--ts-ink-soft); white-space: nowrap; }
.ts-filterbar-chips { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ts-filterbar-chips::-webkit-scrollbar { display: none; }
.ts-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px;
  border: 1px solid var(--ts-line); border-radius: 999px; background: #fff;
  font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ts-ink);
}
.ts-chip button {
  display: grid; place-items: center; width: 18px; height: 18px; padding: 0;
  border: 0; border-radius: 50%; background: #f1f2ef; color: var(--ts-ink-soft);
  font-size: 14px; line-height: 1; cursor: pointer;
}
.ts-chip button:hover { background: #e6e8e3; color: var(--ts-ink); }
.ts-filterbar-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ts-ink-faint); white-space: nowrap; }
.ts-filterbar-sort select {
  padding: 7px 9px; border: 1px solid var(--ts-line); border-radius: 9px;
  background: #fff; color: var(--ts-ink); font: inherit; font-size: 12.5px;
}
.ts-filterbar-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  padding: 8px 12px; border: 1px solid var(--ts-line); border-radius: 999px;
  background: #fff; color: var(--ts-ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.ts-filterbar-toggle:hover { border-color: #b6c2b0; }
.ts-filterbar-toggle[aria-expanded="true"] { background: var(--ts-ink); border-color: var(--ts-ink); color: #fff; }
.ts-filterbar-badge {
  display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px;
  border-radius: 999px; background: var(--ts-accent); color: #fff; font-size: 11px; line-height: 1;
}
.ts-filterbar-toggle[aria-expanded="true"] .ts-filterbar-badge { background: #fff; color: var(--ts-ink); }
.ts-filters { display: none; margin: 0 0 16px; }
.ts-filters.is-open { display: block; }

/* Desktop/tablet: the panel is a dropdown under the sticky bar. Without this it
   opens at its normal flow position, which is above the viewport once the page is
   scrolled, so the Filters button looked active but nothing appeared. */
@media (min-width: 721px) {
  .ts-filters.is-open {
    position: sticky; top: calc(63px + var(--ts-filterbar-h, 65px)); z-index: 19;
    max-height: calc(100vh - 63px - var(--ts-filterbar-h, 65px) - 12px);
    overflow-y: auto; overscroll-behavior: contain;
    margin: 0 0 16px; padding: 12px 14px;
    background: #fff; border: 1px solid var(--ts-line); border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
  }
}

@media (max-width: 780px) {
  .ts-wrap { padding-left: 16px; padding-right: 16px; }
  .ts-page h1 { font-size: clamp(26px, 7vw, 32px); }
  .ts-lede { font-size: 16px; }
  .ts-actions { gap: 8px; }
  .ts-actions .ts-btn { flex: 1 1 45%; text-align: center; }
  .ts-widget { padding: 14px; border-radius: 14px; }
  .ts-widget-head h2 { font-size: 21px; }
  .ts-widget-head { margin-bottom: 10px; }
  .ts-pick-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .ts-pick-tabs button { flex: none; }

  .ts-filters-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 4px 0 8px; padding: 10px 14px; width: 100%;
    border: 1px solid var(--ts-line); border-radius: 10px; background: #fff;
    font: inherit; font-size: 14px; font-weight: 600; color: var(--ts-ink);
  }
  .ts-filters-toggle::after { content: "\25BE"; margin-left: auto; color: var(--ts-ink-faint); }
  .ts-filters { display: none; }
  .ts-filters.is-open { display: block; }

  .ts-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .ts-filter-search { flex-wrap: wrap; gap: 8px; }
  .ts-filter-search input[type="search"] { flex: 1 1 100%; }
  .ts-filter-reset, .ts-filter-search .ts-btn { flex: 1 1 45%; text-align: center; }

  .ts-pick-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .ts-pick-media { height: 190px; }
  .ts-pick { border-radius: 12px; }
  .ts-pick-title, .ts-pick-body h3 { font-size: 16px; }
  .ts-pick-actions { flex-wrap: wrap; }
  .ts-widget-foot { flex-wrap: wrap; }
  .ts-widget-foot .ts-btn { flex: 1 1 45%; text-align: center; }
}

@media (max-width: 520px) {
  .ts-filter-row { grid-template-columns: 1fr !important; }
  .ts-actions .ts-btn, .ts-widget-foot .ts-btn { flex: 1 1 100%; }
}

/* --- help me choose ------------------------------------------------------- */
.ts-finder { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 18px 0 8px; }
.ts-finder fieldset {
  border: 1px solid var(--ts-line); border-radius: 12px; padding: 14px 16px; margin: 0;
  display: flex; flex-direction: column; gap: 8px; background: #fff;
}
.ts-finder legend { font-weight: 600; font-size: 14px; padding: 0 4px; }
.ts-finder label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ts-ink-soft); }
.ts-finder input { accent-color: var(--ts-accent); }
.ts-finder-result { margin-top: 26px; }
.ts-finder-hint { color: var(--ts-ink-faint); font-size: 14px; }
.ts-finder-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 12px; }
.ts-finder-card {
  border: 1px solid var(--ts-line); border-radius: 12px; padding: 14px 16px; background: #fff;
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ts-ink);
}
.ts-finder-card strong { font-size: 16px; }
.ts-finder-card span { font-size: 13px; color: var(--ts-ink-faint); }
.ts-finder-price { font-size: 15px !important; font-weight: 700; color: var(--ts-ink) !important; }
.ts-finder-price small { font-size: 11px; font-weight: 500; color: var(--ts-ink-faint); }
.ts-finder-why { color: var(--ts-accent) !important; font-size: 12px !important; line-height: 1.35; }
.ts-finder-why:empty { display: none; }
.ts-finder-card.is-over { border-color: #f3c6c1; }
.ts-finder-card.is-over .ts-finder-price { color: #b42318 !important; }
.ts-finder-summary { margin: 0 0 8px; font-size: 13.5px; color: var(--ts-ink-soft); }
.ts-finder-summary:empty { display: none; }
.ts-finder-reset { margin: 16px 0 0; }
.ts-finder-reset .ts-btn { padding: 8px 12px; font-size: 12.5px; }
.ts-finder-card:hover { border-color: var(--ts-accent); }

/* model page: price check + 30-day history */
.ts-insight {
  margin: 26px 0 8px; padding: 18px; border: 1px solid var(--ts-line);
  border-radius: 16px; background: #fbfbf9;
}
.ts-insight-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 18px; margin: 0 0 14px; }
.ts-insight-head .ts-kicker { margin: 0 0 4px; }
.ts-insight-head h2 { margin: 0; font-size: 22px; }
.ts-insight-stamp { margin: 0; font-size: 11.5px; color: var(--ts-ink-faint); }
.ts-insight-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ts-insight-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 13px; background: #fff; border: 1px solid var(--ts-line); border-radius: 12px; }
.ts-insight-card > span { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ts-ink-faint); }
.ts-insight-card strong { font-size: 22px; letter-spacing: -.02em; color: var(--ts-ink); }
.ts-insight-card small { font-size: 11.5px; line-height: 1.4; color: var(--ts-ink-faint); }
.ts-insight-card a { margin-top: auto; padding-top: 4px; font-size: 12px; font-weight: 600; color: var(--ts-accent); }
.ts-insight-delta.is-good { color: #166534; font-weight: 700; }
.ts-insight-delta.is-high { color: #b42318; font-weight: 700; }
.ts-spark { margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--ts-line); border-radius: 12px; background: #fff; color: var(--ts-accent); }
.ts-spark-head, .ts-spark-scale { display: flex; justify-content: space-between; gap: 10px; color: var(--ts-ink-faint); font-size: 10.5px; }
.ts-spark-head { margin-bottom: 4px; }
.ts-spark-scale { margin-top: 2px; }
.ts-spark svg { display: block; width: 100%; height: auto; max-height: 90px; }
.ts-insight-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ts-ink-faint); }
@media (max-width: 780px) { .ts-insight-grid { grid-template-columns: minmax(0, 1fr); } .ts-insight { padding: 15px; } }

/* mobile deal dock: only model pages, only while the offer grid is on screen */
.ts-deal-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--ts-line);
  box-shadow: 0 -6px 18px rgba(16, 19, 24, .12);
}
.ts-deal-dock[hidden] { display: none !important; }
@media (max-width: 760px) {
  .ts-deal-dock:not([hidden]) { display: flex; }
}
.ts-deal-dock-info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.2; }
.ts-deal-dock-info > span { font-size: 10.5px; color: var(--ts-ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-deal-dock-info strong { font-size: 17px; color: var(--ts-ink); }
.ts-deal-dock-info small { font-size: 10px; color: var(--ts-ink-faint); }
.ts-deal-dock .ts-btn { flex: none; padding: 9px 11px; font-size: 12.5px; }
.ts-deal-dock-close {
  flex: none; width: 30px; height: 30px; padding: 0; cursor: pointer;
  border: 1px solid var(--ts-line); border-radius: 50%; background: #fff;
  color: var(--ts-ink-faint); font: inherit; font-size: 17px; line-height: 1;
}
body.ts-dock-open { scroll-padding-bottom: 76px; }

.ts-finder-card[hidden] { display: none; }
.ts-finder-card.is-match { border-color: var(--ts-accent); box-shadow: 0 0 0 1px var(--ts-accent) inset; }

/* --- model directory on the guides page ---------------------------------- */
.ts-directory { margin-top: 40px; }
.ts-dir-group { border-top: 1px solid var(--ts-line); padding: 14px 0; }
.ts-dir-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.ts-dir-head a { font-weight: 700; color: var(--ts-ink); text-decoration: none; }
.ts-dir-head span { font-size: 12px; color: var(--ts-ink-faint); }
.ts-dir-links { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ts-dir-links a { font-size: 13.5px; text-decoration: none; color: var(--ts-ink-soft); padding: 6px 8px; border-radius: 8px; }
.ts-dir-links a:hover { background: #f6f7f5; color: var(--ts-ink); }
.ts-dir-links small { display: block; color: var(--ts-ink-faint); font-size: 11.5px; }

/* kill the native <details> triangle inside dropdowns and give the panel room */
.ts-menu-panel { min-width: 290px; }
.ts-menu-group > summary { display: flex !important; list-style: none !important; }
.ts-menu-group > summary::marker { content: ""; }
.ts-menu-group > summary::-webkit-details-marker { display: none !important; }
.ts-menu > summary { display: flex !important; align-items: center; gap: 4px; list-style: none !important; }
.ts-menu > summary::marker { content: ""; }

/* --- item cards: consistent height, clear hierarchy ---------------------- */
.ts-pick { height: 100%; }
.ts-pick-body { display: flex; flex-direction: column; height: 100%; }
.ts-pick-title, .ts-pick-body > h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts-pick-meta { margin: 0 0 8px; color: var(--ts-ink-faint); font-size: 13px; }
.ts-pick-facts { display: grid; gap: 3px; margin: 0 0 10px; padding: 0; list-style: none; }
.ts-pick-facts li { display: flex; gap: 6px; font-size: 12.5px; color: var(--ts-ink-soft); }
.ts-pick-facts li::before { content: "·"; color: var(--ts-ink-faint); }
.ts-pick-price { margin: auto 0 0; padding-top: 8px; font-size: 21px; }
.ts-pick-price small { font-size: 11.5px; color: var(--ts-ink-faint); font-weight: 500; }
.ts-pick-actions { margin-top: 8px; }
.ts-pick-actions .ts-btn { flex: 1 1 auto; text-align: center; }
.ts-pick-guide { margin-top: 10px; border-top: 1px solid var(--ts-line); padding-top: 8px; }

/* grid items must fill their track (plugin CSS was shrinking them) */
.ts-model-grid, .ts-finder-grid { justify-items: stretch; }
.ts-model-grid > .ts-model-card, .ts-finder-grid > .ts-finder-card {
  width: auto !important; max-width: none !important; min-width: 0;
}

/* facts: one clean marker-less list, subtle rows (no double bullets) */
.ts-pick-facts { list-style: none !important; margin: 0 0 12px; padding: 0 !important; display: grid; gap: 0; }
.ts-pick-facts li {
  display: block; padding: 5px 0; font-size: 12.5px; line-height: 1.35;
  color: var(--ts-ink-soft); border-top: 1px solid #eef0ec;
  list-style: none !important;
}
.ts-pick-facts li:first-child { border-top: 0; padding-top: 0; }
.ts-pick-facts li::before, .ts-pick-facts li::marker { content: none !important; display: none !important; }
.ts-pick-facts li b { font-weight: 600; color: var(--ts-ink); }

/* hard guarantee: cards fill their grid cell */
#main .ts-model-grid > .ts-model-card,
#main .ts-finder-grid > .ts-finder-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box;
  flex: 1 1 auto;
}


/* legal contents list */
.eph-legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; padding: 14px 0; border-top: 1px solid #e6e8e4; border-bottom: 1px solid #e6e8e4; }
.eph-legal-nav a { display: inline-block; padding: 6px 12px; border: 1px solid #e6e8e4; border-radius: 999px; font-size: 13px; line-height: 1.3; color: #4a5568; text-decoration: none !important; background: #fff; }
.eph-legal-nav a:hover { border-color: #0b57d0; color: #0b57d0; }

/* quick guide inside offer cards */
.ts-pick-guide { margin-top: 10px; border-top: 1px dashed #e6e8e4; padding-top: 8px; }
.ts-pick-guide > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: #0b57d0; list-style: none; display: flex; align-items: center; gap: 6px; }
.ts-pick-guide > summary::-webkit-details-marker { display: none; }
.ts-pick-guide > summary::after { content: "+"; margin-left: auto; }
.ts-pick-guide[open] > summary::after { content: "-"; }
.ts-guide-rows { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 10px 0 2px; font-size: 12px; }
.ts-guide-rows dt { color: #64748b; }
.ts-guide-rows dd { margin: 0; text-align: right; color: #0f172a; }

/* cookie consent */
.ts-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid #e6e8e4; box-shadow: 0 -6px 24px rgba(15,23,42,.08); }
.ts-consent[hidden] { display: none !important; }
.ts-consent-inner { max-width: 1080px; margin: 0 auto; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ts-consent p { margin: 0; flex: 1 1 320px; font-size: 13px; color: #4a5568; }
.ts-consent-actions { display: flex; gap: 8px; }
.ts-consent .ts-btn { padding: 8px 14px; font-size: 13px; }
.ts-copyright { font-size: 12.5px; color: #64748b; border-top: 1px solid #e6e8e4; margin-top: 14px; padding-top: 12px; }
@media (max-width: 520px) { .ts-consent-inner { padding: 12px 14px; } .ts-consent-actions { width: 100%; } .ts-consent-actions .ts-btn { flex: 1 1 0; } }

/* affiliate note now sits above the widget, not in the header */
.ts-disclosure-inline {
  margin: 0 0 12px; padding: 8px 11px;
  font-size: 12px; line-height: 1.45; color: #64748b;
  background: #f6f7f4; border: 1px solid #e6e8e4; border-radius: 8px;
}
.ts-disclosure-inline a { color: #0b57d0; }

/* mobile header search: magnifier opens the eBay form */
.ts-search-toggle { display: none; }
@media (max-width: 1180px) {
  .ts-search-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0; margin-left: auto;
    background: #fff; color: var(--ts-ink-soft, #4a5568);
    border: 1px solid var(--ts-line, #e6e8e4); border-radius: 10px; cursor: pointer;
  }
  .ts-search-toggle[aria-expanded="true"] { color: var(--ts-accent, #0b57d0); border-color: var(--ts-accent, #0b57d0); }
  .ts-header .ts-wrap { position: relative; }
  .ts-search--header {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    padding: 10px 16px 12px; background: #fff;
    border-bottom: 1px solid var(--ts-line, #e6e8e4);
    box-shadow: 0 10px 20px rgba(15, 23, 42, .08); z-index: 40;
  }
  .ts-search--header input[type="search"] { flex: 1 1 auto; min-width: 0; }
  .ts-header.is-search-open .ts-search--header { display: flex; }
}




/* ---- saved / compare / galleries / live accessories ---- */
.ts-save, .ts-cmp { font-size: 12.5px; padding: 7px 10px; }
.ts-save[aria-pressed="true"] { color: #b42318; border-color: #f3c6c1; background: #fff5f4; }
.ts-cmp[aria-pressed="true"] { color: #0b57d0; border-color: #bcd0f5; background: #f2f7ff; }
.ts-pick-alts { margin: 8px 0 0; font-size: 12px; color: #64748b; }
.ts-pick-alts a { color: #0b57d0; }

.ts-saved-list { display: grid; gap: 14px; margin: 18px 0; }
.ts-saved-row { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 14px; border: 1px solid #e6e8e4; border-radius: 14px; background: #fff; }
.ts-saved-media img { width: 100%; height: 132px; object-fit: contain; background: #f7f8f6; border-radius: 10px; }
.ts-saved-body h3 { margin: 0 0 4px; font-size: 15.5px; line-height: 1.3; }
.ts-saved-body h3 a { color: #0f172a; text-decoration: none; }
.ts-saved-meta { margin: 0; font-size: 12.5px; color: #64748b; }
.ts-saved-price { margin: 8px 0; font-size: 20px; font-weight: 700; color: #0f172a; }
.ts-saved-foot { margin: 10px 0 0; }
.ts-empty-note { padding: 16px; border: 1px dashed #d7dbd5; border-radius: 12px; color: #64748b; background: #fbfbf9; }
.ts-compare-help { margin-top: 18px; font-size: 13px; color: #64748b; }

.ts-cmp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #0f172a; color: #fff; box-shadow: 0 -8px 24px rgba(15,23,42,.2); }
.ts-cmp-bar[hidden] { display: none !important; }
.ts-cmp-bar-inner { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ts-cmp-thumbs { display: flex; gap: 6px; }
.ts-cmp-thumb img { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 8px; }
.ts-cmp-label { margin: 0; font-size: 12.5px; color: #cbd5e1; flex: 1 1 120px; }
.ts-cmp-bar .ts-btn { padding: 8px 14px; font-size: 13px; }

.ts-cmp-scroll { overflow-x: auto; margin: 16px 0; }
.ts-cmp-table { border-collapse: collapse; min-width: 640px; width: 100%; background: #fff; }
.ts-cmp-table th, .ts-cmp-table td { border: 1px solid #e6e8e4; padding: 10px 12px; font-size: 13px; vertical-align: top; text-align: left; }
.ts-cmp-table thead th { width: 220px; }
.ts-cmp-table thead img { width: 100%; max-width: 120px; height: 90px; object-fit: contain; display: block; margin-bottom: 8px; }
.ts-cmp-table thead a { color: #0f172a; font-weight: 600; text-decoration: none; font-size: 13px; }
.ts-cmp-table tbody th { background: #fafbf9; color: #64748b; font-weight: 600; }
/* Compare-models builder: chips, the add-model row and the table header corner.
   These had no rules at all, so the remove button rendered as a raw <button>. */
.ts-cmp-builder { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 4px; }
.ts-cmp-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.ts-cmp-chips:empty { display: none; }
.ts-cmp-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 5px 4px 12px;
  border: 1px solid var(--ts-line); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 600; color: var(--ts-ink); line-height: 1.4;
}
.ts-cmp-chip button {
  display: grid; place-items: center; width: 20px; height: 20px; padding: 0;
  border: 0; border-radius: 50%; background: #f1f2ef; color: var(--ts-ink-soft);
  font-size: 15px; line-height: 1; cursor: pointer;
}
.ts-cmp-chip button:hover { background: #e6e8e3; color: var(--ts-ink); }
.ts-cmp-add { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ts-ink-soft); white-space: nowrap; }
.ts-cmp-add select {
  min-width: 190px; padding: 9px 10px; border: 1px solid var(--ts-line); border-radius: 10px;
  background: #fff; color: var(--ts-ink); font: inherit; font-size: 13.5px;
}
.ts-cmp-builder .ts-btn { padding: 10px 14px; }
.ts-cmp-builder .ts-btn[disabled] { opacity: .5; cursor: not-allowed; }
.ts-cmp-picker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; color: var(--ts-ink-soft); }
.ts-cmp-picker-row select { padding: 9px 10px; border: 1px solid var(--ts-line); border-radius: 10px; font: inherit; font-size: 13.5px; }

/* Table: a real corner cell, quieter row labels, zebra rows and a sticky first
   column so the spec name stays visible while the table scrolls sideways. */
.ts-cmp-table thead th:first-child { width: 132px; background: #fafbf9; }
.ts-cmp-table tbody th { font-weight: 500; white-space: nowrap; }
.ts-cmp-table tbody tr:nth-child(even) th,
.ts-cmp-table tbody tr:nth-child(even) td { background: #fcfcfb; }
.ts-cmp-table tbody tr:nth-child(even) th { background: #f6f7f4; }
.ts-cmp-table td:empty::after { content: "—"; color: var(--ts-ink-faint); }
.ts-cmp-table tbody tr:last-child th { border-top: 1px solid var(--ts-line); }
@media (max-width: 720px) {
  .ts-cmp-table thead th:first-child,
  .ts-cmp-table tbody th { position: sticky; left: 0; z-index: 2; }
  .ts-cmp-table thead th:first-child { z-index: 3; }
  .ts-cmp-add { width: 100%; }
  .ts-cmp-add select { flex: 1 1 auto; min-width: 0; }
  .ts-cmp-builder .ts-btn { width: 100%; }
}

.ts-pick-thumbs { display: flex; gap: 4px; margin-top: 6px; }
.ts-pick-thumb { width: 30px; height: 30px; padding: 0; border: 1px solid #e6e8e4; border-radius: 6px; background: #fff; cursor: pointer; overflow: hidden; }
.ts-pick-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-pick-thumb.is-active { border-color: #0b57d0; }

.ts-lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(15,23,42,.9); display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.ts-lightbox[hidden] { display: none !important; }
.ts-lightbox img { max-width: min(880px, 88vw); max-height: 82vh; background: #fff; border-radius: 12px; }
.ts-lightbox-close { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; font-size: 26px; line-height: 1; border: 0; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
.ts-lightbox-nav { width: 44px; height: 44px; font-size: 26px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; }

/* ---- finder advice ---- */
.ts-finder-advice { margin: 26px 0 8px; padding: 18px; border: 1px solid #e6e8e4; border-radius: 16px; background: #fbfbf9; }
.ts-finder-advice h2 { margin: 0 0 12px; font-size: 21px; }
.ts-advice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ts-advice-grid article { background: #fff; border: 1px solid #e6e8e4; border-radius: 12px; padding: 12px 14px; }
.ts-advice-grid h3 { margin: 0 0 6px; font-size: 14.5px; color: #0f172a; }
.ts-advice-grid p { margin: 0; font-size: 13px; line-height: 1.5; color: #4a5568; }
.ts-advice-note { margin: 14px 0 0; font-size: 13px; color: #334155; }
@media (max-width: 900px) { .ts-advice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ts-advice-grid { grid-template-columns: 1fr; } .ts-saved-row { grid-template-columns: 96px 1fr; } }

/* ---- CTA rows: single scrollable line with arrows ---- */
.ts-scroll-wrap { position: relative; }
.ts-scroll-row {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 8px;
  overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px;
}
.ts-scroll-row::-webkit-scrollbar { display: none; }
.ts-scroll-row > * { flex: 0 0 auto; }
.ts-scroll-row > .ts-btn, .ts-scroll-row > a, .ts-scroll-row > button { white-space: nowrap; }
.ts-scroll-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; padding: 0; display: none;
  align-items: center; justify-content: center;
  border: 1px solid #dfe3dd; border-radius: 50%; background: #fff;
  color: #0f172a; font-size: 18px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}
.ts-scroll-nav--prev { left: -6px; }
.ts-scroll-nav--next { right: -6px; }
.ts-scroll-wrap.has-overflow .ts-scroll-nav { display: inline-flex; }
.ts-scroll-nav[disabled] { opacity: .35; cursor: default; }
.ts-scroll-wrap.has-overflow .ts-scroll-row { padding-left: 20px; padding-right: 20px; }

/* card actions: primary full width, secondary row compact and never squeezed */
.ts-pick-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ts-pick-actions > .ts-btn:first-child { flex: 1 1 100%; text-align: center; }
.ts-pick-actions .ts-btn { white-space: nowrap; flex: 1 1 auto; min-width: 0; padding: 8px 10px; font-size: 12.5px; text-align: center; }
.ts-pick-actions .ts-save, .ts-pick-actions .ts-cmp { flex: 1 1 0; }

/* save + compare as overlay icons on the photo, so the action row fits */
.ts-pick-media { position: relative; }
.ts-pick-fav { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 9px; z-index: 2; }
.ts-pick-icon {
  width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; cursor: pointer;
  color: #0f172a; background: #fff;
  border: 1px solid #d8ddd3; border-radius: 50%;
  /* The photo behind can be bright or busy, so the ring and shadow carry the contrast. */
  box-shadow: 0 1px 3px rgba(15,23,42,.14), 0 0 0 2px rgba(255,255,255,.55);
}
.ts-pick-icon[aria-pressed="true"] { color: #b42318; border-color: #f3c6c1; background: #fff5f4; }
.ts-pick-icon.ts-cmp[aria-pressed="true"] { color: #0b57d0; border-color: #bcd0f5; background: #f2f7ff; }

/* quick guide opens as a panel inside the card, not as extra height below it */
.ts-pick { position: relative; }
.ts-pick-guide[open] {
  position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 6;
  margin: 0; padding: 10px 12px;
  background: #fff; border: 1px solid var(--ts-line, #e6e8e4); border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
  max-height: min(70vh, 420px); overflow: auto;
}
.ts-pick-guide[open] > summary {
  position: sticky; top: 0; background: #fff; z-index: 1;
  padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid #eef0ec;
}
.ts-pick-guide[open] .ts-guide-rows { margin: 0; }
@media (max-width: 520px) {
  .ts-pick-guide[open] { left: 6px; right: 6px; bottom: 6px; max-height: 62vh; }
}

.ts-pick-price-note { display: block; font-size: 11.5px; font-weight: 500; color: #64748b; margin-top: 1px; }

.ts-pick-price-note { display: block; font-size: 11.5px; font-weight: 500; color: #64748b; margin-top: 1px; }


/* product photos fully visible instead of cropped */
.ts-pick-media img {
  width: 100% !important;
  height: 190px !important;
  object-fit: contain !important;
  object-position: center;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
}
.ts-pick-media { background: #fff; }
.ts-pick-badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  color: #14532d; background: #dcfce7; border: 1px solid #bbf7d0;
}

/* compact header: search icon directly next to the menu button */
@media (max-width: 1180px) {
  .ts-search-toggle { margin-left: auto !important; }
  .ts-nav-toggle { margin-left: 8px !important; }
}

/* compare tabs + improved comparison table */
.ts-cmp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.ts-cmp-tabs a {
  padding: 8px 14px; border: 1px solid #dfe3dd; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: #334155; text-decoration: none !important; background: #fff;
}
.ts-cmp-tabs a.is-active { background: #0f172a; border-color: #0f172a; color: #fff; }
.ts-cmp-tabs a:hover { border-color: #0b57d0; color: #0b57d0; }
.ts-cmp-tabs a.is-active:hover { color: #fff; }

.ts-cmp-picker-row { margin: 0 0 16px; }
.ts-cmp-picker-row label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: #475569; }
.ts-cmp-picker-row select {
  min-width: 240px; max-width: 100%; padding: 9px 12px;
  border: 1px solid #dfe3dd; border-radius: 10px; background: #fff; font-size: 13.5px; color: #0f172a;
}
.ts-cmp-table thead th { background: #fafbf9; vertical-align: top; }
.ts-cmp-table tbody tr:nth-child(even) td { background: #fcfcfb; }
.ts-cmp-table td { min-width: 150px; }
.ts-cmp-table thead img { max-width: 140px; height: 110px; object-fit: contain; }

/* ---- consistent hover + focus states ---- */
.ts-btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.ts-btn:hover { background: #0a4bb5 !important; border-color: #0a4bb5 !important; color: #fff !important; }
.ts-btn--ghost:hover { background: #f2f7ff !important; border-color: #bcd0f5 !important; color: #0b57d0 !important; }
.ts-btn:active { transform: translateY(1px); }
.ts-pick-icon { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.ts-pick-icon:hover { background: #fff !important; border-color: #0b57d0 !important; color: #0b57d0 !important; transform: translateY(-1px); }
.ts-pick-icon[aria-pressed="true"]:hover { color: #b42318 !important; border-color: #f3c6c1 !important; background: #fff5f4 !important; }
.ts-pick-icon.ts-cmp[aria-pressed="true"]:hover { color: #0b57d0 !important; border-color: #bcd0f5 !important; background: #f2f7ff !important; }
.ts-scroll-nav:hover:not([disabled]) { background: #0f172a !important; border-color: #0f172a !important; color: #fff !important; }
.ts-pick-tabs button:hover { border-color: #bcd0f5 !important; color: #0b57d0 !important; background: #f7faff !important; }
.ts-pick-tabs button.is-active:hover { background: #0f172a !important; color: #fff !important; border-color: #0f172a !important; }
.ts-chip:hover, .eph-legal-nav a:hover { border-color: #0b57d0 !important; color: #0b57d0 !important; background: #f7faff !important; }
.ts-nav a:hover, .ts-footer a:hover, .ts-brand:hover { color: #0b57d0 !important; }
.ts-menu-panel a:hover, .ts-menu-sub a:hover { background: #f2f7ff !important; color: #0b57d0 !important; }
.ts-pick h3 a:hover, .ts-saved-body h3 a:hover { color: #0b57d0 !important; text-decoration: underline; }
.ts-pick-meta + .ts-pick-facts li b, .ts-guide-rows dd { color: #0f172a; }
.ts-cmp-table thead a:hover { color: #0b57d0 !important; text-decoration: underline; }
.ts-cmp-picker-row select:hover, .ts-filter select:hover, .ts-filter input:hover { border-color: #b6c2b0 !important; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid #0b57d0 !important; outline-offset: 2px; border-radius: 8px;
}

/* tab row + all scroll rows stay inside the viewport on mobile */
.ts-scroll-wrap { width: 100%; max-width: 100%; min-width: 0; }
.ts-scroll-row { max-width: 100%; min-width: 0; }
.ts-scroll-nav--prev { left: 0; }
.ts-scroll-nav--next { right: 0; }
@media (max-width: 760px) {
  .ts-widget, .ts-widget-tools, .ts-pick-tabs { max-width: 100%; min-width: 0; }
  .ts-pick-tabs { gap: 6px; }
  .ts-pick-tabs button { font-size: 12.5px; padding: 7px 10px; }
  .ts-scroll-row { padding-left: 18px !important; padding-right: 18px !important; }
  .ts-widget-tools .ts-scroll-wrap, .ts-widget-foot { margin-left: 0; margin-right: 0; }
}

/* Phones: the panel rises from the bottom instead of pushing the cards down. */
@media (max-width: 720px) {
  .ts-filterbar-inner { gap: 8px; }
  .ts-filterbar-count { font-size: 12px; }
  .ts-filterbar-chips { order: 3; flex: 1 1 100%; }
  .ts-filterbar-sort > span { display: none; }
  .ts-filterbar-sort select { max-width: 132px; }
  .ts-filters.is-open {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    top: calc(63px + var(--ts-filterbar-h, 42px));
    max-height: none; overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; margin: 0; padding: 14px 16px 20px;
    background: #fff; border-radius: 12px 12px 0 0;
    box-shadow: 0 -14px 40px rgba(15, 23, 42, .24);
  }
  body.ts-header-hidden .ts-filters.is-open { top: var(--ts-filterbar-h, 42px); }
  body.ts-filters-open { overflow: hidden; }
  body.ts-filters-open::after {
    content: ""; position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .35);
  }
  body.ts-filters-open .ts-filters.is-open { z-index: 95; }
  body.ts-filters-open .ts-filterbar { z-index: 96; }
}

/* Phones/tablets: one compact sticky row while scrolling offers. The header
   slides away on scroll-down and returns on scroll-up, and the filter bar
   moves to the top so the stack is ~42px instead of 63px + a two-row bar. */
@media (max-width: 780px) {
  body.ts-header-hidden .ts-header { transform: translateY(-100%); }
  body.ts-header-hidden .ts-filterbar { top: 0; }
  .ts-filterbar-inner { min-height: 38px; padding: 3px 0; gap: 6px; }
  .ts-filterbar-chips { display: none; }
  .ts-filterbar-count { max-width: 118px; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
  .ts-filterbar-sort select { max-width: 120px; padding: 5px 7px; font-size: 12px; }
  .ts-filterbar-toggle { padding: 6px 10px; font-size: 12px; }
}
