.comment-images-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.comment-images-gallery a {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #f9f9f9;
}

.comment-images-gallery a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-images-gallery a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.comment-files-uploader {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    margin: 20px 0;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: #f9f9f9;
}

.upload-section {
    /*display: flex;*/
    /*flex-direction: column;*/
    /*gap: 16px;*/
    flex-grow: 1;
    width: 50%;
}

.upload-section:last-child {
    margin-bottom: 0;
}

.upload-label {
    display: block;
    padding: 15px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    margin: 0;
}

.upload-label:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.upload-label .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    color: #666;
}

.upload-title {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.upload-description {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#docs-preview {
    flex-direction: column;
}

#docs-preview .file-card {
    width: 100%;
}

#images-preview .file-card {
    width: 74px;
    height: 74px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    border: none;
    padding: 0;
}

#images-preview .file-card .remove-file-btn {
    width: 18px;
    height: 18px;
    font-size: 16px;
    position: absolute;
    right: 4px;
    top: 4px;
    background-color: white !important;
}

#images-preview .file-card:hover {
    opacity: 1;
}

.file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid black;
    padding: 4px 8px;
    border-radius: 8px;
}

.file-card:hover {
    opacity: 0.6;
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    color: white;
    font-size: 24px;
}

.doc-icon.pdf {
    background-image: url('../icons/pdf.png');
}

.doc-icon.docx {
    background-image: url('../icons/docx.png');
}

.doc-icon.csv {
    background-image: url('../icons/csv.png');
}

.doc-icon.zip {
    background-image: url('../icons/zip.png');
}

.doc-icon.rtf {
    background-image: url('../icons/rtf.png');
}

.doc-icon.ppt {
    background-image: url('../icons/ppt.png');
}

.remove-file-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    color: #ff0000;
    border: none;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.remove-file-btn:hover {
    opacity: 0.6;
}

.remove-file-btn:focus {
    outline: none !important;
}

.file-info {
    font-size: 12px;
    text-align: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uploading {
    opacity: 0.7;
}

.uploading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.comment-docs-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 16px;
    margin: 16px 0 0;
}

.comment-docs-list li {
    list-style-type: none;
}

.comment-docs-list li a {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

li [data-subscribe-popup] {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}

li [data-subscribe-popup]:hover {
    color: #dd3333;
}

.comment-content__inner-text {
    margin-bottom: 16px;
}

.mfp-figure figure {
    margin: 0 !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.drag-over {
    border-color: #0073aa !important;
    background: #e3f2fd !important;
}

@media (max-width: 768px) {
    .comment-files-uploader {
        padding: 15px;
    }

    .upload-label {
        padding: 10px;
    }
}

@media (max-width: 500px) {
    .upload-section {
        width: 100%;
    }

    .comment-files-uploader {
        flex-direction: column;
    }

    .comment-images-gallery a {
        width: 70px;
        height: 70px;
    }
}

