/* ==========================================================================
   Comparison table
   ========================================================================== */
.fp-comparison {
  position: relative;
  overflow: hidden;
  padding: var(--fp-space-section) 0;
  background-image:
    radial-gradient(circle at 88% 20%, rgba(var(--fp-accent-rgb), 0.08) 0%, rgba(var(--fp-accent-rgb), 0) 38%),
    url('../images/bg-comparison.png');
  background-color: var(--fp-white);
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.fp-comparison__inner {
  position: relative;
  z-index: 1;
}
.fp-comparison__intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--fp-space-md);
}
.fp-comparison__intro .fp-section-title {
  margin-bottom: 0;
}
.fp-comparison__scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: var(--fp-radius);
  border: 1px solid var(--fp-border);
  background: var(--fp-white);
  box-shadow: 0 20px 44px rgba(var(--fp-shadow-rgb), 0.08);
}
.fp-comparison__table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.fp-comparison__table th,
.fp-comparison__table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--fp-border);
  white-space: nowrap;
}
.fp-comparison__table thead th {
  background: var(--fp-bg);
  font-weight: 700;
  color: var(--fp-text);
}
.fp-comparison__table tbody th {
  font-weight: 600;
  color: var(--fp-text);
}
.fp-comparison__table tbody tr:last-child td,
.fp-comparison__table tbody tr:last-child th {
  border-bottom: none;
}
.fp-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.fp-badge--good {
  background: rgba(var(--fp-accent-rgb), 0.18);
  color: var(--fp-brand-strong);
}
.fp-badge--neutral {
  background: var(--fp-bg);
  color: var(--fp-text-muted);
}
.fp-badge--warn {
  background: rgba(217, 119, 6, 0.14);
  color: #92400e;
}
.fp-comparison__note {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--fp-text-muted);
}
.fp-comparison__cta {
  margin-top: var(--fp-space-md);
  text-align: center;
}

@media (max-width: 780px) {
  .fp-comparison__scroll {
    margin-right: calc(-1 * var(--fp-gutter));
    padding-bottom: 8px;
    border-right: 0;
    border-radius: var(--fp-radius) 0 0 var(--fp-radius);
  }

  .fp-comparison__table {
    min-width: 720px;
  }

  .fp-comparison__table th,
  .fp-comparison__table td {
    padding: 14px 16px;
  }
}
