.value-pack {
  /* ---------- Base (your original) ---------- */
  .value-pack--header {
    margin-bottom: 30px;

    /* ✅ Added: make header a real full-width block and center text */
    width: 100%;
    text-align: center;

    /* ✅ Added: ensure header stacks above the table */
    position: relative;
    z-index: 50;
  }

  /* ✅ Added: isolate header from table overflow (requires wrapper in markup) */
  .value-pack__header-wrap {
    max-width: 100%;
    overflow: visible;   /* key */
    position: relative;  /* so z-index works if needed */
    z-index: 10;         /* keep header above table */
  }


  .value-pack__header-wrap h1 {
    width: 100%;
    text-align: center;
  }

  color: #004876 !important;

  label {
    color: #004876 !important;
  }

  h4 {
    color: #004876 !important;
  }

  img {
    margin: 0 auto;
  }

  .table-container {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;

    /* ✅ Added: keep table layer below the selector */
    position: relative;
    z-index: 1;
  }

  td,
  th {
    padding: 5px 10px;
    border-bottom: 1px solid #004876;
    text-align: center;

    @media (max-width: 767px) {
      p {
        font-size: 14px;
      }

      a {
        font-size: 14px;
      }
    }
  }

  th:first-child,
  td:first-child {
    position: sticky;
    left: 0;
    background-color: #fff;
    z-index: 2;
    /* #7 sticky clarity */
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.06);
  }

  td {
    min-width: 250px;
    width: 250px;
  }

  th {
    min-width: 165px;
    max-width: 50vw;
  }

  td.checkmark {
    vertical-align: middle;
    font-size: xx-large;
  }

  .no-bottom-border {
    td,
    th {
      border-bottom: none;
    }
  }

  .checkboxes-wrapper {
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 16px;
    padding: 4px 2px;
  }

  @media (min-width: 900px) {
    .checkboxes-wrapper {
      display: grid;
      grid-auto-flow: column; /* KEY: fill top → bottom */
      grid-template-rows: repeat(6, auto);
      gap: 10px 32px;
    }
  }

  .checkbox-container {
    display: flex;
    align-items: center;
    line-height: 1.4;
  }

  .checkbox-container input[type='checkbox'] {
    margin-right: 5px;
  }

  .checkbox-container label {
    margin-right: 0px;
  }

  .value-pack__table tbody tr:first-child th,
  .value-pack__table tbody tr:first-child td {
    border-top: 1px solid #004876;
  }

  /* ---------- Enhancements ---------- */

  /* #10 A11y helpers (caption + included text) */
  .visually-hidden,
  .sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
  }

  /* Row highlight on hover + tap (mobile adds .is-row-active via JS) */
  tr.value-pack__row:hover th,
  tr.value-pack__row:hover td {
    background: #e6e6e6;
  }

  tr.value-pack__row.is-row-active th,
  tr.value-pack__row.is-row-active td {
    background: #e6e6e6;
  }

  /* #5 CTA buttons */
  .value-pack__row--cta td {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .value-pack__btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #004876;
    background: #004876;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
  }

  .value-pack__btn:hover {
    background: rgba(0, 72, 118, 0.9);
    text-decoration: none;
  }

    .pack-col-header .pack-media {
    display: block;          
    line-height: 0;          
    margin: 0 auto 10px;     
  }

  .pack-col-header .pack-media img {
    display: block;
    margin: 0 auto;          
  }

  .pack-col-header .pack-title {
    display: block;         
  }

  @media (max-width: 599px) {
    .value-pack__table {
      table-layout: fixed;
    }

    th:first-child,
    td:first-child {
      min-width: 105px;
      width: 105px;
      max-width: 105px;
    }

    td,
    th.pack-col-header {
      min-width: 115px;
      width: 115px;
    }

    td p,
    td a,
    td span,
    .pack-title,
    .pack-name {
      white-space: normal;
      word-break: break-word;
      overflow-wrap: anywhere;
    }

    .pack-media img {
      width: 56px;
      height: auto;
    }

    .pack-name {
      font-size: 13px;
      line-height: 1.15;
    }

    td,
    th {
      padding: 5px 8px;
    }

    td.checkmark {
      font-size: 26px;
    }
  }

  /* Review “Read more” */
  .review {
    text-align: left;
  }

  .review__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .review.is-expanded .review__text {
    display: block;
    overflow: visible;
    -webkit-line-clamp: initial;
    -webkit-box-orient: initial;
  }

  .review__text p {
    margin: 0 0 8px 0;
  }

  .review__toggle {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #004876;
    font-weight: 600;
    cursor: pointer;
  }

  .review__toggle:hover {
    text-decoration: underline;
  }

  /* Bottom guide switcher – intentional, centered */
  .guide-switcher {
    position: relative;
    padding: 40px 10px 100px;
    border-top: none; /* REMOVE the full-width line */
  }

  .guide-switcher::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%; /* adjust as needed */
    height: 1px;
    background: #e6e6e6;
  }

  .guide-switcher__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  .guide-switcher__hint {
    font-size: 22px;
    color: #555555;
    font-weight: 600;
    margin-bottom: 16px;
  }

  .guide-switcher__tabs {
    display: inline-flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e6e6e6;
  }

  .guide-switcher__tab {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    color: #004876;
    border: 1px solid transparent;
    white-space: nowrap;

    &:hover {
      background: rgba(0, 72, 118, 0.08);
      text-decoration: none;
    }

    &.is-active {
      background: rgb(223, 237, 237);
      color: #004876;
      border-color: rgba(0, 72, 118, 0.2);
      cursor: default;
      box-shadow: none;
    }

    &:not(.is-active) {
      opacity: 0.85;

      &:hover {
        background: rgb(223, 237, 237);
      }
    }
  }

  @media (max-width: 900px) {
    .guide-switcher__tabs {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
      max-width: 420px;
      margin: 0 auto;
      padding: 0;
      background: transparent;
      box-shadow: none;
      border: none;
    }

    .guide-switcher__tab {
      width: 100%;
      text-align: center;
      padding: 12px 16px;
      border: 1px solid #e6e6e6;
      background: #ffffff;

      &.is-active {
        border-color: #004876;
      }
    }
  }

  .row-headline.sticky-col,
  .sticky-col {
    background: #fff;
    background-clip: padding-box;
    z-index: 2; /* keep sticky LOW */
  }

  .sticky-col--header {
    z-index: 3;
  }

  /* When the row is highlighted, sticky cell should match */
  tr.value-pack__row:hover .sticky-col,
  tr.value-pack__row.is-row-active .sticky-col {
    background: #e6e6e6;
  }

  .compare-control {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;

    /* ✅ Added: ensure selector sits above the table */
    z-index: 60;
  }

  .compare-control__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 72, 118, 0.3);
    background: #fff;
    color: #004876;
    font-weight: 600;
    cursor: pointer;
  }

  .compare-control__button:hover {
    background: rgba(0, 72, 118, 0.06);
  }

  .compare-control__count {
    font-weight: 400;
    opacity: 0.75;
  }

  .compare-control__chev {
    opacity: 0.7;
    font-size: 14px;
  }

  .compare-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, 95vw);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 16px;
    z-index: 9999;
  }

  .compare-panel[hidden] {
    display: none;
  }

  .compare-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .compare-panel__title {
    font-weight: 700;
    color: #004876;
  }

  .compare-panel__close {
    border: 1px solid rgba(0, 72, 118, 0.25);
    background: #fff;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    line-height: 1;
    cursor: pointer;
  }
}
