/* Reviews admin modal */

:root {
  --review-star: #f5b301;
  --review-star-muted: #d4d8de;
}

#productReviewsModal .modal-card {
  width: min(1420px, calc(100vw - 32px));
  max-width: none;
  margin: 0 auto;
  box-sizing: border-box;
}

#productReviewsModal .modal-body {
  max-height: 72vh;
  overflow-y: auto;
  overflow-x: hidden;
}

#productReviewsModal .reviews-lv {
  font-size: 12.5px;
  overflow-x: hidden;
}

.reviews-lv .lv-row {
  align-items: stretch;
}

.reviews-lv .lv-row > div,
.reviews-lv .lv-cell-button,
.reviews-lv .lv-inline-cell,
.reviews-lv .lv-file-cell {
  min-height: 100%;
}

.reviews-inline-textarea {
  width: min(620px, calc(100vw - 48px));
  min-width: min(420px, calc(100vw - 48px));
  min-height: 168px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--admin-accent-soft-border);
  font: inherit;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  resize: vertical;
  box-sizing: border-box;
}

.reviews-inline-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--admin-accent-weak);
}

.reviews-inline-thumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

.reviews-images-cell {
  min-height: 100%;
}

.reviews-images-cell.pricing-variant-cell {
  justify-content: space-between !important;
}

.reviews-rating-option {
  font-size: 16px;
  letter-spacing: 1px;
}

.reviews-toolbar {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.reviews-stars {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.reviews-stars-filled {
  color: var(--review-star);
}

.reviews-stars-empty {
  color: var(--review-star-muted);
}

.reviews-name-picker {
  min-width: 250px;
}

.reviews-name-option {
  display: grid;
  gap: 2px;
}

.reviews-name-option-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--admin-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reviews-name-option-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text);
}

@media (max-width: 720px) {
  .reviews-inline-textarea {
    min-width: 0;
  }
}
