/**
 * User Review Reply Plugin - フロントエンドスタイル
 * 
 * レビュー一覧、入力フォーム、返信機能のスタイルを定義
 */

/* -----------------------------------------
  共通スタイル
----------------------------------------- */
.urr-container {
  max-width: 100%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #333;
  line-height: 1.5;
}

.urr-message {
  padding: 12px 15px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.urr-success-message,
.urr-success {
  background-color: #e7f6ea;
  color: #2e7d32;
  border: 1px solid #b8e6bf;
}

.urr-error-message,
.urr-error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* -----------------------------------------
  ボタンスタイル
----------------------------------------- */
.urr-button,
.urr-submit-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.urr-button:hover,
.urr-submit-button:hover {
  background-color: #0d62d1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.urr-button:disabled,
.urr-submit-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.urr-cancel-button,
.urr-cancel-reply-button {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.urr-cancel-button:hover,
.urr-cancel-reply-button:hover {
  background-color: #e8e8e8;
}

.urr-delete-button {
  background-color: #f44336;
  color: white;
}

.urr-delete-button:hover {
  background-color: #d32f2f;
}

.urr-button-secondary {
  background-color: #f2f2f2;
  color: #333;
  border: 1px solid #ddd;
}

.urr-button-secondary:hover {
  background-color: #e6e6e6;
}

.urr-reply-button,
.urr-edit-button,
.urr-delete-button {
  padding: 5px 10px;
  font-size: 12px;
  margin-right: 5px;
}

/* -----------------------------------------
  フォームスタイル
----------------------------------------- */
.urr-form,
.urr-review-form {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

.urr-form-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.urr-form-row,
.urr-form-field {
  margin-bottom: 15px;
}

.urr-form-label,
.urr-form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.urr-form-input,
.urr-form-textarea,
.urr-form-field input[type="text"],
.urr-form-field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.urr-form-input:focus,
.urr-form-textarea:focus,
.urr-form-field input[type="text"]:focus,
.urr-form-field textarea:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
  outline: none;
}

.urr-form-textarea,
.urr-form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.urr-required,
.required {
  color: #f44336;
  margin-left: 3px;
}

.urr-form-checkbox,
.urr-agreement-checkbox {
  margin-bottom: 15px;
}

.urr-form-checkbox input[type="checkbox"],
.urr-agreement-checkbox input[type="checkbox"] {
  margin-right: 5px;
}

.urr-form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.urr-form-message {
  margin-left: 10px;
}

/* -----------------------------------------
  星評価入力
----------------------------------------- */
.urr-rating-field {
  margin-bottom: 15px;
}

.urr-rating-input {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 10px;
}

.urr-rating-stars {
  display: flex;
  flex-direction: row-reverse;
  margin-right: 15px;
}

.urr-rating-stars .urr-star {
  font-size: 24px;
  color: #e0e0e0;
  cursor: pointer;
  margin-right: 5px;
  transition: color 0.2s ease;
  /* 塗りつぶし星に変更 */
  content: "★";
}

.urr-rating-stars .urr-star.hover,
.urr-rating-stars .urr-star.active {
  color: #ffb900;
}

.urr-rating-text {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

/* 表示用の星 */
.urr-star.full {
  color: #ffb900;
}

.urr-star.half {
  position: relative;
  color: #ffb900;
}

.urr-star.empty {
  color: #e0e0e0;
}

/* -----------------------------------------
  レビュー一覧
----------------------------------------- */
.urr-comments-list {
  margin-top: 30px;
}

.urr-comment-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.urr-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.urr-comment-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px 0;
  line-height: 1.3;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e0e0e0;
  display: block;
}

.urr-comment-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #444;
}

.urr-comment-author-info {
  display: flex;
  align-items: center;
}

.urr-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.urr-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.urr-author-name {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.urr-author-badge {
  background-color: #e3f2fd;
  color: #0d47a1;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
}

.urr-comment-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.urr-comment-rating {
  margin-bottom: 5px;
}

.urr-comment-date {
  font-size: 12px;
  color: #777;
}

/* 一覧ページでの評価表示 */
.urr-rating-display .urr-stars {
  display: inline-flex !important;
  flex-direction: row !important;
  white-space: nowrap !important;
}

.urr-stars {
  display: inline-flex !important;
  flex-direction: row !important;
  white-space: nowrap !important;
}

.urr-star-rating .urr-stars {
  display: inline-flex !important;
  flex-direction: row !important;
  white-space: nowrap !important;
}

.urr-rating-display .urr-star {
  font-size: 16px;
  margin-right: 1px;
}

.urr-rating-display .urr-star.full,
.urr-rating-display .urr-star.half {
  color: #ffb400;
}

.urr-rating-display .urr-star.empty {
  color: #ddd;
}

.urr-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  align-items: flex-end;
  border-top: 1px solid #eee;
  padding-top: 12px;
  justify-content: flex-end;
}

.urr-helpful-action,
.urr-share-action,
.urr-comment-report,
.urr-reply-action,
.urr-edit-actions {
  display: flex;
  align-items: center;
}

/* ボタンの高さを完全に揃えるための追加調整 */
.urr-helpful-button,
.urr-share-button,
.urr-report-button,
.urr-reply-button {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.2s ease;
  height: 32px;
  box-sizing: border-box;
  margin: 0;
  line-height: 1;
  text-align: center;
  min-height: 32px; /* 最小高さも設定 */
  max-height: 32px; /* 最大高さも設定 */
}

/* すべてのボタンに同じスタイルを適用 */
.urr-helpful-button,
.urr-report-button,
.urr-reply-button {
  /* 共通スタイル */
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  line-height: 1;
}

.urr-helpful-button:hover,
.urr-share-button:hover {
  color: #1a73e8;
  background-color: rgba(26, 115, 232, 0.08);
}

.urr-report-button:hover {
  color: #f44336;
  background-color: rgba(244, 67, 54, 0.08);
}

.urr-reply-button:hover {
  color: #00796b;
  background-color: rgba(0, 121, 107, 0.08);
}

/* 報告ボタンに個別のスタイルは適用しない（他のボタンと同じにする） */

.urr-thumbs-up,
.urr-share-icon,
.urr-report-icon,
.urr-reply-icon {
  margin-right: 5px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 20px;
  vertical-align: middle;
}

.urr-helpful-count {
  margin-left: 5px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.urr-helpful-text,
.urr-share-text,
.urr-report-text,
.urr-reply-text {
  display: inline-flex;
  white-space: nowrap;
  line-height: 1;
  vertical-align: middle;
  height: 20px;
  align-items: center;
}

/* モバイル環境でのアクションボタンの調整 */
@media (max-width: 768px) {
  .urr-comment-actions,
  .urr-reply-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
    align-items: flex-end;
  }
  
  .urr-helpful-button,
  .urr-share-button,
  .urr-report-button,
  .urr-reply-button,
  .urr-reply-item .urr-helpful-button,
  .urr-reply-item .urr-report-button {
    padding: 0 8px;
    font-size: 12px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  
  .urr-thumbs-up,
  .urr-share-icon,
  .urr-report-icon,
  .urr-reply-icon {
    margin-right: 3px;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
  }
  
  .urr-helpful-count {
    margin-left: 3px;
    font-size: 12px;
    line-height: 1;
  }
  
  .urr-helpful-text,
  .urr-share-text,
  .urr-report-text,
  .urr-reply-text {
    display: inline-flex;
    font-size: 11px;
    white-space: nowrap;
    line-height: 1;
    align-items: center;
    height: 18px;
  }
}

.urr-replies-list {
  margin-top: 15px;
  margin-left: 20px;
   /*padding-left: 20px;*/
}

/* 返信アバターのスタイル */
.urr-reply-avatar {
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 返信内のすべてのアバター画像を丸くする */
.urr-reply-author img,
.urr-reply-author .avatar {
  border-radius: 50% !important;
  vertical-align: middle;
  margin-right: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* すべてのアバター画像を確実に丸くする包括的なルール */
.urr-comment-item .avatar,
.urr-reply-item .avatar,
.urr-comment-author-info .avatar,
.urr-reply-author .avatar,
.urr-author-avatar img,
.avatar.photo {
  border-radius: 50% !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.urr-replies-toggle {
  color: #1a73e8;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 10px;
}

.urr-replies-toggle:hover {
  text-decoration: underline;
}

.urr-reply-item {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}

.urr-reply-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.urr-reply-author {
  font-weight: 600;
}

.urr-reply-date {
  color: #888;
  font-size: 12px;
}

.urr-reply-content {
  font-size: 14px;
}

.urr-reply-actions {
  display: flex;
  margin-top: 10px;
  gap: 10px;
  align-items: flex-end;
  justify-content: flex-end;
}

.urr-reply-item .urr-helpful-button,
.urr-reply-item .urr-report-button {
  font-size: 13px;
  padding: 0 8px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
}

.urr-reply-form-container {
  margin-top: 10px;
}

.urr-reply-to-wrapper {
  margin-bottom: 15px;
  font-size: 14px;
  color: #555;
  padding: 8px 12px;
  background-color: #f0f7ff;
  border-left: 3px solid #1976d2;
  border-radius: 3px;
}

.urr-reply-to-label {
  font-weight: 600;
}

.urr-replies-list {
  margin-top: 15px;
  padding-top: 10px;
}

.urr-replies-toggle {
  color: #1976d2;
  font-size: 14px;
  cursor: pointer;
  padding: 5px 0;
  font-weight: 600;
}

.urr-replies-toggle:hover {
  text-decoration: underline;
}

.urr-reply-item {
  margin: 10px 0 10px 20px;
  padding: 12px;
  background-color: #f5f8fa;
  border-radius: 5px;
  border-left: 3px solid #90caf9;
}

.urr-review-form-header {
  margin-bottom: 15px;
}

.urr-review-form-header h3 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 18px;
  color: #333;
}

.urr-cancel-button {
  background-color: #f1f1f1;
  color: #555;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 10px;
}

.urr-cancel-button:hover {
  background-color: #e9e9e9;
}

/* -----------------------------------------
  画像アップロード
----------------------------------------- */
.urr-image-upload,
.urr-images-field {
  margin-top: 15px;
}

.urr-image-upload-container {
  margin-bottom: 20px;
}

.urr-image-upload-container input[type="file"] {
  display: block;
  margin-bottom: 10px;
  width: 100%;
  border: 1px dashed #ccc;
  padding: 10px;
  border-radius: 4px;
  background-color: #f5f5f5;
}

.urr-upload-note {
  font-size: 12px;
  color: #777;
  margin-top: 5px;
}

.urr-image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.urr-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.urr-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.urr-remove-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.urr-image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.urr-gallery-item {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.urr-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.urr-gallery-item:hover img {
  transform: scale(1.05);
}

/* -----------------------------------------
  編集タイマー
----------------------------------------- */
.urr-edit-time-remaining {
  font-size: 12px;
  color: #ff9800;
  margin-left: 10px;
}

/* -----------------------------------------
  レビュー統計
----------------------------------------- */
.urr-reviews-summary {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.urr-average-rating {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.urr-average-rating-value {
  font-size: 36px;
  font-weight: 700;
  margin-right: 10px;
}

.urr-average-rating-stars {
  margin-right: 10px;
}

.urr-rating-breakdown {
  margin-top: 15px;
}

.urr-rating-bar {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.urr-rating-level {
  width: 20px;
  text-align: right;
  margin-right: 5px;
}

.urr-rating-bar-container {
  flex: 1;
  height: 12px;
  background-color: #eee;
  border-radius: 10px;
  margin: 0 10px;
  overflow: hidden;
}

.urr-rating-bar-fill {
  height: 100%;
  background-color: #ffb400;
}

/* -----------------------------------------
  フィルター
----------------------------------------- */
.urr-review-filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.urr-sort-options,
.urr-rating-filter {
  display: flex;
  align-items: center;
}

.urr-sort-select,
.urr-rating-filter-select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-left: 8px;
}

/* -----------------------------------------
  ページネーション
----------------------------------------- */
.urr-load-more-container {
  text-align: center;
  margin-top: 20px;
}

.urr-load-more-button {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.urr-load-more-button:hover {
  background-color: #e8e8e8;
}

.urr-loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: urr-spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes urr-spin {
  to {
    transform: rotate(360deg);
  }
}

/* -----------------------------------------
  トップレビュー
----------------------------------------- */
.urr-top-reviews {
  margin-top: 30px;
}

.urr-top-reviews-header {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.urr-top-review-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.urr-top-review-rank {
  font-weight: 700;
  margin-right: 10px;
  color: #1a73e8;
}

.urr-top-review-link {
  color: #1a73e8;
  text-decoration: none;
}

.urr-top-review-link:hover {
  text-decoration: underline;
}

/* -----------------------------------------
  レスポンシブ対応
----------------------------------------- */
@media (max-width: 768px) {
  .urr-review-filters {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
  }
  
  .urr-sort-options,
  .urr-rating-filter {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 13px;
  }
  
  .urr-sort-select,
  .urr-rating-filter-select {
    padding: 5px 8px;
    font-size: 13px;
    min-width: 100px;
  }
  
  .urr-comment-header {
    flex-direction: column;
  }
  
  .urr-comment-report {
    margin-top: 10px;
  }
  
  .urr-edit-actions {
    margin-top: 5px;
  }
  
  .urr-edit-time-remaining {
    margin-left: 0;
    margin-top: 5px;
  }
  
  .urr-form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .urr-form-actions button {
    margin-bottom: 10px;
  }
  
  .urr-form-message {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
  }
}

/* チェックボックスのスタイル */
.urr-checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 5px 0;
}

.urr-checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
}

.urr-checkbox-label {
    font-size: 14px;
    line-height: 1.5;
}

.urr-checkbox-label a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
}

.urr-checkbox-label a:hover {
    text-decoration: underline;
}

.urr-agreement {
    margin-bottom: 20px;
}

/* フォームのスタイル */
.urr-review-form {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.urr-reply-form {
    background-color: #f5f8ff;
    margin-top: 15px;
}

.urr-form-row {
    margin-bottom: 20px;
}

.urr-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.urr-form-row input[type="text"],
.urr-form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    transition: border-color 0.2s;
}

.urr-form-row input[type="text"]:focus,
.urr-form-row textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.urr-form-row input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.urr-checkbox-row label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.urr-checkbox-row input[type="checkbox"] {
    margin-right: 8px;
}

.urr-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.urr-submit-button, 
.urr-cancel-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
}

.urr-submit-button {
    background-color: #4CAF50;
    color: white;
}

.urr-submit-button:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

.urr-cancel-button {
    background-color: #f1f1f1;
    color: #666;
}

.urr-cancel-button:hover {
    background-color: #e5e5e5;
}

.urr-reply-to-wrapper {
    margin-bottom: 15px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    font-size: 14px;
}

.urr-reply-to-name {
    font-weight: 500;
}

/* 必須項目のスタイル */
.required {
    color: #e53935;
    margin-left: 4px;
}

/* メッセージ表示 */
.urr-message {
    margin-top: 15px;
}

.urr-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #4CAF50;
}

.urr-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #e53935;
}

.urr-info {
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #2196F3;
}

/* ライトボックス（画像拡大表示）スタイル */
.urr-lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.urr-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.urr-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
}

.urr-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.urr-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.urr-lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* モーダル表示時のボディスタイル */
body.urr-modal-open {
    overflow: hidden;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .urr-lightbox-content {
        max-width: 95%;
    }
    
    .urr-lightbox-close {
        top: -35px;
        right: 0;
        font-size: 26px;
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}

/* -----------------------------------------
  報告モーダル
----------------------------------------- */
.urr-report-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.5);
}

.urr-report-modal-content {
  position: relative;
  background-color: #fff;
  margin: 50px auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.urr-report-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.urr-report-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.urr-report-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.urr-report-modal-close:hover {
  color: #333;
}

.urr-report-form {
  margin-top: 15px;
}

.urr-report-options {
  margin-bottom: 20px;
}

.urr-report-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.urr-report-option input[type="radio"] {
  margin-top: 3px;
  margin-right: 10px;
}

.urr-report-option label {
  cursor: pointer;
}

.urr-report-submit-btn {
  background-color: #e53935;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.urr-report-submit-btn:hover {
  background-color: #c62828;
}

.urr-report-submit-btn:disabled {
  background-color: #e0e0e0;
  color: #9e9e9e;
  cursor: not-allowed;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .urr-report-modal-content {
    margin: 70px auto;
    width: 90%;
    padding: 15px;
  }
}

/* Add styles for the urr-review-stats-wrapper */
.urr-review-stats-wrapper {
    margin-bottom: 30px;
}

.urr-review-summary {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.urr-rating-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.urr-total-rating {
    flex: 0 0 auto;
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid #ddd;
}

.urr-average-score {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.urr-star-rating {
    margin: 5px 0;
    color: #ffb900;
    font-size: 20px;
    text-align: center;
}

.urr-total-reviews {
    color: #1a73e8;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: underline;
}

.urr-total-reviews:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.urr-rating-bars {
    flex: 1;
    min-width: 200px;
}

.urr-rating-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.urr-rating-label {
    flex: 0 0 60px;
    font-size: 14px;
    color: #555;
}

.urr-rating-bar {
    flex: 1;
    height: 12px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 10px;
}

.urr-rating-bar-fill {
    height: 100%;
    background-color: #ffb900;
    border-radius: 10px;
}

.urr-rating-percent {
    flex: 0 0 50px;
    font-size: 14px;
    color: #555;
    text-align: right;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .urr-rating-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .urr-total-rating {
        padding-right: 0;
        padding-bottom: 15px;
        border-right: none;
        border-bottom: 1px solid #ddd;
        width: 100%;
        text-align: center;
    }
    
    .urr-rating-bars {
        width: 100%;
    }
    
    /* スマホ表示時のスター評価を中央揃えに */
    .urr-average-score,
    .urr-star-rating,
    .urr-total-reviews {
        text-align: center;
        width: 100%;
        display: block;
    }
    
    /* スマホでの星評価の中央表示を強化 */
    .urr-star-rating {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 5px auto;
    }
    
    .urr-rating-display .urr-stars {
        justify-content: center;
    }
}

/* -----------------------------------------
  シェアボタンスタイル
----------------------------------------- */
.urr-share-action {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.urr-share-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 5px 10px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
}

.urr-share-button:hover {
  color: #1a73e8;
  background-color: rgba(26, 115, 232, 0.1);
  border-radius: 4px;
}

.urr-share-icon {
  font-size: 14px;
  margin-right: 5px;
}

.urr-share-popup {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  min-width: 150px;
  margin-top: 5px;
}

.urr-share-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.urr-share-list li {
  padding: 0;
  margin: 0;
}

.urr-share-list a {
  display: block;
  padding: 8px 16px;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.2s;
}

.urr-share-list a:hover {
  background-color: #f5f5f5;
  color: #1a73e8;
}

.urr-copy-link {
  cursor: pointer;
}

.urr-copy-link.success {
  color: #4caf50;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
  .urr-share-action {
    margin-right: 8px;
  }
  
  .urr-share-button {
    padding: 5px;
  }
  
  .urr-share-text {
    display: none;
  }
  
  .urr-share-icon {
    margin-right: 0;
    font-size: 16px;
  }
  
  .urr-share-popup {
    left: auto;
    right: 0;
  }
}

/* -----------------------------------------
  画像付きレビュースライダー
----------------------------------------- */
.urr-image-reviews-slider {
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.urr-image-reviews-title {
  font-size: 1.2em;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
}

.urr-image-reviews-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 10px 0;
  gap: 12px;
}

.urr-image-reviews-container::-webkit-scrollbar {
  height: 8px;
}

.urr-image-reviews-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.urr-image-reviews-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.urr-image-reviews-container::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.urr-image-review-item {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.urr-image-review-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.urr-image-review-thumb {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.urr-image-review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.urr-image-review-item:hover .urr-image-review-thumb img {
  transform: scale(1.05);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .urr-image-review-item {
    width: 100px;
    height: 100px;
  }
}

/* レビューポップアップ */
.urr-review-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow-y: auto;
}

.urr-popup-content {
  position: relative;
  background-color: #fff;
  max-width: 600px;
  margin: 60px auto;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.urr-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  border-radius: 50%;
  background-color: #f5f5f5;
  transition: all 0.2s;
}

.urr-popup-close:hover {
  background-color: #e0e0e0;
  color: #333;
}

.urr-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.urr-popup-reviewer {
  font-weight: 600;
  font-size: 18px;
}

.urr-popup-date {
  color: #777;
  font-size: 14px;
}

.urr-popup-rating {
  margin-bottom: 15px;
}

.urr-popup-content-text {
  line-height: 1.6;
  margin-bottom: 20px;
}

.urr-popup-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.urr-popup-image {
  width: 100px;
  height: 100px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}

.urr-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .urr-popup-content {
    margin: 40px auto;
    width: 90%;
    padding: 20px;
  }
  
  .urr-popup-close {
    top: 10px;
    right: 10px;
  }
}

/* スクロールハイライト効果 */
.urr-highlight-section {
    animation: urr-highlight-pulse 1.5s ease-in-out;
}

@keyframes urr-highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
    }
    30% {
        box-shadow: 0 0 0 15px rgba(26, 115, 232, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
    }
}

/* スマホ表示の時に中央揃えで表示 */
@media (max-width: 768px) {
  .urr-average-rating-stars,
  .urr-star-rating,
  .urr-comment-rating {
    text-align: center;
  }
  
  .urr-stars {
    display: inline-flex !important;
    justify-content: center;
  }
}

/* ユーザーレビュー一覧スタイル */
.urr-user-reviews {
    margin: 20px 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.urr-user-reviews-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.urr-user-reviews-list {
    margin: 0;
    padding: 0;
}

.urr-user-review-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
    margin: 0;
    position: relative;
}

.urr-user-review-item:last-child {
    border-bottom: none;
}

.urr-user-review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.urr-user-review-username {
    font-weight: 500;
    color: #333;
}

.urr-user-review-date {
    color: #777;
    font-size: 13px;
}

.urr-user-review-content {
    margin-bottom: 10px;
}

.urr-user-review-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.urr-user-review-title {
    font-size: 16px;
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #333;
}

.urr-user-review-link:hover .urr-user-review-title {
    color: #0066cc;
}

.urr-user-review-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.urr-user-review-helpful {
    display: flex;
    align-items: center;
    margin-top: 8px;
    font-size: 14px;
}

.urr-user-review-helpful-label {
    color: #555;
    margin-right: 5px;
}

.urr-user-review-helpful-count {
    font-weight: 600;
    color: #444;
}

.urr-user-reviews-more {
    text-align: right;
    margin-top: 15px;
}

.urr-more-link {
    display: inline-block;
    padding: 5px 15px;
    background: #f8f8f8;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    color: #555;
    transition: all 0.2s ease;
}

.urr-more-link:hover {
    background: #eee;
    color: #333;
}

.urr-no-reviews {
    padding: 20px;
    text-align: center;
    color: #777;
    background: #f9f9f9;
    border-radius: 4px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .urr-user-review-header {
        flex-direction: column;
    }
    
    .urr-user-review-date {
        margin-top: 5px;
    }
}

/* エラーメッセージスタイル */
.urr-error-message {
    background: #fff2f2;
    border: 1px solid #ffcccc;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    color: #d63638;
    font-size: 14px;
    line-height: 1.5;
}

.urr-error-message::before {
    content: "⚠ ";
    font-weight: bold;
    margin-right: 5px;
} 