.commerce-product-art.has-product-detail-photo {
  aspect-ratio: 4 / 3;
}

.commerce-product-art.has-product-detail-photo > .product-detail-photo-secondary {
  object-fit: cover;
  object-position: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.commerce-product-art.is-showing-product-detail > .product-detail-photo-secondary {
  opacity: 1;
}

.product-photo-controls {
  position: absolute;
  inset-inline-end: 12px;
  inset-block-end: 12px;
  display: grid;
  justify-items: end;
  gap: 5px;
  z-index: 1;
}

.product-photo-buttons {
  display: inline-flex;
  background: var(--commerce-cream, #f8f5ee);
  border: 1px solid #b99655;
  border-radius: 4px;
  padding: 2px;
}

.product-photo-buttons button {
  min-block-size: 44px;
  padding-inline: 12px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--commerce-blue);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.product-photo-buttons button[aria-pressed="true"] {
  background: var(--commerce-blue);
  color: white;
}

.product-photo-buttons button:focus-visible {
  outline: 2px solid #b99655;
  outline-offset: -3px;
}

.product-photo-status:not(:empty) {
  border-radius: 3px;
  padding: 5px 8px;
  background: var(--commerce-cream, #f8f5ee);
  color: var(--commerce-navy);
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .commerce-product-art.has-product-detail-photo > .product-detail-photo-secondary {
    transition: none;
  }
}
