.compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.compare-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  background: var(--paper);
  text-align: start;
}
.compare-table th, .compare-table td {
  padding: .85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: start;
}
.compare-table thead { background: var(--cream); }
.compare-table th:first-child { min-width: 8rem; }
.compare-table td p:first-child { margin-top: 0; }
.compare-variant {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-block-end: .45rem;
}
.compare-result {
  display: grid;
  gap: .4rem;
  margin-block-end: .65rem;
}
.compare-pickers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: .85rem;
}
.compare-pickers .panel h2 { margin-bottom: 0; }
.compare-search, .compare-current, .compare-options a { display: grid; gap: .35rem; }
.compare-options { margin: 0; padding: 0; list-style: none; }
.compare-options a { padding: .65rem 0; border-top: 1px solid var(--line); }
.compare-options small, .compare-current small { color: var(--muted); }
.compare-pair { min-width: 0; table-layout: fixed; }
.compare-pair th, .compare-pair td { overflow-wrap: anywhere; }
.compare-pair th:first-child { width: 23%; min-width: 0; }
.compare-scroll > h2 { padding: .7rem .85rem; margin: 0; }
.compare-photo {
  position: relative;
  width: min(100%, 7rem);
  aspect-ratio: 1;
  margin-bottom: .4rem;
}
.compare-photo img { width: 100%; height: 100%; object-fit: contain; position: relative; }
.compare-photo > .empty-photo:has(+ img:not([hidden])) { display: none; }
.compare-search input { min-width: 0; }
@media(max-width: 620px) {
  .compare-pickers { gap: .45rem; }
  .compare-pickers .panel, .compare-pair th, .compare-pair td { padding: .45rem; }
  .compare-pair { font-size: .88rem; }
}
