.cpl-comment-section {
  margin: 20px 0;
  padding: 16px;
  border-width: 1px;
  border-style: solid;
  border-radius: 8px;
  font-family: inherit;
}

.cpl-comment-title {
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  font-size: 1.2em;
}

.cpl-comment-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 6px;
}

.cpl-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.cpl-comment-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.cpl-comment-logout-button {
  margin-left: auto;
  padding: 6px 12px;
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
  font: inherit;
  font-size: 0.85em;
  cursor: pointer;
}

.cpl-comment-logout-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.cpl-comment-form {
  margin-bottom: 20px;
}

.cpl-comment-textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.cpl-comment-textarea:focus {
  outline: none;
}

.cpl-comment-form-actions {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cpl-comment-hint {
  font-size: 0.85em;
}

.cpl-comment-submit-button {
  padding: 8px 20px;
}

.cpl-comment-status {
  margin-top: 8px;
  font-size: 0.9em;
}

.cpl-comment-login-prompt {
  text-align: center;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.cpl-comment-login-text {
  margin: 0 0 12px 0;
}

.cpl-comment-login-button {
  padding: 10px 24px;
}

.cpl-comments-list {
  margin-top: 16px;
}

.cpl-comment-item {
  padding: 12px 0;
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.cpl-comments-list > .cpl-comment-item:last-child {
  border-bottom: none;
}

.cpl-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cpl-comment-date {
  font-size: 0.8em;
}

.cpl-comment-body {
  padding-left: 36px;
  white-space: pre-wrap;
}

.cpl-comment-empty {
  text-align: center;
  padding: 20px;
  font-style: italic;
}

/* Comments Center (moderation dashboard) */
.cpl-comments-center {
  padding: 16px;
}

.cpl-comments-center-section {
  margin-bottom: 24px;
}

.cpl-comment-plugin-pill {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 8px;
  font-size: 0.8em;
  border-width: 1px;
  border-style: solid;
}

.cpl-moderation-item {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  border-width: 1px;
  border-style: solid;
  border-left-width: 3px;
  border-left-style: solid;
}

.cpl-moderation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top-width: 1px;
  border-top-style: dashed;
}

.cpl-moderation-badge {
  font-size: 0.8em;
  padding: 2px 8px;
  border-radius: 10px;
  border-width: 1px;
  border-style: solid;
}

.cpl-moderation-approve-btn {
  padding: 4px 12px;
  font-size: 0.8em;
}

.cpl-moderation-reject-btn {
  padding: 4px 12px;
  font-size: 0.8em;
}

.cpl-moderation-delete-btn {
  padding: 4px 12px;
  font-size: 0.8em;
  margin-left: auto;
}

.cpl-moderation-refresh-hint {
  margin-top: 6px;
  font-size: 0.8em;
  text-align: center;
}

.cpl-moderation-all-clear {
  font-size: 1.1em;
  padding: 30px;
}

/* Comments Center Layout */
.cpl-comments-center-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 1em;
}

/* Comments Center Header */
.cpl-comments-center-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

/* Comments Center Toolbar (heading + refresh) */
.cpl-comments-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

/* Comments Center Search Bar */
.cpl-comments-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.cpl-comments-search-bar input {
  flex: 1;
  padding: 8px 12px;
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
  font-size: 0.95em;
}

/* Pagination */
.cpl-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 0;
  margin: 8px 0;
}

.cpl-pagination-btn {
  padding: 4px 12px;
  font-size: 1em;
  border-radius: 4px;
}

.cpl-pagination-info {
  font-size: 0.9em;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}