.studio-variant {
  margin-top: .7rem;
}

.studio-variant[hidden] {
  display: none;
}

.studio-variant label {
  display: block;
}

.product-variant-options {
  margin: .95rem 0 1.35rem;
}

.product-variant-options h2 {
  margin: 0 0 .65rem;
  font-size: 1.15rem;
}

.product-variant-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.9rem), 1fr));
  gap: .5rem;
}

.product-variant-choice {
  display: grid;
  grid-template-rows: 7.1rem auto;
  overflow: hidden;
  border: 1px solid #e1d8e5;
  border-radius: .5rem;
  background: #faf7fb;
  color: #2c2032;
  text-decoration: none;
}

.product-variant-choice:hover {
  border-color: #8c6a97;
  text-decoration: underline;
}

.product-variant-photo {
  display: grid;
  height: 7.1rem;
  place-items: center;
  background: white;
}

.product-variant-frame {
  position: relative;
  width: min(96%, calc(var(--photo-ratio) * 7rem));
  aspect-ratio: var(--photo-ratio);
  overflow: hidden;
}

.product-variant-frame img {
  position: absolute;
  inset: var(--image-top) auto auto var(--image-left);
  width: var(--image-width);
  max-width: none;
  height: auto;
}

.product-variant-title {
  display: block;
  min-height: 2.8rem;
  padding: .46rem .5rem;
  border-top: 1px solid #e9e1ea;
  font-size: .8rem;
  font-weight: 680;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-variant-title small {
  display: block;
  margin-top: .18rem;
  color: #64566b;
  font-weight: 500;
}
