/* GoedOnline — comparison table for "Why GoedOnline". */

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-surface);
  border-radius: var(--r-xl);
  overflow: clip;
  border: 1px solid var(--color-line);
  box-shadow: var(--sh-md);
  font-size: var(--fs-sm);
}

.compare th,
.compare td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--color-line-soft);
  vertical-align: middle;
}

.compare thead th {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--fs-sm);
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-line);
  color: var(--color-ink);
  white-space: nowrap;
}

.compare thead th.is-highlight {
  background: var(--color-primary);
  color: #fff;
  position: relative;
}

.compare thead th.is-highlight::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 3px;
  background: var(--color-cta);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare tbody th {
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  width: 28%;
}

.compare td.is-highlight {
  background: rgba(30, 91, 255, .04);
  color: var(--color-ink);
  font-weight: var(--weight-semibold);
}

.compare__check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-success);
  font-weight: var(--weight-semibold);
}

.compare__cross {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-mute);
}

@media (max-width: 720px) {
  .compare {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: none;
  }

  .compare th,
  .compare td {
    white-space: normal;
  }
}
