/* WC Advanced Reviews - True Masonry Layout with Partial Stars */

.wc-advanced-reviews {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0; /* Changed from 20px to 20px 0 for zero side padding */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-color, #333333) !important;
}

/* Header Section */
.wc-reviews-header {
  background: var(--header-bg-color, transparent);
  padding: 30px 0;
  margin-bottom: 0; /* Remove margin, HR will handle spacing */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* HR Separator */
.wc-reviews-separator {
  border: none;
  border-top: 1px solid #000;
  margin: 20px 0;
  width: 100%;
}

.wc-reviews-summary {
  display: flex;
  align-items: center;
  gap: 20px;
}

.wc-rating-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.wc-average-rating {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-color, #333);
  line-height: 1;
}

.wc-star-display {
  display: flex;
  gap: 2px;
  margin-bottom: 5px;
}

.wc-total-reviews {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.wc-reviews-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.wc-write-review-btn {
  background: var(--button-bg-color, #2c3e50) !important;
  color: var(--button-text-color, #ffffff) !important;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  line-height: 0px !important;
}

.wc-write-review-btn:hover {
  background: var(--button-hover-color, #1a252f) !important;
  transform: translateY(-1px);
}

/* Sort Dropdown */
.wc-sort-dropdown {
  position: relative;
}

.wc-sort-button {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.wc-sort-button:hover {
  border-color: #999;
}

.wc-sort-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 180px;
  display: none;
  list-style: none;
  margin: 5px 0 0;
  padding: 5px 0;
}

.wc-sort-options.show {
  display: block;
}

.wc-sort-option {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.wc-sort-option:hover {
  background: #f5f5f5;
}

.wc-sort-option.active {
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 600;
}

/* Review Form Toggle */
.wc-review-form-container {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #e0e0e0;
}

.wc-review-form-wrapper h3 {
  margin: 0 0 25px 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color, #333);
}

.wc-review-form {
  display: grid;
  gap: 20px;
}

.wc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.wc-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wc-form-label {
  font-weight: 600;
  color: var(--text-color, #333);
  font-size: 14px;
}

.required {
  color: #e74c3c;
}

.wc-form-input,
.wc-form-textarea {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.wc-form-input:focus,
.wc-form-textarea:focus {
  outline: none;
  border-color: var(--button-bg-color, #2c3e50);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.wc-form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Rating Input */
.wc-rating-input {
  display: flex;
  gap: 4px;
  font-size: 24px;
  position: relative;
}

.wc-rating-star {
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s ease;
}

.wc-rating-star:hover,
.wc-rating-star.active {
  color: #000000 !important; /* Black stars */
}

.wc-form-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 10px;
}

.wc-btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 14px;
}

.wc-btn-primary {
  background: var(--button-bg-color, #2c3e50) !important;
  color: var(--button-text-color, #ffffff) !important;
}

.wc-btn-primary:hover {
  background: var(--button-hover-color, #1a252f) !important;
}

.wc-btn-secondary {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.wc-btn-secondary:hover {
  background: #e9ecef;
}

/* True Masonry Grid - Using CSS Columns */
.wc-reviews-masonry {
  column-count: 4;
  column-gap: 10px; /* Reduced from 20px to 10px */
  margin-bottom: 30px;
}

.wc-review-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  /* Removed hover animation */
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 10px; /* Reduced from 20px to 10px */
  border: 1px solid #f0f0f0;
  position: relative;
}

.wc-review-image-container {
  width: 100%;
  overflow: hidden;
}

.wc-review-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.wc-review-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  color: var(--text-color, #333333) !important;
}

.wc-review-rating {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 16px;
  line-height: 1;
  position: relative;
  display: inline-block;
}

.star-full {
  color: #000000 !important; /* Black stars */
}

/* Fixed Partial Star Implementation */
.star-partial {
  position: relative;
  color: #ddd; /* Background color for empty part */
}

.star-partial::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: #000000; /* Black for filled part */
  overflow: hidden;
  width: var(--fill-percentage, 50%);
}

/* Set the fill percentage dynamically */
.star-partial[data-percentage="10"]::before {
  width: 10%;
}
.star-partial[data-percentage="20"]::before {
  width: 20%;
}
.star-partial[data-percentage="30"]::before {
  width: 30%;
}
.star-partial[data-percentage="40"]::before {
  width: 40%;
}
.star-partial[data-percentage="50"]::before {
  width: 50%;
}
.star-partial[data-percentage="60"]::before {
  width: 60%;
}
.star-partial[data-percentage="70"]::before {
  width: 70%;
}
.star-partial[data-percentage="80"]::before {
  width: 80%;
}
.star-partial[data-percentage="90"]::before {
  width: 90%;
}

.star-half {
  color: #000000; /* Black stars */
  opacity: 0.5;
}

.star-empty {
  color: #ddd;
}

.wc-review-author {
  font-weight: 600;
  color: var(--text-color, #333);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-verified-badge {
  background: #4caf50;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.wc-review-text {
  color: var(--text-color, #333333) !important;
  line-height: 1.6;
  font-size: 14px;
}

/* Show full review button */
.wc-show-full-review {
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  text-decoration: none;
  font-family: inherit;
  line-height: inherit;
}

.wc-show-full-review:hover {
  color: #333;
  text-decoration: underline;
}

.wc-review-ellipsis {
  color: var(--text-color, #333333);
}

.wc-review-product {
  margin-top: 8px;
}

.wc-review-product a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.wc-review-product a:hover {
  color: var(--button-bg-color, #2c3e50);
  text-decoration: underline;
}

.wc-review-date {
  color: #999;
  font-size: 12px;
  margin-top: auto;
}

/* No Reviews State */
.wc-no-reviews {
  column-span: all;
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.wc-no-reviews h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text-color, #333);
}

/* Load More */
.wc-load-more {
  text-align: center;
  margin-top: 30px;
}

.wc-load-more-btn {
  background: var(--button-bg-color, #2c3e50) !important;
  color: var(--button-text-color, #ffffff) !important;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wc-load-more-btn:hover {
  background: var(--button-hover-color, #1a252f) !important;
}

.wc-load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Messages */
#wc-review-messages {
  margin-top: 20px;
}

.wc-message {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.wc-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.wc-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Stars Only Shortcode Styles */
.wc-review-stars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wc-stars-small .star {
  font-size: 14px;
}

.wc-stars-medium .star {
  font-size: 18px;
}

.wc-stars-large .star {
  font-size: 24px;
}

.wc-rating-number {
  font-weight: 600;
  color: #333;
}

.wc-review-count {
  color: #666;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .wc-reviews-masonry {
    column-count: 3;
    column-gap: 8px; /* Reduced from 16px to 8px */
  }

  .wc-reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .wc-reviews-controls {
    width: 100%;
    justify-content: space-between;
  }

  .wc-review-form-container {
    padding: 25px;
  }

  .wc-review-card {
    margin-bottom: 8px; /* Reduced spacing */
  }
}

@media (max-width: 768px) {
  .wc-reviews-masonry {
    column-count: 2; /* Keep double column on tablets */
    column-gap: 10px; /* Mobile spacing - 5px */
  }

  .wc-form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .wc-advanced-reviews {
    padding: 15px 0; /* Zero side padding */
  }

  .wc-review-form-container {
    padding: 20px;
    margin: 0 15px; /* Add margin only to form container */
  }

  .wc-average-rating {
    font-size: 36px;
  }

  .wc-review-card {
    margin-bottom: 5px; /* Mobile spacing - 5px */
  }

  /* Mobile header layout to match the image */
  .wc-reviews-header {
    flex-direction: column;
    align-items: center; /* Center everything */
    gap: 20px;
    text-align: center;
    padding: 30px 15px; /* Add some side padding only to header */
  }

  .wc-reviews-summary {
    flex-direction: column;
    align-items: center; /* Center the summary */
    gap: 8px; /* Tighter spacing */
  }

  .wc-rating-display {
    align-items: center; /* Center the rating display */
    gap: 8px;
  }

  /* Rating and stars on same line */
  .wc-rating-display {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .wc-star-display {
    margin-bottom: 0; /* Remove bottom margin */
  }

  .wc-reviews-controls {
    flex-direction: row; /* Keep buttons in a row */
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: auto; /* Don't stretch full width */
  }

  /* Mobile button styles - outline only with invert effect */
  .wc-write-review-btn {
    background: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    flex: 1;
    max-width: 300px; /* Limit max width */
    padding: 15px 30px;
    border-radius: 25px; /* More rounded like in image */
    line-height: 0px !important;
    transition: all 0.3s ease;
  }

  .wc-write-review-btn:hover,
  .wc-write-review-btn:active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    transform: none;
  }

  .wc-sort-button {
    background: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 8px;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
  }

  .wc-sort-button:hover,
  .wc-sort-button:active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
  }

  .wc-sort-button span {
    display: none; /* Hide text on mobile */
  }

  /* Invert SVG color on hover/active */
  .wc-sort-button:hover svg path,
  .wc-sort-button:active svg path {
    stroke: #fff;
  }
}

@media (max-width: 480px) {
  .wc-reviews-masonry {
    column-count: 2; /* Keep double column even on phones */
    column-gap: 5px; /* Mobile spacing - 5px */
  }

  .wc-review-card {
    margin-bottom: 5px; /* Mobile spacing - 5px */
  }

  .wc-review-form-container {
    padding: 15px;
    margin: 0 10px;
  }

  .wc-review-form-wrapper h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .wc-form-group {
    gap: 6px;
  }

  .wc-form-input,
  .wc-form-textarea {
    padding: 10px 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .wc-rating-input {
    font-size: 20px;
    justify-content: center;
  }

  .wc-btn {
    padding: 14px 20px;
    font-size: 16px;
  }

  /* Mobile header exactly like the image */
  .wc-reviews-header {
    padding: 20px 10px;
  }

  .wc-average-rating {
    font-size: 48px; /* Large like in image */
    font-weight: 700;
  }

  .wc-star-display .star {
    font-size: 24px; /* Larger stars */
  }

  .wc-total-reviews {
    font-size: 16px;
    margin-top: 5px;
  }

  .wc-reviews-controls {
    width: 100%;
    padding: 0 10px;
  }

  .wc-write-review-btn {
    height: 50px;
    font-size: 16px;
    font-weight: 500;
    line-height: 0px !important;
  }

  .wc-sort-options {
    right: 10px;
    left: auto;
    width: auto;
    min-width: 150px;
  }
}

/* Loading States */
.wc-loading {
  opacity: 0.6;
  pointer-events: none;
}

.wc-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--button-bg-color, #2c3e50);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
.wc-form-input:focus,
.wc-form-textarea:focus,
.wc-btn:focus,
.wc-sort-button:focus,
.wc-rating-star:focus {
  outline: 2px solid var(--button-bg-color, #2c3e50);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .wc-review-card {
    border: 2px solid #000;
  }

  .wc-form-input,
  .wc-form-textarea {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .wc-review-card,
  .wc-btn,
  .wc-form-input,
  .wc-form-textarea {
    transition: none;
  }

  .wc-spinner {
    animation: none;
  }
}

/* Print styles */
@media print {
  .wc-reviews-controls,
  .wc-review-form-container,
  .wc-load-more {
    display: none;
  }

  .wc-review-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* Review Modal Styles */
.wc-review-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999; /* Highest possible z-index */
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
}

.wc-review-modal-overlay.active {
  display: flex;
}

.wc-review-modal {
  z-index: 9999999; /* Even higher z-index for the modal itself */
  background: white;
  width: 100%;
  max-width: 400px;
  border-radius: 0;
  position: relative;
  max-height: 100vh;
  overflow-y: auto;
}

.wc-modal-step {
  display: none;
  height: 540px; /* Half of 1080px */
  padding: 25px 30px 20px;
  position: relative;
  box-sizing: border-box;
}

.wc-modal-step.active {
  display: block;
}

.wc-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999999; /* Highest z-index for close button */
}

.wc-modal-content {
  text-align: center;
  padding-top: 40px;
}

.wc-modal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 25px 0;
  line-height: 1.2;
  padding: 0 10px;
}

.wc-modal-subtitle {
  font-size: 14px;
  color: #999;
  margin: -15px 0 30px 0;
}

/* Step 1: Rating Options */
.wc-rating-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 auto;
  padding: 0 15px;
}

.wc-rating-option {
  background: #000;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: left;
}

.wc-rating-option:hover {
  background: #333;
  transform: translateY(-1px);
}

.wc-rating-stars {
  display: flex;
  gap: 1px;
}

.wc-rating-stars .star {
  font-size: 14px;
}

.wc-rating-stars .star.filled {
  color: white;
}

.wc-rating-stars .star.empty {
  color: #666;
}

.wc-rating-text {
  flex: 1;
}

/* Step 2: Media Options */
.wc-media-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 auto;
  padding: 0 30px;
}

.wc-media-option {
  background: #000;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.wc-media-option:hover {
  background: #333;
  transform: translateY(-1px);
}

.wc-media-divider {
  position: relative;
  text-align: center;
  margin: 8px 0;
}

.wc-media-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ddd;
}

.wc-media-divider span {
  background: white;
  padding: 0 15px;
  color: #999;
  font-size: 12px;
}

/* Step 3: Review Text */
.wc-review-input-container {
  margin: 0 auto;
  padding: 0 30px;
}

#wc-review-text {
  width: 100%;
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  box-sizing: border-box;
}

#wc-review-text:focus {
  outline: none;
  border-color: #000;
}

#wc-review-text::placeholder {
  color: #999;
  font-size: 14px;
}

/* Step 4: User Details */
.wc-user-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto 25px;
  padding: 0 30px;
}

.wc-user-inputs input {
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.wc-user-inputs input:focus {
  outline: none;
  border-color: #000;
}

.wc-user-inputs input::placeholder {
  color: #999;
}

.wc-privacy-notice {
  margin: 0 auto 25px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  padding: 0 30px;
}

.wc-privacy-notice a {
  color: #000;
  text-decoration: underline;
}

.wc-modal-done {
  background: #000;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 30px;
}

.wc-modal-done:hover:not(:disabled) {
  background: #333;
  transform: translateY(-1px);
}

.wc-modal-done:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Modal Footer */
.wc-modal-footer {
  position: absolute;
  bottom: 20px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wc-modal-back,
.wc-modal-skip {
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
}

.wc-modal-back:hover,
.wc-modal-skip:hover {
  color: #333;
}

.wc-modal-next {
  background: #999;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wc-modal-next:not(:disabled) {
  background: #000;
}

.wc-modal-next:not(:disabled):hover {
  background: #333;
  transform: translateY(-1px);
}

.wc-modal-next:disabled {
  cursor: not-allowed;
}

/* Prevent body scroll when modal is open */
body.wc-modal-open {
  overflow: hidden;
}

/* Desktop Modal Styles */
@media (min-width: 769px) {
  .wc-review-modal-overlay {
    align-items: center;
    padding: 20px;
  }

  .wc-review-modal {
    border-radius: 12px;
    max-height: 600px;
    width: 420px;
    max-width: 420px;
  }

  .wc-modal-step {
    height: 500px;
    padding: 30px 35px 25px;
  }

  .wc-modal-content {
    padding-top: 20px;
  }

  .wc-modal-content h2 {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .wc-rating-options {
    gap: 5px;
    padding: 0 35px;
  }

  .wc-rating-option {
    padding: 10px 22px;
    font-size: 15px;
  }

  .wc-media-options {
    gap: 18px;
    padding: 0 35px;
  }

  .wc-media-option {
    padding: 18px;
    font-size: 15px;
  }

  .wc-review-input-container {
    padding: 0 35px;
  }

  #wc-review-text {
    min-height: 140px;
    font-size: 15px;
    padding: 18px;
  }

  .wc-user-inputs {
    padding: 0 35px;
    gap: 15px;
  }

  .wc-user-inputs input {
    padding: 16px 18px;
    font-size: 15px;
  }

  .wc-privacy-notice {
    padding: 0 35px;
    font-size: 13px;
  }

  .wc-modal-done {
    margin: 0 35px;
    padding: 16px 35px;
    font-size: 15px;
  }

  .wc-modal-footer {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 30px;
    left: 35px;
    right: 35px;
  }

  .wc-modal-back,
  .wc-modal-skip {
    font-size: 15px;
    padding: 10px;
  }

  .wc-modal-next {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .wc-review-modal {
    width: 100%;
    z-index: 10000000; /* Even higher on mobile */
    max-width: none;
    height: 540px; /* Half screen on mobile */
    max-height: 540px;
  }

  .wc-modal-step {
    height: 540px;
    padding: 25px 30px 60px;
  }

  .wc-modal-content h2 {
    font-size: 18px;
    padding: 0 5px;
  }

  .wc-modal-footer {
    left: 30px;
    right: 30px;
    bottom: 10px;
  }
}

/* Loading and success states */
.wc-message {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
}

.wc-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.wc-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Admin Delete Button */
.wc-admin-delete-review {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

.wc-review-card:hover .wc-admin-delete-review {
  opacity: 1;
}

.wc-admin-delete-review:hover {
  background: rgba(220, 53, 69, 1);
  transform: scale(1.1);
}

.wc-admin-delete-review svg {
  width: 12px;
  height: 12px;
}

/* Loading spinner improvements */
.wc-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--button-bg-color, #2c3e50);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

.wc-load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.wc-load-more-btn:disabled .wc-spinner {
  margin-right: 8px;
}
