/* RAFEES Reviews — public embed CSS */
.rfs-loading,
.rfs-empty {
  padding: 16px 0;
  color: #6b7280;
  font-size: 16px;
}
.rfs-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.rfs-summary-rating { font-size: 20px; }
.rfs-summary-avg { font-size: 20px; margin-left: 6px; color: inherit; }
.rfs-summary-count { color: #6b7280; font-size: 15px; }
.rfs-stars { letter-spacing: 1px; }
.rfs-star { color: rgba(0,0,0,0.18); }
.rfs-star-on { color: inherit; }

.rfs-list { display: flex; flex-direction: column; gap: 12px; }
.rfs-featured { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.rfs-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
}
.rfs-meta { font-size: 14px; color: #6b7280; margin-bottom: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rfs-author { color: #181818; font-weight: 600; }
.rfs-dot { color: #d1d5db; }
.rfs-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid; font-size: 12px; }
.rfs-title { font-weight: 700; font-size: 16px; margin: 4px 0; }
.rfs-body { font-size: 16px; line-height: 1.75; color: #181818; white-space: pre-wrap; }
.rfs-photos { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rfs-photo-btn { padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.rfs-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; display: block; }
.rfs-lightbox-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  cursor: zoom-out;
}
.rfs-lightbox-img {
  max-width: 95vw; max-height: 95vh;
  object-fit: contain;
  cursor: default;
  border-radius: 4px;
}
.rfs-lightbox-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 0; border-radius: 999px;
  width: 36px; height: 36px;
  font-size: 20px;
  cursor: pointer;
}
.rfs-lightbox-close:hover { background: rgba(255,255,255,0.3); }

.rfs-reply {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(42,188,179,0.06);
  border-left: 3px solid;
  border-radius: 4px;
  font-size: 15px;
}
.rfs-reply-head { font-size: 13px; color: #6b7280; margin-bottom: 4px; font-weight: 600; }
.rfs-reply-body { white-space: pre-wrap; }

.rfs-actions { display: flex; gap: 8px; margin-top: 10px; }
.rfs-btn {
  font: inherit;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #181818;
}
.rfs-btn:hover { background: #f9fafb; }
.rfs-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.rfs-btn-primary { background: #2ABCB3; color: #fff; border-color: #2ABCB3; }
.rfs-helpful.rfs-voted { background: #dcfce7; color: #166534; border-color: #86efac; }
.rfs-helpful.rfs-already-voted { color: #6b7280; }
.rfs-btn-loading { opacity: 0.8; }

.rfs-spinner {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.15em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rfsSpin 0.7s linear infinite;
  box-sizing: border-box;
}
.rfs-spinner-sm { width: 0.9em; height: 0.9em; border-width: 2px; }
@keyframes rfsSpin { to { transform: rotate(360deg); } }

.rfs-badge { font-size: 13px; color: #6b7280; margin-top: 12px; }
.rfs-badge a { color: inherit; text-decoration: underline; }

.rfs-dialog-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.rfs-dialog {
  width: 92%; max-width: 420px;
  background: #fff; border-radius: 8px;
  padding: 18px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
}
.rfs-dialog-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.rfs-dialog-help { font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.rfs-dialog-reasons { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.rfs-dialog-reason { font-size: 13px; }
.rfs-dialog-comment {
  width: 100%; min-height: 80px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font: inherit; font-size: 13px;
  resize: vertical;
}
.rfs-dialog-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

/* ===== /pages/reviews (all reviews mode) ===== */
.rfs-list-all { display: flex; flex-direction: column; gap: 16px; }
.rfs-card-product {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 6px;
}
.rfs-card-product-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.rfs-card-product-link:hover {
  color: #2ABCB3;
  border-bottom-color: #2ABCB3;
}

.rfs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 8px;
  font-size: 16px;
}
.rfs-page-btn {
  font: inherit;
  padding: 10px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #181818;
}
.rfs-page-btn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #2ABCB3;
}
.rfs-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.rfs-page-label {
  color: #6b7280;
  min-width: 80px;
  text-align: center;
}

.rfs-empty-detail {
  font-size: 11px;
  color: #b91c1c;
  margin-top: 4px;
  word-break: break-all;
}

/* Mobile: PC より 1〜2px 落として読みやすさを維持 (Phase 1 UX 改善で
   推奨された font-size スケール) */
@media (max-width: 749px) {
  .rfs-loading,
  .rfs-empty                  { font-size: 14px; }
  .rfs-summary-rating         { font-size: 18px; }
  .rfs-summary-avg            { font-size: 18px; }
  .rfs-summary-count          { font-size: 14px; }
  .rfs-meta                   { font-size: 13px; }
  .rfs-pill                   { font-size: 11px; }
  .rfs-title                  { font-size: 15px; }
  .rfs-body                   { font-size: 15px; }
  .rfs-reply                  { font-size: 14px; }
  .rfs-reply-head             { font-size: 12px; }
  .rfs-btn                    { font-size: 13px; padding: 7px 12px; }
  .rfs-badge                  { font-size: 12px; }
  .rfs-card-product           { font-size: 12px; }
  .rfs-pagination             { font-size: 14px; }
  .rfs-page-btn               { padding: 8px 14px; }
}
