/* ===========================
   КОНТЕЙНЕР ДВУХ КОЛОНОК
=========================== */
.ac-comments-wrapper {
    display: flex;
    gap: 30px; /* расстояние между колонками */
    flex-wrap: wrap;
}

/* Колонка комментариев */
.ac-comments-column {
    flex: 2; /* комментарии шире */
    min-width: 300px;
}

/* Колонка формы */
.ac-form-column {
    flex: 1; /* форма уже */
    min-width: 250px;
}

/* ===========================
   ФОРМА КОММЕНТАРИЯ
=========================== */
#ac-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

#ac-reply-label {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 16px;
}

#ac-form input[type="text"],
#ac-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#ac-form input[type="text"]:focus,
#ac-form textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
    outline: none;
}

#ac-form textarea {
    min-height: 120px;
    resize: vertical;
}

.ac-submit-btn {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.ac-submit-btn:hover {
    background: #005177;
}

/* ===========================
   СПИСОК КОММЕНТАРИЕВ
=========================== */
.ac-comments {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}

/* Каждый комментарий */
.ac-comment {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Hover эффект */
.ac-comment:hover {
/*    transform: translateY(-2px);*/
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Внутренний блок с аватаркой и текстом */
.ac-inner {
    display: flex;
    gap: 15px;
}

/* Аватар */
.ac-avatar {
    flex-shrink: 0;
}

.ac-letter-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0073aa, #00bcd4);
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Тело комментария */
.ac-body {
    flex: 1;
}

/* Верхняя часть комментария (имя и дата) */
.ac-head {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
}

/* Текст комментария */
.ac-text {
    font-size: 15px;
    margin-bottom: 10px;
    color: #555;
}

/* Кнопки лайков/дизлайков/ответа */
.ac-actions {
    display: flex;
    gap: 8px;
}

.ac-actions button {
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.ac-actions button:hover {
    background: #e0e0e0;
}

/* ===========================
   ВЛОЖЕННОСТЬ (СТУПЕНЬКИ)
=========================== */
.ac-comment[data-level] {
    margin-left: calc(40px * var(--level, 0));
}

/* Для визуальной отделенности каждого ответа */
.ac-comment[data-level] {
    margin-top: 15px;
}

/* ===========================
   ОБЩИЙ ВИД
=========================== */
body .ac-comment:first-child {
    margin-top: 0;
}
/* ===========================
  ПОКАЗАТЬ ЕЩЕ 
=========================== */

#ac-show-more {
    display: inline-block;
    margin: 15px 0;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

#ac-show-more:hover {
    background: #005177;
}
/* ===========================
  УВЕДОМЛЕНИЯ 
=========================== */

.ac-notification {
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    font-family: sans-serif;
    font-size: 14px;
}

.ac-notification.success { background: #4caf50; }
.ac-notification.error   { background: #f44336; }
.ac-notification.info    { background: #2196f3; }


#ac-emoji-panel {
  display: flex;
  gap: 5px;
  margin: 5px 0;
  padding: 5px;
  overflow-x: auto;        /* горизонтальная прокрутка */
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #f9f9f9;
}

#ac-emoji-panel button {
  flex: 0 0 auto;          
  font-size: 20px;
/*  border: 1px solid #ccc;*/
/*  border-radius: 5px;*/
  background: none;
  cursor: pointer;
  padding: 0px;
  transition: background 0.2s;
}

#ac-emoji-panel button:hover {
  background: #eee;
}
/* TELEGRAM STYLE EDITOR */

.tg-style {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #f4f5f7;
  border: 1px solid #e3e6ea;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.tg-style button {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.tg-style button svg {
  width: 18px;
  height: 18px;
  fill: #6b7280;
  transition: fill 0.15s ease;
}

.tg-style button:hover {
  background: #e6e8eb;
}

.tg-style button:hover svg {
  fill: #111827;
}

.tg-style button:active {
  transform: scale(0.95);
}

/* EDITOR */

#ac-editor {
  min-height: 120px;
  padding: 14px;
  border: 1px solid #e3e6ea;
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: white;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

#ac-editor:focus {
  border-color: #3390ec;
  box-shadow: 0 0 0 2px rgba(51, 144, 236, 0.15);
}
.tg-style button {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.tg-style button:hover {
  color: #111827;
}
.ac-form-column {
    flex: 1;
    min-width: 250px;
    max-width: 420px; /* фикс ширины формы */
}
.tg-style {
  flex-wrap: wrap; /* чтобы кнопки переносились */
}


