.wpps-media-rename-panel {
	margin: 0;
}
.wpps-media-rename-panel p {
	margin: 0 0 14px 0;
}
.wpps-media-rename-panel p:last-of-type {
	margin-bottom: 0;
}
.wpps-media-rename-panel .wpps-current-filename {
	margin-bottom: 14px;
}
.wpps-media-rename-panel .wpps-current-filename code {
	display: block;
	word-break: break-all;
	font-size: 12px;
	margin-top: 4px;
}
.wpps-media-rename-panel .wpps-field-label {
	display: block;
	margin-bottom: 4px;
}
.wpps-media-rename-panel .wpps-checkbox-label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 0;
	cursor: pointer;
}
.wpps-media-rename-panel .button {
	margin-right: 8px;
	margin-bottom: 4px;
}
.wpps-rename-result,
.wpps-scan-result {
	margin-top: 8px;
	padding: 8px 32px 8px 12px;
	border-radius: 4px;
	font-size: 13px;
	position: relative;
}
.wpps-rename-result .wpps-result-content,
.wpps-scan-result .wpps-result-content {
	display: block;
}
.wpps-rename-result .wpps-result-dismiss,
.wpps-scan-result .wpps-result-dismiss {
	position: absolute;
	top: 6px;
	right: 6px;
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: #646970;
	opacity: 0.7;
}
.wpps-rename-result .wpps-result-dismiss:hover,
.wpps-scan-result .wpps-result-dismiss:hover {
	opacity: 1;
	color: #1d2327;
}
.wpps-rename-result.success,
.wpps-scan-result.success {
	background: #edfaef;
	border-left: 4px solid #00a32a;
}
.wpps-rename-result.error,
.wpps-scan-result.error {
	background: #fcf0f1;
	border-left: 4px solid #d63638;
}
.wpps-rename-result.info,
.wpps-scan-result.info {
	background: #f0f6fc;
	border-left: 4px solid #2271b1;
}

/* Bulk rename modal */
.wpps-bulk-rename-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.6);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
}
.wpps-bulk-rename-modal.is-open {
	opacity: 1;
	visibility: visible;
}
.wpps-bulk-rename-modal-content {
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.2);
	max-width: 520px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 24px;
}
.wpps-bulk-rename-modal-content h2 {
	margin-top: 0;
	margin-bottom: 8px;
}
.wpps-bulk-rename-modal-content .description {
	margin-bottom: 16px;
	color: #646970;
}
.wpps-bulk-progress progress {
	width: 100%;
	height: 24px;
	margin: 8px 0;
}
.wpps-bulk-progress p {
	margin: 4px 0;
}
.wpps-bulk-summary {
	margin: 16px 0;
	padding: 12px;
	background: #f0f6fc;
	border-radius: 4px;
	border-left: 4px solid #2271b1;
}
.wpps-bulk-actions {
	margin-top: 20px;
}
.wpps-bulk-rename-notice .button {
	margin-right: 8px;
}

.media-modal .compat-field-wpps_media_rename .field,
.edit-attachment-frame .compat-field-wpps_media_rename .field {
	max-width: 100%;
}

.media-modal .compat-field-wpps_media_rename .wpps-media-rename-panel,
.edit-attachment-frame .compat-field-wpps_media_rename .wpps-media-rename-panel {
	margin-top: 4px;
}

.edit-attachment-frame .attachment-compat .compat-item,
.media-modal .attachment-compat .compat-item {
	float: none;
	width: 100%;
	margin: 12px 0 0;
	padding-top: 12px;
	border-top: 1px solid #dcdcde;
}

.edit-attachment-frame .attachment-compat .compat-field-wpps_media_rename,
.media-modal .attachment-compat .compat-field-wpps_media_rename {
	display: block;
	width: 100%;
}

.edit-attachment-frame .attachment-compat tr.compat-field-wpps_media_rename th.label,
.edit-attachment-frame .attachment-compat tr.compat-field-wpps_media_rename td.field,
.media-modal .attachment-compat tr.compat-field-wpps_media_rename th.label,
.media-modal .attachment-compat tr.compat-field-wpps_media_rename td.field {
	float: none;
	width: 100%;
	min-width: 0;
	margin: 0 0 8px;
	padding: 0;
	text-align: left;
}

.edit-attachment-frame .attachment-compat tr.compat-field-wpps_media_rename th.label label,
.edit-attachment-frame .attachment-compat tr.compat-field-wpps_media_rename th.label label span,
.media-modal .attachment-compat tr.compat-field-wpps_media_rename th.label label,
.media-modal .attachment-compat tr.compat-field-wpps_media_rename th.label label span {
	float: none;
	display: block;
	width: 100%;
	padding-top: 0;
	text-align: left;
	font-weight: 600;
	color: #1d2327;
}

.media-modal .compat-field-wpps_media_rename .wpps-rename-actions .button {
	margin-bottom: 6px;
}
