/* Cropper Modal Overlay */
.rwmb-cropper-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cropper Modal */
.rwmb-cropper-modal {
    background: #fff;
    border-radius: 4px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rwmb-cropper-header {
    background: #f0f0f1;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.rwmb-cropper-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.rwmb-cropper-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.rwmb-cropper-close:hover {
    color: #222;
}

/* Cropper Content Area */
.rwmb-cropper-content {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: 400px;
}

@media (max-width: 1024px) {
    .rwmb-cropper-content {
        flex-direction: column;
    }
}

/* Main Cropper Container */
.rwmb-cropper-container {
    flex: 1;
    min-width: 300px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.rwmb-cropper-image {
    max-width: 100%;
    display: block;
}

/* Preview Panel */
.rwmb-cropper-preview {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

/* Action Buttons */
.rwmb-cropper-actions {
    padding: 12px 16px;
    background: #f0f0f1;
    border-top: 1px solid #ddd;
    text-align: right;
}

.rwmb-cropper-actions .button {
    margin-left: 10px;
}