.cfpro-dmnp-comments-toggle {
margin-top: 16px;
padding: 0;
border: none;
background: none;
width: 100%;
}
.cfpro-dmnp-comments-btn {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 12px 16px;
background: #f3f4f6;
border: 1px solid #e5e7eb;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
color: #374151;
cursor: pointer;
transition: all 0.2s;
}
.cfpro-dmnp-comments-btn:hover {
background: #e5e7eb;
border-color: #d1d5db;
}
.cfpro-dmnp-comments-toggle.is-open .cfpro-dmnp-comments-btn {
background: #fff;
border-color: #3b82f6;
color: #3b82f6;
}
.cfpro-dmnp-comments-icon {
font-size: 16px;
}
.cfpro-dmnp-comments-text {
flex: 1;
text-align: left;
}
.cfpro-dmnp-comments-count {
background: #3b82f6;
color: white;
padding: 2px 8px;
border-radius: 12px;
font-size: 12px;
font-weight: 700;
}
.cfpro-dmnp-comments-chevron {
color: #9ca3af;
font-size: 12px;
transition: transform 0.2s;
} .cfpro-dmnp-comments-container {
margin-top: 12px;
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 16px;
display: none;
} .cfpro-dmnp-comments-list {
max-height: 400px;
overflow-y: auto;
margin-bottom: 16px;
}
.cfpro-dmnp-comments-list::-webkit-scrollbar {
width: 6px;
}
.cfpro-dmnp-comments-list::-webkit-scrollbar-track {
background: #f3f4f6;
border-radius: 3px;
}
.cfpro-dmnp-comments-list::-webkit-scrollbar-thumb {
background: #d1d5db;
border-radius: 3px;
}
.cfpro-dmnp-comments-list::-webkit-scrollbar-thumb:hover {
background: #9ca3af;
} .cfpro-dmnp-comment {
display: flex;
gap: 12px;
padding: 12px;
background: white;
border-radius: 8px;
margin-bottom: 12px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.cfpro-dmnp-comment:last-child {
margin-bottom: 0;
}
.cfpro-dmnp-comment-avatar {
flex-shrink: 0;
}
.cfpro-dmnp-comment-avatar-img {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
}
.cfpro-dmnp-comment-body {
flex: 1;
min-width: 0;
}
.cfpro-dmnp-comment-meta {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 6px;
flex-wrap: wrap;
}
.cfpro-dmnp-comment-author {
font-size: 14px;
font-weight: 600;
color: #111827;
}
.cfpro-dmnp-comment-time {
font-size: 12px;
color: #6b7280;
}
.cfpro-dmnp-comment-delete {
margin-left: auto;
padding: 4px;
background: none;
border: none;
color: #9ca3af;
cursor: pointer;
border-radius: 4px;
transition: all 0.2s;
}
.cfpro-dmnp-comment-delete:hover {
background: #fee2e2;
color: #ef4444;
}
.cfpro-dmnp-comment-text {
font-size: 14px;
line-height: 1.5;
color: #374151;
margin: 0;
word-wrap: break-word;
} .cfpro-dmnp-comment-form {
position: relative;
}
.cfpro-dmnp-comment-textarea {
width: 100%;
padding: 12px;
border: 1px solid #d1d5db;
border-radius: 8px;
font-size: 14px;
font-family: inherit;
resize: vertical;
min-height: 60px;
transition: border-color 0.2s;
}
.cfpro-dmnp-comment-textarea:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.cfpro-dmnp-comment-form-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 8px;
}
.cfpro-dmnp-char-count {
font-size: 12px;
color: #6b7280;
}
.cfpro-dmnp-char-count.is-over {
color: #ef4444;
font-weight: 600;
}
.cfpro-dmnp-submit-comment {
padding: 8px 20px;
background: #3b82f6;
color: white;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}
.cfpro-dmnp-submit-comment:hover:not(:disabled) {
background: #2563eb;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}
.cfpro-dmnp-submit-comment:disabled {
background: #d1d5db;
cursor: not-allowed;
opacity: 0.6;
} .cfpro-dmnp-load-more {
display: block;
width: 100%;
padding: 10px;
margin-top: 12px;
background: white;
border: 1px solid #e5e7eb;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
color: #3b82f6;
cursor: pointer;
transition: all 0.2s;
}
.cfpro-dmnp-load-more:hover:not(:disabled) {
background: #f3f4f6;
border-color: #3b82f6;
}
.cfpro-dmnp-load-more:disabled {
opacity: 0.6;
cursor: not-allowed;
} .cfpro-dmnp-no-comments,
.cfpro-dmnp-loading,
.cfpro-dmnp-error {
text-align: center;
padding: 24px;
color: #6b7280;
font-size: 14px;
}
.cfpro-dmnp-error {
color: #ef4444;
} .cfpro-dmnp-login-prompt {
text-align: center;
padding: 16px;
background: #fef3c7;
border: 1px solid #fbbf24;
border-radius: 8px;
margin-top: 12px;
}
.cfpro-dmnp-login-prompt p {
margin: 0 0 12px 0;
color: #92400e;
font-size: 14px;
}
.cfpro-dmnp-login-link {
display: inline-block;
padding: 8px 20px;
background: #3b82f6;
color: white;
text-decoration: none;
border-radius: 6px;
font-weight: 600;
font-size: 14px;
transition: all 0.2s;
}
.cfpro-dmnp-login-link:hover {
background: #2563eb;
color: white;
} .cfpro-dmnp-message {
padding: 12px;
border-radius: 6px;
margin-top: 12px;
font-size: 14px;
animation: slideIn 0.3s ease;
}
.cfpro-dmnp-message--success {
background: #d1fae5;
color: #065f46;
border: 1px solid #10b981;
}
.cfpro-dmnp-message--error {
background: #fee2e2;
color: #991b1b;
border: 1px solid #ef4444;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
} @media (max-width: 768px) {
.cfpro-dmnp-comments-list {
max-height: 300px;
}
.cfpro-dmnp-comment {
gap: 8px;
padding: 10px;
}
.cfpro-dmnp-comment-avatar-img {
width: 32px;
height: 32px;
}
.cfpro-dmnp-comment-author {
font-size: 13px;
}
.cfpro-dmnp-comment-time {
font-size: 11px;
}
.cfpro-dmnp-comment-text {
font-size: 13px;
}
} .cfpro-dmnp-guest-name-wrap {
margin-bottom: 8px;
}
.cfpro-dmnp-guest-name {
width: 100%;
padding: 8px 12px;
border: 1px solid #e2e8f0;
border-radius: 8px;
font-size: 13px;
background: #f8fafc;
box-sizing: border-box;
transition: border-color .15s, box-shadow .15s;
}
.cfpro-dmnp-guest-name:focus {
outline: none;
border-color: #f59e0b;
box-shadow: 0 0 0 3px rgba(245,158,11,.12);
background: #fff;
}
.cfpro-dmnp-guest-badge {
display: inline-block;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .04em;
padding: 1px 6px;
border-radius: 4px;
background: #e2e8f0;
color: #64748b;
margin-left: 4px;
vertical-align: middle;
}
.cfpro-dmnp-comment-avatar-guest {
width: 40px;
height: 40px;
border-radius: 50%;
background: #e2e8f0;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
}
.cfpro-dmnp-comment--guest {
opacity: 0.92;
}