.tpc-pps-save-wrap {
  display: inline-flex;
  margin: 0.5rem 0;
}

.tpc-pps-save,
.tpc-pps-image-save {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.08);
  color: #2c2c2c;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.35rem;
  line-height: 1;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.tpc-pps-save:hover,
.tpc-pps-save:focus-visible,
.tpc-pps-image-save:hover,
.tpc-pps-image-save:focus-visible {
  border-color: rgba(189, 8, 28, 0.55);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.14);
  color: #8c0718;
  outline: 2px solid transparent;
  transform: translateY(-1px);
}

.tpc-pps-image-host {
  position: relative;
}

.tpc-pps-image-save {
  opacity: 0;
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  z-index: 5;
}

.tpc-pps-image-host:hover .tpc-pps-image-save,
.tpc-pps-image-host:focus-within .tpc-pps-image-save,
.tpc-pps-image-save:focus-visible {
  opacity: 1;
}

img.tpc-pps-arrival-highlight {
  animation: tpc-pps-arrival 3s ease-out;
  outline: 3px solid rgba(189, 8, 28, 0.55);
  outline-offset: 5px;
}

@keyframes tpc-pps-arrival {
  0%, 35% { box-shadow: 0 0 0 8px rgba(189, 8, 28, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(189, 8, 28, 0); }
}

@media (hover: none), (pointer: coarse) {
  .tpc-pps-image-save {
    opacity: 0.94;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tpc-pps-save,
  .tpc-pps-image-save,
  img.tpc-pps-arrival-highlight {
    animation: none;
    transition: none;
  }
}
