.compare-bar {
  position: sticky;
  top: var(--compare-top, 85px);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  margin: 0 0 1rem;
  padding: .7rem clamp(.7rem, 2vw, 1.15rem);
  color: #123b30;
  background: #f4f8f1;
  border: 1px solid #c3d5c6;
  border-radius: .75rem;
  box-shadow: 0 5px 16px #10392913;
}
.compare-bar p { margin: .15rem 0 0; font-size: .85rem; }
.compare-actions { display: flex; align-items: center; gap: .5rem; }
:is(.compare-actions, #compare-table) .button.small { min-height: 44px; }
.compare-actions button:disabled { opacity: .6; cursor: default; }
.compare-toggle, .compare-plain {
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid #a8bfb0;
  border-radius: .45rem;
  background: #fff;
  color: #124033;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.compare-toggle { margin-top: .65rem; }
.compare-toggle[aria-pressed="true"] { background: #e3f0e5; border-color: #297452; }
#compare-dialog {
  width: min(94vw, 1080px);
  max-width: none;
  max-height: 90dvh;
  padding: clamp(.85rem, 3vw, 2rem);
  color: #173c31;
  background: #fffdf6;
  border: 1px solid #c3d5c6;
  border-radius: 1rem;
  box-shadow: 0 16px 70px #02201750;
}
#compare-dialog::backdrop { background: #081d17b0; }
.compare-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: .5rem; }
.compare-dialog-head h2 { margin: 0; font-size: clamp(1.45rem, 4vw, 2.45rem); }
.compare-note { margin: .7rem 0 1rem; }
.compare-table-wrap { overflow-x: auto; border: 1px solid #c3d5c6; border-radius: .55rem; }
#compare-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: start; }
#compare-table :is(th, td) {
  min-width: 145px;
  padding: .65rem;
  vertical-align: top;
  border-inline-end: 1px solid #dce5d9;
  border-bottom: 1px solid #dce5d9;
}
#compare-table th { text-align: start; }
#compare-table thead th { background: #f0f6ec; }
#compare-table th:first-child {
  position: sticky;
  inset-inline-start: 0;
  min-width: 6rem;
  width: 8rem;
  background: #f0f6ec;
}
#compare-table img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: .35rem;
  margin-bottom: .55rem;
}
#compare-table .button { display: inline-flex; align-items: center; text-align: center; white-space: normal; }
#compare-table tr:last-child :is(th, td) { border-bottom: 0; }
#compare-table tr > :last-child { border-inline-end: 0; }
