.model-left .model-comments-wrap{
  width:100%;
  margin:18px 0 0;
  padding:0;
}

.model-left .cc-comments-box{
  width:100%;
  background:#fff;
  border:1px solid rgba(255,90,31,.45);
  border-radius:18px;
  overflow:hidden;
}

.cc-comments-head{
  display:flex;
  justify-content:space-between;
  padding:18px 22px;
  direction:rtl;
}

.cc-comment-form{
  margin:0 18px 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.cc-comment-form textarea{
  min-height:110px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:14px;
  background:#fff7f3;
  color:#111827;
  font-family:inherit;
  direction:rtl;
  text-align:right;
}

.cc-comment-form button{
  align-self:flex-start;
  border:0;
  border-radius:14px;
  padding:11px 22px;
  background:#ff5a1f;
  color:#fff;
  font-family:inherit;
  font-weight:700;
}

.cc-comment-list{
  padding:0 22px 22px;
}

.cc-comment-item{
  padding:16px 0;
  border-top:1px solid #eef0f4;
  direction:rtl;
  text-align:right;
}

.cc-comment-meta{
  display:flex;
  justify-content:space-between;
  margin-bottom:8px;
  color:#9ca3af;
  font-size:13px;
}

.cc-comment-meta strong{
  color:#111827;
}

.cc-comment-text{
  color:#1f2937;
  line-height:1.9;
}

.cc-comment-empty,
.cc-comment-login{
  margin:0 18px 18px;
  padding:14px;
  border-radius:16px;
  background:#fff1ec;
  color:#374151;
  direction:rtl;
}

/* Compact comments */
.model-left .model-comments-wrap{
  margin-top:12px;
}

.cc-comments-head{
  padding:12px 18px;
}

.cc-comment-form{
  margin:0 14px 12px;
  gap:8px;
}

.cc-comment-form textarea{
  min-height:74px;
  padding:10px 12px;
  line-height:1.6;
}

.cc-comment-form button{
  padding:8px 18px;
  border-radius:11px;
}

.cc-comment-list{
  padding:0 18px 14px;
}

.cc-comment-item{
  padding:10px 0;
}

.cc-comment-meta{
  margin-bottom:4px;
}

.cc-comment-empty,
.cc-comment-login{
  margin:0 14px 12px;
  padding:10px 12px;
}

/* force compact textarea */
.cc-comment-form textarea{
  height:90px !important;
  min-height:90px !important;
  max-height:90px !important;
}

.cc-comment-form{
  margin-bottom:8px !important;
}

.cc-comment-list{
  padding-top:0 !important;
}


/* final compact override */
.model-left .model-comments-wrap .cc-comment-form textarea{
  height:70px !important;
  min-height:70px !important;
  max-height:70px !important;
  padding:8px 12px !important;
  line-height:1.5 !important;
}

.model-left .model-comments-wrap .cc-comment-form{
  margin:0 14px 6px !important;
  gap:6px !important;
}

.model-left .model-comments-wrap .cc-comment-form button{
  padding:7px 16px !important;
}


/* reduce comment typing area another 30% */
.model-left .model-comments-wrap .cc-comment-form textarea{
  height:49px !important;
  min-height:49px !important;
  max-height:49px !important;
  padding:6px 10px !important;
  line-height:1.35 !important;
}

.model-left .model-comments-wrap .cc-comment-form{
  margin:0 14px 4px !important;
}


.cc-comment-delete{
  margin-top:8px;
  text-align:left;
}

.cc-comment-delete button{
  border:0;
  background:#fee2e2;
  color:#991b1b;
  border-radius:10px;
  padding:6px 12px;
  font-family:inherit;
  cursor:pointer;
  font-size:12px;
}

.cc-comment-delete button:hover{
  background:#fecaca;
}

.cc-comment-delete{
  display:block !important;
  margin-top:8px !important;
  text-align:left !important;
}

.cc-comment-delete button{
  display:inline-block !important;
  background:#dc2626 !important;
  color:#fff !important;
  border:0 !important;
  border-radius:10px !important;
  padding:6px 12px !important;
  font-size:12px !important;
  cursor:pointer !important;
}

.cc-replies{
  margin:10px 18px 0 0;
  padding:8px 12px;
  border-right:3px solid rgba(255,90,31,.45);
  background:#fff7f3;
  border-radius:14px;
}

.cc-reply-item{
  padding:10px 0;
  border-top:1px solid rgba(255,90,31,.12);
}

.cc-reply-item:first-child{
  border-top:0;
}

.cc-reply-form{
  display:flex;
  gap:8px;
  margin-top:10px;
  direction:rtl;
}

.cc-reply-form input{
  flex:1;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:8px 10px;
  font-family:inherit;
  outline:none;
}

.cc-reply-form button{
  border:0;
  border-radius:12px;
  padding:8px 14px;
  background:#ff5a1f;
  color:#fff;
  font-family:inherit;
  font-weight:700;
  cursor:pointer;
}

.cc-replies{
  margin:10px 18px 0 0;
  padding:8px 12px;
  border-right:3px solid rgba(255,90,31,.45);
  background:#fff7f3;
  border-radius:14px;
}

.cc-reply-item{
  padding:10px 0;
  border-top:1px solid rgba(255,90,31,.12);
}

.cc-reply-item:first-child{
  border-top:0;
}

.cc-reply-form{
  display:flex;
  gap:8px;
  margin-top:10px;
  direction:rtl;
}

.cc-reply-form input{
  flex:1;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:8px 10px;
  font-family:inherit;
  outline:none;
}

.cc-reply-form button{
  border:0;
  border-radius:12px;
  padding:8px 14px;
  background:#ff5a1f;
  color:#fff;
  font-family:inherit;
  font-weight:700;
  cursor:pointer;
}

/* slim replies */

.cc-replies{
  margin:8px 10px 0 0 !important;
  padding:4px 10px !important;
  border-right:1px solid rgba(255,90,31,.35) !important;
  border-radius:8px !important;
}

.cc-reply-item{
  padding:4px 0 !important;
  min-height:auto !important;
}

.cc-reply-item .cc-comment-meta{
  margin-bottom:2px !important;
}

.cc-reply-item .cc-comment-text{
  line-height:1.5 !important;
  font-size:14px !important;
}

.cc-reply-form{
  margin-top:6px !important;
}

.cc-reply-form input{
  height:38px !important;
  padding:4px 10px !important;
}

.cc-reply-form button{
  padding:4px 12px !important;
}

.cc-reply-item .cc-comment-delete{
  margin-top:4px !important;
}

.cc-reply-item .cc-comment-delete button{
  padding:3px 8px !important;
  font-size:11px !important;
}


/* ultra compact replies */

.cc-replies{
  margin:4px 6px 0 0 !important;
  padding:2px 8px !important;
}

.cc-reply-item{
  padding:2px 0 !important;
}

.cc-reply-item .cc-comment-meta{
  margin-bottom:0 !important;
  font-size:12px !important;
}

.cc-reply-item .cc-comment-text{
  font-size:13px !important;
  line-height:1.3 !important;
}

.cc-reply-form{
  margin-top:3px !important;
  gap:4px !important;
}

.cc-reply-form input{
  height:30px !important;
  min-height:30px !important;
  padding:2px 8px !important;
}

.cc-reply-form button{
  height:30px !important;
  padding:2px 10px !important;
  font-size:12px !important;
}

.cc-reply-item .cc-comment-delete{
  margin-top:2px !important;
}

.cc-reply-item .cc-comment-delete button{
  padding:2px 6px !important;
  font-size:10px !important;
  border-radius:6px !important;
}


/* shrink reply container by ~50% */

.cc-replies{
  margin:2px 4px 0 0 !important;
  padding:1px 6px !important;
  border-right-width:1px !important;
}

.cc-reply-item{
  padding:0 !important;
  margin:0 !important;
}

.cc-reply-item .cc-comment-meta{
  padding:0 !important;
  margin:0 0 2px 0 !important;
}

.cc-reply-item .cc-comment-text{
  padding:0 !important;
  margin:0 !important;
  line-height:1.2 !important;
}


/* collapse reply box */

.cc-replies{
  display:inline-block !important;
  width:auto !important;
  min-width:280px !important;
  max-width:700px !important;

  margin:4px 0 !important;
  padding:4px 10px !important;

  background:#fff7f3 !important;
  border-right:1px solid rgba(255,90,31,.35) !important;
  border-radius:8px !important;
}

.cc-reply-item{
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
}

.cc-reply-item .cc-comment-meta{
  margin:0 0 2px 0 !important;
  font-size:12px !important;
}

.cc-reply-item .cc-comment-text{
  margin:0 !important;
  padding:0 !important;
  font-size:13px !important;
  line-height:1.25 !important;
}


/* hard force compact reply box */
.model-left .model-comments-wrap .cc-replies{
  display:block !important;
  width:fit-content !important;
  max-width:70% !important;
  min-width:240px !important;
  margin:4px 0 4px auto !important;
  padding:6px 10px !important;
  background:#fff7f3 !important;
  border-radius:10px !important;
  border-right:2px solid rgba(255,90,31,.35) !important;
}

.model-left .model-comments-wrap .cc-reply-item{
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
}

.model-left .model-comments-wrap .cc-reply-item .cc-comment-meta{
  margin:0 0 2px 0 !important;
  padding:0 !important;
  line-height:1.2 !important;
}

.model-left .model-comments-wrap .cc-reply-item .cc-comment-text{
  margin:0 !important;
  padding:0 !important;
  line-height:1.25 !important;
}

/* === 3Dupia comments theme fix + compact replies === */
.model-comments-wrap,
.cc-comments-box{
  background: var(--card, #12151c) !important;
  color: var(--text, #e5e7eb) !important;
  border-color: rgba(255,255,255,.10) !important;
}

.cc-comments-head,
.cc-comment-meta,
.cc-comment-empty,
.cc-comment-login{
  color: var(--muted, #9ca3af) !important;
}

.cc-comment-form textarea,
.cc-reply-form input{
  background: var(--bg, #0b0d12) !important;
  color: var(--text, #e5e7eb) !important;
  border-color: rgba(255,255,255,.12) !important;
}

.cc-comment-form textarea::placeholder,
.cc-reply-form input::placeholder{
  color: rgba(229,231,235,.55) !important;
}

.cc-comment-item{
  border-color: rgba(255,255,255,.10) !important;
}

.cc-reply-item{
  width: 50% !important;
  min-height: unset !important;
  padding: 8px 12px !important;
  margin-top: 8px !important;
  margin-right: auto !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,93,35,.35) !important;
}

.cc-reply-item .cc-comment-meta{
  margin-bottom: 4px !important;
  font-size: 12px !important;
}

.cc-reply-item .cc-comment-text{
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.cc-reply-form{
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  margin-top: 10px !important;
}

.cc-reply-form input{
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
}

.cc-reply-form button{
  height: 38px !important;
  padding: 0 16px !important;
}

/* light theme */
[data-theme="light"] .model-comments-wrap,
[data-theme="light"] .cc-comments-box{
  background: #fff !important;
  color: #111827 !important;
  border-color: rgba(15,23,42,.12) !important;
}

[data-theme="light"] .cc-comment-form textarea,
[data-theme="light"] .cc-reply-form input{
  background: #fff7f3 !important;
  color: #111827 !important;
  border-color: rgba(15,23,42,.14) !important;
}

[data-theme="light"] .cc-reply-item{
  background: #fff7f3 !important;
  border-color: rgba(255,93,35,.35) !important;
}

@media (max-width: 768px){
  .cc-reply-item{
    width: 100% !important;
  }
}

/* === force dark reply card + smaller reply === */
html[data-theme="dark"] .cc-reply-item,
body[data-theme="dark"] .cc-reply-item,
[data-theme="dark"] .cc-reply-item,
.cc-comments-box .cc-reply-item{
  max-width: 50% !important;
  width: 50% !important;
  min-height: 0 !important;
  padding: 6px 10px !important;
  background: #151922 !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255,93,35,.32) !important;
  box-shadow: none !important;
}

.cc-comments-box .cc-reply-item *{
  color: #e5e7eb !important;
}

.cc-comments-box .cc-reply-item .cc-comment-meta,
.cc-comments-box .cc-reply-item .cc-comment-meta *{
  color: #94a3b8 !important;
}

.cc-comments-box .cc-reply-item .cc-comment-delete{
  margin-top: 6px !important;
}

.cc-comments-box .cc-reply-item .cc-comment-delete button{
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}

@media (max-width: 768px){
  .cc-comments-box .cc-reply-item{
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* === final fix: reply wrapper was still light === */
.model-left .model-comments-wrap .cc-replies{
  width: 50% !important;
  max-width: 50% !important;
  min-width: 0 !important;
  margin: 6px 0 6px auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.model-left .model-comments-wrap .cc-replies .cc-reply-item{
  width: 100% !important;
  max-width: 100% !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  background: #151922 !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255,93,35,.35) !important;
  border-radius: 12px !important;
}

.model-left .model-comments-wrap .cc-replies .cc-reply-item *{
  color: #e5e7eb !important;
}

.model-left .model-comments-wrap .cc-replies .cc-comment-meta,
.model-left .model-comments-wrap .cc-replies .cc-comment-meta *{
  color: #94a3b8 !important;
}

[data-theme="light"] .model-left .model-comments-wrap .cc-replies .cc-reply-item{
  background: #fff7f3 !important;
  color: #111827 !important;
}

[data-theme="light"] .model-left .model-comments-wrap .cc-replies .cc-reply-item *{
  color: #111827 !important;
}

@media (max-width:768px){
  .model-left .model-comments-wrap .cc-replies{
    width: 100% !important;
    max-width: 100% !important;
  }
}
