/* Prayer Request Form Styles */
/*chi ap dung danh muc san pham*/
.archive.woocommerce .tieude-cmrw-wat-form {
    padding-top: 20px;
}
/* THÊM MỚI: CSS cho form width responsive */
.pray-wat-product-comments {
    width: var(--pray-wat-form-width, 1100px) !important;
      border-top: 1px solid #ddd;
      width: 90% !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0px !important;
    padding-bottom: 30px;
}
.tieude-cmrw-wat-form {
    font-weight: bold;
    padding-bottom: 5px;
    position: relative;
    padding-top: 15px;
}
@media screen and (max-width: 768px) {
    .pray-wat-product-comments {
        width: var(--pray-wat-form-width-mobile, 95%) !important;
        padding: 10px 0 ;
     
    }
}

#pray-wat-comment-form {
  
    margin: 0 auto;
    background: none;
    border-radius: 8px;
   
}

#pray-wat-comment-form h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    text-align: center;
}

#cmrw-wat-comment-form{
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow-x: hidden;
}

/*phan trang o admin*/
/* Admin Pagination Styles */
.pray-wat-admin-pagination {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
}

.pray-wat-admin-pagination a,
.pray-wat-admin-pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #fff;
}

.pray-wat-admin-pagination a:hover {
    background: #f1f1f1;
}

.pray-wat-admin-pagination span:not(.screen-reader-text) {
    background: #008CBA;
    color: white;
    border-color: #007B9A;
}

/* Adjust table styles for better consistency */
.wp-list-table-pr-wat {
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.wp-list-table-pr-wat th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.wp-list-table-pr-wat td, 
.wp-list-table-pr-wat th {
    padding: 12px 10px;
}

/* Style action links */
.wp-list-table-pr-wat .row-actions {
    color: #ddd;
}

.wp-list-table-pr-wat .row-actions a {
    color: #0073aa;
    text-decoration: none;
}

.wp-list-table-pr-wat .row-actions a:hover {
    color: #00a0d2;
}
/*phan trang o admin end*/

/* Comments Styles */
#pray-wat-comments {
    top: 20px;
    position: relative;
}
.no-comments-message-rvcw-wat {
    top: -8px;
    position: relative;
    padding-bottom: 10px;
}
.pray-wat-comment {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}


/*form tra loi*/

.pray-wat-reply-btn {
    background: none;
    color: #0274be;
    border: none;
    cursor: pointer;
    font-size: 13px;
    margin-top: 0;
    margin-bottom: 0;
}


.pray-wat-reply-form {
    margin-top: 10px;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 4px;
}

.pray-wat-reply-form input[type="text"],
.pray-wat-reply-form textarea {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pray-wat-reply-form button i {
    margin-right: 4px; /* Tạo khoảng cách 8px bên phải của icon */
}
.pray-wat-reply-form button {
    background: #008CBA;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.pray-wat-reply-form button:hover {
    background: #007B9A;
}

/* CHỈNH SỬA: Loại bỏ hoàn toàn việc thụt đà cho tất cả các cấp replies */
.pray-wat-replies {
   border-left: none !important;
    position: static;
    padding-bottom: 15px;
    margin-left: 15px;
}
/* CHỈNH SỬA: Đảm bảo không có thụt đà cho bất kỳ cấp replies nào */
/* Reset margin-left cho tất cả các cấp độ */
/* Đảm bảo các .pray-wat-replies ở các cấp level đều ngang hàng */
.pray-wat-replies,
.pray-wat-replies .pray-wat-replies,
.pray-wat-replies .pray-wat-replies .pray-wat-replies,
.pray-wat-replies .pray-wat-replies .pray-wat-replies .pray-wat-replies {
    margin-left: 0 !important;
    padding: 0 !important;
  

}
.pray-wat-admin-reply-rcwwat .pray-wat-actions {
    border-bottom: dotted #e0dfdf 2px;
    padding-bottom: 15px;          /* Thêm padding phía dưới */
    margin-bottom: 10px;           /* Thêm margin phía dưới */
}
/* Đảm bảo các .pray-wat-reply ở các cấp level đều ngang hàng */
.pray-wat-replies .pray-wat-reply,
.pray-wat-replies .pray-wat-replies .pray-wat-reply,
.pray-wat-replies .pray-wat-replies .pray-wat-replies .pray-wat-reply {
    margin-left: 0 !important;
    padding: 0;
   
        
}

/* Đảm bảo style đồng nhất cho tất cả các .pray-wat-reply */

.pray-wat-replies.level- {
    padding-top: 0px !important;
    border-top: none !important;
}

/*form tra loi end*/



.title-wall-wat-pr{
    text-align: center;
    font-weight: bold;
    color: black;
    font-size: 30px;
}

/*admin*/

/*admin end*/


/*bat tat kiem duyet binh luan*/


/* respon cac truong nhap ho ten, sdt, email input tren di dong */
.cmrw-wat-fields-mobile-row {
    display: contents; /* Không ảnh hưởng đến layout trên desktop */
}

@media screen and (max-width: 768px) {
    .cmrw-wat-fields-row {
        flex-direction: column;
        gap: 10px;
        width: 95% !important;
    }
    
    /* Xử lý hiển thị 2 field một hàng trên mobile */
    .cmrw-wat-fields-mobile-row {
        display: flex;
        gap: 10px;
        width: 100%;
    }
    
    .cmrw-wat-fields-mobile-row .cmrw-wat-field {
        flex: 1;
    }
    
    /* Giữ nút gửi ở vị trí cuối cùng */
    .cmrw-wat-submit {
        width: 100% !important;
        margin-top: 10px !important;
    }
}
/* respon cac truong nhap ho ten, sdt, email input tren di dong end*/

/* CSS cho form mới */

.cmrw-wat-form {
   
    margin: 0 auto;
}

.cmrw-wat-textarea-wrap {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.cmrw-wat-textarea-wrap textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: none;
    resize: vertical;
    box-shadow: none !important;
    height: 100px;
}

.cmrw-wat-fields-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    width: 98%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
   
}

.cmrw-wat-field {
    flex: 1;
}

.cmrw-wat-field input {
   height: 40px !important;
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    margin: 0 auto;
    box-shadow: none !important;
    font-size: 16px;
}

.cmrw-wat-submit {
    width: auto !important;
    min-width: 150px !important;
    padding: 0 10px !important;
    background: #2872fa !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    height: 40px !important;
    margin-top: 0 !important;
    min-height: 40px !important;
    display: inline-block !important;
    line-height: 2.4em;
    margin: 0;
    vertical-align: middle;
    position: relative;
    font-weight: 700;
    font-size: 14px !important;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    text-rendering: optimizeLegibility;
    text-shadow: none;
    text-transform: uppercase;
}

.cmrw-wat-submit:hover {
    background: #1e5ed7 !important;
}

.sliderprwat.round {
    width: 60px;
}

/*them icon*/
.icon-input-wrapper-cmrw-wat {
    position: relative;
    width: 100%;
}

.icon-input-wrapper-cmrw-wat i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
}

.icon-input-wrapper-cmrw-wat input,
.icon-input-wrapper-cmrw-wat textarea {
    padding-left: 30px !important; /* Để tránh icon đè lên text */
    width: 100%;
}

/* Style cho icon trong button submit */


/* Style cho icon trong tiêu đề */
.tieude-cmrw-wat-form i {
    margin-right: 8px;
}
/*them icon end*/
/*nut like*/
/* THÊM MỚI: Thêm vào file CSS */
.pray-wat-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 10px;
}

/*nut like end*/

/*thong bao loi*/

.error-message-cmrw-wat {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
    padding-left: 25px;
}

.icon-input-wrapper-cmrw-wat.error input {
    border-color: #dc3545 !important;
}

.icon-input-wrapper-cmrw-wat.error i {
    color: #dc3545;
}
/*thong bao loi end*/

/* === THÊM MỚI: CSS CHO FORM TRẢ LỜI RESPONSIVE === */
.pray-wat-reply-form-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pray-wat-reply-form-inner textarea {
    width: 100%;
    margin-bottom: 10px;
}

/* Tạo container cho các trường input và nút submit */
.pray-wat-reply-inputs {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

/* Style cho nút gửi trả lời để phù hợp với layout mới */
.pray-wat-reply-form button[type="submit"] {
    min-width: 150px;
    height: 40px !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    min-height: 40px !important;
    margin: 0;
    max-width: 100%;
    width: auto;
    line-height: normal;
    position: relative;
}

/* Trên máy tính (màn hình > 768px) */
@media screen and (min-width: 769px) {
    .pray-wat-reply-inputs {
        flex-direction: row;
      
    }
    
    .pray-wat-reply-inputs .icon-input-wrapper-cmrw-wat {
        flex: 1;
    }
}

/* === THÊM MỚI: CSS CHO FORM TRẢ LỜI RESPONSIVE end=== */

/* === THÊM MỚI: STYLE CHO PHẢN HỒI CỦA ADMIN === */


.name-admin-reply_wat {
    color: green;

 
}

.name-admin-reply_wat {
    font-size: 15px;
}

#admin_role_rcwwat {
    background: #4CAF50;
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: normal;
    padding: 0px 15px;
}

.admin-reply-content-rcwwat {
    color: #444;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* Style cho các nút trong admin */
.ac-reply-pr-wat, 
.ac-edit-pr-wat, 
.ac-dl-pr-wat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 5px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ac-reply-pr-wat {
    background: #4CAF50;
    color: white;
    border: none;
}

.ac-reply-pr-wat:hover {
    background: #45a049;
}

.ac-edit-pr-wat {
    background: #2196F3;
    color: white;
    border: none;
}

.ac-edit-pr-wat:hover {
    background: #1976D2;
}

/* Style cho modal */
.modal-pr-wat {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content-pr-wat {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content-pr-wat h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.close-pr-wat {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-pr-wat:hover {
    color: #333;
}

/* Style cho form trong modal */
#adminReplyForm_rcwwat,
#adminEditForm_rcwwat {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

textarea#admin_reply_rcwwat {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 120px;
    font-size: 14px;
    resize: vertical;
}

.modal-content-pr-wat button {
 color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
    background: #2196F3;
    padding: 8px 15px;
}

.modal-content-pr-wat button:hover {
    background: #45a049;
}

.admin-role-rcw-wat {
    border-radius: 30px;
    background: green;
    color: white;
    padding: 3px 10px;
    font-size: 12px;
	display: inline-block;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .modal-content-pr-wat {
        width: 95%;
        margin: 20px;
        padding: 15px;
    }

    .ac-reply-pr-wat, 
    .ac-edit-pr-wat, 
    .ac-dl-pr-wat {
        padding: 5px 10px;
        font-size: 13px;
    }
}

/* === THÊM MỚI: STYLE CHO PHẢN HỒI CỦA ADMIN end=== */

/*form trả lời admin*/

/*form tra loi admin end*/
/*lay ten nguoi tra loi*/
.reply-to-author-rcw-wat {
    font-style: italic;
    color: #666;
    margin-bottom: 5px;
    font-size: 13px;
}
.reply-to-author-rcw-wat strong {
    text-decoration: none;
    opacity: 0.8;
    color: green;
}
/*lay ten nguoi tra loi end*/

.pray-wat-reply-form {
    position: relative;
}
/*viet hoa chu cai dau comment*/
.pray-wat-comment strong {
    text-transform: capitalize;
}
/*truong nhap ten*/
.pray-wat-reply-inputs input#cmrw-wat-email-reply {
  border: 1px solid #ddd;  
}

.pray-wat-reply-inputs input[type="tel"] {
    border: 1px solid #ddd;
}

.pray-wat-reply-inputs input[type="text"]{
        margin-bottom: 0px;
}