.iit-shop-motion .laptop-finder {
  grid-column: 1 / -1; min-width: 0; align-items: center; display: flex; flex-wrap: wrap; gap: 12px;
  background: linear-gradient(115deg,#edf8fd,#f5f7fb); border: 1px solid #c9e4f0;
  border-radius: 10px; margin-top: 2px; padding: 10px 12px;
}
.laptop-finder[hidden], .laptop-compare-tray[hidden] { display: none !important; }
.laptop-finder-copy { flex: 1 1 260px; min-width: 0; }
.laptop-finder-copy h2 { color: #123f66; font-size: 18px; margin: 0 0 4px; }
.laptop-finder-copy p { color: #52697e; font-size: 13px; margin: 0; line-height: 1.5; }
.laptop-finder form { display: flex; flex: 2 1 340px; align-items: end; gap: 8px; margin: 0; }
.laptop-finder label { display: grid; flex: 1; gap: 5px; min-width: 0; color: #193956; font-size: 12px; font-weight: 700; }
.laptop-finder input { min-width: 0; width: 100%; min-height: 44px; border: 1px solid #b6cede; border-radius: 9px; background: #fff; padding: 9px 12px; box-sizing: border-box; }
.laptop-finder button { min-height: 44px; white-space: nowrap; }
.iit-shop-motion button.laptop-compare-toggle { border: 1px solid #bed2e4; border-radius: 999px; color: #17486c; background: #f3f8fc; padding: 9px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.iit-shop-motion button.laptop-compare-toggle[aria-pressed="true"] { background: #ddf6ff; border-color: #0087b5; color: #005472; }
.laptop-compare-tray {
  position: fixed; z-index: 1050; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: min(1100px, calc(100% - 24px)); box-sizing: border-box; padding: 14px 18px;
  border: 1px solid #7bb8d4; border-radius: 16px; background: #f8fcff;
  box-shadow: 0 8px 35px #122b4540; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 18px;
}
.laptop-compare-tray strong { display: block; color: #123f66; font-size: 14px; margin-bottom: 8px; }
.laptop-compare-selection { display: flex; gap: 8px; }
.laptop-compare-selection button { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 220px; border: 1px solid #c8d9e5; border-radius: 8px; background: white; color: #193956; padding: 7px 9px; cursor: pointer; font-size: 12px; }
.laptop-compare-selection button span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.laptop-compare-tray-actions { display: flex; align-items: center; gap: 8px; }
.laptop-compare-clear { background: transparent; border: 1px solid #b7c9d8; border-radius: 999px; padding: 10px 12px; cursor: pointer; color: #193956; }
/* Announce selection updates without creating a visible grid cell or layout shift. */
.laptop-compare-status { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.has-laptop-comparison { padding-bottom: 150px; }
.has-laptop-comparison .shop-helper { visibility: hidden; }
dialog.laptop-compare-dialog { width: min(1160px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); box-sizing: border-box; border: 1px solid #bed7e8; border-radius: 18px; padding: 22px; color: #193956; background: #fff; overflow: auto; }
.laptop-compare-dialog::backdrop { background: rgba(9,25,44,.65); backdrop-filter: blur(3px); }
.laptop-compare-dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.laptop-compare-dialog h2 { color: #123f66; font-size: 24px; margin: 0 0 6px; }
.laptop-compare-dialog-head p { margin: 0 0 16px; color: #52697e; font-size: 14px; line-height: 1.5; }
.laptop-compare-dialog-head button { background: #eef5f9; border: 1px solid #c7dbe8; border-radius: 50%; width: 40px; height: 40px; flex: 0 0 40px; cursor: pointer; color: #123f66; font-size: 24px; }
.laptop-compare-scroll { overflow-x: auto; border: 1px solid #d4e2ed; border-radius: 10px; }
.laptop-compare-table { width: 100%; min-width: 660px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.laptop-compare-table th, .laptop-compare-table td { padding: 13px 15px; text-align: left; vertical-align: top; line-height: 1.5; border-bottom: 1px solid #dde8f0; border-right: 1px solid #dde8f0; overflow-wrap: anywhere; font-size: 14px; }
.laptop-compare-table tr > :last-child { border-right: 0; }
.laptop-compare-table tbody tr:last-child > * { border-bottom: 0; }
.laptop-compare-table tr > :first-child { width: 125px; position: sticky; left: 0; background: #edf5fa; z-index: 1; font-size: 13px; }
.laptop-compare-table thead th { background: #f8fbfd; }
.laptop-compare-table th img { width: 100%; height: 115px; object-fit: contain; display: block; margin-bottom: 10px; }
.laptop-compare-table th strong { display: block; font-size: 14px; }
.laptop-compare-table th small { display: block; font-weight: 400; color: #587186; font-size: 11px; margin: 7px 0; }
.laptop-compare-table th button { background: white; border: 1px solid #c5d8e6; border-radius: 8px; cursor: pointer; color: #496078; font-size: 12px; padding: 5px 9px; }
.laptop-compare-table tbody tr:nth-child(even) td { background: #f8fbfd; }
.laptop-compare-table td.laptop-compare-price { color: #00598a; font-weight: 800; font-size: 18px; }
.laptop-spec-missing { color: #6a7884; font-style: italic; }
.laptop-compare-cart-status { min-height: 20px; font-size: 14px; color: #006549; }
.laptop-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media(max-width: 600px) {
  .laptop-finder form { flex-basis: 100%; flex-wrap: nowrap; min-width: 0; }
  .laptop-finder label { flex: 1 1 0; }
  .laptop-finder button { width: auto; padding-inline: 12px; font-size: 13px; }
  .laptop-compare-tray { grid-template-columns: minmax(0,1fr); padding: 12px; bottom: 8px; }
  .laptop-compare-selection button { flex: 1; }
  .laptop-compare-tray-actions .primary { flex: 1; }
  .has-laptop-comparison { padding-bottom: 185px; }
  dialog.laptop-compare-dialog { padding: 14px; width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .laptop-compare-dialog h2 { font-size: 21px; }
  .laptop-compare-table tr > :first-child { width: 82px; padding: 10px 8px; font-size: 12px; }
}
.laptop-compare-limit { grid-column: 1 / -1; color: #8c3716; background: #fff2e9; font-size: 13px; padding: 8px 10px; border-radius: 8px; margin: 0; order: 2; }
.laptop-compare-limit[hidden] { display: none; }

/* Keep the title compact; the laptop finder occupies its own full-width row. */
.iit-shop-motion .quick-search-panel { grid-template-columns: max-content minmax(0, 1fr); align-items: start; gap: 10px 14px; }
.iit-shop-motion .quick-search-title { align-self: start; padding-bottom: 8px; }
.iit-shop-motion .quick-pills { min-width: 0; }
@media (max-width: 760px) {
  .iit-shop-motion .quick-search-panel { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .iit-shop-motion .quick-search-title { padding-top: 0; }
}
