
#comments {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 40px;
}

#comments .title-comments {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-right: 5px solid #ffe200;
    padding-right: 10px;
    font-weight: 700;
}

.comment-list,
.children {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.comment-body {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: transform 0.2s;
}

.comment-body:hover {
    transform: translateY(-2px);
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid #ffe200;
}

.comment-author .fn {
    font-weight: 700;
    color: #222;
}

.comment-author .says {
    margin-left: 6px;
    font-weight: 400;
    color: #666;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
}

.comment-metadata a {
    color: #222;
    text-decoration: none;
}


.comment-metadata > a > time {
    margin-left:20px;
}
.comment-metadata > span > a {
    margin-left:10px;
}

.comment-metadata a:hover {
    color: #ffe200;
}

.comment-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.comment .reply a.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background: #ffe200;
    color: #000;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.comment .reply a.comment-reply-link:hover {
    background: #e6cc00;
}

#commentform {
    margin-top: 30px;
}

#commentform p {
    margin-bottom: 15px;
}

#commentform label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

#commentform textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

#commentform textarea:focus {
    outline: none;
    border-color: #ffe200;
    box-shadow: 0 0 0 3px rgba(255, 226, 0, 0.3);
}

#commentform input#submit {
    background: #ffe200;
    color: #000;
    font-weight: 700;
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

#commentform input#submit:hover {
    background: #e6cc00;
}

#commentform .logged-in-as {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #666;
}

.comment .children .comment-body {
    margin-left: 40px;
    background: #fff8e1;
}

@media (max-width: 768px) {
    #comments {
        padding: 20px;
    }
    #commentform textarea {
        min-height: 160px;
    }
    #commentform input#submit {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }
    .comment .children .comment-body {
        margin-left: 20px;
    }
}




/* استایل برای باکس نظرات ووکامرس */
.woocommerce #reviews #comments {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* عنوان نظرات ووکامرس */
.woocommerce #reviews #comments .woocommerce-Reviews-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-right: 5px solid #ffe200;
    padding-right: 10px;
    font-weight: 700;
}

/* فرم ثبت دیدگاه در ووکامرس */
.woocommerce #review_form_wrapper #commentform {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* textarea دیدگاه */
.woocommerce #review_form_wrapper #commentform textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.woocommerce #review_form_wrapper #commentform textarea:focus {
    outline: none;
    border-color: #ffe200;
    box-shadow: 0 0 0 3px rgba(255, 226, 0, 0.3);
}

/* دکمه ارسال */
.woocommerce #review_form_wrapper #commentform input#submit {
    background: #ffe200;
    color: #000;
    font-weight: 700;
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.woocommerce #review_form_wrapper #commentform input#submit:hover {
    background: #e6cc00;
}

#commentform > div > p > span > a {
    color: yellow;
}


