diff --git a/css/mod_comment_styles.css b/css/mod_comment_styles.css
index ed371b3..dea99fd 100644
--- a/css/mod_comment_styles.css
+++ b/css/mod_comment_styles.css
@@ -298,3 +298,38 @@ html {
opacity: 0.8;
}
.ico_delete_all:hover { opacity: 1; transform: scale(1.1); }
+
+/* Стили для стандартной шапки поповера */
+.popover-header {
+ background-color: #f0f0f0 !important; /* Тот самый серый цвет */
+ border-bottom: 1px solid #dee2e6 !important;
+ padding: 8px 12px !important;
+ font-size: 0.9rem !important;
+ font-weight: 600 !important;
+}
+
+/* Кнопка закрытия в шапке */
+.pop-close {
+ background: none !important;
+ border: none !important;
+ font-size: 22px !important;
+ line-height: 1 !important;
+ color: #999 !important;
+ cursor: pointer !important;
+ padding: 0 !important;
+ margin-left: 10px !important;
+}
+
+.pop-close:hover {
+ color: #f00 !important;
+}
+
+.popover-body {
+ padding: 12px !important;
+ min-width: 230px !important;
+}
+.author-popover, .author-popover:focus, .author-popover:active {
+ outline: none !important;
+ box-shadow: none !important;
+ text-decoration: none !important;
+}
diff --git a/templates/comments_tree.tpl b/templates/comments_tree.tpl
index 59cbf8b..83c1ecc 100644
--- a/templates/comments_tree.tpl
+++ b/templates/comments_tree.tpl
@@ -371,6 +371,77 @@
}
{/literal}
+{literal}
+
+{/literal}
{/if}
{/if}
\ No newline at end of file
diff --git a/templates/comments_tree_sub.tpl b/templates/comments_tree_sub.tpl
index fbd9e17..e0b6c42 100644
--- a/templates/comments_tree_sub.tpl
+++ b/templates/comments_tree_sub.tpl
@@ -1,41 +1,3 @@
-{literal}
-
-{/literal}
{foreach from=$subcomments item=c name=sub_loop}
{* ОПРЕДЕЛЯЕМ СТАТУС УДАЛЕНИЯ *}
{assign var="is_deleted" value=false}
@@ -332,75 +294,3 @@
{/foreach}
-{literal}
-
-{/literal}
\ No newline at end of file