/* Comparison Table */

.comparison-table__card {
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-wrapper {
  overflow-x: auto; /* horizontal scroll on mobile */
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

.comparison-table {
  width: 100%;
  border-collapse: separate; /* ← changed from collapse */
  border-spacing: 0;         /* ← keeps cells tight */
  margin: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  border-right: 1px solid #E0E0E0;
  border-bottom: 1px solid #E0E0E0;
  vertical-align: middle;
  font-size: 18px;
  line-height: 28px;
}

/* Remove duplicate right/bottom borders */
.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: none;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table thead th {
  font-weight: 600;
  background: #fff;
  white-space: nowrap;
  color: #000000;
}

/* Round the header corners to match wrapper */
.comparison-table thead th:first-child {
  border-top-left-radius: 8px;
}

.comparison-table thead th:last-child {
  border-top-right-radius: 8px;
}

/* Round bottom corners of last row */
.comparison-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.comparison-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.comparison-table__th--label {
  width: 32%;
}

.comparison-table tbody td:first-child {
  font-weight: 500;
  color: #000000;
  white-space: nowrap;
}

.comparison-table tbody td:not(:first-child) {
  font-weight: 400;
}

.highlight-col {
  color: var(--primary-color, #5e64ef) !important;
  font-weight: 600 !important;
}

.highlight-header {
  color: var(--primary-color, #5e64ef) !important;
  font-weight: 600 !important;
}

@media (max-width: 767.98px) {
  .comparison-table th,
  .comparison-table td {
    padding: 8px;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap; /* prevents wrapping, enables scroll */
  }
  .comparison-table__th--label {
    width: auto;
  }
}