/* Shared labels on desktop; category labels above three columns on mobile. */
.alternatives--service {
  padding-block: clamp(64px, 6vw, 96px);
}

.alternatives--service > .shell {
  max-width: 860px;
}

.alternatives--service .comparison-matrix {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  color: #465b45;
  font-size: 0.875rem;
  line-height: 1.55;
}

.alternatives--service .comparison-matrix :is(th, td) {
  padding: 15px 11px;
  border-bottom: 1px solid #d6ddcc;
  background: transparent;
  vertical-align: top;
  text-align: left;
  font-size: inherit;
  font-weight: 400;
  overflow-wrap: break-word;
}

.alternatives--service .comparison-matrix thead th {
  padding-top: 12px;
  padding-bottom: 17px;
  font-weight: 500;
  color: #243d2e;
}

.alternatives--service .comparison-matrix thead th:first-child {
  width: 21%;
}

.alternatives--service .comparison-matrix tbody th {
  padding-left: 0;
  font-size: 0.75rem;
  color: #61715a;
}

.alternatives--service .comparison-matrix .comparison-morrow {
  background: #e3ecd8;
  color: #2d5435;
}

.alternatives--service .comparison-matrix thead .comparison-morrow {
  border-radius: 10px 10px 0 0;
}

.alternatives--service .comparison-matrix .comparison-price {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.alternatives--service .comparison-matrix sup {
  font-size: 0.625rem;
  line-height: 0;
  vertical-align: super;
}

.alternatives--service .comparison-matrix tbody tr:last-child > * {
  border-bottom: 0;
}

.alternatives--service .comparison-matrix tbody tr:last-child .comparison-morrow {
  border-radius: 0 0 10px 10px;
}

.alternatives--service .comparison-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 16px;
  color: #61715a;
  font-size: 0.75rem;
}

.alternatives--service .comparison-matrix .comparison-action-spacer {
  padding: 0;
}

.alternatives--service .comparison-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 8px;
  border-radius: 9px;
  font-size: 0.8125rem;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
}

@media (max-width: 640px) {
  .alternatives--service .comparison-matrix {
    display: block;
    font-size: 0.8125rem;
  }

  .alternatives--service .comparison-matrix :is(thead, tbody) {
    display: block;
  }

  .alternatives--service .comparison-matrix tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .alternatives--service .comparison-matrix :is(th, td) {
    min-width: 0;
    width: auto;
    padding: 12px 8px;
  }

  .alternatives--service .comparison-matrix thead th:first-child {
    display: none;
  }

  .alternatives--service .comparison-matrix tbody th {
    grid-column: 1 / -1;
    width: auto;
    border-bottom: 0;
    padding: 12px 0 2px;
  }

  .alternatives--service .comparison-matrix .comparison-price {
    font-size: 1.125rem;
  }

  .alternatives--service .comparison-matrix .comparison-action-spacer {
    grid-column: 1 / span 2;
  }
}
