/* ================================================================
       TPK PRODUCT COMPARISON — MAINTAINABLE EMBED VERSION
       01. Design tokens and module base
       02. Search and series controls
       03. Left navigation and product cards
       04. Comparison table
       05. Image zoom and notes

       This file intentionally contains no website header or footer.
       Change --sticky-offset only when the website has a fixed global header.
       ================================================================ */
    #tpk-product-compare {
      --brand: #20a565;
      --brand-dark: #13774a;
      --ink: #151821;
      --muted: #707786;
      --line: #dfe4ed;
      --page: #eef2f9;
      --panel: #ffffff;
      --group: #e7ecf5;
      --label: #f8f9fc;
      --active: #fff5c9;
      --active-border: #f2cf47;
      --danger: #e53935;
      --shadow: 0 10px 30px rgba(30, 45, 70, 0.08);
      --radius: 16px;
      --sticky-offset: 0px;
      --side-nav-width: 44px;
      --layout-gap: 28px;
      --compare-label-column: 190px;
      width: 100%;
      color: var(--ink);
      background: var(--page);
      font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
      font-size: 14px;
      line-height: 1.5;
      box-sizing: border-box;
      padding: 14px 0 70px;
    }

    #tpk-product-compare *,
    #tpk-product-compare *::before,
    #tpk-product-compare *::after {
      box-sizing: border-box;
    }

    #tpk-product-compare button,
    #tpk-product-compare input,
    #tpk-product-compare select {
      font: inherit;
    }

    #tpk-product-compare a {
      color: inherit;
      text-decoration: none;
    }

    #tpk-product-compare .tpk-container {
      width: 1360px;
      max-width: 100%;
      margin: 0 auto;
    }

    /* 02. SEARCH AND SERIES CONTROLS */
    #tpk-product-compare .tpk-control-panel {
      position: relative;
      z-index: 60;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 18px 22px 16px;
      margin: 0 calc(var(--side-nav-width) + var(--layout-gap)) 14px 0;
    }

    #tpk-product-compare .tpk-control-title {
      margin: 0 0 11px;
      font-size: 17px;
      font-weight: 800;
      letter-spacing: 0.1px;
    }

    #tpk-product-compare .tpk-control-row {
      display: grid;
      grid-template-columns: 240px minmax(260px, 1fr) auto auto;
      gap: 10px;
      align-items: center;
    }

    #tpk-product-compare .tpk-field {
      position: relative;
    }

    #tpk-product-compare .tpk-series-select,
    #tpk-product-compare .tpk-search-input,
    #tpk-product-compare .tpk-product-select {
      width: 100%;
      border: 1px solid #cfd6e3;
      background: #fff;
      color: #222630;
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    #tpk-product-compare .tpk-series-select,
    #tpk-product-compare .tpk-search-input {
      height: 42px;
      border-radius: 8px;
      padding: 0 12px;
    }

    #tpk-product-compare .tpk-series-select:focus,
    #tpk-product-compare .tpk-search-input:focus,
    #tpk-product-compare .tpk-product-select:focus {
      border-color: var(--brand);
      box-shadow: 0 0 0 3px rgba(32, 165, 101, 0.12);
    }

    #tpk-product-compare .tpk-button {
      height: 42px;
      border: 1px solid #cfd6e3;
      border-radius: 8px;
      background: #fff;
      color: #303642;
      padding: 0 16px;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
      transition: 0.2s ease;
    }

    #tpk-product-compare .tpk-button:hover {
      border-color: var(--brand);
      color: var(--brand-dark);
    }

    #tpk-product-compare .tpk-button.is-active {
      border-color: var(--brand);
      background: var(--brand);
      color: #fff;
    }

    #tpk-product-compare .tpk-series-summary {
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    #tpk-product-compare .tpk-series-count {
      color: var(--danger);
      font-weight: 900;
      font-size: 14px;
      padding: 0 2px;
    }

    #tpk-product-compare .tpk-search-results {
      position: absolute;
      top: calc(100% + 7px);
      left: 0;
      right: 0;
      display: none;
      max-height: 320px;
      overflow-y: auto;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 10px;
      box-shadow: 0 16px 36px rgba(28, 40, 60, 0.16);
      padding: 6px;
      z-index: 100;
    }

    #tpk-product-compare .tpk-search-results.is-open {
      display: block;
    }

    #tpk-product-compare .tpk-search-item {
      width: 100%;
      display: grid;
      grid-template-columns: 52px 1fr auto;
      align-items: center;
      gap: 10px;
      border: 0;
      background: transparent;
      border-radius: 8px;
      padding: 8px;
      text-align: left;
      cursor: pointer;
    }

    #tpk-product-compare .tpk-search-item:hover {
      background: #f2f8f5;
    }

    #tpk-product-compare .tpk-search-thumb {
      width: 52px;
      height: 42px;
      border: 1px solid #edf0f5;
      border-radius: 7px;
      background: #fff;
      object-fit: contain;
    }

    #tpk-product-compare .tpk-search-model {
      font-weight: 800;
      line-height: 1.25;
    }

    #tpk-product-compare .tpk-search-meta {
      color: var(--muted);
      font-size: 11px;
      margin-top: 2px;
    }

    #tpk-product-compare .tpk-search-add {
      color: var(--brand-dark);
      font-size: 12px;
      font-weight: 800;
    }

    /* 03. RIGHT NAVIGATION AND PRODUCT CARDS */
    #tpk-product-compare .tpk-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) var(--side-nav-width);
      gap: var(--layout-gap);
      align-items: start;
    }

    /* Codex-style section scale: compact ticks on the right with hover labels. */
    #tpk-product-compare .tpk-side-nav {
      grid-column: 2;
      grid-row: 1;
      position: sticky;
      /* Keep the navigation scale vertically centered in the viewport. */
      top: 50vh;
      transform: translateY(-50%);
      z-index: 50;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      width: var(--side-nav-width);
      padding: 8px 0;
      background: transparent;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      overflow: visible;
      backdrop-filter: none;
    }

    #tpk-product-compare .tpk-side-link {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 25px;
      padding: 0;
      border: 0;
      border-radius: 0;
      color: #343a46;
      outline: none;
      cursor: pointer;
    }

    #tpk-product-compare .tpk-side-tick {
      display: block;
      width: 20px;
      height: 2px;
      border-radius: 999px;
      background: #bfded5;
      box-shadow: none;
      transition: width 0.18s ease, height 0.18s ease, background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
      opacity: 0.95;
    }

    #tpk-product-compare .tpk-side-link:hover .tpk-side-tick,
    #tpk-product-compare .tpk-side-link:focus-visible .tpk-side-tick {
      width: 28px;
      background: #6cc5ae;
      transform: translateX(-1px);
      opacity: 1;
    }

    #tpk-product-compare .tpk-side-link.is-active .tpk-side-tick {
      width: 33px;
      height: 3px;
      background: #029977;
      box-shadow: 0 1px 2px rgba(2, 153, 119, 0.18);
      opacity: 1;
    }

    #tpk-product-compare .tpk-side-tooltip {
      position: absolute;
      right: calc(100% + 12px);
      left: auto;
      top: 50%;
      z-index: 200;
      display: block;
      width: max-content;
      max-width: 230px;
      padding: 6px 10px;
      border: 1px solid rgba(2, 153, 119, 0.14);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.96);
      color: #029977;
      box-shadow: 0 8px 20px rgba(20, 30, 48, 0.10);
      font-size: 11px;
      font-weight: 700;
      line-height: 1.2;
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translate(-6px, -50%);
      transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
    }

    #tpk-product-compare .tpk-side-tooltip::before {
      content: "";
      position: absolute;
      left: 100%;
      right: auto;
      top: 50%;
      border: 5px solid transparent;
      border-left-color: rgba(255, 255, 255, 0.96);
      transform: translateY(-50%);
    }

    #tpk-product-compare .tpk-side-link:hover .tpk-side-tooltip,
    #tpk-product-compare .tpk-side-link:focus-visible .tpk-side-tooltip {
      opacity: 1;
      visibility: visible;
      transform: translate(0, -50%);
    }

    #tpk-product-compare .tpk-side-link:focus-visible {
      border-radius: 6px;
      box-shadow: 0 0 0 3px rgba(2, 153, 119, 0.14);
    }

    #tpk-product-compare .tpk-main {
      grid-column: 1;
      grid-row: 1;
      min-width: 0;
    }

    #tpk-product-compare .tpk-sticky-products {
      position: sticky;
      top: var(--sticky-offset);
      z-index: 45;
      display: grid;
      background: #f7f9fd;
      border: 1px solid var(--line);
      border-radius: 14px 14px 0 0;
      box-shadow: 0 9px 22px rgba(30, 45, 70, 0.09);
      overflow: hidden;
    }

    #tpk-product-compare .tpk-fixture-label {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 224px;
      background: #f9fbff;
      border-right: 1px solid var(--line);
      font-size: 16px;
      font-weight: 800;
    }

    #tpk-product-compare .tpk-product-slot {
      position: relative;
      min-width: 0;
      min-height: 210px;
      background: #fff;
      border-right: 1px solid var(--line);
      padding: 9px 10px 10px;
    }

    #tpk-product-compare .tpk-product-slot:last-child {
      border-right: 0;
    }

    #tpk-product-compare .tpk-product-slot.is-empty {
      background: #fbfcff;
    }

    #tpk-product-compare .tpk-clear-slot {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 22px;
      height: 22px;
      border: 0;
      border-radius: 50%;
      background: #eef1f6;
      color: #a1a8b4;
      line-height: 22px;
      padding: 0;
      cursor: pointer;
      z-index: 3;
    }

    #tpk-product-compare .tpk-product-photo {
      width: min(100%, 224px);
      aspect-ratio: 4 / 3;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border-radius: 8px;
      background: #fff;
      margin: 0 auto 8px;
    }

    #tpk-product-compare .tpk-product-photo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    #tpk-product-compare .tpk-image-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px dashed #d7dde7;
      border-radius: 8px;
      color: #9aa3b1;
      background: #fbfcfe;
      text-align: center;
      padding: 12px;
      font-size: 12px;
      box-sizing: border-box;
    }

    #tpk-product-compare .tpk-product-name {
      display: none;
    }

    #tpk-product-compare .tpk-product-name a:hover {
      color: var(--brand-dark);
    }

    #tpk-product-compare .tpk-empty-card {
      height: 152px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px dashed #cfd6e3;
      border-radius: 8px;
      color: #8f98a7;
      text-align: center;
      padding: 18px;
      margin-bottom: 7px;
    }

    #tpk-product-compare .tpk-product-select {
      height: 34px;
      border-radius: 6px;
      padding: 0 9px;
      font-weight: 700;
      font-size: 12px;
      text-align: center;
      text-align-last: center;
    }

    /* 04. COMPARISON TABLE */
    #tpk-product-compare .tpk-table-shell {
      background: #fff;
      border: 1px solid var(--line);
      border-top: 0;
      border-radius: 0 0 14px 14px;
      overflow-x: auto;
      box-shadow: var(--shadow);
    }

    #tpk-product-compare .tpk-compare-table {
      width: 100%;
      min-width: 1080px;
      table-layout: fixed;
      border-collapse: collapse;
    }

    #tpk-product-compare .tpk-compare-table col:first-child {
      width: var(--compare-label-column);
    }


    #tpk-product-compare .tpk-compare-table th,
    #tpk-product-compare .tpk-compare-table td {
      border-right: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      padding: 12px 11px;
      vertical-align: middle;
      word-break: break-word;
    }

    #tpk-product-compare .tpk-compare-table tr > *:last-child {
      border-right: 0;
    }

    #tpk-product-compare .tpk-group-row th {
      background: var(--group);
      color: #242934;
      text-align: left;
      font-size: 15px;
      font-weight: 850;
      padding: 9px 12px;
    }

    #tpk-product-compare .tpk-data-row th {
      background: var(--label);
      text-align: left;
      color: #3f4653;
      font-weight: 750;
    }

    #tpk-product-compare .tpk-data-row td {
      text-align: center;
      color: #20252e;
      background: #fff;
    }

    #tpk-product-compare .tpk-data-row.is-different td {
      background: #fffdf4;
    }

    #tpk-product-compare .tpk-data-row.is-hidden {
      display: none;
    }

    #tpk-product-compare .tpk-media-row td {
      height: auto;
      padding: 10px 8px;
    }

    #tpk-product-compare .tpk-media-cell {
      width: 100%;
      aspect-ratio: 4 / 3;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      background: #fff;
    }

    #tpk-product-compare .tpk-media-cell img {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      cursor: zoom-in;
      transition: transform 0.2s ease, filter 0.2s ease;
    }

    #tpk-product-compare .tpk-media-cell img:hover {
      transform: scale(1.03);
      filter: contrast(1.02);
    }

    /* 05. IMAGE ZOOM AND NOTES */
    #tpk-product-compare .tpk-image-zoom {
      position: fixed;
      left: 0;
      top: 0;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      width: min(560px, 44vw);
      height: min(420px, 66vh);
      padding: 14px;
      border: 1px solid #d8dee9;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 22px 60px rgba(20, 31, 52, 0.24);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(6px) scale(0.98);
      transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    }

    #tpk-product-compare .tpk-image-zoom.is-visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
    }

    #tpk-product-compare .tpk-image-zoom img {
      display: block;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }

    #tpk-product-compare .tpk-source-link {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      color: var(--brand-dark);
      font-weight: 800;
      border-bottom: 1px solid rgba(19, 119, 74, 0.28);
    }

    #tpk-product-compare .tpk-footnote {
      display: none !important;
    }

    #tpk-product-compare .tpk-formula {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      color: #394150;
      background: rgba(255, 255, 255, 0.75);
      border-radius: 4px;
      padding: 1px 4px;
    }

    #tpk-product-compare [data-section] {
      scroll-margin-top: calc(var(--sticky-offset) + 246px);
    }



    /* ================================================================
       06. MOBILE RESPONSIVE LAYOUT
       - Stacked controls inspired by the TPK mobile FAQ module
       - Horizontal section chips replace the desktop tick navigation
       - Product header and comparison table scroll horizontally together
       - The parameter-name column remains visible while swiping products
       ================================================================ */
    @media (max-width: 767px) {
      #tpk-product-compare {
        --mobile-label-column: 106px;
        --mobile-product-column: 154px;
        --mobile-table-width: 568px;
        --mobile-nav-height: 44px;
        --mobile-sticky-products-height: 156px;
        --compare-label-column: var(--mobile-label-column);
        padding: 8px 0 44px;
        background: #f7f9f8;
        font-size: 13px;
        overflow-x: hidden;
      }

      #tpk-product-compare .tpk-container {
        width: 100% !important;
        max-width: 100%;
        padding: 0 12px;
      }

      #tpk-product-compare .tpk-control-panel {
        margin: 0 0 10px;
        padding: 15px 14px 13px;
        border-radius: 10px;
        box-shadow: 0 12px 28px rgba(16, 24, 40, 0.05);
      }

      #tpk-product-compare .tpk-control-title {
        margin-bottom: 10px;
        font-size: 16px;
      }

      #tpk-product-compare .tpk-control-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 9px;
      }

      #tpk-product-compare .tpk-series-field,
      #tpk-product-compare .tpk-search-wrap {
        grid-column: 1 / -1;
      }

      #tpk-product-compare .tpk-series-select,
      #tpk-product-compare .tpk-search-input,
      #tpk-product-compare .tpk-button {
        height: 44px;
        border-radius: 10px;
      }

      #tpk-product-compare .tpk-series-select,
      #tpk-product-compare .tpk-search-input {
        padding: 0 13px;
        font-size: 13px;
      }

      #tpk-product-compare .tpk-button {
        width: 100%;
        padding: 0 8px;
        font-size: 12px;
      }

      #tpk-product-compare .tpk-series-summary {
        margin-top: 9px;
        font-size: 11px;
        line-height: 1.6;
      }

      #tpk-product-compare .tpk-series-count {
        font-size: 13px;
      }

      #tpk-product-compare .tpk-search-results {
        max-height: 55vh;
        border-radius: 10px;
        -webkit-overflow-scrolling: touch;
      }

      #tpk-product-compare .tpk-search-item {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 9px;
        padding: 8px 7px;
      }

      #tpk-product-compare .tpk-search-thumb {
        width: 48px;
        height: 40px;
      }

      #tpk-product-compare .tpk-layout {
        display: block;
      }

      /* Mobile section navigation: scrollable text chips. */
      #tpk-product-compare .tpk-side-nav {
        grid-column: auto;
        grid-row: auto;
        position: sticky;
        top: var(--sticky-offset);
        transform: none;
        z-index: 55;
        width: 100%;
        height: var(--mobile-nav-height);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 6px 0;
        overflow-x: auto;
        overflow-y: hidden;
        background: #f7f9f8;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
      }

      #tpk-product-compare .tpk-side-nav::-webkit-scrollbar {
        display: none;
      }

      #tpk-product-compare .tpk-side-link {
        flex: 0 0 auto;
        width: auto;
        height: 32px;
        padding: 0 12px;
        border: 1px solid #e2e9e6;
        border-radius: 999px;
        background: #fff;
        color: #65706d;
        transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
      }

      #tpk-product-compare .tpk-side-link:hover,
      #tpk-product-compare .tpk-side-link:focus-visible,
      #tpk-product-compare .tpk-side-link.is-active {
        border-color: rgba(2, 153, 119, 0.28);
        background: rgba(2, 153, 119, 0.09);
        color: #029977;
        box-shadow: none;
      }

      #tpk-product-compare .tpk-side-tick {
        display: none;
      }

      #tpk-product-compare .tpk-side-tooltip {
        position: static;
        display: block;
        width: auto;
        max-width: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: inherit;
        box-shadow: none;
        font-size: 11.5px;
        font-weight: 650;
        line-height: 1;
        white-space: nowrap;
        opacity: 1;
        visibility: visible;
        transform: none;
      }

      #tpk-product-compare .tpk-side-tooltip::before {
        display: none;
      }

      #tpk-product-compare .tpk-main {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        min-width: 0;
      }

      /* Horizontally scrollable product header. */
      #tpk-product-compare .tpk-sticky-products {
        top: calc(var(--sticky-offset) + var(--mobile-nav-height));
        grid-template-columns: var(--mobile-label-column) repeat(3, var(--mobile-product-column)) !important;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 10px 10px 0 0;
        box-shadow: 0 8px 20px rgba(30, 45, 70, 0.08);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
      }

      #tpk-product-compare .tpk-sticky-products::-webkit-scrollbar {
        display: none;
      }

      #tpk-product-compare .tpk-fixture-label {
        position: sticky;
        left: 0;
        z-index: 6;
        min-height: var(--mobile-sticky-products-height);
        padding: 0 8px;
        background: #f8fafc;
        font-size: 13px;
      }

      #tpk-product-compare .tpk-product-slot {
        min-height: var(--mobile-sticky-products-height);
        padding: 7px 7px 8px;
      }

      #tpk-product-compare .tpk-clear-slot {
        top: 6px;
        right: 6px;
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 12px;
      }

      #tpk-product-compare .tpk-product-photo {
        width: 116px;
        max-width: 100%;
        aspect-ratio: 4 / 3;
        margin: 0 auto 7px;
      }

      #tpk-product-compare .tpk-empty-card {
        height: 108px;
        margin-bottom: 7px;
        padding: 9px;
        font-size: 10.5px;
        line-height: 1.45;
      }

      #tpk-product-compare .tpk-product-select {
        height: 36px;
        padding: 0 5px;
        border-radius: 7px;
        font-size: 11px;
      }

      /* Table scrolls horizontally and stays aligned with the product header. */
      #tpk-product-compare .tpk-table-shell {
        width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        border-radius: 0 0 10px 10px;
        scrollbar-width: thin;
        scrollbar-color: rgba(2, 153, 119, 0.45) transparent;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
      }

      #tpk-product-compare .tpk-table-shell::-webkit-scrollbar {
        height: 4px;
      }

      #tpk-product-compare .tpk-table-shell::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(2, 153, 119, 0.42);
      }

      #tpk-product-compare .tpk-compare-table {
        width: var(--mobile-table-width);
        min-width: var(--mobile-table-width);
        table-layout: fixed;
        font-size: 12px;
      }

      #tpk-product-compare .tpk-compare-table col:first-child {
        width: var(--mobile-label-column) !important;
      }

      #tpk-product-compare .tpk-compare-table col:not(:first-child) {
        width: var(--mobile-product-column) !important;
      }

      #tpk-product-compare .tpk-compare-table th,
      #tpk-product-compare .tpk-compare-table td {
        padding: 9px 7px;
        line-height: 1.45;
      }

      #tpk-product-compare .tpk-group-row th {
        position: sticky;
        left: 0;
        z-index: 5;
        padding: 8px 10px;
        font-size: 14px;
      }

      #tpk-product-compare .tpk-data-row th {
        position: sticky;
        left: 0;
        z-index: 4;
        background: var(--label);
        font-size: 11.5px;
      }

      #tpk-product-compare .tpk-data-row.is-different th {
        background: #f8f9fc;
      }

      #tpk-product-compare .tpk-media-row td {
        height: auto;
        padding: 7px;
      }

      #tpk-product-compare .tpk-media-cell {
        width: 100%;
        aspect-ratio: 4 / 3;
      }

      #tpk-product-compare .tpk-image-placeholder {
        padding: 7px;
        font-size: 10px;
        line-height: 1.4;
      }

      #tpk-product-compare .tpk-source-link {
        font-size: 11px;
        line-height: 1.35;
      }

      #tpk-product-compare [data-section] {
        scroll-margin-top: calc(
          var(--sticky-offset) +
          var(--mobile-nav-height) +
          var(--mobile-sticky-products-height) +
          8px
        );
      }

      /* Touch image preview. Tap an image to open; tap the overlay to close. */
      #tpk-product-compare .tpk-image-zoom {
        inset: 0 !important;
        width: 100vw;
        height: 100vh;
        padding: 18px;
        border: 0;
        border-radius: 0;
        background: rgba(10, 16, 20, 0.84);
        transform: none;
      }

      #tpk-product-compare .tpk-image-zoom.is-visible {
        transform: none;
      }

      #tpk-product-compare .tpk-image-zoom img {
        max-width: calc(100vw - 30px);
        max-height: calc(100vh - 48px);
        padding: 8px;
        border-radius: 10px;
        background: #fff;
      }
    }

    @media (max-width: 420px) {
      #tpk-product-compare {
        --mobile-label-column: 98px;
        --mobile-product-column: 145px;
        --mobile-table-width: 533px;
      }

      #tpk-product-compare .tpk-container {
        padding: 0 10px;
      }

      #tpk-product-compare .tpk-control-panel {
        padding: 14px 12px 12px;
      }

      #tpk-product-compare .tpk-side-link {
        padding: 0 11px;
      }

      #tpk-product-compare .tpk-fixture-label {
        padding: 0 6px;
        font-size: 12px;
      }

      #tpk-product-compare .tpk-product-photo {
        width: 108px;
      }
    }

    /* On short screens, keep the full navigation scale visible. */
    @media (min-width: 768px) and (max-height: 560px) {
      #tpk-product-compare .tpk-side-nav {
        top: calc(var(--sticky-offset) + 12px);
        transform: none;
      }
    }
