/* Amazon one-click bundle modal - last-run restore bar at the top of step one. */

/* 最近一次生成结果恢复条（第一步顶部）：批量生成结束（含失败）后快照写入
   localStorage；误关弹窗重开时从这里一键跳回上次结果视图。失败态红调、
   全完成绿调，与结果行状态色一致。 */
.amazon-bundle-lastrun {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255,116,100,.32);
  border-radius: 8px;
  background: rgba(255,116,100,.06);
}
.amazon-bundle-lastrun[hidden] { display: none; }
.amazon-bundle-lastrun.amazon-bundle-lastrun-complete {
  border-color: rgba(113,194,154,.32);
  background: rgba(113,194,154,.06);
}
.amazon-bundle-lastrun-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.amazon-bundle-lastrun-text strong { color: var(--amazon-text); font-size: 12px; }
.amazon-bundle-lastrun-text small { color: var(--amazon-muted); font-size: 11px; }
.amazon-bundle-lastrun-open {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--amazon-action);
  color: #14181a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s ease;
}
.amazon-bundle-lastrun-open:hover { opacity: .88; }
.amazon-bundle-lastrun-clear {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--amazon-line);
  border-radius: 999px;
  background: transparent;
  color: var(--amazon-dim);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.amazon-bundle-lastrun-clear:hover { color: var(--amazon-text); border-color: var(--amazon-line-strong); }

