/* Base box styling */
.mc-box {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  background: #f9fafb;
}

.mc-box h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.mc-box p {
  margin-bottom: 0;
}

/* Buttons */
.mc-btn {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  margin-right: 0.5rem;
  cursor: pointer;
}

.mc-btn-primary {
  background: #4a90e2;
  color: #ffffff;
  border-color: #4a90e2;
}

.mc-btn-secondary {
  background: #ffffff;
  color: #4a90e2;
  border-color: #4a90e2;
}

/* Generic text helpers */
.mc-text-muted {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Account page layout */
.mc-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.mc-account-login input,
.mc-account-register input {
  width: 100%;
  max-width: 100%;
}

/* Notices (shared between account + comments) */
.mc-notice {
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.mc-notice-success {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.mc-notice-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.mc-notice-error ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* Comments block */
.mc-comments-heading {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.mc-comments-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.mc-comment-item {
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}

.mc-comment-item:first-child {
  border-top: none;
}

.mc-comment-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.mc-comment-author {
  font-weight: 600;
}

.mc-comment-date {
  margin-left: 0.5rem;
}

.mc-comments-empty {
  margin-top: 0.5rem;
}

.mc-comments-login-prompt {
  margin-top: 1rem;
}

.mc-comments-login-actions {
  margin-top: 0.5rem;
}

/* Comment form */
.mc-comments-form {
  margin-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.mc-comments-form-heading {
  margin-top: 0;
  font-size: 1rem;
}

.mc-comments-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  resize: vertical;
}

.mc-comments-form textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.25);
}

.mc-comments-hint {
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* Rating block */
.mc-rating-heading {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.mc-rating-summary {
  margin-bottom: 0.75rem;
}

.mc-rating-empty {
  margin-top: 0.25rem;
}

.mc-rating-login-prompt {
  margin-top: 0.75rem;
}

.mc-rating-login-actions {
  margin-top: 0.5rem;
}

/* Logged-in account summary */
.mc-account-logged-in p {
  margin-bottom: 0.5rem;
}

/* Rating block */
.mc-rating-heading {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.mc-rating-summary {
  margin-bottom: 0.5rem;
}

.mc-rating-summary-text {
  margin: 0;
}

.mc-rating-empty {
  margin-top: 0.25rem;
}

/* Stacked star rows */
.mc-rating-distribution {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mc-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.mc-rating-row-stars {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 1px;
}

.mc-rating-row-count {
  font-size: 0.9rem;
  color: #6b7280;
}

.mc-rating-row:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.mc-rating-row.is-active {
  background: #eff6ff;
  border-color: #4a90e2;
  font-weight: 600;
}

.mc-rating-row.is-active .mc-rating-row-stars {
  color: #f59e0b; /* star-ish tone */
}

/* Busy state */
.mc-rating-widget.is-busy .mc-rating-row {
  cursor: wait;
  opacity: 0.6;
}

/* Rating help + message */
.mc-rating-help {
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
}

.mc-rating-message {
  font-size: 0.85rem;
  margin-top: 0.1rem;
}


