/* Conventional Laftel reviews; the fixed rating is display content, not a control. */
.rv-item .rname { max-width: 65%; min-width: 0; overflow-wrap: anywhere; }
.rv-item .rmsg { white-space: pre-wrap; }
.rv-write { min-height: 56px; }
.rv-write .rv-write-stars { color: #aaa1c3; }
.rv-write span:last-child, .rv-status { color: #b0b0bf; }
.rv-write:focus-visible { outline: 2px solid #dfbeff; outline-offset: 4px; }
.rv-status { padding: 20px 2px; font-size: 14px; line-height: 1.7; }
.rv-bar i { min-height: 0; }
.rv-num, .rv-cnt, .rscore { font-variant-numeric: tabular-nums; }

.review-sheet {
  position: fixed; inset: auto 0 var(--review-viewport-bottom, 0); margin: 0 auto;
  width: 100%; max-width: 430px; max-height: min(92dvh, calc(var(--review-viewport-height, 100dvh) - 16px));
  padding: 0; border: 0; border-radius: 16px 16px 0 0; background: #141414; color: #f4f4f7;
  overflow: hidden; overscroll-behavior: contain; color-scheme: dark;
  scrollbar-color: #5a526b #141414;
}
.review-sheet[open] { display: flex; flex-direction: column; }
.review-sheet::backdrop { background: #0009; }
.review-sheet ::selection { background: #c8bcff; color: #141414; }
.review-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.review-sheet-header { flex: none; display: flex; justify-content: flex-end; padding: 12px 12px 0; }
.review-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #f4f4f7; border-radius: 4px; }
.review-close:hover { background: #262626; }
.review-sheet-body { padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.review-fixed-rating { text-align: center; margin: 0 0 28px; }
.review-rating-number { font-size: 36px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.review-rating-caption { margin-top: 8px; color: #b9b9c3; font-size: 14px; line-height: 1.5; }
.review-rating-stars { display: block; width: 224px; max-width: 100%; height: auto; margin: 20px auto 0; fill: #9e8cff; }
#review-form { display: grid; gap: 20px; }
.review-name-field { display: grid; gap: 8px; color: #d6d6de; font-size: 14px; line-height: 1.5; }
#review-name, #review-message { width: 100%; min-width: 0; color: #f4f4f7; background: transparent; font: inherit; font-size: 16px; line-height: 1.6; caret-color: #c8bcff; }
#review-name { min-height: 48px; padding: 11px 12px; border: 1px solid #505058; border-radius: 4px; }
#review-name::placeholder, #review-message::placeholder { color: #a8a8b3; opacity: 1; }
.review-message-field { padding: 14px 12px 12px; border: 1px solid #505058; border-radius: 4px; }
#review-message { display: block; min-height: 104px; padding: 0; border: 0; resize: vertical; }
.review-message-meta { display: flex; justify-content: flex-start; margin-top: 12px; color: #b9b9c3; font-size: 13px; font-variant-numeric: tabular-nums; }
.review-message-field:focus-within { outline: 2px solid #c8bcff; outline-offset: 3px; }
#review-message:focus { outline: 0; }
.review-sheet button:focus-visible, #review-name:focus-visible { outline: 2px solid #c8bcff; outline-offset: 3px; }
.review-submit { width: 100%; min-height: 48px; padding: 12px; border-radius: 4px; background: #6a52f2; color: #fff; font-size: 16px; font-weight: 750; }
.review-submit:hover:not(:disabled) { background: #5c43df; }
.review-submit:active:not(:disabled) { background: #5138d1; }
.review-submit:disabled { background: #333336; color: #a8a8b3; cursor: default; }
.review-form-status { color: #ffb9b3; font-size: 14px; line-height: 1.6; }
.review-form-status[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .review-sheet[open] { animation: review-sheet-in 220ms cubic-bezier(.16,1,.3,1); }
  @keyframes review-sheet-in { from { transform: translateY(24px); opacity: .5; } }
}
