/* MME Reviews Frontend Styles */
.mme-review-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mme-review-form {
  width: 100%;
}

.mme-form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.mme-form-group {
  flex: 1;
  margin-bottom: 20px;
}

.mme-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.mme-form-group input,
.mme-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.mme-form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  background-color: white;
  cursor: pointer;
}

.mme-form-group select:focus {
  outline: none;
  border-color: #007cba;
}

.mme-form-group select option {
  padding: 8px;
}

.mme-form-group input:focus,
.mme-form-group textarea:focus {
  outline: none;
  border-color: #007cba;
}

.mme-star-rating {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.mme-star {
  font-size: 30px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.mme-star:hover,
.mme-star.active,
.mme-star.selected {
  color: #ffc107;
}

.mme-submit-btn {
  background: #007cba;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.mme-submit-btn:hover {
  background: #005a87;
}

.mme-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.mme-form-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

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

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

/* NEW REVIEWS LIST STYLES - MATCHING YOUR IMAGE EXACTLY */
.mme-reviews-list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.mme-reviews-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.mme-reviews-grid[data-columns="1"] {
  grid-template-columns: 1fr;
}

.mme-reviews-grid[data-columns="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.mme-reviews-grid[data-columns="3"] {
  grid-template-columns: repeat(3, 1fr);
}

.mme-reviews-grid[data-columns="4"] {
  grid-template-columns: repeat(4, 1fr);
}

.mme-review-item {
  width: 100%;
}

.mme-review-card-new {
  background: #ffffff;
  border: 2px solid #e5e5e5;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mme-review-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Updated Review Card Styles */
.mme-review-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.mme-order-display {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.mme-review-rating-new {
  display: flex;
  gap: 2px;
  margin-bottom: 0;
  align-items: center;
}

.mme-star-new {
  font-size: 22px;
  color: #ddd;
}

.mme-star-new.filled {
  color: #ffc107;
}

.mme-rating-count {
  font-size: 14px;
  color: #666;
  margin-left: 8px;
  font-weight: 600;
}

.mme-review-subject-new {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
}

.mme-review-header-new {
  margin-bottom: 15px;
}

.mme-reviewer-name-new {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}

.mme-order-info-new {
  font-size: 14px;
  color: #007cba;
  margin-bottom: 15px;
  font-weight: 600;
}

.mme-review-content-new {
  flex: 1;
  margin-bottom: 20px;
}

.mme-review-content-new p {
  margin: 0;
  line-height: 1.6;
  color: #555;
  font-size: 14px;
}

.mme-review-footer-new {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mme-review-logo-new {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.mme-no-reviews {
  text-align: center;
  font-size: 18px;
  color: #666;
  padding: 40px 20px;
}

/* Pagination Styles */
.mme-pagination-new {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.mme-page-btn-new {
  padding: 8px 16px;
  background: #f8f9fa;
  color: #007cba;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  border: 1px solid #dee2e6;
}

.mme-page-btn-new:hover,
.mme-page-btn-new.active {
  background: #007cba;
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mme-form-row {
    flex-direction: column;
    gap: 0;
  }

  .mme-reviews-grid[data-columns="3"],
  .mme-reviews-grid[data-columns="4"] {
    grid-template-columns: 1fr;
  }

  .mme-reviews-grid[data-columns="2"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mme-review-form-container,
  .mme-reviews-list-container {
    padding: 15px;
  }

  .mme-review-card-new {
    padding: 15px;
  }
}

/* Admin Styles */
.star-filled {
  color: #ffc107;
}

.star-empty {
  color: #ddd;
}

.status-approved {
  color: #28a745;
  font-weight: bold;
}

.status-pending {
  color: #ffc107;
  font-weight: bold;
}

.status-disapproved {
  color: #dc3545;
  font-weight: bold;
}

.mme-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.mme-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: none;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  position: relative;
}

.mme-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
}

.mme-modal-close:hover {
  color: #000;
}

/* Character counter styles */
.char-counter {
  font-size: 12px;
  color: #666;
  font-weight: normal;
}

.char-counter.over-limit {
  color: #dc3545;
}

/* Order ID input styles */
#order-id {
  -moz-appearance: textfield;
}

#order-id::-webkit-outer-spin-button,
#order-id::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* reCAPTCHA Styles */
.g-recaptcha {
  margin: 10px 0;
}

.mme-captcha-error {
  display: none;
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
}

/* Responsive reCAPTCHA */
@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.77);
    transform-origin: 0 0;
  }
}
