/* Photographic model bases with listing-matched deterministic masks. */
.photoStage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
}

.photoStage > img,
.photoStage > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.photoStage > img { object-fit: contain; }
.photoStage > svg { pointer-events: none; filter: none; }
.photoStage .partPaint { opacity: .78; }
.photoStage.darkBase .partPaint { opacity: .72; }
.photoStage .partPaint.pattern { opacity: .91; }
.photoStage .partPaint.metallic { opacity: .92; }
.photoStage .partPaint.listingArtwork { opacity: 1; }
.photoStage .partOutline {
  fill: none;
  stroke: rgba(255, 255, 255, .58);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.photoCredit {
  position: absolute;
  left: 8px;
  bottom: 7px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(5, 9, 11, .72);
  color: #dbe4e8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
}

.previewState {
  border-color: #3f5c4a;
  background: #102117;
  color: #cfeecb;
}

.previewState strong { color: #efffec; }
.previewState.unavailable {
  border-color: #625225;
  background: #231e12;
  color: #ffe4a3;
}
.previewState.unavailable strong { color: #fff0c8; }

/* The card is an article containing a button: do not inherit browser-grey
   button backgrounds, which made the light price and detail text unreadable. */
.optionSelect {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.optionSelect:disabled { cursor: not-allowed; opacity: .55; }
.optionSelect:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
