/* static/css/precision_motion.css — styles for precision_motion.js (the iStock Precision wait).
 *
 * Every rule is under .rcard and keys off a class only precision_motion.js adds (.pk-pm-live,
 * .pk-pm-new, .pk-pm-mark, .pk-pm-note), so deleting the script (or this file) leaves the page
 * as it was: the app.css shimmer keeps running on .istock-pending cards.
 */

/* Pending: the GSAP wave replaces the CSS shimmer, and the chips drop their hover transition so
   the tween and the CSS transition never fight over transform. */
.rcard.istock-pending.pk-pm-live .kw-area::after { animation: none; opacity: 0; }
.rcard.pk-pm-live .kw-area .kchip { transition: none; will-change: transform, opacity; }

/* Swap: the chips Precision added get a gold mark that fades back slowly. */
.rcard .kw-area .kchip.pk-pm-new {
  transition: none;
  background: rgba(var(--gold-rgb), .24);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(var(--gold-rgb), .35);
}
.rcard .kw-area .kchip.pk-pm-mark:not(.pk-pm-new) {
  transition: background 1.4s ease, border-color 1.4s ease, box-shadow 1.4s ease;
}
[data-theme="light"] .rcard .kw-area .kchip.pk-pm-new {
  background: #f1d993;
  border-color: var(--gold);
}

/* "+N iStock search terms", beside the Precision pill for a few seconds. */
.rcard .pk-pm-note {
  display: inline-flex; align-items: center;
  margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: .6rem; font-weight: 600; white-space: nowrap; cursor: default;
  color: var(--gold); background: rgba(var(--gold-rgb), .1);
  border: 1px solid rgba(var(--gold-rgb), .35);
}
[data-theme="light"] .rcard .pk-pm-note { color: #6f560f; background: #f8eccf; }

@media (prefers-reduced-motion: reduce) {
  .rcard .kw-area .kchip.pk-pm-mark:not(.pk-pm-new) { transition: none; }
}
