/**
 * WP Stories Edited Image Preview Styles
 * Clean preview section for edited images
 */

/* Preview container */
.wb-stories-edited-preview {
    margin-bottom: 15px;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 10px;
    background: #f9f9f9;
    position: relative;
}

/* Image container */
.edited-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Edited image */
.edited-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Actions row */
.edited-image-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 10px;
    background: white;
    border-radius: 4px;
}

/* Success label */
.edited-label {
    color: #4CAF50;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Remove button */
.remove-edited {
    background: #f44336;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.remove-edited:hover {
    background: #d32f2f;
}

/* Hide FilePond when preview is shown */
.wb-stories-edited-preview ~ .wb-stories-story-media-container {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wb-stories-edited-preview {
        padding: 8px;
    }
    
    .edited-image {
        max-height: 200px;
    }
    
    .edited-image-actions {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .remove-edited {
        width: 100%;
    }
}