.rv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  align-items: stretch;
  gap: 22px;
}
.rv-card {
  min-width: 0;
  background: var(--white);
  padding: 22px;
  border-radius: 20px;
}
.rv-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.rv-card-head time {
  color: var(--muted);
  font-size: 13px;
}
.rv-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-left: auto;
}
.rv-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  padding: 2px 0;
  min-height: 26px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
}
.rv-action .ui-icon {
  width: 15px;
  height: 15px;
}
.rv-action:hover {
  color: var(--blue);
}
.rv-action:disabled {
  cursor: default;
  color: var(--muted);
}
.rv-card-main {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.rv-card-main-store {
  display: block;
}
.rv-store-heading .rv-stars {
  margin: 10px 0 12px;
}
.rv-product-image {
  display: block;
  min-width: 0;
}
.rv-product-image img {
  width: 110px;
  height: 166px;
  object-fit: contain;
}
.rv-review-content {
  min-width: 0;
}
.rv-product-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}
.rv-stars {
  display: flex;
  gap: 3px;
  margin: 10px 0 12px;
  width: max-content;
}
.rv-star {
  width: 25px;
  height: 25px;
  fill: #ffc400;
}
.rv-star-empty {
  fill: var(--inner);
}
.rv-author {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.rv-review-body {
  display: flow-root;
}
.rv-text {
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.rv-review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.rv-photo {
  display: block;
  border: 0;
  padding: 0;
  background: var(--inner);
  border-radius: 10px;
  overflow: hidden;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.rv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rv-photo:hover {
  box-shadow: 0 0 0 2px #cad8ee;
}
.rv-answers {
  margin-top: 20px;
}
.rv-answers summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}
.rv-answers summary::-webkit-details-marker {
  display: none;
}
.rv-answers summary .ui-icon {
  width: 16px;
  height: 16px;
}
.rv-answers[open] summary {
  color: var(--blue);
}
.rv-answers[open] summary .ui-icon {
  transform: rotate(180deg);
}
.rv-answer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
  padding: 20px;
  border-radius: 18px;
  background: var(--inner);
}
.rv-answer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
}
.rv-answer-content {
  min-width: 0;
}
.rv-answer-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.rv-answer-head strong {
  font-size: 16px;
}
.rv-answer-head time {
  color: var(--muted);
  font-size: 13px;
}
.rv-answer-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.rv-form-modal {
  max-width: 620px;
}
.rv-form-modal .modal-head {
  align-items: flex-start;
}
.rv-form-modal h2 {
  min-width: 0;
  font-size: 24px;
}
.rv-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.rv-form-scroll {
  min-height: 0;
  padding-bottom: 0;
}
.rv-form-context {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--bg);
}
.rv-form-context img {
  width: 48px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}
.rv-form-context > div {
  min-width: 0;
}
.rv-form-context p {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}
.rv-form-context .muted {
  display: block;
  font-size: 13px;
  margin-top: 4px;
}
.rv-field-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.rv-field-heading label {
  font-size: 16px;
}
.rv-field-heading .muted {
  font-size: 12px;
  white-space: nowrap;
}
.rv-attachments {
  margin-top: 18px;
}
.rv-attach {
  height: 40px;
  font-size: 14px;
  padding: 0 16px;
  gap: 9px;
}
.rv-attach .ui-icon {
  width: 18px;
  height: 18px;
}
.rv-attach:disabled {
  cursor: default;
  opacity: 0.6;
}
.rv-file-hint {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.5;
}
.rv-draft-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 3px 4px;
}
.rv-draft-photos:empty {
  display: none;
}
.rv-draft-photo {
  position: relative;
  width: 80px;
}
.rv-draft-photo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--inner);
}
.rv-draft-photo span {
  display: block;
  max-width: 80px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.rv-remove-photo {
  position: absolute;
  top: -7px;
  right: -7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--gray);
  padding: 3px;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
}
.rv-remove-photo .ui-icon {
  width: 15px;
  height: 15px;
}
.rv-remove-photo:hover {
  color: var(--blue);
}
.rv-form-error {
  margin-top: 14px;
}
.rv-form-foot {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
}
.rv-form-foot .btn {
  min-width: 130px;
}
.rv-viewer {
  max-width: 920px;
  height: min(760px, calc(100dvh - 48px));
  -webkit-user-select: none;
  user-select: none;
}
.rv-viewer .modal-head {
  padding: 20px 24px;
}
.rv-viewer h2 {
  font-size: 18px;
}
.rv-viewer-stage {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  gap: 16px;
  flex: 1;
  min-height: 0;
  padding: 0 24px;
}
.rv-viewer-image {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg);
}
.rv-viewer-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.rv-viewer-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgb(30 71 150 / 22%);
}
.rv-viewer-arrow .ui-icon {
  width: 28px;
  height: 28px;
}
.rv-viewer-arrow:hover:not(:disabled) {
  background: #163879;
}
.rv-viewer-arrow:disabled {
  background: var(--inner);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
}
.rv-viewer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 14px 24px 20px;
  font-size: 14px;
}
@media (max-width: 599px) {
  .rv-grid {
    gap: 18px;
  }
  .rv-card {
    padding: 18px;
    border-radius: 18px;
  }
  .rv-card-head {
    gap: 8px 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .rv-actions {
    margin-left: 0;
    gap: 14px;
  }
  .rv-action {
    font-size: 13px;
  }
  .rv-card-main {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }
  .rv-product-image img {
    width: 76px;
    height: 112px;
  }
  .rv-review-content {
    display: contents;
  }
  .rv-product-heading {
    min-width: 0;
  }
  .rv-product-title {
    font-size: 17px;
  }
  .rv-stars {
    margin: 8px 0 0;
    gap: 2px;
  }
  .rv-star {
    width: 23px;
    height: 23px;
  }
  .rv-review-details {
    grid-column: 1/-1;
  }
  .rv-author {
    margin-bottom: 9px;
  }
  .rv-answer {
    padding: 16px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }
  .rv-answer-logo {
    width: 36px;
    height: 36px;
  }
  .rv-answer-content {
    display: contents;
  }
  .rv-answer-head {
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    margin: 0;
  }
  .rv-answer .rv-text,
  .rv-answer-photos {
    grid-column: 1/-1;
  }
  .rv-answer-photos {
    margin-top: 0;
  }
  .rv-form-context {
    padding: 12px;
    margin-bottom: 18px;
    gap: 10px;
  }
  .rv-form-modal .modal-head {
    gap: 12px;
  }
  .rv-form-modal h2 {
    font-size: 22px;
  }
  .rv-form-foot .btn {
    min-width: 110px;
  }
  .rv-viewer {
    height: min(760px, calc(100dvh - 24px));
  }
  .rv-viewer .modal-head {
    padding: 16px;
  }
  .rv-viewer-stage {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 0 12px;
  }
  .rv-viewer-arrow {
    width: 44px;
    height: 44px;
  }
  .rv-viewer-arrow .ui-icon {
    width: 24px;
    height: 24px;
  }
}
@media (max-width: 359px) {
  .rv-photo {
    width: 72px;
    height: 72px;
  }
}
