/* ==========================================================================
   Пан Кіно — компактні відгуки + полагоджене вікно «Відповідь на коментар».
   Підключається після kb-inline-v49.css, тому перекриває його правила.
   Файл новий: правки — піднімайте ?v= у <link>, стару копію тримає nginx.
   ========================================================================== */

/* --- 1. Картки відгуків: менше «хрому», більше тексту на екрані ---------- */
.comments-tree-list .comment-item.kb-cmt{
    padding:12px 16px;
    border-left-width:2px;
    border-radius:12px;
}
.comments-tree-list .kb-cmt__ava{
    width:32px;
    height:32px;
    margin:0 10px 0 0;
    border-radius:9px;
    font-size:13.5px;
}
.comments-tree-list .kb-cmt__meta{gap:2px}
.comments-tree-list .kb-cmt__name{font-size:14px}
.comments-tree-list .comment-item.kb-cmt .kb-cmt__date{font-size:11.5px}
.comments-tree-list .kb-cmt__body{
    margin:7px 0 0;
    font-size:14.5px;
    line-height:1.58;
}
.comments-tree-list .kb-cmt__body .quote_block{margin:9px 0}
.comments-tree-list .kb-cmt__body .quote{padding:9px 13px;font-size:13.5px}
.comments-tree-list .kb-cmt__foot{
    margin-top:8px;
    padding-top:7px;
    gap:6px;
}
.comments-tree-list .kb-cmt__act a{
    height:26px;
    padding:0 10px;
    gap:5px;
    border-radius:8px;
    font-size:12px;
}
.comments-tree-list .kb-cmt__act svg{width:12px;height:12px}
.comments-tree-list .kb-cmt__ctl a{height:26px;padding:0 9px;font-size:11.5px}
.comments-tree-list .comment-item.kb-cmt .kb-cmt__rate{height:26px;padding:0 9px;font-size:11.5px}
.comments-tree-item{margin:0 0 10px}
.comments-tree-item > .comments-tree-list{margin:10px 0 0;padding-left:18px}
.comments-tree-item > .comments-tree-list .kb-cmt__ava{width:30px;height:30px;font-size:13px;border-radius:9px}
#dle-comments-list{margin-top:2px}

/* --- 2. Вікно «Відповідь на коментар» -------------------------------------
   DLE віддає розмітку з inline float:50% для name/mail і звичайним
   <textarea rows=10>. Тема робила form{display:flex}, через що редактор
   стискався до ~225×80, а капча переносилась окремим рядком. */
.ui-dialog.dle-popup-replycomments .ui-dialog-content form{
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    gap:10px 12px;
    margin-top:12px;
}
.ui-dialog.dle-popup-replycomments .ui-dialog-content form > .commentsreplyname,
.ui-dialog.dle-popup-replycomments .ui-dialog-content form > .commentsreplymail{
    flex:1 1 220px;
    width:auto!important;
    float:none!important;
    padding:0!important;
    margin:0;
}
.ui-dialog.dle-popup-replycomments .ui-dialog-content form > .bb-editor,
.ui-dialog.dle-popup-replycomments .ui-dialog-content form > .wseditor{
    flex:0 0 100%;
    width:100%;
    min-width:0;
    margin:2px 0 0;
}
.ui-dialog.dle-popup-replycomments .ui-dialog-content form > .bb-editor textarea,
.ui-dialog.dle-popup-replycomments .ui-dialog-content form textarea{
    display:block;
    width:100%!important;
    min-height:148px;
    height:148px;
    max-height:46vh;
    margin:0;
    padding:12px 14px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:11px;
    background:rgba(8,14,23,.9);
    box-shadow:none;
    color:var(--kb-text,#E6EDF6);
    font-family:inherit;
    font-size:14.5px;
    line-height:1.6;
    resize:vertical;
}
.ui-dialog.dle-popup-replycomments .ui-dialog-content form textarea:focus{
    outline:none!important;
    border-color:rgba(47,208,240,.6);
    box-shadow:0 0 0 3px rgba(47,208,240,.13);
}
.ui-dialog.dle-popup-replycomments .ui-dialog-content form > .dle-captcha{
    flex:0 0 100%;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    padding-top:0;
}
.ui-dialog.dle-popup-replycomments .ui-dialog-content .dle-captcha a{flex:0 0 auto;line-height:0}
.ui-dialog.dle-popup-replycomments .ui-dialog-content .dle-captcha img{
    width:160px!important;
    height:80px!important;
    max-width:none;
    border-radius:10px;
    background:#F4F7FA;
    object-fit:contain;
}
.ui-dialog.dle-popup-replycomments .ui-dialog-content .dle-captcha .sec-code{
    flex:1 1 190px;
    width:auto!important;
    max-width:280px;
}

/* --- 3. Телефони ---------------------------------------------------------- */
@media (max-width:767px){
    .comments-tree-list .comment-item.kb-cmt{padding:11px 13px}
    .comments-tree-list .kb-cmt__ava{width:30px;height:30px;font-size:13px;margin-right:9px}
    .comments-tree-list .kb-cmt__body{font-size:14px;line-height:1.55}
    .comments-tree-list .kb-cmt__act a{height:28px;padding:0 9px;font-size:11.5px}
    .comments-tree-item{margin-bottom:8px}
    .comments-tree-item > .comments-tree-list{padding-left:12px;margin-top:8px}

    .ui-dialog.dle-popup-replycomments{max-width:calc(100vw - 14px)}
    .ui-dialog.dle-popup-replycomments .ui-dialog-content{padding:14px 14px 4px}
    .ui-dialog.dle-popup-replycomments .ui-dialog-content form > .commentsreplyname,
    .ui-dialog.dle-popup-replycomments .ui-dialog-content form > .commentsreplymail{flex:1 1 100%}
    .ui-dialog.dle-popup-replycomments .ui-dialog-content form textarea{min-height:124px;height:124px}
    .ui-dialog.dle-popup-replycomments .ui-dialog-content .dle-captcha img{width:130px!important;height:65px!important}
    .ui-dialog.dle-popup-replycomments .ui-dialog-buttonpane button.ui-button{height:40px!important;padding:0 16px!important}
}
