:root {
  --gold: #D4AF37;
}

.custom-product-photo {
  display: block;
  width: 80%;
  height: 80%;
  max-height: 340px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.hero-bottle .custom-product-photo {
  width: 245px;
  height: 360px;
  max-height: none;
}

.admin-product-thumb .custom-product-photo {
  width: 92%;
  height: 92%;
}

.product-photo-field {
  margin-bottom: 24px;
}

.photo-preview-frame {
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 150px;
  display: grid;
  place-items: center;
  margin: 10px 0 12px;
  padding: 15px;
  color: var(--muted);
  font-size: 12px;
}

.photo-preview-frame img {
  max-height: 210px;
  max-width: 100%;
  object-fit: contain;
}

.photo-preview-frame [hidden],
.product-photo-field [hidden],
.product-category-field [hidden] {
  display: none;
}

#product-photo {
  padding: 10px;
  height: auto;
  max-width: 100%;
}

#product-photo::file-selector-button {
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 8px 12px;
  margin-right: 12px;
  cursor: pointer;
  font: inherit;
}

.photo-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin-top: 8px;
}

.photo-remove {
  color: var(--gold);
  border: 1px solid var(--border);
  background: transparent;
  padding: 8px 12px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.product-category-field {
  margin-bottom: 18px;
}

#custom-category-label {
  margin-top: 12px;
}

@media (max-width: 600px) {
  .hero-bottle .custom-product-photo {
    width: 180px;
    height: 270px;
  }
}
