/* Preserve the original first-column appearance when cells become native row headings. */
.comp-mobile-cards .comp-table tbody th.comp-feature {
  padding: 13px 18px;
  border-bottom: 1px solid var(--grey-light, #e0e0e0);
  vertical-align: middle;
  color: var(--dark, #080808);
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}
.comp-mobile-cards .comp-table tbody tr:last-child th.comp-feature { border-bottom: 0; }
.comp-mobile-cards .comp-table tbody tr:hover th.comp-feature { background: rgb(122 184 46 / 3%); }

/* Keep one semantic comparison table; present each feature as a phone-sized card. */
@media (max-width: 767px) {
  .comp-wrap.comp-mobile-cards {
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .comp-mobile-cards .comp-table {
    display: block;
    width: 100%;
    background: transparent;
  }

  /* Retain the column headings for table navigation and header associations. */
  .comp-mobile-cards .comp-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .comp-mobile-cards .comp-table tbody {
    display: grid;
    gap: 18px;
  }

  .comp-mobile-cards .comp-table tbody tr {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce2d4;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgb(8 8 8 / 5%);
    break-inside: avoid;
  }

  .comp-mobile-cards .comp-table tbody td,
  .comp-mobile-cards .comp-table tbody th.comp-feature {
    display: block;
    width: auto;
    min-width: 0;
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid #e3e6df;
    background: #fff;
    color: #252a21;
    line-height: 1.55;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .comp-mobile-cards .comp-table tbody th.comp-feature,
  .comp-mobile-cards .comp-table tbody tr:hover th.comp-feature {
    padding-block: 13px;
    background: #20281b;
    border-bottom: 0;
  }

  .comp-mobile-cards .comp-feat-name {
    color: #fff;
    line-height: 1.4;
    font-weight: 700;
  }

  .comp-mobile-cards .comp-table tbody td.eko-col {
    background: #f0f6e8;
    box-shadow: inset 4px 0 #7ab82e;
    font-weight: 500;
  }

  .comp-mobile-cards .comp-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #394d28;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
  }

  .comp-mobile-cards .comp-table tbody td:last-child {
    border-bottom: 0;
  }
}
