/* Shared editorial table component */
body.lp-comparison-page .editorial-table-wrap {
  width: 100%;
  margin: 20px 0 22px;
  border: 1px solid rgba(34, 68, 232, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(244, 247, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 14px 34px rgba(17, 24, 69, 0.06);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

body.lp-comparison-page .editorial-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

body.lp-comparison-page .editorial-table th {
  padding: 12px 18px;
  background: var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

body.lp-comparison-page .editorial-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(214, 223, 243, 0.34);
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.45;
  white-space: normal;
  background: rgba(255, 255, 255, 0.84);
}

body.lp-comparison-page .editorial-table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 255, 0.92);
}

body.lp-comparison-page .editorial-table tr:hover td {
  background: #eef4ff;
}

body.lp-comparison-page .editorial-table td:first-child {
  min-width: 210px;
}

body.lp-comparison-page .editorial-table th:nth-child(2),
body.lp-comparison-page .editorial-table td:nth-child(2) {
  text-align: center;
}

body.lp-comparison-page .editorial-table th:nth-child(3),
body.lp-comparison-page .editorial-table td:nth-child(3) {
  text-align: center;
}

body.lp-comparison-page .editorial-table th:nth-child(5),
body.lp-comparison-page .editorial-table td:nth-child(5) {
  text-align: center;
}

body.lp-comparison-page .editorial-table-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.lp-comparison-page .editorial-table-item-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  align-items: flex-start;
}

body.lp-comparison-page .editorial-table-item-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(223, 229, 245, 0.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92);
}

body.lp-comparison-page .editorial-table-item-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

body.lp-comparison-page .editorial-table-item strong {
  display: block;
  font-size: 17px;
  line-height: 1.15;
  color: var(--gray-800);
  letter-spacing: -0.02em;
  font-weight: 600;
}

body.lp-comparison-page .editorial-table-item-meta {
  display: block;
  font-size: 11px;
  line-height: 1.1;
  color: var(--gray-500);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.lp-comparison-page .editorial-table-price {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 68, 232, 0.08);
  color: var(--blue-dark);
  font-weight: 600;
  white-space: nowrap;
  margin: 0 auto;
}

body.lp-comparison-page .editorial-table-price--free {
  background: rgba(34, 197, 94, 0.16);
  color: var(--green);
}

body.lp-comparison-page .editorial-table-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  margin: 0;
}

body.lp-comparison-page .editorial-table-status-text {
  display: inline-grid;
  grid-template-columns: 20px minmax(0, auto);
  align-items: start;
  column-gap: 6px;
  text-align: left;
  font-weight: 600;
  line-height: 1.3;
  vertical-align: middle;
}

body.lp-comparison-page .editorial-table-status-text--bad {
  color: var(--red);
}

body.lp-comparison-page .editorial-table-status-text--warn {
  color: var(--orange-700, #b45309);
}

body.lp-comparison-page .editorial-table-status-pill--good {
  color: transparent;
  background: transparent;
  border: none;
  font-size: 0;
  position: relative;
}

body.lp-comparison-page .editorial-table-status-pill--good::before {
  content: '';
  width: 18px;
  height: 18px;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 9.25L7.15 12.4L14 5.55' stroke='%2310A34A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

body.lp-comparison-page .editorial-table-status-pill--bad {
  width: 20px;
  min-width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  position: relative;
  font-size: 0;
}

body.lp-comparison-page .editorial-table-status-pill--bad::before {
  content: '';
  width: 18px;
  height: 18px;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 9H13.5' stroke='%23E12D39' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

body.lp-comparison-page .editorial-table-status-pill--warn {
  width: 20px;
  min-width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  position: relative;
  font-size: 0;
}

body.lp-comparison-page .editorial-table-status-pill--warn::before {
  content: '';
  width: 18px;
  height: 18px;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 3.5L14.5 14.5H3.5L9 3.5Z' stroke='%23B45309' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M9 7V10.2' stroke='%23B45309' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='12.6' r='0.9' fill='%23B45309'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

@media (max-width: 768px) {
  body.lp-comparison-page .editorial-table {
    min-width: 680px;
  }

  body.lp-comparison-page .editorial-table th,
  body.lp-comparison-page .editorial-table td {
    padding: 13px 14px;
  }

  body.lp-comparison-page .editorial-table-item-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }

  body.lp-comparison-page .editorial-table-item strong {
    font-size: 16px;
  }

  body.lp-comparison-page .editorial-table-item-meta {
    font-size: 10px;
  }
}
