/* Read-only comments widget. Styles scoped to .cm-widget and .cm-lightbox. */
.cm-widget { max-width:100%; min-width:0; box-sizing:border-box; font:inherit; color:inherit; }
.cm-widget *, .cm-widget *::before, .cm-widget *::after { box-sizing:border-box; }
.cm-heading { display:flex; flex-wrap:wrap; align-items:center; gap:12px; border-bottom:1px solid #e8eaed; padding:0 0 14px; margin:0 0 20px; }
.cm-heading .comtitle { margin:0; line-height:1.3; }
.cm-notice { margin-left:auto; color:#8c969f; font-size:12px; line-height:1.4; font-weight:400; text-align:right; }
.cm-comment { display:flex; align-items:flex-start; gap:15px; min-width:0; padding:19px 0 23px; border-bottom:1px solid #eff0f2; }
.cm-avatar { flex:0 0 48px; height:48px; display:flex; align-items:center; justify-content:center; border-radius:7px; background:#e8edf2; color:#6d8298; font-size:22px; font-weight:600; }
.cm-body { flex:1 1 auto; min-width:0; overflow-wrap:anywhere; }
.cm-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 13px; margin:0 0 6px; }
.cm-author { font-size:14px; font-weight:700; color:#222; }
.cm-date { color:#9ba9b9; font-size:12px; white-space:nowrap; }
.cm-message { font-size:14px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; margin:4px 0 7px; }
.cm-gallery { display:flex; flex-wrap:wrap; align-items:flex-start; gap:10px; margin:8px 0 14px; }
.cm-image-button { cursor:zoom-in; padding:0; border:0; background:transparent; display:block; max-width:100%; text-align:left; }
.cm-thumb { display:block; max-width:100%; width:auto; height:auto; border-radius:2px; box-shadow:0 2px 5px rgba(0,0,0,.16); }
.cm-image-button:focus-visible, .cm-more:focus-visible { outline:3px solid #146cbb; outline-offset:3px; }
.cm-more { display:inline-block; border:1px solid #d5e1ec; border-radius:5px; padding:9px 15px; background:#fff; color:#1672b7; font:inherit; font-size:14px; cursor:pointer; margin:8px 0; max-width:100%; }
.cm-more:hover { background:#f4f9fd; }
.cm-more:disabled { opacity:.7; cursor:wait; }
.cm-controls { text-align:center; padding:18px 0 6px; }
.cm-controls .cm-more { min-width:230px; }
.cm-replies { margin-top:4px; }
.cm-reply { margin-left:calc(min(var(--cm-depth, 1), 3) * 13px); border-left:2px solid #e6ecf2; padding:12px 0 12px 14px; border-bottom:none; }
.cm-reply .cm-avatar { flex-basis:34px; height:34px; font-size:16px; }
.cm-reply .cm-author { font-size:14px; }
.cm-reply .cm-message { font-size:14px; }
.cm-reply-target { color:#8997a4; font-size:12px; margin-bottom:5px; }
.cm-error { color:#b3261e; padding:10px; }
.cm-empty { color:#82909d; padding:15px 0; }
.cm-lightbox[hidden] { display:none !important; }
.cm-lightbox { position:fixed; z-index:2147483640; inset:0; padding:50px 16px 24px; background:rgba(8,13,21,.90); display:flex; align-items:center; justify-content:center; }
.cm-lightbox-image { max-width:95vw; max-height:calc(100vh - 90px); object-fit:contain; box-shadow:0 6px 28px rgba(0,0,0,.3); }
.cm-lightbox-close { position:absolute; top:8px; right:15px; padding:4px 10px; border:0; color:#fff; background:transparent; font-size:34px; cursor:pointer; }
body.cm-lightbox-open { overflow:hidden; }
@media (max-width:600px) {
  .cm-heading { gap:6px 12px; }
  .cm-notice { margin-left:0; width:100%; text-align:left; }
  .cm-comment { gap:10px; padding:14px 0 18px; }
  .cm-avatar { flex-basis:36px; height:36px; font-size:16px; }
  .cm-message { font-size:15px; }
  .cm-reply { margin-left:8px; padding-left:9px; }
  .cm-reply .cm-avatar { flex-basis:28px; height:28px; font-size:13px; }
  .cm-reply .cm-message { font-size:14px; }
  .cm-gallery { gap:8px; }
}

.cm-widget [hidden] { display:none !important; }
