/**
 * Customizer Reset - Code Snippet style
 * @package WP_PowerSuite\CustomizerReset
 */
:root {
	--cr-blue: #2271b1;
	--cr-blue-hover: #135e96;
	--cr-black: #1d2327;
	--cr-gray: #50575e;
	--cr-border: #c3c4c7;
	--cr-bg: #f0f0f1;
	--cr-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--cr-danger: #d63638;
	--cr-danger-hover: #b32d2e;
}

.wpps-cr-wrap {
	margin: 20px 20px 20px 0;
}

.wpps-cr-back {
	display: inline-block;
	margin-bottom: 16px;
	color: var(--cr-blue);
	text-decoration: none;
	font-size: 0.875rem;
}

.wpps-cr-back:hover {
	color: var(--cr-blue-hover);
	text-decoration: underline;
}

.wpps-cr-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	border: 1px solid var(--cr-border);
	box-shadow: var(--cr-shadow);
	margin-bottom: 24px;
	padding: 20px 24px;
}

.wpps-cr-header-left {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.wpps-cr-header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.wpps-cr-header-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cr-bg);
	color: var(--cr-black);
}

.wpps-cr-header-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.wpps-cr-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--cr-black);
}

.wpps-cr-subtitle {
	margin: 4px 0 0;
	font-size: 0.875rem;
	color: var(--cr-gray);
}

.wpps-cr-notice {
	display: inline-block;
	width: fit-content;
	margin: 0 0 24px !important;
	padding: 10px 16px !important;
	font-size: 13px;
	line-height: 1.4;
}

.wpps-cr-panel {
	background: #fff;
	border: 1px solid var(--cr-border);
	box-shadow: var(--cr-shadow);
	padding: 20px 24px;
	margin-bottom: 16px;
}

.wpps-cr-panel-title {
	margin: 0 0 16px;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--cr-black);
}

.wpps-cr-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.wpps-cr-panel-header .wpps-cr-panel-title {
	margin: 0;
}

.wpps-cr-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.wpps-cr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 16px;
	min-height: 40px;
	line-height: 1;
	border-radius: 2px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	box-sizing: border-box;
}

.wpps-cr-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.wpps-cr-btn-sm {
	min-height: 32px;
	padding: 0 12px;
	font-size: 12px;
}

.wpps-cr-btn-sm .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.wpps-cr-btn-primary {
	background: var(--cr-blue);
	border: 1px solid var(--cr-blue);
	color: #fff;
}

.wpps-cr-btn-primary:hover {
	background: var(--cr-blue-hover);
	border-color: var(--cr-blue-hover);
	color: #fff;
}

.wpps-cr-btn-secondary {
	background: #fff;
	border: 1px solid var(--cr-border);
	color: var(--cr-black);
}

.wpps-cr-btn-secondary:hover {
	background: var(--cr-bg);
	border-color: var(--cr-gray);
	color: var(--cr-black);
}

.wpps-cr-btn-danger {
	background: transparent;
	border: 1px solid var(--cr-danger);
	color: var(--cr-danger);
}

.wpps-cr-btn-danger:hover {
	background: #fef2f2;
	border-color: var(--cr-danger-hover);
	color: var(--cr-danger-hover);
}

.wpps-cr-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 13px;
	cursor: pointer;
}

.wpps-cr-check input {
	margin: 0;
}

.wpps-cr-dropzone {
	margin: 16px 0;
	padding: 24px;
	background: var(--cr-bg);
	border: 2px dashed var(--cr-border);
	border-radius: 4px;
	text-align: center;
	transition: all 0.2s ease;
	cursor: pointer;
}

.wpps-cr-dropzone .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: var(--cr-gray);
	margin-bottom: 8px;
}

.wpps-cr-dropzone p {
	margin: 0 0 4px;
	font-size: 13px;
	color: var(--cr-black);
	font-weight: 500;
}

.wpps-cr-dropzone .wpps-cr-help {
	color: var(--cr-gray);
	font-size: 12px;
}

.wpps-cr-dropzone:hover {
	background: #fff;
	border-color: var(--cr-gray);
}

.wpps-cr-dropzone.drag-over {
	background: #f0f6fc;
	border-color: var(--cr-blue);
}

.wpps-cr-dropzone.drag-over .dashicons {
	color: var(--cr-blue);
}

.wpps-cr-export-format {
	margin-top: 16px;
	padding: 12px;
	background: var(--cr-bg);
	border: 1px solid var(--cr-border);
	border-radius: 4px;
}

.wpps-cr-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--cr-black);
}

.wpps-cr-format {
	display: block;
	margin-bottom: 6px;
	font-weight: normal;
}

.wpps-cr-format:last-child {
	margin-bottom: 0;
}

.wpps-cr-format input {
	margin-right: 6px;
}

.wpps-cr-help {
	color: var(--cr-gray);
	font-size: 12px;
}

.wpps-cr-backup-actions {
	display: flex;
	gap: 8px;
}

.wpps-cr-backup-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpps-cr-backup-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	margin-bottom: 8px;
	background: var(--cr-bg);
	border: 1px solid var(--cr-border);
	border-radius: 4px;
}

.wpps-cr-backup-item:hover {
	background: #fff;
	border-color: var(--cr-gray);
}

.wpps-cr-backup-info {
	flex: 1;
}

.wpps-cr-backup-info strong {
	display: block;
	font-size: 13px;
	color: var(--cr-black);
	margin-bottom: 4px;
}

.wpps-cr-meta {
	color: var(--cr-gray);
	font-size: 12px;
}

.wpps-cr-backup-btns {
	flex-shrink: 0;
	margin-left: 12px;
	display: flex;
	gap: 8px;
}

.wpps-cr-empty-desc {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--cr-gray);
}

@media (max-width: 782px) {
	.wpps-cr-header-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.wpps-cr-panel-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.wpps-cr-backup-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.wpps-cr-backup-btns {
		margin-left: 0;
		margin-top: 8px;
		width: 100%;
	}

	.wpps-cr-restore {
		flex: 1;
	}
}
