/* 喵喵宠物店 · 陪玩详情玩家评价 */
.review-panel {
  margin-top: 4px;
  padding: 15px;
  border: 3px solid #493c58;
  border-radius: 19px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 216, 116, .5) 0 42px, transparent 43px),
    linear-gradient(145deg, #fff8e8, #fff 56%, #f5ecff);
  box-shadow: 0 7px 0 rgba(73, 60, 88, .11);
}
.review-panel[hidden] { display: none; }
.review-head,
.review-form-head,
.review-item-head,
.review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.review-kicker {
  margin: 0 0 2px;
  color: #a05a75;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}
.review-head h3 {
  margin: 0;
  color: #493c58;
  font-size: 20px;
  line-height: 1.15;
}
.review-hint {
  margin: 3px 0 0;
  color: #806f89;
  font-size: 10px;
  line-height: 1.45;
}
.review-summary {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 2px solid #493c58;
  border-radius: 999px;
  background: #dff9f2;
  color: #493c58;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.review-list {
  display: grid;
  gap: 8px;
  max-height: 255px;
  margin: 12px 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.review-empty {
  margin: 0;
  padding: 15px 12px;
  border: 2px dashed rgba(73, 60, 88, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  color: #806f89;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}
.review-item {
  position: relative;
  padding: 11px 12px;
  border: 2px solid #493c58;
  border-radius: 15px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 0 rgba(73, 60, 88, .08);
}
.review-item.is-mine {
  background: linear-gradient(135deg, #fff9d9, #fff);
}
.review-author {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #493c58;
  font-size: 12px;
  font-weight: 900;
}
.review-author b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-mine-tag {
  padding: 2px 6px;
  border-radius: 999px;
  background: #ffd2dc;
  color: #a05a75;
  font-size: 8px;
  white-space: nowrap;
}
.review-time {
  flex: 0 0 auto;
  color: #9b8aa2;
  font-size: 9px;
  white-space: nowrap;
}
.review-edited {
  margin-left: 4px;
  color: #a05a75;
}
.review-likes {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 5px 0 7px;
  color: #493c58;
  font-size: 14px;
  letter-spacing: -1px;
}
.review-likes b {
  margin-left: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff0b8;
  font-size: 9px;
  letter-spacing: 0;
}
.review-content {
  margin: 0;
  color: #66586d;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.review-form {
  padding: 12px;
  border: 2px dashed rgba(73, 60, 88, .3);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
}
.review-form-head {
  align-items: flex-start;
}
.review-form-head > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.review-form-head b {
  color: #493c58;
  font-size: 12px;
}
.review-form-head small {
  max-width: 180px;
  color: #9b8aa2;
  font-size: 8px;
  line-height: 1.35;
  text-align: right;
}
#petReviewerBadge {
  max-width: 120px;
  overflow: hidden;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eafbf7;
  color: #408b7e;
  font-size: 8px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-rating-field {
  min-width: 0;
  margin: 11px 0 9px;
  padding: 0;
  border: 0;
}
.review-rating-field legend,
.review-content-field > span {
  padding: 0;
  color: #806f89;
  font-size: 9px;
  font-weight: 900;
}
.review-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}
.review-rating button {
  width: 37px;
  height: 37px;
  padding: 0;
  border: 2px solid #d7ccdc;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  filter: grayscale(1);
  font-size: 18px;
  line-height: 1;
  opacity: .38;
  transform: translateY(0);
  transition: transform .15s ease, opacity .15s ease, border-color .15s ease, background .15s ease;
}
.review-rating button:hover,
.review-rating button:focus-visible {
  border-color: #493c58;
  opacity: .72;
  outline: none;
  transform: translateY(-2px);
}
.review-rating button.is-active {
  border-color: #493c58;
  background: #fff0b8;
  box-shadow: 0 3px 0 rgba(73, 60, 88, .12);
  filter: none;
  opacity: 1;
  transform: translateY(-2px) scale(1.04);
}
.review-rating-text {
  display: block;
  min-height: 15px;
  margin-top: 5px;
  color: #a05a75;
  font-size: 9px;
  font-weight: 900;
}
.review-content-field {
  position: relative;
  display: block;
}
.review-content-field textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  margin-top: 5px;
  padding: 10px 45px 10px 10px;
  resize: vertical;
  border: 2px solid #d7ccdc;
  border-radius: 13px;
  outline: none;
  background: #fff;
  color: #493c58;
  font: inherit;
  font-size: 11px;
  line-height: 1.6;
}
.review-content-field textarea:focus {
  border-color: #493c58;
  box-shadow: 0 0 0 3px rgba(255, 216, 116, .35);
}
.review-content-field > small {
  position: absolute;
  right: 8px;
  bottom: 7px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #9b8aa2;
  font-size: 8px;
}
.review-anonymous {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 9px 10px;
  border: 2px solid #e3dbe7;
  border-radius: 12px;
  background: #faf7fc;
  cursor: pointer;
}
.review-anonymous input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.review-checkmark {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid #493c58;
  border-radius: 7px;
  background: #fff;
}
.review-anonymous input:checked + .review-checkmark {
  background: #ffd2dc;
}
.review-anonymous input:checked + .review-checkmark::after {
  content: "✓";
  position: absolute;
  inset: -2px 0 0;
  color: #493c58;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}
.review-anonymous input:focus-visible + .review-checkmark {
  box-shadow: 0 0 0 3px rgba(255, 216, 116, .55);
}
.review-anonymous > span:last-child {
  min-width: 0;
}
.review-anonymous b,
.review-anonymous small {
  display: block;
}
.review-anonymous b {
  color: #493c58;
  font-size: 10px;
}
.review-anonymous small {
  margin-top: 2px;
  color: #9b8aa2;
  font-size: 8px;
  line-height: 1.35;
}
.review-actions {
  justify-content: flex-start;
}
.review-actions button {
  border: 2px solid #493c58;
  border-radius: 12px;
  padding: 9px 13px;
  color: #493c58;
  font-weight: 900;
  cursor: pointer;
}
.review-submit {
  background: #ffd874;
  box-shadow: 0 4px 0 rgba(73, 60, 88, .13);
}
.review-cancel {
  background: #fff;
}
.review-form-status {
  min-height: 14px;
  margin: 8px 0 0;
  color: #a05a75;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.45;
}
.review-form-status.is-success { color: #408b7e; }
.review-form-status.is-error { color: #c75374; }
@media (max-width: 720px) {
  .review-panel { padding: 13px; border-width: 2px; }
  .review-list { max-height: 310px; }
  .review-form-head { display: block; }
  .review-form-head small { display: block; max-width: none; margin-top: 4px; text-align: left; }
  .review-rating button { width: 39px; height: 39px; }
}
@media (prefers-reduced-motion: reduce) {
  .review-rating button { transition: none; }
}