/* Compare floating bar */
#ai-compare-bar {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: auto;
  z-index: 99999;
  background: #1e293b;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  font-family: system-ui, -apple-system, sans-serif;
}
#ai-compare-bar[style*="flex"],
#ai-compare-bar:not([style*="none"]) {
  display: flex !important;
}
#ai-compare-count {
  font-weight: 600;
  white-space: nowrap;
}
#ai-compare-open {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
#ai-compare-open:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
#ai-compare-open:not(:disabled):hover {
  background: #1d4ed8;
}

/* Compare toggle on each card */
.aitm-compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.95);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  user-select: none;
}
.aitm-compare-toggle:hover {
  border-color: #2563eb;
  background: #fff;
}
.aitm-compare-toggle input[type="checkbox"] {
  margin: 0;
  transform: scale(1.1);
  cursor: pointer;
}

/* Mobile: full-width bar at bottom */
@media (max-width: 640px) {
  #ai-compare-bar {
    right: 8px;
    bottom: 8px;
    left: 8px;
    border-radius: 8px;
  }
}
