/**
 * Enhanced Comments styles
 */

/* Main comments area */
.ec-comments-area {
    font-family: Arial, sans-serif;
    margin: 30px 0;
    padding: 0;
    max-width: 100%;
}

/* Comments title */
.ec-comments-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Comment list */
.ec-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Social sharing section */
.ec-sharing-buttons {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    margin-bottom: 20px;
}

.ec-sharing-buttons span {
    font-weight: 600;
    margin-right: 15px;
    text-transform: uppercase;
    font-size: 14px;
}

.ec-sharing-buttons a {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ec-sharing-buttons a img {
    width: 30px;
    height: 30px;
}

/* Form style */
.ec-comment-form {
    background-color: #fff;
    padding: 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ec-comment-form .comment-form-comment {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 15px !important;
}

.ec-comment-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    resize: vertical;
    min-height: 100px;
    box-shadow: none !important;
    outline: none !important;
    background: #fff;
    font-size: 14px;
}

.ec-comment-form textarea::placeholder {
    color: #999;
}

.ec-comment-form .comment-form-author,
.ec-comment-form .comment-form-email {
    width: auto;
    float: left;
    margin: 0;
    padding: 0;
    border: none;
    max-width: 25%;
}

.ec-comment-form .comment-form-author {
    margin-right: 15px;
}

.ec-comment-form .input-row {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    flex-wrap: wrap;
}

.ec-comment-form input[type="text"],
.ec-comment-form input[type="email"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    outline: none;
    background: #fff;
    box-shadow: none !important;
    font-size: 14px;
}

.ec-comment-form input::placeholder {
    color: #999;
}

/* "Thêm hình ảnh" button styling */
.comment-form-upload {
    padding: 0;
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
    float: left;
}

.ec-upload-image-btn {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    color: #084e28;
    font-size: 14px;
    padding: 5px 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.ec-upload-image-btn img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* Checkbox styling */
.comment-form-cookies-consent {
    display: none !important;
}

/* Submit button styling */
.ec-comment-form .form-submit {
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: inline-block !important;
}

.ec-submit-button {
    background-color: #084e28 !important;
    color: white !important;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: none !important;
    line-height: normal !important;
    height: auto !important;
    margin: 0 !important;
}

/* Bố cục form mới theo quy định */
.ec-comment-form-wrapper {
    margin: 20px 0 !important;
}

/* Form container */
.ec-comment-form {
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    padding: 0 !important;
    position: relative !important;
}

/* Ô nhập comment */
.ec-comment-form .comment-form-comment {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ec-comment-form .comment-form-comment textarea {
    width: 100% !important;
    padding: 15px !important;
    border: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
    resize: vertical !important;
    min-height: 120px !important;
    box-shadow: none !important;
    outline: none !important;
    background: #fff !important;
    font-size: 14px !important;
    margin: 0 !important;
}

/* Hàng chứa họ tên, email, upload và nút gửi */
.ec-comment-form .ec-input-row {
    display: flex !important;
    align-items: center !important;
    padding: 10px !important;
    border-top: none !important;
    flex-wrap: wrap !important;
}

/* Các trường input */
.ec-comment-form .comment-form-author,
.ec-comment-form .comment-form-email {
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    float: none !important;
    flex: 1 !important;
    min-width: 120px !important;
    max-width: 200px !important;
}

.ec-comment-form input[type="text"],
.ec-comment-form input[type="email"] {
    width: 100% !important;
    padding: 8px 10px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    outline: none !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 14px !important;
    height: 36px !important;
    line-height: 20px !important;
}

/* Upload button */
.comment-form-upload {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 15px 0 0 !important;
    padding: 0 !important;
}

.ec-upload-image-btn {
    display: inline-flex !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    color: #084e28 !important;
    font-size: 14px !important;
    padding: 0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    height: 36px !important;
    line-height: 36px !important;
}

.ec-upload-image-btn img {
    width: 16px !important;
    height: 16px !important;
    margin-right: 5px !important;
    vertical-align: middle !important;
}

/* Form submit button */
.ec-comment-form .form-submit {
    margin: 0 0 0 auto !important; /* Push to right */
    padding: 0 !important;
}

/* Image preview */
.ec-image-preview {
    padding: 0 10px 10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.ec-image-preview img {
    max-width: 80px !important;
    max-height: 80px !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ec-comment-form .ec-input-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .ec-comment-form .comment-form-author,
    .ec-comment-form .comment-form-email {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
        margin-right: 0 !important;
    }
    
    .comment-form-upload {
        margin: 10px 0 !important;
        width: 100% !important;
    }
    
    .ec-comment-form .form-submit {
        margin: 10px 0 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .ec-submit-button {
        width: 100% !important;
    }
}

/* ... existing code ... */
