.comparison-main {
  max-width: 1100px;
}

.comparison-scroll {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
}

.comparison-table {
  width: 100%;
  min-width: calc(105px + var(--product-count) * 155px);
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 10px;
  border-bottom: 1px solid #cbd5e1;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.comparison-table tr:last-child td,
.comparison-table tbody tr:last-child th {
  border-bottom: none;
}

.comparison-table th:first-child {
  width: 105px;
}

.comparison-table thead th {
  background: #e8eef5;
}

.comparison-table thead img {
  height: 82px;
  margin-bottom: 6px;
}

.comparison-table tbody tr:nth-child(even) {
  background: #f6f7f9;
}

.comparison-index-photo img {
  width: calc(50% - 8px);
  height: 96px;
  object-fit: contain;
}

.comparison-filter[aria-pressed='true'] {
  background: #1e3a5f;
  border-color: #1e3a5f;
  color: #fff;
}

.comparison-filter:focus-visible,
.comparison-scroll:focus-visible {
  outline: 2px solid #1e3a5f;
  outline-offset: 3px;
}

@media (max-width: 639px) {
  .comparison-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 1px 0 #cbd5e1;
  }

  .comparison-table tbody th:first-child {
    background: #fff;
  }

  .comparison-table tbody tr:nth-child(even) th:first-child {
    background: #f6f7f9;
  }
}
