/* 1.47 — Photos on product reviews (UIE_Reviews): the file field and the thumbnails. */

.comment-form-uie-photos {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
}

.comment-form-uie-photos label {
  font-weight: 600;
}

.comment-form-uie-photos input[type="file"] {
  max-width: 100%;
  min-height: 44px;
  padding: 8px 0;
  font: inherit;
}

.comment-form-uie-photos input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 16px;
  border: 1px solid #8b7e72;
  border-radius: 999px;
  background: #fff;
  color: #211e1b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.comment-form-uie-photos input[type="file"]:focus-visible {
  outline: 2px solid #35648f;
  outline-offset: 2px;
}

.uie-review-hint {
  color: #6b6259;
  font-size: 13px;
  line-height: 1.5;
}

.uie-review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.uie-review-photo {
  display: block;
  overflow: hidden;
  width: 88px;
  height: 88px;
  border: 1px solid #e2d9ce;
  border-radius: 12px;
  background: #f4f0ea;
}

.uie-review-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uie-review-photo:focus-visible {
  outline: 2px solid #35648f;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .uie-review-photo:hover { border-color: #9a5f45; }
}
