/* Left-hand selection column, fixed right-hand shortlist, modal comparison. */
.compare-select-cell {
  width: 58px;
  min-width: 58px;
  text-align: center !important;
  padding: 12px 10px !important;
}
[data-compare-checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #1766e8;
  vertical-align: middle;
}
.spec tr:has([data-compare-checkbox]:checked) td {
  background: #eaf3ff;
}
[data-compare-checkbox]:focus-visible,
.compare-dock button:focus-visible {
  outline: 3px solid #1974ed;
  outline-offset: 3px;
}
.compare-dock {
  position: fixed;
  right: 18px;
  top: 36%;
  z-index: 110;
  width: 278px;
  max-width: calc(100vw - 28px);
  border: 1px solid #d8e3ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 42px #061a2e26;
  color: #102942;
  font-size: 14px;
}
.compare-dock[hidden],
#compareDockBody[hidden] {
  display: none;
}
.compare-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: #0c2945;
  color: #fff;
  border: 0;
  border-radius: 13px;
  font-weight: 700;
  cursor: pointer;
}
.compare-launcher[aria-expanded="true"] {
  border-radius: 13px 13px 0 0;
}
.compare-launcher[aria-expanded="false"] {
  width: auto;
  gap: 16px;
  margin-left: auto;
}
.compare-dock:has([aria-expanded="false"]) {
  width: auto;
}
#compareDockBody {
  padding: 16px;
}
.compare-dock header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.compare-dock header button,
.compare-picked button {
  background: transparent;
  color: #426282;
  border: 0;
  cursor: pointer;
  padding: 5px 8px;
}
.compare-picked {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  max-height: 35vh;
  overflow-y: auto;
}
.compare-picked li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #e6edf5;
  padding: 8px 0;
}
.compare-picked span {
  overflow-wrap: anywhere;
  font-family: ui-monospace, monospace;
  font-weight: 600;
}
.compare-picked button {
  font-size: 22px;
  flex-shrink: 0;
  min-width: 32px;
  min-height: 32px;
}
.compare-empty,
.compare-feedback {
  font-size: 12px;
  line-height: 1.65;
  color: #52708c;
}
.compare-feedback {
  min-height: 20px;
  margin: 0 0 12px;
}
.compare-dock-actions {
  display: flex;
  gap: 8px;
}
.compare-dock-actions [data-view] {
  flex: 1;
}
.compare-dialog {
  position: fixed;
  inset: 0;
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 24px;
  border: 1px solid #d8e3ef;
  border-radius: 18px;
  color: #102942;
  background: #fff;
  box-shadow: 0 28px 90px #061a2e40;
}
.compare-dialog::backdrop {
  background: #061a2e88;
}
body:has(.compare-dialog[open]) {
  overflow: hidden;
}
.compare-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.compare-dialog h2 {
  font-size: 22px;
  margin: 0 0 6px;
}
.compare-dialog header p {
  margin: 0;
  color: #58728d;
  font-size: 13px;
  line-height: 1.7;
}
.compare-dialog [data-close] {
  flex-shrink: 0;
}
.compare-dialog .table-scroll {
  max-height: 65dvh;
  overflow: auto;
}
.compare-dialog .compare-table {
  margin: 0;
  min-width: 650px;
}
.compare-dialog .compare-table th,
.compare-dialog .compare-table td {
  overflow-wrap: anywhere;
}
.compare-dialog .compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
@media (max-width: 640px) {
  .compare-dock {
    top: auto;
    bottom: 62px;
    right: 14px;
  }
  .compare-dialog {
    width: calc(100vw - 20px);
    padding: 16px;
    border-radius: 12px;
    max-height: calc(100dvh - 24px);
  }
  .compare-dialog > header {
    gap: 8px;
  }
  .compare-dialog h2 {
    font-size: 18px;
  }
}

.compare-dialog,
.compare-dock,
.compare-dock * {
  box-sizing: border-box;
}
.compare-dialog .compare-table tbody th {
  text-align: left;
}
.compare-dialog .compare-table thead a {
  color: #80c3ff;
}
