/* Comments (includes/comments.php): articles + plant pages, members only */
.sc-comments { max-width: 900px; /* = the article text width (catalog.css) */ margin: 3rem auto 3.5rem; padding-top: 2.2rem; border-top: 1px solid var(--sc-line, rgba(0, 0, 0, .1)); }
.sc-pin ~ .sc-comments { max-width: none; margin-top: 1rem; } /* plant page: the page's full width, like "צמחים נוספים" (articles: the text column) */
.sc-comments-title { margin: 0 0 .4em; font-size: clamp(1.35em, 2.2vw, 1.6em); }
.sc-comments-count { font-weight: 400; opacity: .6; font-size: .8em; }
.sc-comments-invite { margin: 0 0 1rem; opacity: .75; }

/* the list */
.sc-cmt-list, .sc-cmt-list .children { list-style: none; margin: 0; padding: 0; }
.sc-cmt-list { margin: .8rem 0 1.6rem; }
.sc-cmt-list .children .sc-cmt { padding-top: 12px; }
.sc-cmt-list .children { margin-top: 4px; margin-inline-start: 56px; border-inline-start: 2px solid color-mix(in srgb, var(--sc-c-btn, #3d7a66) 18%, transparent); padding-inline-start: 14px; }
.sc-cmt { margin: 0; }
.sc-cmt-list > .sc-cmt { padding: 16px 0; border-bottom: 1px solid var(--sc-line, rgba(0, 0, 0, .08)); }
.sc-cmt-list > .sc-cmt:first-child { padding-top: 4px; }
.sc-cmt-body { display: flex; gap: 12px; align-items: flex-start; }
.sc-cmt-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--sc-gray, #eef0ec); }
.children .sc-cmt-avatar { width: 34px; height: 34px; }
.sc-cmt-letter { display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; color: var(--sc-c-btn, #3d7a66); background: color-mix(in srgb, var(--sc-c-btn, #3d7a66) 14%, #fff); }
.sc-cmt-main { flex: 1; min-width: 0; padding-top: 2px; } /* no filled bubble (2026-09-28): text on the page, like the rest of the site */
.sc-cmt.is-pending > .sc-cmt-body { opacity: .75; }
.sc-cmt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 2px; font-size: .92rem; }
.sc-cmt-name { font-weight: 700; }
.sc-cmt-date { font-size: .82rem; color: inherit; opacity: .6; text-decoration: none; }
.sc-cmt-date:hover { opacity: .9; text-decoration: underline; }
.sc-cmt-wait { padding: 1px 9px; border-radius: 999px; background: #fff6d8; color: #6d5a12; font-size: .76rem; font-weight: 600; }
.sc-cmt-text { line-height: 1.7; overflow-wrap: anywhere; }
.sc-cmt-text p { margin: 0 0 .5em; }
.sc-cmt-foot { margin-top: 2px; }
.sc-cmt-foot a { font-size: .85rem; font-weight: 600; color: var(--sc-c-btn, #3d7a66); text-decoration: none; }
.sc-cmt-foot a:hover { text-decoration: underline; }
/* "מחיקה" (own comments / site owner): quiet, after "תגובה" */
.sc-cmt-foot { display: flex; gap: 14px; align-items: center; }
.sc-cmt-del { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: .85rem; color: #a2504a; opacity: .75; }
.sc-cmt-del:hover { opacity: 1; text-decoration: underline; }
.sc-cmt-del:disabled { opacity: .4; cursor: wait; }
.sc-cmt.sc-cmt-out { opacity: 0; transition: opacity .3s ease; }

/* the form */
.sc-comments .comment-respond { margin-top: 1rem; }
.sc-cmt .comment-respond { margin: 10px 0 0 0; } /* moved under a comment by "תגובה" */
.sc-cmt-form-title { margin: 0 0 .5em; font-size: 1.1em; }
.sc-cmt-form-title:empty { display: none; }
.sc-cmt-form-title small { margin-inline-start: 10px; font-size: .8em; font-weight: 400; }
.sc-cmt-form-title small a { color: inherit; opacity: .7; }
.sc-cmt-form p { margin: 0; }
.sc-cmt-form textarea {
	width: 100%; box-sizing: border-box; min-height: 110px; padding: 12px 14px; resize: vertical;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: 16px; background: #fff; color: inherit;
	font: inherit; font-size: 16px; line-height: 1.6;
}
.sc-cmt-form textarea:focus { outline: 2px solid var(--sc-c-btn, #3d7a66); outline-offset: 1px; border-color: transparent; }
.sc-cmt-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 10px; }
.sc-cmt-mail { display: flex; align-items: center; gap: 8px; font-size: .88rem; opacity: .8; cursor: pointer; }
.sc-cmt-mail input { width: 17px; height: 17px; margin: 0; accent-color: var(--sc-c-btn, #3d7a66); }
/* "פרסום" + "התחברות כדי להגיב": look from assets/buttons.css (.sc-btn) */
.sc-cmt-login { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; border-radius: 16px; background: var(--sc-gray, #f3f4f1); } /* same as the catalog search panel */
.sc-cmt-login p { margin: 0; }

@media (max-width: 600px) {
	.sc-cmt-list .children { margin-inline-start: 18px; padding-inline-start: 10px; }
	.sc-cmt-avatar { width: 36px; height: 36px; }
	.sc-cmt-send:not(#sc-btn) { width: 100%; }
	.sc-cmt-login-btn { width: 100%; }
}
body.dark-mode .sc-cmt-login { background: rgba(255, 255, 255, .06); }
body.dark-mode .sc-cmt-form textarea { background: rgba(255, 255, 255, .06); }
body.dark-mode .sc-cmt-letter { background: rgba(255, 255, 255, .08); }
