.favorite-choices {
  margin-block: 16px;
}

.favorite-choice {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.favorite-choice > .card {
  flex: 1;
}

.favorite-choice-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-inline: 12px;
  cursor: pointer;
}

.favorite-choice-label input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ts-navy);
}

.favorite-choice-label:has(:checked) {
  background: var(--ts-cream);
  border-radius: var(--ts-radius-sm);
  font-weight: 700;
}

.favorite-choice-label:has(:disabled) {
  color: var(--ts-muted);
  cursor: default;
}

.favorite-compare-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.favorite-compare-actions button:disabled {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: var(--ts-muted);
  cursor: default;
}

#favorite-comparison {
  margin-top: 32px;
}

#favorite-comparison > * + * {
  margin-top: 12px;
}

#favorite-comparison > a {
  display: inline-block;
}

.favorite-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-radius);
}

.favorite-table-scroll:focus-visible {
  outline: 2px solid var(--ts-navy);
  outline-offset: 2px;
}

.favorite-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.favorite-comparison-table th,
.favorite-comparison-table td {
  padding: 12px;
  border-bottom: 1px solid var(--ts-line);
  vertical-align: top;
}

.favorite-comparison-table td,
.favorite-comparison-table th[scope="col"]:not(:first-child) {
  min-width: 10rem;
  border-left: 1px solid var(--ts-line);
  overflow-wrap: anywhere;
}

.favorite-comparison-table th {
  background: var(--ts-cream);
  color: var(--ts-navy);
}

.favorite-comparison-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 7rem;
  min-width: 7rem;
  box-shadow: 1px 0 var(--ts-line);
}

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

.favorite-achievements {
  white-space: pre-line;
}

.favorite-price-note,
#favorite-comparison-hint {
  color: var(--ts-muted);
  font-size: 14px;
}
