.customerssay-reviews-app-container {
  margin: 30px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  max-width: 1400px;
  margin: 0 auto;
}

.customerssay-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.customerssay-write-review-button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.customerssay-reviews-summary {
  margin-bottom: 20px;
}

.customerssay-ratings-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.customerssay-ratings-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.customerssay-average-rating {
  font-size: 32px;
  font-weight: bold;
}

.customerssay-rating-stars-container {
  display: flex;
  flex-direction: column;
}

.customerssay-star-rating {
  font-size: 20px;
  color: #FFD700;
}

.customerssay-total-reviews {
  font-size: 14px;
  color: #666;
}

.customerssay-stars-container {
  position: relative;
  display: inline-block;
  unicode-bidi: bidi-override;
  color: #ccc;
  font-size: 20px;
  height: 20px;
  width: auto;
  margin-right: 5px;
}

.customerssay-stars-filled {
  color: #FFD700;
  padding: 0;
  position: absolute;
  z-index: 1;
  display: block;
  top: 0;
  left: 0;
  overflow: hidden;
}

.customerssay-ratings-distribution {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.customerssay-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customerssay-rating-row span {
  flex: 0 0 40px;
  font-size: 12px;
  color: #666;
}

.customerssay-rating-row span:last-child {
  text-align: right;
}

.customerssay-percent-display {
  flex: 0 0 40px;
  font-size: 12px;
  color: #666;
  text-align: right;
}

.customerssay-rating-bar {
  flex: 1;
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.customerssay-rating-fill {
  height: 100%;
  background-color: #FFD700;
  display: block !important;
}

.customerssay-review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.customerssay-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.customerssay-thumbnail-container {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 4px;
}

.customerssay-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customerssay-write-review {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.customerssay-write-review-button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.customerssay-sort-button {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
}

.customerssay-sort-icon svg {
  display: block;
}

.customerssay-review-list {
  margin-top: 30px;
}

.customerssay-no-reviews-message {
  text-align: center;
  padding: 30px;
  color: #666;
}

.customerssay-review-item {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.customerssay-review-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.customerssay-reviewer-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.customerssay-reviewer-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.customerssay-review-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.customerssay-reviewer-name {
  font-weight: bold;
}

.customerssay-verified-purchase {
  font-size: 12px;
  color: #26a541;
}

.customerssay-review-date {
  font-size: 12px;
  color: #666;
}

.customerssay-review-rating {
  color: #FFD700;
  font-size: 18px;
}

.customerssay-review-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
}

.customerssay-review-content {
  margin-bottom: 15px;
  line-height: 1.5;
}

.customerssay-review-image-container {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 4px;
}

.customerssay-review-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customerssay-review-video-container {
  width: 240px;
  height: 180px;
  overflow: hidden;
  border-radius: 4px;
  margin-right: 10px;
  margin-bottom: 10px;
}

.customerssay-review-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
}

.customerssay-product-info {
  display: flex;
  gap: 5px;
  font-size: 13px;
  color: #666;
  margin: 10px 0;
}

.customerssay-shop-response {
  background-color: #f9f9f9;
  padding: 15px;
  margin-top: 15px;
  border-radius: 4px;
  border-left: 3px solid #008060;
}

.customerssay-response-header {
  font-weight: 600;
  margin-bottom: 8px;
  color: #202223;
  font-size: 14px;
}

.customerssay-response-content {
  line-height: 1.5;
  font-size: 14px;
  color: #333;
}

.customerssay-response-date {
  font-size: 12px;
  color: #777;
  text-align: right;
  margin-top: 5px;
}

.customerssay-review-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.customerssay-review-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto;
}

.customerssay-close-modal {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.customerssay-streamlined-layout .customerssay-ratings-summary {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.customerssay-streamlined-layout .customerssay-ratings-left {
  width: 100%;
  max-width: 150px;
}

.customerssay-streamlined-layout .customerssay-ratings-distribution {
  width: 100%;
  max-width: 300px;
}

.customerssay-streamlined-layout .customerssay-review-images {
  width: 100%;
  max-width: 300px;
}

.customerssay-streamlined-layout .customerssay-write-review {
  margin-left: auto;
}

.customerssay-streamlined-layout .customerssay-review-item {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.customerssay-streamlined-layout .customerssay-review-left {
  flex: 0 0 150px;
}

.customerssay-streamlined-layout .customerssay-review-right {
  flex: 1;
}

.customerssay-form-group {
  margin-bottom: 15px;
}

.customerssay-form-group label {
  display: block;
  margin-bottom: 5px;
}

.customerssay-form-group input[type="text"],
.customerssay-form-group input[type="email"],
.customerssay-form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.customerssay-form-group input[type="file"] {
  display: block;
  margin-bottom: 5px;
  width: 100%;
}

.customerssay-form-group small {
  display: block;
  color: #666;
  font-size: 12px;
  margin-top: 4px;
}

.customerssay-form-error {
  color: #e53935;
  font-size: 12px;
  margin-top: 5px;
}

.customerssay-media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.customerssay-media-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.customerssay-media-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customerssay-media-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customerssay-media-preview-item .customerssay-remove-media {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

.customerssay-media-preview-item .customerssay-media-type {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 10px;
  padding: 2px 4px;
  text-align: center;
}

.customerssay-form-group textarea {
  height: 100px;
  resize: vertical;
}

.customerssay-rating-input {
  font-size: 24px;
  cursor: pointer;
  color: #ccc;
}

.customerssay-rating-input span {
  display: inline-block;
  transition: color 0.2s;
}

.customerssay-rating-input span.active {
  color: #FFD700;
}

.customerssay-submit-review {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
  display: block;
  width: 100%;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .customerssay-ratings-summary {
    flex-direction: column;
  }

  .customerssay-streamlined-layout .customerssay-ratings-summary {
    flex-direction: column;
  }

  .customerssay-streamlined-layout .customerssay-ratings-left,
  .customerssay-streamlined-layout .customerssay-ratings-distribution,
  .customerssay-streamlined-layout .customerssay-review-images {
    width: 100%;
    max-width: none;
  }
}

/* 评论媒体显示相关样式 */
.customerssay-review-media {
  margin: 15px 0;
}

.customerssay-review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.customerssay-review-image-item {
  position: relative;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 5px;
  cursor: pointer;
}

.customerssay-review-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.customerssay-review-image-item:hover img {
  transform: scale(1.05);
}

.customerssay-review-videos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.customerssay-review-video-item {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
  cursor: pointer;
}

.customerssay-review-video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.customerssay-review-video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customerssay-review-video-play-button svg {
  width: 20px;
  height: 20px;
}

/* 视频弹窗样式 */
.customerssay-video-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  overflow: auto;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customerssay-video-content {
  position: relative;
  margin: 0 auto;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
}

.customerssay-video-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px;
  line-height: 0.8;
  z-index: 2100;
}

.customerssay-video-player {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
  border-radius: 4px;
  background-color: #000;
}

.customerssay-video-loading, .customerssay-video-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 15px 25px;
  border-radius: 8px;
  display: none;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.customerssay-video-error {
  color: #ff6b6b;
  border-left: 4px solid #ff6b6b;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .customerssay-video-content {
    width: 95%;
    margin: 0 auto;
  }

  .customerssay-video-close {
    top: -35px;
    right: 5px;
  }

  .customerssay-video-loading, .customerssay-video-error {
    font-size: 14px;
    padding: 12px 20px;
    min-width: 180px;
  }
}

@media (max-width: 480px) {
  .customerssay-video-content {
    width: 98%;
    margin: 20% auto;
  }
}

/* 媒体网格视图样式 */
.customerssay-video-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  cursor: pointer;
}

.customerssay-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customerssay-play-button svg {
  width: 20px;
  height: 20px;
}

/* 响应式样式调整 */
@media (max-width: 768px) {
  .customerssay-review-image-item {
    width: 100px;
    height: 100px;
  }

  .customerssay-review-video-item {
    width: 100px;
    height: 100px;
  }
}
