/* Comment Edit & Delete Styles */

/* Edit Form */
.comment-edit-form {
    margin: 15px 0;
    min-width: 100%;
}

.brxe-comment-content:has(.comment-edit-form),
.comment-content:has(.comment-edit-form) {
    min-width: 100%;
}

.comment-edit-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    direction: rtl;
}

.comment-edit-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.comment-edit-save,
.comment-edit-cancel {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.comment-edit-save {
    background-color: #0073aa;
    color: white;
}

.comment-edit-save:hover {
    background-color: #005177;
}

.comment-edit-save:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.comment-edit-cancel {
    background-color: #f1f1f1;
    color: #333;
}

.comment-edit-cancel:hover {
    background-color: #ddd;
}

/* Confirmation Popup */
.comment-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.comment-confirmation-popup {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    direction: rtl;
    position: relative;
}

.comment-popup-close {
    position: absolute;
    top: var(--space-4xs);
    left: var(--space-4xs);
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.comment-popup-close:hover {
    color: #000;
}

.comment-confirmation-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.comment-confirmation-header h3 {
    margin: 0;
    font-size: 18px;
    line-height: 0.3;
    color: #333;
}

.comment-confirmation-body {
    padding: 20px;
}

.comment-confirmation-body p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.comment-confirmation-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-direction: row-reverse;
}

.comment-confirm-yes,
.comment-confirm-no {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.comment-confirm-yes {
    background-color: #dc3232;
    color: white;
}

.comment-confirm-yes:hover {
    background-color: #a82a2a;
}

.comment-confirm-no {
    background-color: #f1f1f1;
    color: #333;
}

.comment-confirm-no:hover {
    background-color: #ddd;
}

/* Success/Error Messages */
.comment-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    direction: rtl;
    font-size: 14px;
}

.comment-message-success {
    background-color: #46b450;
    color: white;
}

.comment-message-error {
    background-color: #dc3232;
    color: white;
}
