/* Héritage des styles WordPress pour les éléments standards */
.wqr-container h1,
.wqr-container h2,
.wqr-container h3,
.wqr-container p,
.wqr-container input,
.wqr-container textarea,
.wqr-container button {
  border-radius: inherit;
}

.wqr-container textarea {
  font-family: inherit;
}

.wqr-product {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.wqr-product:last-child {
  border-bottom: none;
}

.wqr-product-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.wqr-product-info {
  flex: 1;
}

.wqr-product-info h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.wqr-rating {
  margin-bottom: 0.5rem;
}

.wqr-star {
  font-size: 1.5rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
}

.wqr-star.active,
.wqr-star:hover {
  color: #000000;
}

.wqr-product-info textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  resize: vertical;
  font-family: inherit;
}

.wqr-submit-btn {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem;
  background: #2271b1;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.wqr-submit-btn:hover:not(:disabled) {
  background: #186094;
}

.wqr-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.wqr-loading,
.wqr-error {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.wqr-error {
  color: #dc3232;
}

.wqr-success {
  text-align: center;
  padding: 2rem;
}

.wqr-success-icon {
  font-size: 3rem;
  color: #46b450;
  margin-bottom: 1rem;
}

.wqr-success h3 {
  color: #46b450;
  margin: 0;
}
