

.cm-box {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  width:min(100%, 760px);
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 3rem;

}

.cm-title {
  font-weight: 600;
  font-size: 18px;
  color: #4C2FED;
  margin-bottom: 20px;
}

.cm-item {
  border-bottom: 1px solid #f0f0f0;
  padding: 15px 0;
}

.cm-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
  align-items: center;
  gap: 8px;
}

.cm-meta strong { color: #111; }

.cm-user {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cm-avatar{
  width:18px;
  height:18px;
  border-radius:999px;
  background:#4C2FED;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.cm-avatar-ico{
  width:12px; height:12px; display:block;
}
.cm-avatar-ico circle,
.cm-avatar-ico path{
  stroke:#fff;
  stroke-width:1.8;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.cm-content {
  font-size: 15px;
  font-weight: 400;
  color: #888 !important;
  line-height: 1.6;
  margin: 6px 0 12px;
  font-family: 'Segoe UI', sans-serif;
  white-space: pre-line;
}

.cm-actions { margin-top: 8px; }

.cm-reply{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#2196F3;
  font-size:14px;
  cursor:pointer;
  text-decoration:none;
  border:none;
  background:none;
  padding:0;
  margin:0;
}
.cm-reply:hover{ text-decoration: underline; }
.cm-reply:focus{ outline:none; }

.cm-reply-ico{
  width:14px;
  height:14px;
  display:inline-block;
  vertical-align:-1px;
  color:#1E88E5;
}
.cm-reply-ico path{
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: currentColor;
  fill-opacity: .22;
}
.cm-reply:hover .cm-reply-ico path{ fill-opacity: .30; }

.cm-replies { margin-top: 8px; }
.cm-item .cm-replies .cm-item {
  border-left: 2px solid #eee;
  padding-left: 12px;
  margin-left: 6px;
}

.cm-more-replies { display: inline-block; margin: 6px 0 0; }

.cm-pager{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:12px 0 10px;
  border-top:1px solid #eee;
  padding-top:12px;
}
.cm-pager-info{ font-size:13px; color:#6b7280; }
.cm-page-nav{ display:flex; gap:8px; }
.cm-page-btn{
  width:32px; height:32px; box-sizing:border-box;
  border-radius:8px;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid #4C2FED;
  background:#fff; color:#4C2FED;
  cursor:pointer;
  transition:transform .06s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.cm-page-btn:active{ transform:scale(0.98); }
.cm-page-btn.is-filled{ background:#4C2FED; color:#fff; border-color:#4C2FED; }
.cm-page-btn:hover{ background:#F3F0FF; }
.cm-page-btn.is-filled:hover{ background:#3A22BB; }
.cm-page-btn:disabled{
  opacity:.45; cursor:not-allowed; background:#f5f5f7; color:#9aa0a6; border-color:#e5e7eb;
}
.cm-page-btn svg{
  width:16px; height:16px; display:block;
  stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
}

.cm-btn {
  background: #f3f3f3;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}
.cm-btn:hover { background: #e0e0e0; }

.cm-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cm-input {
  width: 100%;
  min-height: 56px;
  max-height: 220px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px 14px;
  line-height: 1.45;
  overflow: auto;
  font-size: 14px;
  resize: vertical;
  font-family: 'Segoe UI', sans-serif;
}
@media (min-width: 768px){
  .cm-input{ min-height: 64px; }
}

.cm-submit{
  background:#4C2FED;
  color:#fff;
  padding:10px 16px;
  border:1px solid transparent;
  border-radius:6px;
  cursor:pointer;
  font-weight:bold;
  font-size:15px;
  width:35%;
  margin-right: auto;
  margin-left: auto;
  transition: background-color .15s ease, box-shadow .15s ease, transform .06s ease;
}
.cm-submit:hover{ background:#3A22BB; }
.cm-submit:active{ background:#2D1895; transform:scale(0.995); }
.cm-submit:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(76,47,237,0.35);
}
.cm-submit:disabled{
  background:#9A8CFF;
  color:#F0EEFF;
  cursor:not-allowed;
  opacity:1;
  border-color:#9A8CFF;
}

.cm-error { color: red; font-size: 14px; margin-top: -8px; }

.cm-loadmore{ display:none !important; }

.cm-actions{
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:14px;
}

.cm-dot{ color:#b6b6b6; }

.cm-like{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:none;
  border:none;
  padding:0;
  margin:0;
  cursor:pointer;
  color:#444;
  font-size:14px;
}
.cm-like:hover{ text-decoration: underline; }
.cm-like-count{ font-weight:600; }


.cm-like-ico{
  width:16px;           
  height:16px;
  display:inline-block;
  vertical-align:-2px;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
  background-image:url("../comments/assets/like.png");
}

.cm-like.is-on .cm-like-ico{
  background-image:url("../comments/assets/likeup2.png");
}


.cm-like-ico{
  background-image:image-set(
    url("../comments/assets/like.png") 1x,
    url("../comments/assets/like@2x.png") 2x
  );
}
.cm-like.is-on .cm-like-ico{
  background-image:image-set(
    url("../comments/assets/likeup2.png") 1x,
    url("../comments/assets/likeup2@2x.png") 2x
  );
}

.cm-like.is-on{ color:#4C2FED; }

.cm-replies-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:none;
  border:none;
  padding:0;
  margin:0;
  cursor:pointer;
  color:#444;
  font-size:14px;
}


.cm-replies-toggle:hover{ text-decoration: underline; }

.material-symbols-rounded.cm-replies-ico{
  font-family:"Material Symbols Rounded";
  font-size:16px;
  line-height:1;
  display:inline-block;
  vertical-align:-2px;
  color:currentColor;
  font-variation-settings:'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}
.cm-replies-toggle[aria-expanded="true"] .material-symbols-rounded.cm-replies-ico{
  font-variation-settings:'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}

.cm-input{ box-sizing: border-box; }
.cm-submit{ box-sizing: border-box; }

.cm-user-ava{
  width:18px;
  height:18px;
  display:inline-block;
  flex-shrink:0;
}
.cm-user-ava rect{ fill:#4C2FED; }  
.cm-user-ava path{ fill:#fff; }      

.cm-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.cm-user {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.cm-avatar {
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:700;
  text-transform:uppercase;
  font-size:16px;
  flex-shrink:0;
}

.cm-username {
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:220px; /* ajustá según tu layout */
}

.cm-noscript{padding:12px;background:#fff3cd;color:#533f03;border:1px solid #ffeeba;border-radius:6px;margin:12px 0}
.btn-comentarios {
  background-color: #4C2FED;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 15px;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  height:  calc(1.5em + 0.75rem + 1px);
}

.btn-comentarios:hover {
  background-color: #0056b3;
}
.candado-svg-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
}

