.tl-product-compare {
  min-width: 0;
}

.tl-product-compare [data-tl-product-compare] {
  min-height: 44px;
}

.tl-product-compare__view {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tl-product-compare__view[hidden] {
  display: none;
}

.tl-comparison-page {
  --tl-compare-accent: #e63b4f;
  --tl-compare-accent-dark: #c92b3e;
  --tl-compare-border: #e3e6e9;
  --tl-compare-ink: #20242b;
  --tl-compare-muted: #68707d;
  color: var(--tl-compare-ink);
}

.tl-comparison-page__header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--tl-compare-muted);
}

.tl-comparison-page__header p {
  margin: 0;
}

.tl-comparison-page__empty {
  padding: 48px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--tl-compare-border);
  border-radius: 8px;
}

.tl-comparison-page__table-wrap {
  max-width: 100%;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--tl-compare-border);
  border-radius: 8px;
}

.tl-comparison-page__table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.tl-comparison-page__table th,
.tl-comparison-page__table td {
  min-width: 156px;
  padding: 16px;
  vertical-align: top;
  border-right: 1px solid var(--tl-compare-border);
  border-bottom: 1px solid var(--tl-compare-border);
}

.tl-comparison-page__table tr > :last-child {
  border-right: 0;
}

.tl-comparison-page__table tbody tr:last-child > * {
  border-bottom: 0;
}

.tl-comparison-page__feature-heading,
.tl-comparison-page__table tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 180px;
  min-width: 180px;
  color: var(--tl-compare-muted);
  background: #f6f7f8;
}

.tl-comparison-product {
  display: grid;
  gap: 10px;
  min-width: 0;
  font-weight: 400;
}

.tl-comparison-product__image {
  display: grid;
  place-items: center;
  min-height: 160px;
}

.tl-comparison-product__image img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.tl-comparison-product__brand,
.tl-comparison-product__availability,
.tl-comparison-product__regular-price {
  margin: 0;
  font-size: 0.75rem;
  color: var(--tl-compare-muted);
}

.tl-comparison-product h2 {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.tl-comparison-product__price {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.tl-comparison-product__regular-price {
  text-decoration: line-through;
}

.tl-comparison-product .btn,
.tl-comparison-product__remove {
  width: 100%;
  min-height: 44px;
}

.tl-comparison-product__remove {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  color: var(--tl-compare-muted);
  background: #fff;
  border: 1px solid var(--tl-compare-border);
  border-radius: 8px;
}

.tl-comparison-product__remove:hover,
.tl-comparison-product__remove:focus-visible {
  color: var(--tl-compare-ink);
  border-color: var(--tl-compare-ink);
}

@media (max-width: 767.98px) {
  .tl-comparison-page__table-wrap {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .tl-comparison-page__table th,
  .tl-comparison-page__table td {
    padding: 12px;
  }

  .tl-comparison-page__feature-heading,
  .tl-comparison-page__table tbody th {
    width: 132px;
    min-width: 132px;
  }
}
