/* Shared status colors for Amazon product link states. */
.link-status {
  font-weight: 700;
}

.link-status-linked {
  color: #257942;
}

.link-status-derived {
  color: #48c774;
}

.link-status-manual {
  color: #1d72aa;
}

.link-status-pending {
  color: #b8860b;
}

.link-status-rejected {
  color: #cc0f35;
}

.link-status-default {
  color: inherit;
}

/* Keep product images constrained in detail rows. */
.amazon-detail-image {
  max-width: 220px;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.amazon-detail-image-wrap {
  max-width: 220px;
  max-height: 220px;
  overflow: hidden;
}

/* Loading state for async results swap. */
#async-results.is-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Image zoom modal overlay. */
.img-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.82);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.img-zoom-overlay.is-active {
  display: flex;
}

.img-zoom-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: grab;
  transform-origin: center center;
  transition: transform 0.1s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Clickable thumbnail hint. */
.zoomable-image {
  cursor: zoom-in;
}

/* Marketplace-specific colors for triage source toggle tabs. */
.tabs.is-toggle li.triage-tab-amazon.is-active a {
  background-color: #e47911;
  border-color: #e47911;
  color: #fff;
}

.tabs.is-toggle li.triage-tab-ebay.is-active a {
  background-color: #0064d2;
  border-color: #0064d2;
  color: #fff;
}

/* Sticky product title on detail pages. */
.sticky-title {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  padding: 0.75rem 0;
  border-bottom: 1px solid #dbdbdb;
  margin: -0.75rem 0 0.75rem;
}
