﻿body {
}

.announcement-comments {
    direction: rtl;
    text-align: right;
    margin-top: 45px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

    .comments-header h4 {
        font-size: 20px;
        font-weight: bold;
        margin: 0;
    }

#commentsCount {
    color: #888;
    font-size: 13px;
}

.comment-item {
    padding: 18px;
    margin-bottom: 16px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
}

.comment-user-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.comment-user-name {
    font-weight: bold;
    color: #333;
}

.comment-date {
    color: #888;
    font-size: 12px;
}

.comment-text {
    line-height: 2;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.admin-reply {
    margin-top: 16px;
    padding: 14px;
    background: #fff5e9;
    border-right: 4px solid #e9a34b;
    border-radius: 7px;
}

.admin-reply-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.admin-actions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-reply-form {
    margin-top: 12px;
}

    .admin-reply-form textarea {
        width: 100%;
        min-height: 80px;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 7px;
    }

.comment-form-container {
    border-top: 1px solid #eee;
    padding-top: 22px;
}

    .comment-form-container textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        resize: vertical;
    }

.comments-loading {
    padding: 25px;
    text-align: center;
    color: #888;
}

@media(max-width:576px) {
    .announcement-comments {
        padding: 14px;
    }

    .comment-item {
        padding: 13px;
    }
}
