.article-comments {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.comments-title {
    font-size: 30px;
    margin-bottom: 25px;
    color: #111;
    line-height: 1.2;
}

.no-comments {
    margin-bottom: 30px;
    padding: 18px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.no-comments p {
    margin: 0;
    color: #333;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 35px;
}

.comment {
    list-style: none;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    background: #fafafa;
}

.comment-avatar {
    flex: 0 0 46px;
}

.comment-avatar img {
    display: block;
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.comment-author {
    font-weight: 700;
    color: #111;
}

.comment-author a {
    color: inherit;
    text-decoration: none;
}

.comment-author a:hover {
    text-decoration: underline;
}

.comment-date {
    font-size: 14px;
    color: #666;
}

.comment-text {
    font-size: 16px;
    line-height: 1.65;
    color: #222;
    word-wrap: break-word;
}

.comment-text p {
    margin-top: 0;
    margin-bottom: 12px;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
}

.comment-like-btn {
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.comment-like-btn:hover {
    transform: translateY(-1px);
    border-color: #bbb;
}

.comment-reply-wrap a {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    color: #0a58ca;
}

.comment-reply-wrap a:hover {
    text-decoration: underline;
}

.comment-cookie-info {
    font-size: 14px;
    color: #777;
}

/* Odpowiedzi - tylko jedno stałe wcięcie */
.comments-list .children {
    margin-top: 14px;
    margin-left: 35px;
    padding-left: 0;
}

.comments-list .children .children {
    margin-left: 0;
}

.comments-list .children .comment-item {
    background: #f4f6f9;
}

.comment.depth-1 {
    margin-left: 0;
}

.comment.depth-2,
.comment.depth-3,
.comment.depth-4,
.comment.depth-5 {
    margin-left: 35px;
}

/* Sekcja dodawania komentarza */
.comments-add-section {
    margin-top: 35px;
}

.comment-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: #1a237e;
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.comment-toggle-btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.comment-toggle-icon {
    font-size: 18px;
    line-height: 1;
}

.comment-form-box {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fb;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
}

/* Formularz WordPress */
.news-comment-form p {
    margin-bottom: 16px;
}

.news-comment-form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #111;
}

.news-comment-form textarea,
.news-comment-form input[type="text"],
.news-comment-form input[type="email"],
.news-comment-form input[type="url"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
}

.news-comment-form textarea {
    resize: vertical;
    min-height: 130px;
}

.comment-limit-info {
    display: block;
    margin-top: 8px;
    color: #777;
    font-size: 13px;
}

/* Captcha w komentarzach */
.comment-captcha {
    margin-top: 18px;
    margin-bottom: 18px;
}

.comment-captcha-question {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #111;
}

.captcha-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.captcha-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.captcha-option input[type="radio"] {
    margin: 0;
}

/* RODO */
.comment-rodo {
    margin-top: 18px;
}

.comment-rodo label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    line-height: 1.5;
}

.comment-rodo input[type="checkbox"] {
    margin-top: 3px;
}

/* Przycisk wyślij */
.news-comment-form .submit {
    border: none;
    background: #1a237e;
    color: #fff;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.news-comment-form .submit:hover {
    opacity: 0.95;
}

/* Link anulowania odpowiedzi */
#cancel-comment-reply-link {
    display: inline-block;
    margin-top: 12px;
    color: #c62828;
    text-decoration: none;
    font-weight: 600;
}

#cancel-comment-reply-link:hover {
    text-decoration: underline;
}

/* Blokada bez cookies */
.comments-cookie-block {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #ead9a3;
    background: #fff8e1;
    color: #6d4c00;
    border-radius: 12px;
}

.comments-cookie-block p {
    margin: 0;
}

/* Błędy */
.comment-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e0a4a4;
    background: #fdecec;
    color: #9f1d1d;
    font-weight: 600;
}

/* Nawigacja komentarzy */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 25px 0;
}

.comment-navigation a {
    text-decoration: none;
    font-weight: 600;
    color: #0a58ca;
}

.comment-navigation a:hover {
    text-decoration: underline;
}

/* Responsywność */
@media (max-width: 768px) {
    .article-comments {
        margin-top: 40px;
        padding-top: 25px;
    }

    .comments-title {
        font-size: 24px;
    }

    .comment-item {
        padding: 15px;
        gap: 12px;
    }

    .comment-avatar {
        flex: 0 0 40px;
    }

    .comment-avatar img {
        width: 40px;
        height: 40px;
    }

    .comment-text {
        font-size: 15px;
    }

    .comments-list .children,
    .comment.depth-2,
    .comment.depth-3,
    .comment.depth-4,
    .comment.depth-5 {
        margin-left: 18px;
    }

    .comment-actions {
        gap: 10px;
    }

    .comment-form-box {
        padding: 16px;
    }

    .comment-toggle-btn {
        width: 100%;
        justify-content: center;
    }
}