/**
 * Caching Out - the admin notices' own styles.
 *
 * WordPress prints admin notices on every admin screen, where admin.css is
 * not loaded (it is enqueued on the plugin's own screens only). This small
 * sheet carries the same tokens for the notice's buttons and code chips, so
 * the activation report and the drop-in conflict notice read as ours
 * (spec 35). Enqueued only while such a notice is on screen.
 *
 * @package CachingOut
 * @since 1.22.0
 */

.cachingout-notice {
	--rs-paper: #ffffff;
	--rs-ink-50: #f2f5f4;
	--rs-ink-100: #e4eae7;
	--rs-ink-450: #6f807c;
	--rs-ink-600: #3a4844;
	--rs-ink-700: #202c29;
	--rs-ink-900: #0e1413;
	--rs-signal-600: #057f58;
	--rs-signal-700: #046345;
	--rs-signal-800: #034a32;
	--rs-radius-sm: 4px;
	--rs-radius-md: 8px;
	--rs-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	padding-top: 10px;
	padding-bottom: 10px;
	color: var(--rs-ink-600);
}

.cachingout-notice .cachingout-notice__title {
	margin: 0 0 6px;
	color: var(--rs-ink-900);
	font-size: 14px;
	font-weight: 600;
}

.cachingout-notice .cachingout-notice__version {
	margin-left: 6px;
	color: var(--rs-ink-450);
	font-family: var(--rs-font-mono);
	font-size: 12px;
	font-weight: 400;
}

.cachingout-notice ul {
	margin: 4px 0 8px 1.5em;
	list-style: disc;
}

.cachingout-notice li {
	margin: 2px 0;
}

.cachingout-notice code {
	padding: 1px 5px;
	border-radius: var(--rs-radius-sm);
	background: var(--rs-ink-50);
	color: var(--rs-ink-700);
	font-family: var(--rs-font-mono);
	font-size: 12px;
}

.cachingout-notice .cachingout-notice__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 4px;
}

.cachingout-notice .rs-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 36px;
	margin: 0;
	padding: 0 14px;
	color: var(--rs-ink-900);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	background: var(--rs-paper);
	border: 1px solid var(--rs-ink-450);
	border-radius: var(--rs-radius-md);
	box-shadow: none;
	cursor: pointer;
	transition: background-color 120ms cubic-bezier(0.2, 0, 0, 1), border-color 120ms cubic-bezier(0.2, 0, 0, 1);
}

.cachingout-notice .rs-button:hover,
.cachingout-notice .rs-button:focus {
	color: var(--rs-ink-900);
	background: var(--rs-ink-50);
	border-color: var(--rs-ink-600);
}

.cachingout-notice .rs-button:focus-visible {
	outline: 2px solid var(--rs-signal-600);
	outline-offset: 2px;
	box-shadow: none;
}

.cachingout-notice .rs-button--primary {
	color: var(--rs-paper);
	background: var(--rs-signal-700);
	border-color: var(--rs-signal-700);
}

.cachingout-notice .rs-button--primary:hover,
.cachingout-notice .rs-button--primary:focus {
	color: var(--rs-paper);
	background: var(--rs-signal-800);
	border-color: var(--rs-signal-800);
}

@media (prefers-reduced-motion: reduce) {
	.cachingout-notice .rs-button {
		transition: none;
	}
}
